You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by br...@apache.org on 2007/06/28 09:51:28 UTC
svn commit: r551486 [2/2] - in /maven/sandbox/trunk/shared/maven-shared-jar:
./ src/main/java/org/apache/maven/shared/jar/
src/main/java/org/apache/maven/shared/jar/classes/
src/main/java/org/apache/maven/shared/jar/identification/
src/main/java/org/ap...
Modified: maven/sandbox/trunk/shared/maven-shared-jar/src/test/java/org/apache/maven/shared/jar/taxon/JarIdentificationAnalyzerTest.java
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/shared/maven-shared-jar/src/test/java/org/apache/maven/shared/jar/taxon/JarIdentificationAnalyzerTest.java?view=diff&rev=551486&r1=551485&r2=551486
==============================================================================
--- maven/sandbox/trunk/shared/maven-shared-jar/src/test/java/org/apache/maven/shared/jar/taxon/JarIdentificationAnalyzerTest.java (original)
+++ maven/sandbox/trunk/shared/maven-shared-jar/src/test/java/org/apache/maven/shared/jar/taxon/JarIdentificationAnalyzerTest.java Thu Jun 28 00:51:25 2007
@@ -1,19 +1,22 @@
package org.apache.maven.shared.jar.taxon;
/*
- * Copyright 2001-2006 The Apache Software Foundation.
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
import org.apache.maven.shared.jar.AbstractJarTestCase;
@@ -29,13 +32,12 @@
public class JarIdentificationAnalyzerTest
extends AbstractJarTestCase
{
- private JarIdentification getJarTaxon( String filename ) throws Exception
+ private JarIdentification getJarTaxon( String filename )
+ throws Exception
{
- JarAnalyzer jar;
-
File jarfile = new File( getSampleJarsDirectory(), filename );
-
- jar = getJarAnalyzerFactory().getJarAnalyzer( jarfile );
+
+ JarAnalyzer jar = getJarAnalyzerFactory().getJarAnalyzer( jarfile );
JarIdentification taxon = jar.getIdentification();
assertNotNull( "JarIdentification", taxon );
@@ -48,7 +50,7 @@
{
JarIdentification taxon = getJarTaxon( "jxr.jar" );
- assertTrue( "taxon.potentials > 0", ( taxon.getPotentials().size() > 0 ) );
+ assertTrue( "taxon.potentials > 0", taxon.getPotentials().size() > 0 );
assertEquals( "taxon.groupId", "org.apache.maven", taxon.getGroupId() );
assertEquals( "taxon.artifactId", "maven-jxr", taxon.getArtifactId() );
@@ -59,13 +61,15 @@
/**
* Tests JarAnalyzer with No embedded pom, and no useful manifest.mf information.
+ *
+ * @throws Exception failures
*/
public void testTaxonAnalyzerWithCODEC()
throws Exception
{
JarIdentification taxon = getJarTaxon( "codec.jar" );
- assertTrue( "taxon.potentials > 0", ( taxon.getPotentials().size() > 0 ) );
+ assertTrue( "taxon.potentials > 0", taxon.getPotentials().size() > 0 );
assertEquals( "taxon.groupId", "org.apache.commons.codec", taxon.getGroupId() );
assertEquals( "taxon.artifactId", "codec", taxon.getArtifactId() );
@@ -80,7 +84,7 @@
{
JarIdentification taxon = getJarTaxon( "ant.jar" );
- assertTrue( "taxon.potentials > 0", ( taxon.getPotentials().size() > 0 ) );
+ assertTrue( "taxon.potentials > 0", taxon.getPotentials().size() > 0 );
assertEquals( "taxon.groupId", "org.apache.tools.ant", taxon.getGroupId() );
assertEquals( "taxon.artifactId", "ant", taxon.getArtifactId() );
Modified: maven/sandbox/trunk/shared/maven-shared-jar/src/test/java/org/apache/maven/shared/jar/taxon/exposers/EmbeddedMavenModelExposerTest.java
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/shared/maven-shared-jar/src/test/java/org/apache/maven/shared/jar/taxon/exposers/EmbeddedMavenModelExposerTest.java?view=diff&rev=551486&r1=551485&r2=551486
==============================================================================
--- maven/sandbox/trunk/shared/maven-shared-jar/src/test/java/org/apache/maven/shared/jar/taxon/exposers/EmbeddedMavenModelExposerTest.java (original)
+++ maven/sandbox/trunk/shared/maven-shared-jar/src/test/java/org/apache/maven/shared/jar/taxon/exposers/EmbeddedMavenModelExposerTest.java Thu Jun 28 00:51:25 2007
@@ -1,19 +1,22 @@
package org.apache.maven.shared.jar.taxon.exposers;
/*
- * Copyright 2001-2006 The Apache Software Foundation.
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
import org.apache.maven.shared.jar.AbstractJarTestCase;