org.apache.maven.shared.utils
Class ExpandTest

java.lang.Object
  extended by org.junit.Assert
      extended by org.apache.maven.shared.utils.ExpandTest

public class ExpandTest
extends Assert

This will test the plexus utility class Expand. Most of this stuff will be obsolete because java-1.4.2 introduced a java.util.zip package which works like a charm. We of course need to implement this class due to compatibility reasons.

Author:
Mark Struberg

Field Summary
 org.junit.rules.TemporaryFolder tempFolder
           
 
Constructor Summary
ExpandTest()
           
 
Method Summary
 void testExecute_NullDest()
           
 void testExecute_NullSource()
           
 void testExecute_Overwrite()
           
 void testExecute()
           
 void testExecuteIntoNonexistingDirectory()
           
 void testExecuteNonexistingSource()
           
 void testSetDest_No_NPE()
           
 void testSetSrc_No_NPE()
           
 
Methods inherited from class org.junit.Assert
assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tempFolder

public org.junit.rules.TemporaryFolder tempFolder
Constructor Detail

ExpandTest

public ExpandTest()
Method Detail

testSetDest_No_NPE

public void testSetDest_No_NPE()

testSetSrc_No_NPE

public void testSetSrc_No_NPE()

testExecute

public void testExecute()
                 throws Exception
Throws:
Exception

testExecuteIntoNonexistingDirectory

public void testExecuteIntoNonexistingDirectory()
                                         throws Exception
Throws:
Exception

testExecuteNonexistingSource

public void testExecuteNonexistingSource()
                                  throws Exception
Throws:
Exception

testExecute_NullSource

public void testExecute_NullSource()
                            throws Exception
Throws:
Exception

testExecute_NullDest

public void testExecute_NullDest()
                          throws Exception
Throws:
Exception

testExecute_Overwrite

public void testExecute_Overwrite()
                           throws Exception
Throws:
Exception


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.