dion        2003/08/27 22:42:03

  Modified:    src/test/java/org/apache/maven/plugin PluginManagerTest.java
  Log:
  - Remove deleteFakeBase, as I've fixed pluginmanagercache
  - Checkstyle
  
  Revision  Changes    Path
  1.4       +17 -19    
maven/src/test/java/org/apache/maven/plugin/PluginManagerTest.java
  
  Index: PluginManagerTest.java
  ===================================================================
  RCS file: 
/home/cvs/maven/src/test/java/org/apache/maven/plugin/PluginManagerTest.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- PluginManagerTest.java    19 Aug 2003 04:45:37 -0000      1.3
  +++ PluginManagerTest.java    28 Aug 2003 05:42:03 -0000      1.4
  @@ -52,6 +52,8 @@
    * individuals on behalf of the Apache Software Foundation.  For more
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
  + *
  + * ====================================================================
    */
   import java.io.File;
   import java.io.FileInputStream;
  @@ -80,38 +82,41 @@
   
       /** project to test with */
       private Project project;
  -    
  +
       /** directory for fake data */
  -    private static String FAKE_BASE = "/target/PluginManagerTest/";
  -    
  +    private static final String FAKE_BASE = "/target/PluginManagerTest/";
  +
       /** source base */
  -    private static String SOURCE_BASE = "/src/test/java/org/apache/maven/plugin/";
  -    
  +    private static final String SOURCE_BASE = 
"/src/test/java/org/apache/maven/plugin/";
  +
       /** base directory */
       private String basedir;
  -    
  -    /** plugin to install */    
  +
  +    /** plugin to install */
       private File pluginToInstall;
   
       /** fake maven.home */
  -    String fakeHome;
  +    private String fakeHome;
   
       /**
        * Constructor for PluginManagerTest.
  -     * @param name
  +     * @param name the name of the test case
        */
       public PluginManagerTest(String name)
       {
           super(name);
       }
  -    
  +
  +    /**
  +     * Set up the test case
  +     * @throws
  +     */
       public void setUp() throws Exception
       {
           super.setUp();
           basedir = System.getProperty("basedir");
           assertNotNull(basedir);
           fakeHome = basedir + SOURCE_BASE + "maven.home";
  -        deleteFakeBase();
           MavenJellyContext context = MavenUtils.createContext( new File( 
System.getProperty("user.dir") ) );
           assertNotNull(context);
           // 1) need to fake out maven home, so that the unpacked plugin dir in the 
test
  @@ -142,18 +147,11 @@
           // fake forehead up
           Forehead.getInstance().config(new FileInputStream(basedir + SOURCE_BASE + 
"forehead.conf"));
       }
  -    
  +
       /**
        * Delete the fake directory
        */
       public void tearDown() throws Exception
  -    {
  -        // pluginManager's caching causes this to fail sometimes, so it's being
  -        // done at setUp and tearDown
  -        deleteFakeBase();
  -    }
  -
  -    private void deleteFakeBase()
       {
           try
           {
  
  
  

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

Reply via email to