dion        2002/06/27 16:58:52

  Modified:    src/test/java/org/apache/maven/build RepositoryTest.java
  Log:
  Added tests for hasPluginList
  
  Revision  Changes    Path
  1.2       +19 -1     
jakarta-turbine-maven/src/test/java/org/apache/maven/build/RepositoryTest.java
  
  Index: RepositoryTest.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-maven/src/test/java/org/apache/maven/build/RepositoryTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- RepositoryTest.java       27 Jun 2002 18:29:19 -0000      1.1
  +++ RepositoryTest.java       27 Jun 2002 23:58:52 -0000      1.2
  @@ -57,6 +57,7 @@
    */
   
   import java.io.File;
  +import java.net.URL;
   
   import junit.framework.TestCase;
   
  @@ -154,4 +155,21 @@
           assertEquals("wrong number of entries", 1,
               instance.getNonDistributableJars().size());
       }
  +
  +    /**
  +     * Test for the plugins list
  +     *
  +     * @throws Exception when any error occurs
  +     */
  +    public void testHasPluginList() throws Exception
  +    {
  +        testConstructor();
  +        assertTrue("plugins list found erroneously",
  +            !instance.hasPluginList());
  +        URL dummyRepo = new File(baseURL+"/dummy.repo").toURL();
  +        instance = new Repository(dummyRepo);
  +        assertTrue("plugin list not found", 
  +            instance.hasPluginList());
  +    }
  +
   }
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to