Simplify test case
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1348417 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
94c5cbb462
commit
1971d3ed8b
|
@ -79,15 +79,9 @@ public class ToStringBuilderTest {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test(expected=IllegalArgumentException.class)
|
||||||
public void testSetDefaultEx() {
|
public void testSetDefaultEx() {
|
||||||
try {
|
ToStringBuilder.setDefaultStyle(null);
|
||||||
ToStringBuilder.setDefaultStyle(null);
|
|
||||||
|
|
||||||
} catch (IllegalArgumentException ex) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
fail();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue