creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r1549214 - /creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/ToNameTransformerTest.java
Date Sun, 08 Dec 2013 20:48:08 GMT
Author: rdonkin
Date: Sun Dec  8 20:48:07 2013
New Revision: 1549214

URL: http://svn.apache.org/r1549214
Log:
Rename test method.

Modified:
    creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/ToNameTransformerTest.java

Modified: creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/ToNameTransformerTest.java
URL: http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/ToNameTransformerTest.java?rev=1549214&r1=1549213&r2=1549214&view=diff
==============================================================================
--- creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/ToNameTransformerTest.java
(original)
+++ creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/ToNameTransformerTest.java
Sun Dec  8 20:48:07 2013
@@ -19,6 +19,7 @@
 package org.apache.rat.document;
 
 import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertNull;
 
 import org.apache.rat.api.Document;
@@ -36,7 +37,7 @@ public class ToNameTransformerTest {
 	 * Transform location.
 	 */
 	@Test
-	public void transformLocation() {
+	public void testTransformLocation() {
 		Document location = new MockLocation();
 		Object result = transformer.transform(location);
 		assertEquals("Transform into name", location.getName(), result);
@@ -46,8 +47,17 @@ public class ToNameTransformerTest {
 	 * Transform null.
 	 */
 	@Test
-	public void transformNull() {
+	public void testTransformNull() {
 		Object result = transformer.transform(null);
 		assertNull("Null transforms to null", result);
 	}
+
+	/**
+	 * Test transform not null.
+	 */
+	@Test
+	public void testTransformNotNull() {
+		assertNotNull("Null transforms to null",
+				ToNameTransformer.toNameTransformer());
+	}
 }



Mime
View raw message