add testConstructorWithNullObject case in ReflectionToStringBuilderTest.java
This commit is contained in:
parent
d6dd2b4cd4
commit
474a837858
|
@ -0,0 +1,12 @@
|
||||||
|
package org.apache.commons.lang3.builder;
|
||||||
|
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
public class ReflectionToStringBuilderTest {
|
||||||
|
|
||||||
|
@Test(expected=IllegalArgumentException.class)
|
||||||
|
public void testConstructorWithNullObject() {
|
||||||
|
new ReflectionToStringBuilder(null, ToStringStyle.DEFAULT_STYLE, new StringBuffer());
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue