add testConstructorWithNullObject case in ReflectionToStringBuilderTest.java

This commit is contained in:
Jack 2015-05-06 11:10:11 +08:00
parent d6dd2b4cd4
commit 474a837858
1 changed files with 12 additions and 0 deletions

View File

@ -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());
}
}