Author: brett
Date: Wed Dec  7 11:59:56 2011
New Revision: 1211399

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

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

Modified: 
incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPANDAY_121_ResGenWithErrorInFileNameTest.java
URL: 
http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPANDAY_121_ResGenWithErrorInFileNameTest.java?rev=1211399&r1=1211398&r2=1211399&view=diff
==============================================================================
--- 
incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPANDAY_121_ResGenWithErrorInFileNameTest.java
 (original)
+++ 
incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPANDAY_121_ResGenWithErrorInFileNameTest.java
 Wed Dec  7 11:59:56 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 NPANDAY_121_ResGenWithErrorInFileNameTest
     extends AbstractNPandayIntegrationTestCase
@@ -36,12 +38,28 @@ public class NPANDAY_121_ResGenWithError
     public void testResGenWithErrorInFileName()
         throws Exception
     {
-        File testDir = ResourceExtractor.simpleExtractResources( getClass(), 
"/NPANDAY_121_ResGenWithErrorInFileNameTest" );
+        File testDir = ResourceExtractor.simpleExtractResources( getClass(),
+                                                                 
"/NPANDAY_121_ResGenWithErrorInFileNameTest" );
         Verifier verifier = getVerifier( testDir );
         verifier.executeGoal( "install" );
-        verifier.assertFilePresent( new File( testDir, "npanday-9903/" +
-            getAssemblyFile( "npanday-9903", "1.0.0", "zip" ) 
).getAbsolutePath() );
+        File zipFile = new File( testDir, "npanday-9903/" + getAssemblyFile( 
"npanday-9903", "1.0.0", "zip" ) );
+        verifier.assertFilePresent( zipFile.getAbsolutePath() );
         verifier.verifyErrorFreeLog();
         verifier.resetStreams();
+
+        List<String> expectedEntries = Arrays.asList( "bin/npanday-9903.dll", 
"Default.aspx", "error.aspx",
+                                                      "error.asp.resx", "My 
Project/Application.myapp",
+                                                      "My 
Project/Resources.resx", "My Project/Settings.settings",
+                                                      "Web.config" );
+
+        assertZipEntries( zipFile, expectedEntries );
+
+        String assembly = new File( testDir, 
"target/npanday-9903/bin/npanday-9903.dll" ).getCanonicalPath();
+        assertResourcePresent( assembly, "Resources.resources" );
+        assertResourcePresent( assembly, "error.asp.resources" );
+        assertClassPresent( assembly, "_Default" );
+        assertClassPresent( assembly, "_error" );
+        assertClassPresent( assembly, "My.MyApplication" );
+        assertClassPresent( assembly, "My.MySettings" );
     }
 }


Reply via email to