Return-Path: X-Original-To: apmail-creadur-commits-archive@www.apache.org Delivered-To: apmail-creadur-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F17F710EA6 for ; Mon, 9 Dec 2013 06:07:58 +0000 (UTC) Received: (qmail 45415 invoked by uid 500); 9 Dec 2013 06:07:52 -0000 Delivered-To: apmail-creadur-commits-archive@creadur.apache.org Received: (qmail 45382 invoked by uid 500); 9 Dec 2013 06:07:46 -0000 Mailing-List: contact commits-help@creadur.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@creadur.apache.org Delivered-To: mailing list commits@creadur.apache.org Received: (qmail 45350 invoked by uid 99); 9 Dec 2013 06:07:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Dec 2013 06:07:43 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Dec 2013 06:07:42 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 488C62388A29; Mon, 9 Dec 2013 06:07:22 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1549461 - /creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/policy/DefaultPolicyTest.java Date: Mon, 09 Dec 2013 06:07:22 -0000 To: commits@creadur.apache.org From: rdonkin@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20131209060722.488C62388A29@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: rdonkin Date: Mon Dec 9 06:07:21 2013 New Revision: 1549461 URL: http://svn.apache.org/r1549461 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=1549461&r1=1549460&r2=1549461&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:07:21 2013 @@ -40,6 +40,7 @@ import org.apache.rat.license.ILicenseFa import org.apache.rat.license.AcademicFree21LicenseFamily; import org.apache.rat.license.SimpleLicenseFamily; import org.apache.rat.license.W3CDocumentLicenseFamily; +import org.apache.rat.license.W3CSoftwareLicenseFamily; import org.junit.Assert; import org.junit.Before; import org.junit.Test; @@ -162,7 +163,7 @@ public class DefaultPolicyTest { */ @Test public void testConstructorILicenseFamily() throws Exception { - ILicenseFamily[] approvedLicenses = new ILicenseFamily[11]; + ILicenseFamily[] approvedLicenses = new ILicenseFamily[12]; approvedLicenses[0] = new Apache20LicenseFamily(); approvedLicenses[1] = new CDDL1LicenseFamily(); approvedLicenses[2] = new GPL1LicenseFamily(); @@ -174,6 +175,7 @@ public class DefaultPolicyTest { approvedLicenses[8] = new AcademicFree21LicenseFamily(); approvedLicenses[9] = new SimpleLicenseFamily(); approvedLicenses[10] = new W3CDocumentLicenseFamily(); + approvedLicenses[11] = new W3CSoftwareLicenseFamily(); policy = new DefaultPolicy(approvedLicenses); Assert.assertNotNull(policy); }