Skip to content

Commit

Permalink
Merge pull request #6876 from utzcoz/clean-up-dependency-on-stubs
Browse files Browse the repository at this point in the history
Remove unused Exception from test methods for dependency-on-stubs
  • Loading branch information
hoisie committed Nov 21, 2021
2 parents 7502aa1 + 5c8d109 commit 6a6182b
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -22,26 +22,26 @@ public class LoadWeirdClassesTest {

@Test
@Config(sdk = KITKAT)
public void shouldLoadDisplay() throws Exception {
public void shouldLoadDisplay() {
ReflectionHelpers.callInstanceMethod(
Display.class, ShadowDisplay.getDefaultDisplay(), "getDisplayAdjustments");
}

@Test
public void reset_shouldWorkEvenIfSdkIntIsOverridden() throws Exception {
public void reset_shouldWorkEvenIfSdkIntIsOverridden() {
ReflectionHelpers.setStaticField(Build.VERSION.class, "SDK_INT", 23);
}

@Test
public void shadowOf_shouldCompile() throws Exception {
public void shadowOf_shouldCompile() {
assumeThat("Windows is an affront to decency.",
File.separator, Matchers.equalTo("/"));

shadowOf(Robolectric.setupActivity(Activity.class));
}

@Test
public void packageManager() throws Exception {
public void packageManager() {
PackageInfo packageInfo = new PackageInfo();
packageInfo.packageName = "test.package";
shadowOf(RuntimeEnvironment.application.getPackageManager()).addPackage(packageInfo);
Expand Down

0 comments on commit 6a6182b

Please sign in to comment.