Author: brett
Date: Wed Dec  7 11:48:14 2011
New Revision: 1211396

URL: http://svn.apache.org/viewvc?rev=1211396&view=rev
Log:
updated IT for contents of ZIP

Modified:
    
incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPandayIT0013WebAppInstallTest.java

Modified: 
incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPandayIT0013WebAppInstallTest.java
URL: 
http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPandayIT0013WebAppInstallTest.java?rev=1211396&r1=1211395&r2=1211396&view=diff
==============================================================================
--- 
incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPandayIT0013WebAppInstallTest.java
 (original)
+++ 
incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPandayIT0013WebAppInstallTest.java
 Wed Dec  7 11:48:14 2011
@@ -24,6 +24,8 @@ import org.apache.maven.it.Verifier;
 import org.apache.maven.it.util.ResourceExtractor;
 
 import java.io.File;
+import java.util.Arrays;
+import java.util.List;
 
 public class NPandayIT0013WebAppInstallTest
     extends AbstractNPandayIntegrationTestCase
@@ -39,8 +41,16 @@ public class NPandayIT0013WebAppInstallT
         File testDir = ResourceExtractor.simpleExtractResources( getClass(), 
"/NPandayIT0013WebAppInstallTest" );
         Verifier verifier = getVerifier( testDir );
         verifier.executeGoal( "install" );
-        verifier.assertFilePresent( new File( testDir, getAssemblyFile( 
"WebAppExample", "1.0.0", "zip" ) ).getAbsolutePath() );
+        File zipFile = new File( testDir, getAssemblyFile( "WebAppExample", 
"1.0.0", "zip" ) );
+        verifier.assertFilePresent( zipFile.getAbsolutePath() );
         verifier.verifyErrorFreeLog();
         verifier.resetStreams();
+
+        List<String> expectedEntries = Arrays.asList( "bin/WebAppExample.dll", 
"Default.aspx", "Web.config" );
+
+        assertZipEntries( zipFile, expectedEntries );
+
+        String assembly = new File( testDir, 
"target/WebAppExample/bin/WebAppExample.dll" ).getCanonicalPath();
+        assertClassPresent( assembly, "_Default" );
     }
 }


Reply via email to