Return-Path: X-Original-To: apmail-maven-commits-archive@www.apache.org Delivered-To: apmail-maven-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 8853CC371 for ; Tue, 8 May 2012 13:47:47 +0000 (UTC) Received: (qmail 43105 invoked by uid 500); 8 May 2012 13:47:46 -0000 Delivered-To: apmail-maven-commits-archive@maven.apache.org Received: (qmail 43010 invoked by uid 500); 8 May 2012 13:47:45 -0000 Mailing-List: contact commits-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list commits@maven.apache.org Received: (qmail 42897 invoked by uid 99); 8 May 2012 13:47:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 May 2012 13:47:45 +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; Tue, 08 May 2012 13:47:37 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 7B3252388CA2 for ; Tue, 8 May 2012 13:46:07 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r816644 [38/50] - in /websites/production/maventest/content/plugins/maven-shade-plugin-latest: ./ apidocs/ apidocs/org/apache/maven/plugins/shade/ apidocs/org/apache/maven/plugins/shade/class-use/ apidocs/org/apache/maven/plugins/shade/filt... Date: Tue, 08 May 2012 13:45:39 -0000 To: commits@maven.apache.org From: hboutemy@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120508134607.7B3252388CA2@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Modified: websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref-test/org/apache/maven/plugins/shade/resource/ApacheLicenseResourceTransformerTest.html ============================================================================== --- websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref-test/org/apache/maven/plugins/shade/resource/ApacheLicenseResourceTransformerTest.html (original) +++ websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref-test/org/apache/maven/plugins/shade/resource/ApacheLicenseResourceTransformerTest.html Tue May 8 13:45:27 2012 @@ -1,73 +1,73 @@ - + ApacheLicenseResourceTransformerTest xref -
+
 
-1   package org.apache.maven.plugins.shade.resource;
-2   
-3   /*
-4    * Licensed to the Apache Software Foundation (ASF) under one
-5    * or more contributor license agreements.  See the NOTICE file
-6    * distributed with this work for additional information
-7    * regarding copyright ownership.  The ASF licenses this file
-8    * to you under the Apache License, Version 2.0 (the
-9    * "License"); you may not use this file except in compliance
-10   * with the License.  You may obtain a copy of the License at
-11   *
-12   *  http://www.apache.org/licenses/LICENSE-2.0
-13   *
-14   * Unless required by applicable law or agreed to in writing,
-15   * software distributed under the License is distributed on an
-16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-17   * KIND, either express or implied.  See the License for the
-18   * specific language governing permissions and limitations
-19   * under the License.
-20   */
-21  
-22  import java.util.Locale;
-23  
-24  import junit.framework.TestCase;
-25  
-26  /**
-27   * Test for {@link ApacheLicenseResourceTransformer}.
-28   * 
-29   * @author Benjamin Bentmann
-30   * @version $Id$
-31   */
-32  public class ApacheLicenseResourceTransformerTest
-33      extends TestCase
-34  {
-35  
-36      private ApacheLicenseResourceTransformer transformer;
-37  
-38      static
-39      {
-40          /*
-41           * NOTE: The Turkish locale has an usual case transformation for the letters "I" and "i", making it a prime
-42           * choice to test for improper case-less string comparisions.
-43           */
-44          Locale.setDefault( new Locale( "tr" ) );
-45      }
-46  
-47      public void setUp()
-48      {
-49          this.transformer = new ApacheLicenseResourceTransformer();
-50      }
-51  
-52      public void testCanTransformResource()
-53      {
-54          assertTrue( this.transformer.canTransformResource( "META-INF/LICENSE" ) );
-55          assertTrue( this.transformer.canTransformResource( "META-INF/LICENSE.TXT" ) );
-56          assertTrue( this.transformer.canTransformResource( "META-INF/License.txt" ) );
-57          assertFalse( this.transformer.canTransformResource( "META-INF/MANIFEST.MF" ) );
-58      }
-59  
-60  }
+1   package org.apache.maven.plugins.shade.resource;
+2   
+3   /*
+4    * Licensed to the Apache Software Foundation (ASF) under one
+5    * or more contributor license agreements.  See the NOTICE file
+6    * distributed with this work for additional information
+7    * regarding copyright ownership.  The ASF licenses this file
+8    * to you under the Apache License, Version 2.0 (the
+9    * "License"); you may not use this file except in compliance
+10   * with the License.  You may obtain a copy of the License at
+11   *
+12   *  http://www.apache.org/licenses/LICENSE-2.0
+13   *
+14   * Unless required by applicable law or agreed to in writing,
+15   * software distributed under the License is distributed on an
+16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+17   * KIND, either express or implied.  See the License for the
+18   * specific language governing permissions and limitations
+19   * under the License.
+20   */
+21  
+22  import java.util.Locale;
+23  
+24  import junit.framework.TestCase;
+25  
+26  /**
+27   * Test for {@link ApacheLicenseResourceTransformer}.
+28   * 
+29   * @author Benjamin Bentmann
+30   * @version $Id$
+31   */
+32  public class ApacheLicenseResourceTransformerTest
+33      extends TestCase
+34  {
+35  
+36      private ApacheLicenseResourceTransformer transformer;
+37  
+38      static
+39      {
+40          /*
+41           * NOTE: The Turkish locale has an usual case transformation for the letters "I" and "i", making it a prime
+42           * choice to test for improper case-less string comparisions.
+43           */
+44          Locale.setDefault( new Locale( "tr" ) );
+45      }
+46  
+47      public void setUp()
+48      {
+49          this.transformer = new ApacheLicenseResourceTransformer();
+50      }
+51  
+52      public void testCanTransformResource()
+53      {
+54          assertTrue( this.transformer.canTransformResource( "META-INF/LICENSE" ) );
+55          assertTrue( this.transformer.canTransformResource( "META-INF/LICENSE.TXT" ) );
+56          assertTrue( this.transformer.canTransformResource( "META-INF/License.txt" ) );
+57          assertFalse( this.transformer.canTransformResource( "META-INF/MANIFEST.MF" ) );
+58      }
+59  
+60  }
 

Added: websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref-test/org/apache/maven/plugins/shade/resource/ApacheNoticeResourceTransformerParameterTests.html ============================================================================== --- websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref-test/org/apache/maven/plugins/shade/resource/ApacheNoticeResourceTransformerParameterTests.html (added) +++ websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref-test/org/apache/maven/plugins/shade/resource/ApacheNoticeResourceTransformerParameterTests.html Tue May 8 13:45:27 2012 @@ -0,0 +1,95 @@ + + + + +ApacheNoticeResourceTransformerParameterTests xref + + + +
+
+1   package org.apache.maven.plugins.shade.resource;
+2   
+3   import java.io.ByteArrayInputStream;
+4   import java.io.IOException;
+5   import java.util.Collections;
+6   import java.util.List;
+7   
+8   import junit.framework.TestCase;
+9   
+10  
+11  /*
+12   * Licensed to the Apache Software Foundation (ASF) under one
+13   * or more contributor license agreements.  See the NOTICE file
+14   * distributed with this work for additional information
+15   * regarding copyright ownership.  The ASF licenses this file
+16   * to you under the Apache License, Version 2.0 (the
+17   * "License"); you may not use this file except in compliance
+18   * with the License.  You may obtain a copy of the License at
+19   *
+20   *  http://www.apache.org/licenses/LICENSE-2.0
+21   *
+22   * Unless required by applicable law or agreed to in writing,
+23   * software distributed under the License is distributed on an
+24   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+25   * KIND, either express or implied.  See the License for the
+26   * specific language governing permissions and limitations
+27   * under the License.
+28   */
+29  
+30  /**
+31   * Tests {@link ApacheLicenseResourceTransformer} parameters.
+32   */
+33  public class ApacheNoticeResourceTransformerParameterTests extends TestCase {
+34  	
+35  	private static final String NOTICE_RESOURCE = "META-INF/NOTICE";
+36  	private ApacheNoticeResourceTransformer subject;
+37  
+38  	protected void setUp() throws Exception {
+39  		super.setUp();
+40  		subject = new ApacheNoticeResourceTransformer();
+41  	}
+42  
+43  	
+44  	public void testNoParametersShouldNotThrowNullPointerWhenNoInput() throws IOException {
+45  		processAndFailOnNullPointer("");
+46  	}
+47  	
+48  	public void testNoParametersShouldNotThrowNullPointerWhenNoLinesOfInput() throws IOException {
+49  		processAndFailOnNullPointer("Some notice text");
+50  	}
+51  
+52  	public void testNoParametersShouldNotThrowNullPointerWhenOneLineOfInput() throws IOException {
+53  		processAndFailOnNullPointer("Some notice text\n");
+54  	}
+55  
+56  	public void testNoParametersShouldNotThrowNullPointerWhenTwoLinesOfInput() throws IOException {
+57  		processAndFailOnNullPointer("Some notice text\nSome notice text\n");
+58  	}
+59  
+60  	public void testNoParametersShouldNotThrowNullPointerWhenLineStartsWithSlashSlash() throws IOException {
+61  		processAndFailOnNullPointer("Some notice text\n//Some notice text\n");
+62  	}
+63  
+64  	public void testNoParametersShouldNotThrowNullPointerWhenLineIsSlashSlash() throws IOException {
+65  		processAndFailOnNullPointer("//\n");
+66  	}
+67  
+68  	public void testNoParametersShouldNotThrowNullPointerWhenLineIsEmpty() throws IOException {
+69  		processAndFailOnNullPointer("\n");
+70  	}
+71  	
+72  	private void processAndFailOnNullPointer(final String noticeText)
+73  			throws IOException {
+74  		try {
+75  			final ByteArrayInputStream noticeInputStream = new ByteArrayInputStream(noticeText.getBytes());
+76  			final List emptyList = Collections.EMPTY_LIST;
+77  			subject.processResource(NOTICE_RESOURCE, noticeInputStream, emptyList);
+78  		} catch (NullPointerException e) {
+79  			fail("Null pointer should not be thrown when no parameters are set.");
+80  		}
+81  	}
+82  }
+
+
+ Propchange: websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref-test/org/apache/maven/plugins/shade/resource/ApacheNoticeResourceTransformerParameterTests.html ------------------------------------------------------------------------------ svn:eol-style = native Propchange: websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref-test/org/apache/maven/plugins/shade/resource/ApacheNoticeResourceTransformerParameterTests.html ------------------------------------------------------------------------------ svn:keywords = Author Date Id Revision Modified: websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref-test/org/apache/maven/plugins/shade/resource/ApacheNoticeResourceTransformerTest.html ============================================================================== --- websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref-test/org/apache/maven/plugins/shade/resource/ApacheNoticeResourceTransformerTest.html (original) +++ websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref-test/org/apache/maven/plugins/shade/resource/ApacheNoticeResourceTransformerTest.html Tue May 8 13:45:27 2012 @@ -1,73 +1,73 @@ - + ApacheNoticeResourceTransformerTest xref -
+
 
-1   package org.apache.maven.plugins.shade.resource;
-2   
-3   /*
-4    * Licensed to the Apache Software Foundation (ASF) under one
-5    * or more contributor license agreements.  See the NOTICE file
-6    * distributed with this work for additional information
-7    * regarding copyright ownership.  The ASF licenses this file
-8    * to you under the Apache License, Version 2.0 (the
-9    * "License"); you may not use this file except in compliance
-10   * with the License.  You may obtain a copy of the License at
-11   *
-12   *  http://www.apache.org/licenses/LICENSE-2.0
-13   *
-14   * Unless required by applicable law or agreed to in writing,
-15   * software distributed under the License is distributed on an
-16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-17   * KIND, either express or implied.  See the License for the
-18   * specific language governing permissions and limitations
-19   * under the License.
-20   */
-21  
-22  import java.util.Locale;
-23  
-24  import junit.framework.TestCase;
-25  
-26  /**
-27   * Test for {@link ApacheNoticeResourceTransformer}.
-28   * 
-29   * @author Benjamin Bentmann
-30   * @version $Id$
-31   */
-32  public class ApacheNoticeResourceTransformerTest
-33      extends TestCase
-34  {
-35  
-36      private ApacheNoticeResourceTransformer transformer;
-37  
-38      static
-39      {
-40          /*
-41           * NOTE: The Turkish locale has an usual case transformation for the letters "I" and "i", making it a prime
-42           * choice to test for improper case-less string comparisions.
-43           */
-44          Locale.setDefault( new Locale( "tr" ) );
-45      }
-46  
-47      public void setUp()
-48      {
-49          this.transformer = new ApacheNoticeResourceTransformer();
-50      }
-51  
-52      public void testCanTransformResource()
-53      {
-54          assertTrue( this.transformer.canTransformResource( "META-INF/NOTICE" ) );
-55          assertTrue( this.transformer.canTransformResource( "META-INF/NOTICE.TXT" ) );
-56          assertTrue( this.transformer.canTransformResource( "META-INF/Notice.txt" ) );
-57          assertFalse( this.transformer.canTransformResource( "META-INF/MANIFEST.MF" ) );
-58      }
-59  
-60  }
+1   package org.apache.maven.plugins.shade.resource;
+2   
+3   /*
+4    * Licensed to the Apache Software Foundation (ASF) under one
+5    * or more contributor license agreements.  See the NOTICE file
+6    * distributed with this work for additional information
+7    * regarding copyright ownership.  The ASF licenses this file
+8    * to you under the Apache License, Version 2.0 (the
+9    * "License"); you may not use this file except in compliance
+10   * with the License.  You may obtain a copy of the License at
+11   *
+12   *  http://www.apache.org/licenses/LICENSE-2.0
+13   *
+14   * Unless required by applicable law or agreed to in writing,
+15   * software distributed under the License is distributed on an
+16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+17   * KIND, either express or implied.  See the License for the
+18   * specific language governing permissions and limitations
+19   * under the License.
+20   */
+21  
+22  import java.util.Locale;
+23  
+24  import junit.framework.TestCase;
+25  
+26  /**
+27   * Test for {@link ApacheNoticeResourceTransformer}.
+28   * 
+29   * @author Benjamin Bentmann
+30   * @version $Id$
+31   */
+32  public class ApacheNoticeResourceTransformerTest
+33      extends TestCase
+34  {
+35  
+36      private ApacheNoticeResourceTransformer transformer;
+37  
+38      static
+39      {
+40          /*
+41           * NOTE: The Turkish locale has an usual case transformation for the letters "I" and "i", making it a prime
+42           * choice to test for improper case-less string comparisions.
+43           */
+44          Locale.setDefault( new Locale( "tr" ) );
+45      }
+46  
+47      public void setUp()
+48      {
+49          this.transformer = new ApacheNoticeResourceTransformer();
+50      }
+51  
+52      public void testCanTransformResource()
+53      {
+54          assertTrue( this.transformer.canTransformResource( "META-INF/NOTICE" ) );
+55          assertTrue( this.transformer.canTransformResource( "META-INF/NOTICE.TXT" ) );
+56          assertTrue( this.transformer.canTransformResource( "META-INF/Notice.txt" ) );
+57          assertFalse( this.transformer.canTransformResource( "META-INF/MANIFEST.MF" ) );
+58      }
+59  
+60  }
 

Modified: websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref-test/org/apache/maven/plugins/shade/resource/AppendingTransformerTest.html ============================================================================== --- websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref-test/org/apache/maven/plugins/shade/resource/AppendingTransformerTest.html (original) +++ websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref-test/org/apache/maven/plugins/shade/resource/AppendingTransformerTest.html Tue May 8 13:45:27 2012 @@ -1,74 +1,74 @@ - + AppendingTransformerTest xref -
+
 
-1   package org.apache.maven.plugins.shade.resource;
-2   
-3   /*
-4    * Licensed to the Apache Software Foundation (ASF) under one
-5    * or more contributor license agreements.  See the NOTICE file
-6    * distributed with this work for additional information
-7    * regarding copyright ownership.  The ASF licenses this file
-8    * to you under the Apache License, Version 2.0 (the
-9    * "License"); you may not use this file except in compliance
-10   * with the License.  You may obtain a copy of the License at
-11   *
-12   *  http://www.apache.org/licenses/LICENSE-2.0
-13   *
-14   * Unless required by applicable law or agreed to in writing,
-15   * software distributed under the License is distributed on an
-16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-17   * KIND, either express or implied.  See the License for the
-18   * specific language governing permissions and limitations
-19   * under the License.
-20   */
-21  
-22  import java.util.Locale;
-23  
-24  import junit.framework.TestCase;
-25  
-26  /**
-27   * Test for {@link AppendingTransformer}.
-28   * 
-29   * @author Benjamin Bentmann
-30   * @version $Id$
-31   */
-32  public class AppendingTransformerTest
-33      extends TestCase
-34  {
-35  
-36      private AppendingTransformer transformer;
-37  
-38      static
-39      {
-40          /*
-41           * NOTE: The Turkish locale has an usual case transformation for the letters "I" and "i", making it a prime
-42           * choice to test for improper case-less string comparisions.
-43           */
-44          Locale.setDefault( new Locale( "tr" ) );
-45      }
-46  
-47      public void setUp()
-48      {
-49          this.transformer = new AppendingTransformer();
-50      }
-51  
-52      public void testCanTransformResource()
-53      {
-54          this.transformer.resource = "abcdefghijklmnopqrstuvwxyz";
-55  
-56          assertTrue( this.transformer.canTransformResource( "abcdefghijklmnopqrstuvwxyz" ) );
-57          assertTrue( this.transformer.canTransformResource( "ABCDEFGHIJKLMNOPQRSTUVWXYZ" ) );
-58          assertFalse( this.transformer.canTransformResource( "META-INF/MANIFEST.MF" ) );
-59      }
-60  
-61  }
+1   package org.apache.maven.plugins.shade.resource;
+2   
+3   /*
+4    * Licensed to the Apache Software Foundation (ASF) under one
+5    * or more contributor license agreements.  See the NOTICE file
+6    * distributed with this work for additional information
+7    * regarding copyright ownership.  The ASF licenses this file
+8    * to you under the Apache License, Version 2.0 (the
+9    * "License"); you may not use this file except in compliance
+10   * with the License.  You may obtain a copy of the License at
+11   *
+12   *  http://www.apache.org/licenses/LICENSE-2.0
+13   *
+14   * Unless required by applicable law or agreed to in writing,
+15   * software distributed under the License is distributed on an
+16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+17   * KIND, either express or implied.  See the License for the
+18   * specific language governing permissions and limitations
+19   * under the License.
+20   */
+21  
+22  import java.util.Locale;
+23  
+24  import junit.framework.TestCase;
+25  
+26  /**
+27   * Test for {@link AppendingTransformer}.
+28   * 
+29   * @author Benjamin Bentmann
+30   * @version $Id$
+31   */
+32  public class AppendingTransformerTest
+33      extends TestCase
+34  {
+35  
+36      private AppendingTransformer transformer;
+37  
+38      static
+39      {
+40          /*
+41           * NOTE: The Turkish locale has an usual case transformation for the letters "I" and "i", making it a prime
+42           * choice to test for improper case-less string comparisions.
+43           */
+44          Locale.setDefault( new Locale( "tr" ) );
+45      }
+46  
+47      public void setUp()
+48      {
+49          this.transformer = new AppendingTransformer();
+50      }
+51  
+52      public void testCanTransformResource()
+53      {
+54          this.transformer.resource = "abcdefghijklmnopqrstuvwxyz";
+55  
+56          assertTrue( this.transformer.canTransformResource( "abcdefghijklmnopqrstuvwxyz" ) );
+57          assertTrue( this.transformer.canTransformResource( "ABCDEFGHIJKLMNOPQRSTUVWXYZ" ) );
+58          assertFalse( this.transformer.canTransformResource( "META-INF/MANIFEST.MF" ) );
+59      }
+60  
+61  }
 

Modified: websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref-test/org/apache/maven/plugins/shade/resource/ComponentsXmlResourceTransformerTest.html ============================================================================== --- websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref-test/org/apache/maven/plugins/shade/resource/ComponentsXmlResourceTransformerTest.html (original) +++ websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref-test/org/apache/maven/plugins/shade/resource/ComponentsXmlResourceTransformerTest.html Tue May 8 13:45:27 2012 @@ -1,69 +1,69 @@ - + ComponentsXmlResourceTransformerTest xref -
+
 
-1   package org.apache.maven.plugins.shade.resource;
-2   
-3   /*
-4    * Licensed to the Apache Software Foundation (ASF) under one
-5    * or more contributor license agreements.  See the NOTICE file
-6    * distributed with this work for additional information
-7    * regarding copyright ownership.  The ASF licenses this file
-8    * to you under the Apache License, Version 2.0 (the
-9    * "License"); you may not use this file except in compliance
-10   * with the License.  You may obtain a copy of the License at
-11   *
-12   *  http://www.apache.org/licenses/LICENSE-2.0
-13   *
-14   * Unless required by applicable law or agreed to in writing,
-15   * software distributed under the License is distributed on an
-16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-17   * KIND, either express or implied.  See the License for the
-18   * specific language governing permissions and limitations
-19   * under the License.
-20   */
-21  
-22  import java.io.IOException;
-23  import java.util.Collections;
-24  
-25  import junit.framework.TestCase;
-26  
-27  import org.codehaus.plexus.util.IOUtil;
-28  
-29  /**
-30   * Test for {@link ComponentsXmlResourceTransformer}.
-31   * 
-32   * @author Brett Porter
-33   * @version $Id$
-34   */
-35  public class ComponentsXmlResourceTransformerTest
-36      extends TestCase
-37  {
-38      private ComponentsXmlResourceTransformer transformer;
-39  
-40      public void setUp()
-41      {
-42          this.transformer = new ComponentsXmlResourceTransformer();
-43      }
-44  
-45      public void testConfigurationMerging() throws IOException
-46      {
-47          transformer.processResource( "components-1.xml", getClass().getResourceAsStream( "/components-1.xml" ),
-48                                       Collections.EMPTY_LIST );
-49          transformer.processResource( "components-1.xml", getClass().getResourceAsStream( "/components-2.xml" ),
-50                                       Collections.EMPTY_LIST );
-51  
-52          assertEquals( IOUtil.toString( getClass().getResourceAsStream( "/components-expected.xml" ), "UTF-8" ),
-53                        IOUtil.toString( transformer.getTransformedResource(), "UTF-8" ) );
-54      }
-55  
-56  }
+1   package org.apache.maven.plugins.shade.resource;
+2   
+3   /*
+4    * Licensed to the Apache Software Foundation (ASF) under one
+5    * or more contributor license agreements.  See the NOTICE file
+6    * distributed with this work for additional information
+7    * regarding copyright ownership.  The ASF licenses this file
+8    * to you under the Apache License, Version 2.0 (the
+9    * "License"); you may not use this file except in compliance
+10   * with the License.  You may obtain a copy of the License at
+11   *
+12   *  http://www.apache.org/licenses/LICENSE-2.0
+13   *
+14   * Unless required by applicable law or agreed to in writing,
+15   * software distributed under the License is distributed on an
+16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+17   * KIND, either express or implied.  See the License for the
+18   * specific language governing permissions and limitations
+19   * under the License.
+20   */
+21  
+22  import java.io.IOException;
+23  import java.util.Collections;
+24  
+25  import junit.framework.TestCase;
+26  
+27  import org.codehaus.plexus.util.IOUtil;
+28  
+29  /**
+30   * Test for {@link ComponentsXmlResourceTransformer}.
+31   * 
+32   * @author Brett Porter
+33   * @version $Id$
+34   */
+35  public class ComponentsXmlResourceTransformerTest
+36      extends TestCase
+37  {
+38      private ComponentsXmlResourceTransformer transformer;
+39  
+40      public void setUp()
+41      {
+42          this.transformer = new ComponentsXmlResourceTransformer();
+43      }
+44  
+45      public void testConfigurationMerging() throws IOException
+46      {
+47          transformer.processResource( "components-1.xml", getClass().getResourceAsStream( "/components-1.xml" ),
+48                                       Collections.EMPTY_LIST );
+49          transformer.processResource( "components-1.xml", getClass().getResourceAsStream( "/components-2.xml" ),
+50                                       Collections.EMPTY_LIST );
+51  
+52          assertEquals( IOUtil.toString( getClass().getResourceAsStream( "/components-expected.xml" ), "UTF-8" ),
+53                        IOUtil.toString( transformer.getTransformedResource(), "UTF-8" ) );
+54      }
+55  
+56  }
 

Modified: websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref-test/org/apache/maven/plugins/shade/resource/XmlAppendingTransformerTest.html ============================================================================== --- websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref-test/org/apache/maven/plugins/shade/resource/XmlAppendingTransformerTest.html (original) +++ websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref-test/org/apache/maven/plugins/shade/resource/XmlAppendingTransformerTest.html Tue May 8 13:45:27 2012 @@ -1,74 +1,74 @@ - + XmlAppendingTransformerTest xref -
+
 
-1   package org.apache.maven.plugins.shade.resource;
-2   
-3   /*
-4    * Licensed to the Apache Software Foundation (ASF) under one
-5    * or more contributor license agreements.  See the NOTICE file
-6    * distributed with this work for additional information
-7    * regarding copyright ownership.  The ASF licenses this file
-8    * to you under the Apache License, Version 2.0 (the
-9    * "License"); you may not use this file except in compliance
-10   * with the License.  You may obtain a copy of the License at
-11   *
-12   *  http://www.apache.org/licenses/LICENSE-2.0
-13   *
-14   * Unless required by applicable law or agreed to in writing,
-15   * software distributed under the License is distributed on an
-16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-17   * KIND, either express or implied.  See the License for the
-18   * specific language governing permissions and limitations
-19   * under the License.
-20   */
-21  
-22  import java.util.Locale;
-23  
-24  import junit.framework.TestCase;
-25  
-26  /**
-27   * Test for {@link XmlAppendingTransformer}.
-28   * 
-29   * @author Benjamin Bentmann
-30   * @version $Id$
-31   */
-32  public class XmlAppendingTransformerTest
-33      extends TestCase
-34  {
-35  
-36      private XmlAppendingTransformer transformer;
-37  
-38      static
-39      {
-40          /*
-41           * NOTE: The Turkish locale has an usual case transformation for the letters "I" and "i", making it a prime
-42           * choice to test for improper case-less string comparisions.
-43           */
-44          Locale.setDefault( new Locale( "tr" ) );
-45      }
-46  
-47      public void setUp()
-48      {
-49          this.transformer = new XmlAppendingTransformer();
-50      }
-51  
-52      public void testCanTransformResource()
-53      {
-54          this.transformer.resource = "abcdefghijklmnopqrstuvwxyz";
-55  
-56          assertTrue( this.transformer.canTransformResource( "abcdefghijklmnopqrstuvwxyz" ) );
-57          assertTrue( this.transformer.canTransformResource( "ABCDEFGHIJKLMNOPQRSTUVWXYZ" ) );
-58          assertFalse( this.transformer.canTransformResource( "META-INF/MANIFEST.MF" ) );
-59      }
-60  
-61  }
+1   package org.apache.maven.plugins.shade.resource;
+2   
+3   /*
+4    * Licensed to the Apache Software Foundation (ASF) under one
+5    * or more contributor license agreements.  See the NOTICE file
+6    * distributed with this work for additional information
+7    * regarding copyright ownership.  The ASF licenses this file
+8    * to you under the Apache License, Version 2.0 (the
+9    * "License"); you may not use this file except in compliance
+10   * with the License.  You may obtain a copy of the License at
+11   *
+12   *  http://www.apache.org/licenses/LICENSE-2.0
+13   *
+14   * Unless required by applicable law or agreed to in writing,
+15   * software distributed under the License is distributed on an
+16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+17   * KIND, either express or implied.  See the License for the
+18   * specific language governing permissions and limitations
+19   * under the License.
+20   */
+21  
+22  import java.util.Locale;
+23  
+24  import junit.framework.TestCase;
+25  
+26  /**
+27   * Test for {@link XmlAppendingTransformer}.
+28   * 
+29   * @author Benjamin Bentmann
+30   * @version $Id$
+31   */
+32  public class XmlAppendingTransformerTest
+33      extends TestCase
+34  {
+35  
+36      private XmlAppendingTransformer transformer;
+37  
+38      static
+39      {
+40          /*
+41           * NOTE: The Turkish locale has an usual case transformation for the letters "I" and "i", making it a prime
+42           * choice to test for improper case-less string comparisions.
+43           */
+44          Locale.setDefault( new Locale( "tr" ) );
+45      }
+46  
+47      public void setUp()
+48      {
+49          this.transformer = new XmlAppendingTransformer();
+50      }
+51  
+52      public void testCanTransformResource()
+53      {
+54          this.transformer.resource = "abcdefghijklmnopqrstuvwxyz";
+55  
+56          assertTrue( this.transformer.canTransformResource( "abcdefghijklmnopqrstuvwxyz" ) );
+57          assertTrue( this.transformer.canTransformResource( "ABCDEFGHIJKLMNOPQRSTUVWXYZ" ) );
+58          assertFalse( this.transformer.canTransformResource( "META-INF/MANIFEST.MF" ) );
+59      }
+60  
+61  }
 

Modified: websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref-test/org/apache/maven/plugins/shade/resource/package-frame.html ============================================================================== --- websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref-test/org/apache/maven/plugins/shade/resource/package-frame.html (original) +++ websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref-test/org/apache/maven/plugins/shade/resource/package-frame.html Tue May 8 13:45:27 2012 @@ -2,8 +2,8 @@ - - Maven Shade Plugin 1.4 Reference Package org.apache.maven.plugins.shade.resource + + Maven Shade Plugin 1.5 Reference Package org.apache.maven.plugins.shade.resource @@ -19,6 +19,9 @@ ApacheLicenseResourceTransformerTest
  • + ApacheNoticeResourceTransformerParameterTests +
  • +
  • ApacheNoticeResourceTransformerTest
  • Modified: websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref-test/org/apache/maven/plugins/shade/resource/package-summary.html ============================================================================== --- websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref-test/org/apache/maven/plugins/shade/resource/package-summary.html (original) +++ websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref-test/org/apache/maven/plugins/shade/resource/package-summary.html Tue May 8 13:45:27 2012 @@ -2,8 +2,8 @@ - - Maven Shade Plugin 1.4 Reference Package org.apache.maven.plugins.shade.resource + + Maven Shade Plugin 1.5 Reference Package org.apache.maven.plugins.shade.resource @@ -42,6 +42,11 @@ + ApacheNoticeResourceTransformerParameterTests + + + + ApacheNoticeResourceTransformerTest @@ -82,6 +87,6 @@
    - Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved. + Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved. \ No newline at end of file Modified: websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref-test/overview-frame.html ============================================================================== --- websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref-test/overview-frame.html (original) +++ websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref-test/overview-frame.html Tue May 8 13:45:27 2012 @@ -2,8 +2,8 @@ - - Maven Shade Plugin 1.4 Reference + + Maven Shade Plugin 1.5 Reference