creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r1548395 - /creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/ToNameTransformerTest.java
Date Fri, 06 Dec 2013 08:03:24 GMT
Author: rdonkin
Date: Fri Dec  6 08:03:24 2013
New Revision: 1548395

URL: http://svn.apache.org/r1548395
Log:
Use Interface is better than implementations

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=1548395&r1=1548394&r2=1548395&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
Fri Dec  6 08:03:24 2013
@@ -23,6 +23,7 @@ import org.junit.Test;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertNull;
+import org.apache.rat.api.Document;
 
 public class ToNameTransformerTest {
 
@@ -30,10 +31,10 @@ public class ToNameTransformerTest {
     
     @Test
     public void transformLocation() {
-        MockLocation location = new MockLocation();
+        Document location = new MockLocation();
         Object result = transformer.transform(location);
         assertNotNull("Transform into name", result);
-        assertEquals("Transform into name", location.name, result);
+        assertEquals("Transform into name", location.getName(), result);
     }
 
     @Test



Mime
View raw message