Skip to content

Commit

Permalink
Objects_assertHasToString_Test, Throwables_assertHasSuppressedExcepti…
Browse files Browse the repository at this point in the history
…on_Test: rename setup method to setUp and override superclass method
  • Loading branch information
PascalSchumacher committed Feb 12, 2017
1 parent 00b5540 commit c0e7258
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Expand Up @@ -31,7 +31,9 @@ public class Objects_assertHasToString_Test extends ObjectsBaseTest {
private Person actual;

@Before
public void setup() {
@Override
public void setUp() {
super.setUp();
actual = mock(Person.class);
when(actual.toString()).thenReturn("foo");
}
Expand Down
Expand Up @@ -31,7 +31,9 @@ public class Throwables_assertHasSuppressedException_Test extends ThrowablesBase
private Throwable throwableSuppressedException;

@Before
public void setup() {
@Override
public void setUp() {
super.setUp();
throwableSuppressedException = new Throwable();
throwableSuppressedException.addSuppressed(new IllegalArgumentException(IAE_EXCEPTION_MESSAGE));
throwableSuppressedException.addSuppressed(new NullPointerException(NPE_EXCEPTION_MESSAGE));
Expand Down

0 comments on commit c0e7258

Please sign in to comment.