You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ma...@apache.org on 2007/07/02 18:06:24 UTC

svn commit: r552524 [8/9] - in /maven/plugins/trunk/maven-dependency-plugin: ./ src/changes/ src/it/copy-dependencies/ src/it/copy-dependencies2/ src/it/mdep-27/ src/it/mdep-50/ src/it/mdep-61/ src/it/mdep-66/ src/it/mdep-67/ src/main/java/org/apache/m...

Modified: maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/TestDependencyStatusSets.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/TestDependencyStatusSets.java?view=diff&rev=552524&r1=552523&r2=552524
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/TestDependencyStatusSets.java (original)
+++ maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/TestDependencyStatusSets.java Mon Jul  2 09:06:19 2007
@@ -1,145 +1,145 @@
-package org.apache.maven.plugin.dependency.utils;
-
-/*
- * 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
- *
- *  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.
- */
-
-import java.io.IOException;
-import java.util.HashSet;
-import java.util.Set;
-
-import org.apache.maven.plugin.dependency.AbstractDependencyMojoTestCase;
-import org.apache.maven.plugin.logging.Log;
-import org.apache.maven.plugin.testing.SilentLog;
-
-public class TestDependencyStatusSets
-    extends AbstractDependencyMojoTestCase
-{
-
-    protected void setUp()
-        throws Exception
-    {
-        // required for mojo lookups to work
-        super.setUp( "dss", true );
-    }
-
-    public void testDependencyStatusSettersGetters()
-    {
-        /*
-         * DependencyStatusSets dss = new DependencyStatusSets();
-         * 
-         * Set set = new HashSet();
-         * 
-         * dss.setResolvedDependencies( set ); assertSame( set,
-         * dss.getResolvedDependencies() );
-         * 
-         * set = new HashSet();
-         * 
-         * dss.setUnResolvedDependencies( set ); assertSame( set,
-         * dss.getUnResolvedDependencies() );
-         * 
-         * set = new HashSet();
-         * 
-         * dss.setSkippedDependencies( set ); assertSame( set,
-         * dss.getSkippedDependencies() );
-         * 
-         * assertNotSame( dss.getResolvedDependencies(),
-         * dss.getSkippedDependencies() ); assertNotSame(
-         * dss.getResolvedDependencies(), dss.getUnResolvedDependencies() );
-         * assertNotSame( dss.getSkippedDependencies(),
-         * dss.getUnResolvedDependencies() );
-         */
-    }
-
-    public void testDependencyStatusConstructor()
-    {
-        /*
-         * Set r = new HashSet(); Set u = new HashSet(); Set s = new HashSet();
-         * 
-         * DependencyStatusSets dss = new DependencyStatusSets( r, u, s );
-         * 
-         * assertSame( r, dss.getResolvedDependencies() ); assertSame( u,
-         * dss.getUnResolvedDependencies() ); assertSame( s,
-         * dss.getSkippedDependencies() );
-         */
-    }
-
-    public void testDependencyStatusLog()
-        throws IOException
-    {
-        Set artifacts = this.stubFactory.getMixedArtifacts();
-        doTestDependencyStatusLog( artifacts );
-    }
-
-    public void testDependencyStatusLogNullFiles()
-        throws IOException
-    {
-        this.stubFactory.setCreateFiles( false );
-        Set artifacts = this.stubFactory.getMixedArtifacts();
-        doTestDependencyStatusLog( artifacts );
-    }
-
-    public void testDependencyStatusEmptySet()
-    {
-        doTestDependencyStatusLog( new HashSet() );
-    }
-
-    public void doTestDependencyStatusLog( Set artifacts )
-    {
-        // TODO: implement logger to check correct output
-        // this test is just looking for unexpected exceptions.
-        Log log = new SilentLog();
-
-        DependencyStatusSets dss = new DependencyStatusSets();
-        dss.logStatus( log, false );
-        dss.logStatus( log, true );
-
-        dss = new DependencyStatusSets( artifacts, null, null );
-        dss.logStatus( log, false );
-        dss.logStatus( log, true );
-
-        dss = new DependencyStatusSets( null, artifacts, null );
-        dss.logStatus( log, false );
-        dss.logStatus( log, true );
-
-        dss = new DependencyStatusSets( null, null, artifacts );
-        dss.logStatus( log, false );
-        dss.logStatus( log, true );
-
-        dss = new DependencyStatusSets( artifacts, artifacts, null );
-        dss.logStatus( log, false );
-        dss.logStatus( log, true );
-
-        dss = new DependencyStatusSets( null, artifacts, artifacts );
-        dss.logStatus( log, false );
-        dss.logStatus( log, true );
-
-        dss = new DependencyStatusSets( artifacts, null, artifacts );
-        dss.logStatus( log, false );
-        dss.logStatus( log, true );
-
-        dss = new DependencyStatusSets( artifacts, artifacts, artifacts );
-        dss.logStatus( log, false );
-        dss.logStatus( log, true );
-        dss.logStatus( log, false, true );
-        dss.logStatus( log, true, true );
-        dss.logStatus( log, false, false );
-        dss.logStatus( log, true, false );
-
-    }
-}
+package org.apache.maven.plugin.dependency.utils;
+
+/*
+ * 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
+ *
+ *  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.
+ */
+
+import java.io.IOException;
+import java.util.HashSet;
+import java.util.Set;
+
+import org.apache.maven.plugin.dependency.AbstractDependencyMojoTestCase;
+import org.apache.maven.plugin.logging.Log;
+import org.apache.maven.plugin.testing.SilentLog;
+
+public class TestDependencyStatusSets
+    extends AbstractDependencyMojoTestCase
+{
+
+    protected void setUp()
+        throws Exception
+    {
+        // required for mojo lookups to work
+        super.setUp( "dss", true );
+    }
+
+    public void testDependencyStatusSettersGetters()
+    {
+        /*
+         * DependencyStatusSets dss = new DependencyStatusSets();
+         * 
+         * Set set = new HashSet();
+         * 
+         * dss.setResolvedDependencies( set ); assertSame( set,
+         * dss.getResolvedDependencies() );
+         * 
+         * set = new HashSet();
+         * 
+         * dss.setUnResolvedDependencies( set ); assertSame( set,
+         * dss.getUnResolvedDependencies() );
+         * 
+         * set = new HashSet();
+         * 
+         * dss.setSkippedDependencies( set ); assertSame( set,
+         * dss.getSkippedDependencies() );
+         * 
+         * assertNotSame( dss.getResolvedDependencies(),
+         * dss.getSkippedDependencies() ); assertNotSame(
+         * dss.getResolvedDependencies(), dss.getUnResolvedDependencies() );
+         * assertNotSame( dss.getSkippedDependencies(),
+         * dss.getUnResolvedDependencies() );
+         */
+    }
+
+    public void testDependencyStatusConstructor()
+    {
+        /*
+         * Set r = new HashSet(); Set u = new HashSet(); Set s = new HashSet();
+         * 
+         * DependencyStatusSets dss = new DependencyStatusSets( r, u, s );
+         * 
+         * assertSame( r, dss.getResolvedDependencies() ); assertSame( u,
+         * dss.getUnResolvedDependencies() ); assertSame( s,
+         * dss.getSkippedDependencies() );
+         */
+    }
+
+    public void testDependencyStatusLog()
+        throws IOException
+    {
+        Set artifacts = this.stubFactory.getMixedArtifacts();
+        doTestDependencyStatusLog( artifacts );
+    }
+
+    public void testDependencyStatusLogNullFiles()
+        throws IOException
+    {
+        this.stubFactory.setCreateFiles( false );
+        Set artifacts = this.stubFactory.getMixedArtifacts();
+        doTestDependencyStatusLog( artifacts );
+    }
+
+    public void testDependencyStatusEmptySet()
+    {
+        doTestDependencyStatusLog( new HashSet() );
+    }
+
+    public void doTestDependencyStatusLog( Set artifacts )
+    {
+        // TODO: implement logger to check correct output
+        // this test is just looking for unexpected exceptions.
+        Log log = new SilentLog();
+
+        DependencyStatusSets dss = new DependencyStatusSets();
+        dss.logStatus( log, false );
+        dss.logStatus( log, true );
+
+        dss = new DependencyStatusSets( artifacts, null, null );
+        dss.logStatus( log, false );
+        dss.logStatus( log, true );
+
+        dss = new DependencyStatusSets( null, artifacts, null );
+        dss.logStatus( log, false );
+        dss.logStatus( log, true );
+
+        dss = new DependencyStatusSets( null, null, artifacts );
+        dss.logStatus( log, false );
+        dss.logStatus( log, true );
+
+        dss = new DependencyStatusSets( artifacts, artifacts, null );
+        dss.logStatus( log, false );
+        dss.logStatus( log, true );
+
+        dss = new DependencyStatusSets( null, artifacts, artifacts );
+        dss.logStatus( log, false );
+        dss.logStatus( log, true );
+
+        dss = new DependencyStatusSets( artifacts, null, artifacts );
+        dss.logStatus( log, false );
+        dss.logStatus( log, true );
+
+        dss = new DependencyStatusSets( artifacts, artifacts, artifacts );
+        dss.logStatus( log, false );
+        dss.logStatus( log, true );
+        dss.logStatus( log, false, true );
+        dss.logStatus( log, true, true );
+        dss.logStatus( log, false, false );
+        dss.logStatus( log, true, false );
+
+    }
+}

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/TestDependencyStatusSets.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/TestDependencyStatusSets.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Mon Jul  2 09:06:19 2007
@@ -1 +1 @@
-Author Date Id HeadURL Revision
+Author Date Id Revision

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/TestDependencyUtil.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Mon Jul  2 09:06:19 2007
@@ -1 +1 @@
-Author Date Id HeadURL Revision
+Author Date Id Revision

Modified: maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/TestSilentLog.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/TestSilentLog.java?view=diff&rev=552524&r1=552523&r2=552524
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/TestSilentLog.java (original)
+++ maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/TestSilentLog.java Mon Jul  2 09:06:19 2007
@@ -1,81 +1,81 @@
-package org.apache.maven.plugin.dependency.utils;
-
-/*
- * 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
- *
- *  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.
- */
-
-import junit.framework.TestCase;
-
-import org.apache.maven.plugin.logging.Log;
-import org.codehaus.plexus.logging.Logger;
-
-public class TestSilentLog
-    extends TestCase
-{
-
-    public void testLog()
-    {
-        Log log = new DependencySilentLog();
-        String text = new String( "Text" );
-        Throwable e = new RuntimeException();
-        log.debug( text );
-        log.debug( text, e );
-        log.debug( e );
-        log.info( text );
-        log.info( text, e );
-        log.info( e );
-        log.warn( text );
-        log.warn( text, e );
-        log.warn( e );
-        log.error( text );
-        log.error( text, e );
-        log.error( e );
-        log.isDebugEnabled();
-        log.isErrorEnabled();
-        log.isWarnEnabled();
-        log.isInfoEnabled();
-    }
-
-    public void testLogger()
-    {
-        Logger log = new DependencySilentLog();
-        String text = new String( "Text" );
-        Throwable e = new RuntimeException();
-
-        log.debug( text );
-        log.debug( text, e );
-        log.error( text );
-        log.error( text, e );
-        log.warn( text );
-        log.warn( text, e );
-        log.info( text );
-        log.info( text, e );
-
-        log.fatalError( text );
-        log.fatalError( text, e );
-        log.getChildLogger( text );
-        log.getName();
-        log.getThreshold();
-        log.isDebugEnabled();
-        log.isErrorEnabled();
-        log.isFatalErrorEnabled();
-        log.isInfoEnabled();
-        log.isWarnEnabled();
-    }
-
-}
+package org.apache.maven.plugin.dependency.utils;
+
+/*
+ * 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
+ *
+ *  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.
+ */
+
+import junit.framework.TestCase;
+
+import org.apache.maven.plugin.logging.Log;
+import org.codehaus.plexus.logging.Logger;
+
+public class TestSilentLog
+    extends TestCase
+{
+
+    public void testLog()
+    {
+        Log log = new DependencySilentLog();
+        String text = new String( "Text" );
+        Throwable e = new RuntimeException();
+        log.debug( text );
+        log.debug( text, e );
+        log.debug( e );
+        log.info( text );
+        log.info( text, e );
+        log.info( e );
+        log.warn( text );
+        log.warn( text, e );
+        log.warn( e );
+        log.error( text );
+        log.error( text, e );
+        log.error( e );
+        log.isDebugEnabled();
+        log.isErrorEnabled();
+        log.isWarnEnabled();
+        log.isInfoEnabled();
+    }
+
+    public void testLogger()
+    {
+        Logger log = new DependencySilentLog();
+        String text = new String( "Text" );
+        Throwable e = new RuntimeException();
+
+        log.debug( text );
+        log.debug( text, e );
+        log.error( text );
+        log.error( text, e );
+        log.warn( text );
+        log.warn( text, e );
+        log.info( text );
+        log.info( text, e );
+
+        log.fatalError( text );
+        log.fatalError( text, e );
+        log.getChildLogger( text );
+        log.getName();
+        log.getThreshold();
+        log.isDebugEnabled();
+        log.isErrorEnabled();
+        log.isFatalErrorEnabled();
+        log.isInfoEnabled();
+        log.isWarnEnabled();
+    }
+
+}

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/TestSilentLog.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/TestSilentLog.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Mon Jul  2 09:06:19 2007
@@ -1 +1 @@
-Author Date Id HeadURL Revision
+Author Date Id Revision

Modified: maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestArtifactFilter.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestArtifactFilter.java?view=diff&rev=552524&r1=552523&r2=552524
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestArtifactFilter.java (original)
+++ maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestArtifactFilter.java Mon Jul  2 09:06:19 2007
@@ -1,85 +1,85 @@
-package org.apache.maven.plugin.dependency.utils.filters;
-
-/* 
- * 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
- *
- * 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.    
- */
-
-/**
- * 
- */
-
-import java.util.Iterator;
-import java.util.Set;
-
-import org.apache.maven.artifact.Artifact;
-import org.apache.maven.plugin.dependency.testUtils.AbstractArtifactFeatureFilterTestCase;
-import org.apache.maven.plugin.dependency.testUtils.DependencyArtifactStubFactory;
-
-/**
- * @author clove TestCases for ArtifactFilter
- * @see org.apache.maven.plugin.dependency.testUtils.AbstractArtifactFeatureFilterTestCase
- */
-public class TestArtifactFilter
-    extends AbstractArtifactFeatureFilterTestCase
-{
-
-    protected void setUp()
-        throws Exception
-    {
-        super.setUp();
-        filterClass = ArtifactIdFilter.class;
-        DependencyArtifactStubFactory factory = new DependencyArtifactStubFactory( null, false );
-        artifacts = factory.getArtifactArtifacts();
-    }
-
-    public void testParsing()
-        throws Exception
-    {
-        parsing();
-    }
-
-    public void testFiltering()
-        throws Exception
-    {
-        Set result = filtering();
-        Iterator iter = result.iterator();
-        while ( iter.hasNext() )
-        {
-            Artifact artifact = (Artifact) iter.next();
-            assertTrue( artifact.getArtifactId().equals( "two" ));
-        }
-    }
-
-    public void testFiltering2()
-        throws Exception
-    {
-        Set result = filtering2();
-        Iterator iter = result.iterator();
-        while ( iter.hasNext() )
-        {
-            Artifact artifact = (Artifact) iter.next();
-            assertTrue( artifact.getArtifactId().equals( "two" ) || artifact.getArtifactId().equals( "four" ) );
-        }
-    }
-
-    public void testFiltering3()
-        throws Exception
-    {
-        filtering3();
-    }
-}
+package org.apache.maven.plugin.dependency.utils.filters;
+
+/* 
+ * 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
+ *
+ * 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.    
+ */
+
+/**
+ * 
+ */
+
+import java.util.Iterator;
+import java.util.Set;
+
+import org.apache.maven.artifact.Artifact;
+import org.apache.maven.plugin.dependency.testUtils.AbstractArtifactFeatureFilterTestCase;
+import org.apache.maven.plugin.dependency.testUtils.DependencyArtifactStubFactory;
+
+/**
+ * @author clove TestCases for ArtifactFilter
+ * @see org.apache.maven.plugin.dependency.testUtils.AbstractArtifactFeatureFilterTestCase
+ */
+public class TestArtifactFilter
+    extends AbstractArtifactFeatureFilterTestCase
+{
+
+    protected void setUp()
+        throws Exception
+    {
+        super.setUp();
+        filterClass = ArtifactIdFilter.class;
+        DependencyArtifactStubFactory factory = new DependencyArtifactStubFactory( null, false );
+        artifacts = factory.getArtifactArtifacts();
+    }
+
+    public void testParsing()
+        throws Exception
+    {
+        parsing();
+    }
+
+    public void testFiltering()
+        throws Exception
+    {
+        Set result = filtering();
+        Iterator iter = result.iterator();
+        while ( iter.hasNext() )
+        {
+            Artifact artifact = (Artifact) iter.next();
+            assertTrue( artifact.getArtifactId().equals( "two" ));
+        }
+    }
+
+    public void testFiltering2()
+        throws Exception
+    {
+        Set result = filtering2();
+        Iterator iter = result.iterator();
+        while ( iter.hasNext() )
+        {
+            Artifact artifact = (Artifact) iter.next();
+            assertTrue( artifact.getArtifactId().equals( "two" ) || artifact.getArtifactId().equals( "four" ) );
+        }
+    }
+
+    public void testFiltering3()
+        throws Exception
+    {
+        filtering3();
+    }
+}

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestArtifactFilter.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestArtifactFilter.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Mon Jul  2 09:06:19 2007
@@ -1 +1 @@
-Author Date Id HeadURL Revision
+Author Date Id Revision

Modified: maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestClassifierFilter.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestClassifierFilter.java?view=diff&rev=552524&r1=552523&r2=552524
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestClassifierFilter.java (original)
+++ maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestClassifierFilter.java Mon Jul  2 09:06:19 2007
@@ -1,88 +1,88 @@
-package org.apache.maven.plugin.dependency.utils.filters;
-
-/* 
- * 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
- *
- * 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.    
- */
-
-/**
- * 
- */
-
-import java.util.Iterator;
-import java.util.Set;
-
-import org.apache.maven.artifact.Artifact;
-import org.apache.maven.plugin.dependency.testUtils.AbstractArtifactFeatureFilterTestCase;
-import org.apache.maven.plugin.dependency.testUtils.DependencyArtifactStubFactory;
-
-/**
- * @author brianf Test case for ClassifierFilter
- * @see org.apache.maven.plugin.dependency.testUtils.AbstractArtifactFeatureFilterTestCase
- * 
- */
-public class TestClassifierFilter
-    extends AbstractArtifactFeatureFilterTestCase
-{
-
-    protected void setUp()
-        throws Exception
-    {
-        super.setUp();
-        filterClass = ClassifierFilter.class;
-        DependencyArtifactStubFactory factory = new DependencyArtifactStubFactory( null, false );
-        artifacts = factory.getClassifiedArtifacts();
-
-    }
-
-    public void testParsing()
-        throws Exception
-    {
-        parsing();
-
-    }
-
-    public void testFiltering()
-        throws Exception
-    {
-        Set result = filtering();
-        Iterator iter = result.iterator();
-        while ( iter.hasNext() )
-        {
-            Artifact artifact = (Artifact) iter.next();
-            assertTrue( artifact.getClassifier().equals( "one" ) || artifact.getClassifier().equals( "two" ) );
-        }
-    }
-
-    public void testFiltering2()
-        throws Exception
-    {
-        Set result = filtering2();
-        Iterator iter = result.iterator();
-        while ( iter.hasNext() )
-        {
-            Artifact artifact = (Artifact) iter.next();
-            assertTrue( artifact.getClassifier().equals( "two" ) || artifact.getClassifier().equals( "four" ) );
-        }
-    }
-
-    public void testFiltering3()
-        throws Exception
-    {
-        filtering3();
-    }
-}
+package org.apache.maven.plugin.dependency.utils.filters;
+
+/* 
+ * 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
+ *
+ * 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.    
+ */
+
+/**
+ * 
+ */
+
+import java.util.Iterator;
+import java.util.Set;
+
+import org.apache.maven.artifact.Artifact;
+import org.apache.maven.plugin.dependency.testUtils.AbstractArtifactFeatureFilterTestCase;
+import org.apache.maven.plugin.dependency.testUtils.DependencyArtifactStubFactory;
+
+/**
+ * @author brianf Test case for ClassifierFilter
+ * @see org.apache.maven.plugin.dependency.testUtils.AbstractArtifactFeatureFilterTestCase
+ * 
+ */
+public class TestClassifierFilter
+    extends AbstractArtifactFeatureFilterTestCase
+{
+
+    protected void setUp()
+        throws Exception
+    {
+        super.setUp();
+        filterClass = ClassifierFilter.class;
+        DependencyArtifactStubFactory factory = new DependencyArtifactStubFactory( null, false );
+        artifacts = factory.getClassifiedArtifacts();
+
+    }
+
+    public void testParsing()
+        throws Exception
+    {
+        parsing();
+
+    }
+
+    public void testFiltering()
+        throws Exception
+    {
+        Set result = filtering();
+        Iterator iter = result.iterator();
+        while ( iter.hasNext() )
+        {
+            Artifact artifact = (Artifact) iter.next();
+            assertTrue( artifact.getClassifier().equals( "one" ) || artifact.getClassifier().equals( "two" ) );
+        }
+    }
+
+    public void testFiltering2()
+        throws Exception
+    {
+        Set result = filtering2();
+        Iterator iter = result.iterator();
+        while ( iter.hasNext() )
+        {
+            Artifact artifact = (Artifact) iter.next();
+            assertTrue( artifact.getClassifier().equals( "two" ) || artifact.getClassifier().equals( "four" ) );
+        }
+    }
+
+    public void testFiltering3()
+        throws Exception
+    {
+        filtering3();
+    }
+}

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestClassifierFilter.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestClassifierFilter.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Mon Jul  2 09:06:19 2007
@@ -1 +1 @@
-Author Date Id HeadURL Revision
+Author Date Id Revision

Modified: maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestDestFileFilter.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestDestFileFilter.java?view=diff&rev=552524&r1=552523&r2=552524
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestDestFileFilter.java (original)
+++ maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestDestFileFilter.java Mon Jul  2 09:06:19 2007
@@ -1,231 +1,231 @@
-package org.apache.maven.plugin.dependency.utils.filters;
-
-/* 
- * 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
- *
- * 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.    
- */
-/**
- * 
- */
-
-import java.io.File;
-import java.io.IOException;
-import java.util.HashSet;
-import java.util.Set;
-
-import junit.framework.TestCase;
-
-import org.apache.maven.artifact.Artifact;
-import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.plugin.dependency.testUtils.DependencyArtifactStubFactory;
-import org.apache.maven.plugin.dependency.testUtils.DependencyTestUtils;
-import org.apache.maven.plugin.dependency.utils.DependencyUtil;
-import org.apache.maven.plugin.logging.Log;
-import org.apache.maven.plugin.testing.SilentLog;
-
-/**
- * @author brianf
- * 
- */
-public class TestDestFileFilter
-    extends TestCase
-{
-    Set artifacts = new HashSet();
-
-    Log log = new SilentLog();
-
-    File outputFolder;
-
-    DependencyArtifactStubFactory fact;
-
-    protected void setUp()
-        throws Exception
-    {
-        super.setUp();
-
-        outputFolder = new File( "target/markers/" );
-        DependencyTestUtils.removeDirectory( outputFolder );
-        assertFalse( outputFolder.exists() );
-
-        this.fact = new DependencyArtifactStubFactory( outputFolder, false );
-        artifacts = fact.getReleaseAndSnapshotArtifacts();
-    }
-
-    protected void tearDown()
-        throws IOException
-    {
-        DependencyTestUtils.removeDirectory( outputFolder );
-    }
-
-    public File createFile( Artifact artifact )
-        throws IOException
-    {
-        return createFile( artifact, false, false, false );
-    }
-
-    public File createFile( Artifact artifact, boolean useSubDirectoryPerArtifact, boolean useSubDirectoryPerType,
-                           boolean removeVersion )
-        throws IOException
-    {
-        File destFolder = DependencyUtil.getFormattedOutputDirectory( useSubDirectoryPerType,
-                                                                      useSubDirectoryPerArtifact, false, false,
-                                                                      outputFolder, artifact );
-        File destFile = new File( destFolder, DependencyUtil.getFormattedFileName( artifact, removeVersion ) );
-
-        destFile.getParentFile().mkdirs();
-        assertTrue( destFile.createNewFile() );
-        return destFile;
-    }
-
-    public void testDestFileRelease()
-        throws MojoExecutionException, IOException
-    {
-        DestFileFilter filter = new DestFileFilter( outputFolder );
-        Artifact artifact = fact.getReleaseArtifact();
-
-        assertTrue( filter.okToProcess( artifact, log ) );
-        createFile( artifact );
-        assertFalse( filter.okToProcess( artifact, log ) );
-
-        filter.overWriteReleases = true;
-        assertTrue( filter.okToProcess( artifact, log ) );
-    }
-
-    public void testDestFileSnapshot()
-        throws MojoExecutionException, IOException
-    {
-        DestFileFilter filter = new DestFileFilter( outputFolder );
-        Artifact artifact = fact.getSnapshotArtifact();
-
-        assertTrue( filter.okToProcess( artifact, log ) );
-        createFile( artifact );
-        assertFalse( filter.okToProcess( artifact, log ) );
-
-        filter.overWriteSnapshots = true;
-        assertTrue( filter.okToProcess( artifact, log ) );
-    }
-
-    public void testDestFileStripVersion()
-        throws MojoExecutionException, IOException
-    {
-        DestFileFilter filter = new DestFileFilter( outputFolder );
-        Artifact artifact = fact.getSnapshotArtifact();
-        filter.removeVersion = true;
-
-        assertTrue( filter.okToProcess( artifact, log ) );
-        createFile( artifact, false, false, true );
-        assertFalse( filter.okToProcess( artifact, log ) );
-
-        filter.overWriteSnapshots = true;
-        assertTrue( filter.okToProcess( artifact, log ) );
-    }
-
-    public void testDestFileSubPerArtifact()
-        throws MojoExecutionException, IOException
-    {
-        DestFileFilter filter = new DestFileFilter( outputFolder );
-        Artifact artifact = fact.getSnapshotArtifact();
-        filter.useSubDirectoryPerArtifact = true;
-
-        assertTrue( filter.okToProcess( artifact, log ) );
-        createFile( artifact, true, false, false );
-        assertFalse( filter.okToProcess( artifact, log ) );
-
-        filter.overWriteSnapshots = true;
-        assertTrue( filter.okToProcess( artifact, log ) );
-    }
-
-    public void testDestFileSubPerType()
-        throws MojoExecutionException, IOException
-    {
-        DestFileFilter filter = new DestFileFilter( outputFolder );
-        Artifact artifact = fact.getSnapshotArtifact();
-        filter.useSubDirectoryPerType = true;
-
-        assertTrue( filter.okToProcess( artifact, log ) );
-        createFile( artifact, false, true, false );
-        assertFalse( filter.okToProcess( artifact, log ) );
-
-        filter.overWriteSnapshots = true;
-        assertTrue( filter.okToProcess( artifact, log ) );
-    }
-
-    public void testDestFileOverwriteIfNewer()
-        throws MojoExecutionException, IOException
-    {
-        DestFileFilter filter = new DestFileFilter( outputFolder );
-
-        fact.setCreateFiles( true );
-        Artifact artifact = fact.getSnapshotArtifact();
-        File artifactFile = artifact.getFile();
-        artifactFile.setLastModified( artifactFile.lastModified() );
-        filter.overWriteIfNewer = true;
-
-        // should pass because the file doesn't exist yet.
-        assertTrue( filter.okToProcess( artifact, log ) );
-
-        // create the file in the destination
-        File destFile = createFile( artifact, false, false, false );
-
-        // set the last modified timestamp to be older than the source
-        destFile.setLastModified( artifactFile.lastModified() - 1000 );
-        assertTrue( filter.okToProcess( artifact, log ) );
-
-        // now set the last modified timestamp to be newer than the source
-        destFile.setLastModified( artifactFile.lastModified() + 1000 );
-
-        assertFalse( filter.okToProcess( artifact, log ) );
-    }
-
-    public void testGettersSetters()
-    {
-        DestFileFilter filter = new DestFileFilter( null );
-        assertTrue( filter.getOutputFileDirectory() == null );
-        filter.setOutputFileDirectory( outputFolder );
-        assertSame( outputFolder, filter.getOutputFileDirectory() );
-
-        filter.setOverWriteIfNewer( true );
-        assertTrue( filter.isOverWriteIfNewer() );
-        filter.setOverWriteIfNewer( false );
-        assertFalse( filter.isOverWriteIfNewer() );
-
-        filter.setOverWriteReleases( true );
-        assertTrue( filter.isOverWriteReleases() );
-        filter.setOverWriteReleases( false );
-        assertFalse( filter.isOverWriteReleases() );
-
-        filter.setOverWriteSnapshots( true );
-        assertTrue( filter.isOverWriteSnapshots() );
-        filter.setOverWriteSnapshots( false );
-        assertFalse( filter.isOverWriteSnapshots() );
-
-        filter.setUseSubDirectoryPerArtifact( true );
-        assertTrue( filter.isUseSubDirectoryPerArtifact() );
-        filter.setUseSubDirectoryPerArtifact( false );
-        assertFalse( filter.isUseSubDirectoryPerArtifact() );
-
-        filter.setUseSubDirectoryPerType( true );
-        assertTrue( filter.isUseSubDirectoryPerType() );
-        filter.setUseSubDirectoryPerType( false );
-        assertFalse( filter.isUseSubDirectoryPerType() );
-
-        filter.setRemoveVersion( true );
-        assertTrue( filter.isRemoveVersion() );
-        filter.setRemoveVersion( false );
-        assertFalse( filter.isRemoveVersion() );
-    }
-}
+package org.apache.maven.plugin.dependency.utils.filters;
+
+/* 
+ * 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
+ *
+ * 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.    
+ */
+/**
+ * 
+ */
+
+import java.io.File;
+import java.io.IOException;
+import java.util.HashSet;
+import java.util.Set;
+
+import junit.framework.TestCase;
+
+import org.apache.maven.artifact.Artifact;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.dependency.testUtils.DependencyArtifactStubFactory;
+import org.apache.maven.plugin.dependency.testUtils.DependencyTestUtils;
+import org.apache.maven.plugin.dependency.utils.DependencyUtil;
+import org.apache.maven.plugin.logging.Log;
+import org.apache.maven.plugin.testing.SilentLog;
+
+/**
+ * @author brianf
+ * 
+ */
+public class TestDestFileFilter
+    extends TestCase
+{
+    Set artifacts = new HashSet();
+
+    Log log = new SilentLog();
+
+    File outputFolder;
+
+    DependencyArtifactStubFactory fact;
+
+    protected void setUp()
+        throws Exception
+    {
+        super.setUp();
+
+        outputFolder = new File( "target/markers/" );
+        DependencyTestUtils.removeDirectory( outputFolder );
+        assertFalse( outputFolder.exists() );
+
+        this.fact = new DependencyArtifactStubFactory( outputFolder, false );
+        artifacts = fact.getReleaseAndSnapshotArtifacts();
+    }
+
+    protected void tearDown()
+        throws IOException
+    {
+        DependencyTestUtils.removeDirectory( outputFolder );
+    }
+
+    public File createFile( Artifact artifact )
+        throws IOException
+    {
+        return createFile( artifact, false, false, false );
+    }
+
+    public File createFile( Artifact artifact, boolean useSubDirectoryPerArtifact, boolean useSubDirectoryPerType,
+                           boolean removeVersion )
+        throws IOException
+    {
+        File destFolder = DependencyUtil.getFormattedOutputDirectory( useSubDirectoryPerType,
+                                                                      useSubDirectoryPerArtifact, false, false,
+                                                                      outputFolder, artifact );
+        File destFile = new File( destFolder, DependencyUtil.getFormattedFileName( artifact, removeVersion ) );
+
+        destFile.getParentFile().mkdirs();
+        assertTrue( destFile.createNewFile() );
+        return destFile;
+    }
+
+    public void testDestFileRelease()
+        throws MojoExecutionException, IOException
+    {
+        DestFileFilter filter = new DestFileFilter( outputFolder );
+        Artifact artifact = fact.getReleaseArtifact();
+
+        assertTrue( filter.okToProcess( artifact, log ) );
+        createFile( artifact );
+        assertFalse( filter.okToProcess( artifact, log ) );
+
+        filter.overWriteReleases = true;
+        assertTrue( filter.okToProcess( artifact, log ) );
+    }
+
+    public void testDestFileSnapshot()
+        throws MojoExecutionException, IOException
+    {
+        DestFileFilter filter = new DestFileFilter( outputFolder );
+        Artifact artifact = fact.getSnapshotArtifact();
+
+        assertTrue( filter.okToProcess( artifact, log ) );
+        createFile( artifact );
+        assertFalse( filter.okToProcess( artifact, log ) );
+
+        filter.overWriteSnapshots = true;
+        assertTrue( filter.okToProcess( artifact, log ) );
+    }
+
+    public void testDestFileStripVersion()
+        throws MojoExecutionException, IOException
+    {
+        DestFileFilter filter = new DestFileFilter( outputFolder );
+        Artifact artifact = fact.getSnapshotArtifact();
+        filter.removeVersion = true;
+
+        assertTrue( filter.okToProcess( artifact, log ) );
+        createFile( artifact, false, false, true );
+        assertFalse( filter.okToProcess( artifact, log ) );
+
+        filter.overWriteSnapshots = true;
+        assertTrue( filter.okToProcess( artifact, log ) );
+    }
+
+    public void testDestFileSubPerArtifact()
+        throws MojoExecutionException, IOException
+    {
+        DestFileFilter filter = new DestFileFilter( outputFolder );
+        Artifact artifact = fact.getSnapshotArtifact();
+        filter.useSubDirectoryPerArtifact = true;
+
+        assertTrue( filter.okToProcess( artifact, log ) );
+        createFile( artifact, true, false, false );
+        assertFalse( filter.okToProcess( artifact, log ) );
+
+        filter.overWriteSnapshots = true;
+        assertTrue( filter.okToProcess( artifact, log ) );
+    }
+
+    public void testDestFileSubPerType()
+        throws MojoExecutionException, IOException
+    {
+        DestFileFilter filter = new DestFileFilter( outputFolder );
+        Artifact artifact = fact.getSnapshotArtifact();
+        filter.useSubDirectoryPerType = true;
+
+        assertTrue( filter.okToProcess( artifact, log ) );
+        createFile( artifact, false, true, false );
+        assertFalse( filter.okToProcess( artifact, log ) );
+
+        filter.overWriteSnapshots = true;
+        assertTrue( filter.okToProcess( artifact, log ) );
+    }
+
+    public void testDestFileOverwriteIfNewer()
+        throws MojoExecutionException, IOException
+    {
+        DestFileFilter filter = new DestFileFilter( outputFolder );
+
+        fact.setCreateFiles( true );
+        Artifact artifact = fact.getSnapshotArtifact();
+        File artifactFile = artifact.getFile();
+        artifactFile.setLastModified( artifactFile.lastModified() );
+        filter.overWriteIfNewer = true;
+
+        // should pass because the file doesn't exist yet.
+        assertTrue( filter.okToProcess( artifact, log ) );
+
+        // create the file in the destination
+        File destFile = createFile( artifact, false, false, false );
+
+        // set the last modified timestamp to be older than the source
+        destFile.setLastModified( artifactFile.lastModified() - 1000 );
+        assertTrue( filter.okToProcess( artifact, log ) );
+
+        // now set the last modified timestamp to be newer than the source
+        destFile.setLastModified( artifactFile.lastModified() + 1000 );
+
+        assertFalse( filter.okToProcess( artifact, log ) );
+    }
+
+    public void testGettersSetters()
+    {
+        DestFileFilter filter = new DestFileFilter( null );
+        assertTrue( filter.getOutputFileDirectory() == null );
+        filter.setOutputFileDirectory( outputFolder );
+        assertSame( outputFolder, filter.getOutputFileDirectory() );
+
+        filter.setOverWriteIfNewer( true );
+        assertTrue( filter.isOverWriteIfNewer() );
+        filter.setOverWriteIfNewer( false );
+        assertFalse( filter.isOverWriteIfNewer() );
+
+        filter.setOverWriteReleases( true );
+        assertTrue( filter.isOverWriteReleases() );
+        filter.setOverWriteReleases( false );
+        assertFalse( filter.isOverWriteReleases() );
+
+        filter.setOverWriteSnapshots( true );
+        assertTrue( filter.isOverWriteSnapshots() );
+        filter.setOverWriteSnapshots( false );
+        assertFalse( filter.isOverWriteSnapshots() );
+
+        filter.setUseSubDirectoryPerArtifact( true );
+        assertTrue( filter.isUseSubDirectoryPerArtifact() );
+        filter.setUseSubDirectoryPerArtifact( false );
+        assertFalse( filter.isUseSubDirectoryPerArtifact() );
+
+        filter.setUseSubDirectoryPerType( true );
+        assertTrue( filter.isUseSubDirectoryPerType() );
+        filter.setUseSubDirectoryPerType( false );
+        assertFalse( filter.isUseSubDirectoryPerType() );
+
+        filter.setRemoveVersion( true );
+        assertTrue( filter.isRemoveVersion() );
+        filter.setRemoveVersion( false );
+        assertFalse( filter.isRemoveVersion() );
+    }
+}

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestDestFileFilter.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestDestFileFilter.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Mon Jul  2 09:06:19 2007
@@ -1 +1 @@
-Author Date Id HeadURL Revision
+Author Date Id Revision

Modified: maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestFilterArtifacts.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestFilterArtifacts.java?view=diff&rev=552524&r1=552523&r2=552524
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestFilterArtifacts.java (original)
+++ maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestFilterArtifacts.java Mon Jul  2 09:06:19 2007
@@ -1,119 +1,119 @@
-package org.apache.maven.plugin.dependency.utils.filters;
-
-/* 
- * 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
- *
- * 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.    
- */
-/**
- * 
- */
-
-import java.io.File;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.HashSet;
-import java.util.Set;
-
-import junit.framework.TestCase;
-
-import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.plugin.dependency.testUtils.DependencyArtifactStubFactory;
-import org.apache.maven.plugin.dependency.testUtils.DependencyTestUtils;
-import org.apache.maven.plugin.logging.Log;
-import org.apache.maven.plugin.testing.SilentLog;
-
-/**
- * @author brianf
- * 
- */
-public class TestFilterArtifacts
-    extends TestCase
-{
-    Log log = new SilentLog();
-
-    protected void setUp()
-        throws Exception
-    {
-        super.setUp();
-    }
-
-    public void testNullFilters()
-        throws IOException, MojoExecutionException
-    {
-        // TODO: convert these old tests to use the abstract test case for dep
-        // plugin
-        File outputFolder = outputFolder = new File( "target/filters/" );
-        DependencyTestUtils.removeDirectory( outputFolder );
-
-        DependencyArtifactStubFactory fact = new DependencyArtifactStubFactory( outputFolder, false );
-        Set artifacts = fact.getReleaseAndSnapshotArtifacts();
-        FilterArtifacts fa = new FilterArtifacts();
-
-        fa.filter( artifacts, log );
-
-        // make sure null filters don't hurt anything.
-        fa.addFilter( null );
-
-        fa.filter( artifacts, log );
-        assertEquals( 0, fa.getFilters().size() );
-
-        ArrayList filters = new ArrayList();
-        filters.add( null );
-        filters.add( null );
-        fa.setFilters( filters );
-
-        assertEquals( 2, fa.getFilters().size() );
-
-        fa.filter( artifacts, log );
-    }
-
-    public void testArtifactFilter()
-    {
-        Set a = new HashSet();
-        FilterArtifacts fa = new FilterArtifacts();
-        ArtifactsFilter scope = new ScopeFilter( "compile", "system" );
-        ArtifactsFilter type = new TypeFilter( "jar", "war" );
-        ArtifactsFilter trans = new TransitivityFilter( a, true );
-
-        assertEquals( 0, fa.getFilters().size() );
-        fa.addFilter( scope );
-        assertEquals( 1, fa.getFilters().size() );
-        fa.addFilter( type );
-        assertEquals( 2, fa.getFilters().size() );
-        assertTrue( fa.getFilters().get( 0 ) instanceof ScopeFilter );
-        assertTrue( fa.getFilters().get( 1 ) instanceof TypeFilter );
-        fa.addFilter( 1, trans );
-        assertEquals( 3, fa.getFilters().size() );
-        assertTrue( fa.getFilters().get( 0 ) instanceof ScopeFilter );
-        assertTrue( fa.getFilters().get( 1 ) instanceof TransitivityFilter );
-        assertTrue( fa.getFilters().get( 2 ) instanceof TypeFilter );
-
-        ArrayList list = new ArrayList();
-        list.addAll( fa.getFilters() );
-
-        fa.clearFilters();
-        assertEquals( 0, fa.getFilters().size() );
-
-        fa.setFilters( list );
-        assertEquals( 3, fa.getFilters().size() );
-        assertTrue( fa.getFilters().get( 0 ) instanceof ScopeFilter );
-        assertTrue( fa.getFilters().get( 1 ) instanceof TransitivityFilter );
-        assertTrue( fa.getFilters().get( 2 ) instanceof TypeFilter );
-
-    }
-
-}
+package org.apache.maven.plugin.dependency.utils.filters;
+
+/* 
+ * 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
+ *
+ * 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.    
+ */
+/**
+ * 
+ */
+
+import java.io.File;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.HashSet;
+import java.util.Set;
+
+import junit.framework.TestCase;
+
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.dependency.testUtils.DependencyArtifactStubFactory;
+import org.apache.maven.plugin.dependency.testUtils.DependencyTestUtils;
+import org.apache.maven.plugin.logging.Log;
+import org.apache.maven.plugin.testing.SilentLog;
+
+/**
+ * @author brianf
+ * 
+ */
+public class TestFilterArtifacts
+    extends TestCase
+{
+    Log log = new SilentLog();
+
+    protected void setUp()
+        throws Exception
+    {
+        super.setUp();
+    }
+
+    public void testNullFilters()
+        throws IOException, MojoExecutionException
+    {
+        // TODO: convert these old tests to use the abstract test case for dep
+        // plugin
+        File outputFolder = outputFolder = new File( "target/filters/" );
+        DependencyTestUtils.removeDirectory( outputFolder );
+
+        DependencyArtifactStubFactory fact = new DependencyArtifactStubFactory( outputFolder, false );
+        Set artifacts = fact.getReleaseAndSnapshotArtifacts();
+        FilterArtifacts fa = new FilterArtifacts();
+
+        fa.filter( artifacts, log );
+
+        // make sure null filters don't hurt anything.
+        fa.addFilter( null );
+
+        fa.filter( artifacts, log );
+        assertEquals( 0, fa.getFilters().size() );
+
+        ArrayList filters = new ArrayList();
+        filters.add( null );
+        filters.add( null );
+        fa.setFilters( filters );
+
+        assertEquals( 2, fa.getFilters().size() );
+
+        fa.filter( artifacts, log );
+    }
+
+    public void testArtifactFilter()
+    {
+        Set a = new HashSet();
+        FilterArtifacts fa = new FilterArtifacts();
+        ArtifactsFilter scope = new ScopeFilter( "compile", "system" );
+        ArtifactsFilter type = new TypeFilter( "jar", "war" );
+        ArtifactsFilter trans = new TransitivityFilter( a, true );
+
+        assertEquals( 0, fa.getFilters().size() );
+        fa.addFilter( scope );
+        assertEquals( 1, fa.getFilters().size() );
+        fa.addFilter( type );
+        assertEquals( 2, fa.getFilters().size() );
+        assertTrue( fa.getFilters().get( 0 ) instanceof ScopeFilter );
+        assertTrue( fa.getFilters().get( 1 ) instanceof TypeFilter );
+        fa.addFilter( 1, trans );
+        assertEquals( 3, fa.getFilters().size() );
+        assertTrue( fa.getFilters().get( 0 ) instanceof ScopeFilter );
+        assertTrue( fa.getFilters().get( 1 ) instanceof TransitivityFilter );
+        assertTrue( fa.getFilters().get( 2 ) instanceof TypeFilter );
+
+        ArrayList list = new ArrayList();
+        list.addAll( fa.getFilters() );
+
+        fa.clearFilters();
+        assertEquals( 0, fa.getFilters().size() );
+
+        fa.setFilters( list );
+        assertEquals( 3, fa.getFilters().size() );
+        assertTrue( fa.getFilters().get( 0 ) instanceof ScopeFilter );
+        assertTrue( fa.getFilters().get( 1 ) instanceof TransitivityFilter );
+        assertTrue( fa.getFilters().get( 2 ) instanceof TypeFilter );
+
+    }
+
+}

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestFilterArtifacts.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestFilterArtifacts.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Mon Jul  2 09:06:19 2007
@@ -1 +1 @@
-Author Date Id HeadURL Revision
+Author Date Id Revision

Modified: maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestGroupIdFilter.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestGroupIdFilter.java?view=diff&rev=552524&r1=552523&r2=552524
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestGroupIdFilter.java (original)
+++ maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestGroupIdFilter.java Mon Jul  2 09:06:19 2007
@@ -1,143 +1,143 @@
-package org.apache.maven.plugin.dependency.utils.filters;
-
-/* 
- * 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
- *
- * 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.    
- */
-
-/**
- * 
- */
-
-import java.lang.reflect.InvocationTargetException;
-import java.util.Iterator;
-import java.util.Set;
-
-import org.apache.maven.artifact.Artifact;
-import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.plugin.dependency.testUtils.AbstractArtifactFeatureFilterTestCase;
-import org.apache.maven.plugin.dependency.testUtils.DependencyArtifactStubFactory;
-import org.apache.maven.plugin.testing.SilentLog;
-
-/**
- * @author clove TestCases for GroupIdFilter
- * @see org.apache.maven.plugin.dependency.testUtils.AbstractArtifactFeatureFilterTestCase
- * 
- */
-public class TestGroupIdFilter
-    extends AbstractArtifactFeatureFilterTestCase
-{
-
-    protected void setUp()
-        throws Exception
-    {
-        super.setUp();
-        filterClass = GroupIdFilter.class;
-        DependencyArtifactStubFactory factory = new DependencyArtifactStubFactory( null, false );
-        artifacts = factory.getGroupIdArtifacts();
-
-    }
-
-    public void testParsing()
-        throws Exception
-    {
-        parsing();
-    }
-
-    public void testFiltering()
-        throws Exception
-    {
-        Set result = filtering();
-        Iterator iter = result.iterator();
-        while ( iter.hasNext() )
-        {
-            Artifact artifact = (Artifact) iter.next();
-            assertTrue( artifact.getGroupId().equals( "one" ) || artifact.getGroupId().equals( "two" ) );
-        }
-    }
-
-    public void testFiltering2()
-        throws Exception
-    {
-        Set result = filtering2();
-        Iterator iter = result.iterator();
-        while ( iter.hasNext() )
-        {
-            Artifact artifact = (Artifact) iter.next();
-            assertTrue( artifact.getGroupId().equals( "two" ) || artifact.getGroupId().equals( "four" ) );
-        }
-    }
-
-    public void testFiltering3()
-        throws Exception
-    {
-        filtering3();
-    }
-
-    public void testFiltering4()
-        throws Exception
-    {
-        SilentLog log = new SilentLog();
-        // include o* from groupIds one,two should leave one
-        Set result = filtering();
-        assertEquals( 1, result.size());
-        GroupIdFilter filter = new GroupIdFilter( "o", null );
-        result = filter.filter( result, log );
-        Iterator iter = result.iterator();
-        while ( iter.hasNext() )
-        {
-            Artifact artifact = (Artifact) iter.next();
-            assertTrue( artifact.getGroupId().equals( "one" ) );
-
-        }
-
-        // exclude on* from groupIds one,two should leave two
-        result = filtering();
-        assertEquals(1, result.size());
-        filter = new GroupIdFilter( null, "on" );
-        result = filter.filter( result, log );
-        iter = result.iterator();
-        while ( iter.hasNext() )
-        {
-            Artifact artifact = (Artifact) iter.next();
-            assertTrue( artifact.getGroupId().equals( "two" ) );
-
-        }
-    }
-    
-    public void testMultipleInclude() throws SecurityException, IllegalArgumentException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException, MojoExecutionException
-    {
-       ArtifactsFilter filter = new GroupIdFilter("one,two",null);
-       
-       assertEquals( 4, artifacts.size() );
-       
-       Set result = filter.filter( artifacts, new SilentLog() );
-       
-       assertEquals( 2, result.size() );       
-    }
-    
-    public void testMultipleExclude() throws SecurityException, IllegalArgumentException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException, MojoExecutionException
-    {
-       ArtifactsFilter filter = new GroupIdFilter(null,"one,two");
-       
-       assertEquals( 4, artifacts.size() );
-       
-       Set result = filter.filter( artifacts, new SilentLog() );
-       
-       assertEquals( 2, result.size() );       
-    }
-}
+package org.apache.maven.plugin.dependency.utils.filters;
+
+/* 
+ * 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
+ *
+ * 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.    
+ */
+
+/**
+ * 
+ */
+
+import java.lang.reflect.InvocationTargetException;
+import java.util.Iterator;
+import java.util.Set;
+
+import org.apache.maven.artifact.Artifact;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.dependency.testUtils.AbstractArtifactFeatureFilterTestCase;
+import org.apache.maven.plugin.dependency.testUtils.DependencyArtifactStubFactory;
+import org.apache.maven.plugin.testing.SilentLog;
+
+/**
+ * @author clove TestCases for GroupIdFilter
+ * @see org.apache.maven.plugin.dependency.testUtils.AbstractArtifactFeatureFilterTestCase
+ * 
+ */
+public class TestGroupIdFilter
+    extends AbstractArtifactFeatureFilterTestCase
+{
+
+    protected void setUp()
+        throws Exception
+    {
+        super.setUp();
+        filterClass = GroupIdFilter.class;
+        DependencyArtifactStubFactory factory = new DependencyArtifactStubFactory( null, false );
+        artifacts = factory.getGroupIdArtifacts();
+
+    }
+
+    public void testParsing()
+        throws Exception
+    {
+        parsing();
+    }
+
+    public void testFiltering()
+        throws Exception
+    {
+        Set result = filtering();
+        Iterator iter = result.iterator();
+        while ( iter.hasNext() )
+        {
+            Artifact artifact = (Artifact) iter.next();
+            assertTrue( artifact.getGroupId().equals( "one" ) || artifact.getGroupId().equals( "two" ) );
+        }
+    }
+
+    public void testFiltering2()
+        throws Exception
+    {
+        Set result = filtering2();
+        Iterator iter = result.iterator();
+        while ( iter.hasNext() )
+        {
+            Artifact artifact = (Artifact) iter.next();
+            assertTrue( artifact.getGroupId().equals( "two" ) || artifact.getGroupId().equals( "four" ) );
+        }
+    }
+
+    public void testFiltering3()
+        throws Exception
+    {
+        filtering3();
+    }
+
+    public void testFiltering4()
+        throws Exception
+    {
+        SilentLog log = new SilentLog();
+        // include o* from groupIds one,two should leave one
+        Set result = filtering();
+        assertEquals( 1, result.size());
+        GroupIdFilter filter = new GroupIdFilter( "o", null );
+        result = filter.filter( result, log );
+        Iterator iter = result.iterator();
+        while ( iter.hasNext() )
+        {
+            Artifact artifact = (Artifact) iter.next();
+            assertTrue( artifact.getGroupId().equals( "one" ) );
+
+        }
+
+        // exclude on* from groupIds one,two should leave two
+        result = filtering();
+        assertEquals(1, result.size());
+        filter = new GroupIdFilter( null, "on" );
+        result = filter.filter( result, log );
+        iter = result.iterator();
+        while ( iter.hasNext() )
+        {
+            Artifact artifact = (Artifact) iter.next();
+            assertTrue( artifact.getGroupId().equals( "two" ) );
+
+        }
+    }
+    
+    public void testMultipleInclude() throws SecurityException, IllegalArgumentException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException, MojoExecutionException
+    {
+       ArtifactsFilter filter = new GroupIdFilter("one,two",null);
+       
+       assertEquals( 4, artifacts.size() );
+       
+       Set result = filter.filter( artifacts, new SilentLog() );
+       
+       assertEquals( 2, result.size() );       
+    }
+    
+    public void testMultipleExclude() throws SecurityException, IllegalArgumentException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException, MojoExecutionException
+    {
+       ArtifactsFilter filter = new GroupIdFilter(null,"one,two");
+       
+       assertEquals( 4, artifacts.size() );
+       
+       Set result = filter.filter( artifacts, new SilentLog() );
+       
+       assertEquals( 2, result.size() );       
+    }
+}

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestGroupIdFilter.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestGroupIdFilter.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Mon Jul  2 09:06:19 2007
@@ -1 +1 @@
-Author Date Id HeadURL Revision
+Author Date Id Revision

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestMarkerFileFilter.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Mon Jul  2 09:06:19 2007
@@ -1 +1 @@
-Author Date Id HeadURL Revision
+Author Date Id Revision

Modified: maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestResolveMarkerFileFilter.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestResolveMarkerFileFilter.java?view=diff&rev=552524&r1=552523&r2=552524
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestResolveMarkerFileFilter.java (original)
+++ maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestResolveMarkerFileFilter.java Mon Jul  2 09:06:19 2007
@@ -1,89 +1,89 @@
-package org.apache.maven.plugin.dependency.utils.filters;
-
-/* 
- * 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
- *
- * 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.    
- */
-/**
- * 
- */
-
-import java.io.File;
-import java.io.IOException;
-import java.util.HashSet;
-import java.util.Set;
-
-import junit.framework.TestCase;
-
-import org.apache.maven.artifact.Artifact;
-import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.plugin.dependency.testUtils.DependencyArtifactStubFactory;
-import org.apache.maven.plugin.dependency.testUtils.DependencyTestUtils;
-import org.apache.maven.plugin.dependency.utils.markers.SourcesFileMarkerHandler;
-import org.apache.maven.plugin.logging.Log;
-import org.apache.maven.plugin.testing.SilentLog;
-
-/**
- * @author brianf
- * 
- */
-public class TestResolveMarkerFileFilter
-    extends TestCase
-{
-    Set artifacts = new HashSet();
-
-    Log log = new SilentLog();
-
-    File outputFolder;
-
-    DependencyArtifactStubFactory fact;
-
-    protected void setUp()
-        throws Exception
-    {
-        super.setUp();
-
-        outputFolder = new File( "target/markers/" );
-        DependencyTestUtils.removeDirectory( outputFolder );
-        assertFalse( outputFolder.exists() );
-
-        this.fact = new DependencyArtifactStubFactory( outputFolder, false );
-        artifacts = fact.getReleaseAndSnapshotArtifacts();
-    }
-
-    protected void tearDown()
-        throws IOException
-    {
-        DependencyTestUtils.removeDirectory( outputFolder );
-    }
-
-    public void testResolveFile()
-        throws MojoExecutionException, IOException
-    {
-        SourcesFileMarkerHandler handler = new SourcesFileMarkerHandler( outputFolder );
-
-        Artifact artifact = fact.getReleaseArtifact();
-        handler.setArtifact( artifact );
-
-        ResolveFileFilter filter = new ResolveFileFilter( handler );
-
-        assertTrue( filter.okToProcess( artifact, log ) );
-        handler.setMarker();
-        assertFalse( filter.okToProcess( artifact, log ) );
-    }
-
-}
+package org.apache.maven.plugin.dependency.utils.filters;
+
+/* 
+ * 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
+ *
+ * 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.    
+ */
+/**
+ * 
+ */
+
+import java.io.File;
+import java.io.IOException;
+import java.util.HashSet;
+import java.util.Set;
+
+import junit.framework.TestCase;
+
+import org.apache.maven.artifact.Artifact;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.dependency.testUtils.DependencyArtifactStubFactory;
+import org.apache.maven.plugin.dependency.testUtils.DependencyTestUtils;
+import org.apache.maven.plugin.dependency.utils.markers.SourcesFileMarkerHandler;
+import org.apache.maven.plugin.logging.Log;
+import org.apache.maven.plugin.testing.SilentLog;
+
+/**
+ * @author brianf
+ * 
+ */
+public class TestResolveMarkerFileFilter
+    extends TestCase
+{
+    Set artifacts = new HashSet();
+
+    Log log = new SilentLog();
+
+    File outputFolder;
+
+    DependencyArtifactStubFactory fact;
+
+    protected void setUp()
+        throws Exception
+    {
+        super.setUp();
+
+        outputFolder = new File( "target/markers/" );
+        DependencyTestUtils.removeDirectory( outputFolder );
+        assertFalse( outputFolder.exists() );
+
+        this.fact = new DependencyArtifactStubFactory( outputFolder, false );
+        artifacts = fact.getReleaseAndSnapshotArtifacts();
+    }
+
+    protected void tearDown()
+        throws IOException
+    {
+        DependencyTestUtils.removeDirectory( outputFolder );
+    }
+
+    public void testResolveFile()
+        throws MojoExecutionException, IOException
+    {
+        SourcesFileMarkerHandler handler = new SourcesFileMarkerHandler( outputFolder );
+
+        Artifact artifact = fact.getReleaseArtifact();
+        handler.setArtifact( artifact );
+
+        ResolveFileFilter filter = new ResolveFileFilter( handler );
+
+        assertTrue( filter.okToProcess( artifact, log ) );
+        handler.setMarker();
+        assertFalse( filter.okToProcess( artifact, log ) );
+    }
+
+}

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestResolveMarkerFileFilter.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestResolveMarkerFileFilter.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Mon Jul  2 09:06:19 2007
@@ -1 +1 @@
-Author Date Id HeadURL Revision
+Author Date Id Revision

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestScopeFilter.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Mon Jul  2 09:06:19 2007
@@ -1 +1 @@
-Author Date Id HeadURL Revision
+Author Date Id Revision

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestTransitivityFilter.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Mon Jul  2 09:06:19 2007
@@ -1 +1 @@
-Author Date Id HeadURL Revision
+Author Date Id Revision

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestTypeFilter.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Mon Jul  2 09:06:19 2007
@@ -1 +1 @@
-Author Date Id HeadURL Revision
+Author Date Id Revision

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/markers/TestDefaultMarkerFileHandler.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Mon Jul  2 09:06:19 2007
@@ -1 +1 @@
-Author Date Id HeadURL Revision
+Author Date Id Revision

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/markers/TestSourcesMarkerFileHandler.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Mon Jul  2 09:06:19 2007
@@ -1 +1 @@
-Author Date Id HeadURL Revision
+Author Date Id Revision