creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r1549451 - /creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/policy/DefaultPolicyTest.java
Date Mon, 09 Dec 2013 06:04:45 GMT
Author: rdonkin
Date: Mon Dec  9 06:04:44 2013
New Revision: 1549451

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

Modified:
    creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/policy/DefaultPolicyTest.java

Modified: creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/policy/DefaultPolicyTest.java
URL: http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/policy/DefaultPolicyTest.java?rev=1549451&r1=1549450&r2=1549451&view=diff
==============================================================================
--- creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/policy/DefaultPolicyTest.java
(original)
+++ creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/policy/DefaultPolicyTest.java
Mon Dec  9 06:04:44 2013
@@ -29,6 +29,13 @@ import org.apache.rat.api.Document;
 import org.apache.rat.api.MetaData;
 import org.apache.rat.document.MockLocation;
 import org.apache.rat.license.Apache20LicenseFamily;
+import org.apache.rat.license.CDDL1LicenseFamily;
+import org.apache.rat.license.GPL1LicenseFamily;
+import org.apache.rat.license.GPL2LicenseFamily;
+import org.apache.rat.license.GPL3LicenseFamily;
+import org.apache.rat.license.MITLicenseFamily;
+import org.apache.rat.license.ModifiedBSDLicenseFamily;
+import org.apache.rat.license.OASISLicenseFamily;
 import org.apache.rat.license.ILicenseFamily;
 import org.junit.Assert;
 import org.junit.Before;
@@ -152,8 +159,15 @@ public class DefaultPolicyTest {
 	 */
 	@Test
 	public void testConstructorILicenseFamily() throws Exception {
-		ILicenseFamily[] approvedLicenses = new ILicenseFamily[1];
+		ILicenseFamily[] approvedLicenses = new ILicenseFamily[8];
 		approvedLicenses[0] = new Apache20LicenseFamily();
+		approvedLicenses[1] = new CDDL1LicenseFamily();
+		approvedLicenses[2] = new GPL1LicenseFamily();
+		approvedLicenses[3] = new GPL2LicenseFamily();
+		approvedLicenses[4] = new GPL3LicenseFamily();
+		approvedLicenses[5] = new MITLicenseFamily();
+		approvedLicenses[6] = new ModifiedBSDLicenseFamily();
+		approvedLicenses[7] = new OASISLicenseFamily();
 		policy = new DefaultPolicy(approvedLicenses);
 		Assert.assertNotNull(policy);
 	}



Mime
View raw message