creadur-commits mailing list archives

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

URL: http://svn.apache.org/r1549458
Log:
Add testMethod.

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=1549458&r1=1549457&r2=1549458&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:06:29 2013
@@ -39,6 +39,7 @@ import org.apache.rat.license.OASISLicen
 import org.apache.rat.license.ILicenseFamily;
 import org.apache.rat.license.AcademicFree21LicenseFamily;
 import org.apache.rat.license.SimpleLicenseFamily;
+import org.apache.rat.license.W3CDocumentLicenseFamily;
 import org.junit.Assert;
 import org.junit.Before;
 import org.junit.Test;
@@ -161,7 +162,7 @@ public class DefaultPolicyTest {
 	 */
 	@Test
 	public void testConstructorILicenseFamily() throws Exception {
-		ILicenseFamily[] approvedLicenses = new ILicenseFamily[10];
+		ILicenseFamily[] approvedLicenses = new ILicenseFamily[11];
 		approvedLicenses[0] = new Apache20LicenseFamily();
 		approvedLicenses[1] = new CDDL1LicenseFamily();
 		approvedLicenses[2] = new GPL1LicenseFamily();
@@ -172,6 +173,7 @@ public class DefaultPolicyTest {
 		approvedLicenses[7] = new OASISLicenseFamily();
 		approvedLicenses[8] = new AcademicFree21LicenseFamily();
 		approvedLicenses[9] = new SimpleLicenseFamily();
+		approvedLicenses[10] = new W3CDocumentLicenseFamily();
 		policy = new DefaultPolicy(approvedLicenses);
 		Assert.assertNotNull(policy);
 	}



Mime
View raw message