creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r1549128 - /creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/api/MetaDataTest.java
Date Sun, 08 Dec 2013 19:12:51 GMT
Author: rdonkin
Date: Sun Dec  8 19:12:51 2013
New Revision: 1549128

URL: http://svn.apache.org/r1549128
Log:
Add test: testToStringDatum

Modified:
    creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/api/MetaDataTest.java

Modified: creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/api/MetaDataTest.java
URL: http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/api/MetaDataTest.java?rev=1549128&r1=1549127&r2=1549128&view=diff
==============================================================================
--- creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/api/MetaDataTest.java
(original)
+++ creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/api/MetaDataTest.java
Sun Dec  8 19:12:51 2013
@@ -18,6 +18,7 @@
  */
 package org.apache.rat.api;
 
+import org.apache.rat.api.MetaData.Datum;
 import org.junit.Assert;
 import org.junit.Test;
 
@@ -37,4 +38,14 @@ public class MetaDataTest {
 		Assert.assertEquals(0, metaData.getData().size());
     }
 
+	/**
+	 * Test to string datum.
+	 */
+	@Test
+	public void testToStringDatum() {
+		Datum datum = new Datum("name", "value");
+		Assert.assertEquals("Datum [ name ='name',value ='value ']",
+				datum.toString());
+	}
+
 }



Mime
View raw message