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:
Sebastian Bazley 2012-06-09 14:40:59 +00:00
parent 94c5cbb462
commit 1971d3ed8b
1 changed files with 2 additions and 8 deletions

View File

@ -79,15 +79,9 @@ public class ToStringBuilderTest {
}
}
@Test
@Test(expected=IllegalArgumentException.class)
public void testSetDefaultEx() {
try {
ToStringBuilder.setDefaultStyle(null);
} catch (IllegalArgumentException ex) {
return;
}
fail();
ToStringBuilder.setDefaultStyle(null);
}
@Test