commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject [1/5] [lang] add testConstructorWithNullObject case in ReflectionToStringBuilderTest.java
Date Thu, 07 May 2015 18:45:36 GMT
Repository: commons-lang
Updated Branches:
  refs/heads/master 0e96d84e2 -> dee94449e


add testConstructorWithNullObject case in ReflectionToStringBuilderTest.java


Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/474a8378
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/474a8378
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/474a8378

Branch: refs/heads/master
Commit: 474a837858a8e7a98316f97e9ed387d0161015f2
Parents: d6dd2b4
Author: Jack <792626757@qq.com>
Authored: Wed May 6 11:10:11 2015 +0800
Committer: Jack <792626757@qq.com>
Committed: Wed May 6 11:10:11 2015 +0800

----------------------------------------------------------------------
 .../lang3/builder/ReflectionToStringBuilderTest.java    | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/474a8378/src/test/java/org/apache/commons/lang3/builder/ReflectionToStringBuilderTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/lang3/builder/ReflectionToStringBuilderTest.java
b/src/test/java/org/apache/commons/lang3/builder/ReflectionToStringBuilderTest.java
new file mode 100644
index 0000000..2410216
--- /dev/null
+++ b/src/test/java/org/apache/commons/lang3/builder/ReflectionToStringBuilderTest.java
@@ -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());
+    }
+
+}


Mime
View raw message