creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r1548847 - /creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/license/BaseLicenseTest.java
Date Sat, 07 Dec 2013 10:58:30 GMT
Author: rdonkin
Date: Sat Dec  7 10:58:30 2013
New Revision: 1548847

URL: http://svn.apache.org/r1548847
Log:
Add Test.

Modified:
    creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/license/BaseLicenseTest.java

Modified: creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/license/BaseLicenseTest.java
URL: http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/license/BaseLicenseTest.java?rev=1548847&r1=1548846&r2=1548847&view=diff
==============================================================================
--- creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/license/BaseLicenseTest.java
(original)
+++ creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/license/BaseLicenseTest.java
Sat Dec  7 10:58:30 2013
@@ -49,4 +49,28 @@ public class BaseLicenseTest {
                 is(someName));
     }
 
+	@Test
+	public void testSetsCategory() {
+		final String someName = "http://some.name.org";
+		BaseLicense baseLicense = new BaseLicense();
+		baseLicense.setLicenseFamilyCategory(someName);
+		assertThat(baseLicense.getLicenseFamilyCategory(), is(someName));
+	}
+
+	@Test
+	public void testSetsName() {
+		final String someName = "http://some.name.org";
+		BaseLicense baseLicense = new BaseLicense();
+		baseLicense.setLicenseFamilyName(someName);
+		assertThat(baseLicense.getLicenseFamilyName(), is(someName));
+	}
+
+	@Test
+	public void testSetsNotes() {
+		final String someName = "http://some.name.org";
+		BaseLicense baseLicense = new BaseLicense();
+		baseLicense.setNotes(someName);
+		assertThat(baseLicense.getNotes(), is(someName));
+	}
+
 }



Mime
View raw message