creadur-commits mailing list archives

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

URL: http://svn.apache.org/r1548836
Log:
Add Test testLicenseFamilyConstructorDefault

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

Modified: creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/license/SimplePatternBasedLicenseTest.java
URL: http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/license/SimplePatternBasedLicenseTest.java?rev=1548836&r1=1548835&r2=1548836&view=diff
==============================================================================
--- creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/license/SimplePatternBasedLicenseTest.java
(original)
+++ creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/license/SimplePatternBasedLicenseTest.java
Sat Dec  7 10:47:38 2013
@@ -20,6 +20,7 @@ package org.apache.rat.analysis.license;
 
 import static org.apache.rat.api.domain.LicenseFamilyBuilder.aLicenseFamily;
 import static org.hamcrest.CoreMatchers.is;
+import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertThat;
 
 import org.junit.Test;
@@ -34,7 +35,7 @@ public class SimplePatternBasedLicenseTe
 	 */
     @Test
     public void testLicenseFamilyConstructorSetsNotes() {
-        String someNotes = "Some notes about a license family";
+		String someNotes = "Some notes about a license family";
         assertThat(
                 new SimplePatternBasedLicense(aLicenseFamily().withNotes(
                         someNotes).build()).getNotes(), is(someNotes));
@@ -45,7 +46,7 @@ public class SimplePatternBasedLicenseTe
 	 */
     @Test
     public void testLicenseFamilyConstructorSetsCategory() {
-        String someCategory = "http://some.category.org";
+		String someCategory = "http://some.category.org";
         assertThat(
                 new SimplePatternBasedLicense(aLicenseFamily().withCategory(
                         someCategory).build()).getLicenseFamilyCategory(),
@@ -57,9 +58,17 @@ public class SimplePatternBasedLicenseTe
 	 */
     @Test
     public void testLicenseFamilyConstructorSetsName() {
-        String someName = "http://some.name.org";
+		String someName = "http://some.name.org";
         assertThat(
                 new SimplePatternBasedLicense(aLicenseFamily().withName(
                         someName).build()).getLicenseFamilyName(), is(someName));
     }
+
+	/**
+	 * Test license family constructor default.
+	 */
+	@Test
+	public void testLicenseFamilyConstructorDefault() {
+		assertNotNull("Not null Object", new SimplePatternBasedLicense());
+	}
 }



Mime
View raw message