You are viewing a plain text version of this content. The canonical link for it is here.
Posted to npanday-commits@incubator.apache.org by br...@apache.org on 2011/12/07 12:16:53 UTC
svn commit: r1211406 -
/incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPANDAY_329_VS2010WcfProjectSupportTest.java
Author: brett
Date: Wed Dec 7 12:16:53 2011
New Revision: 1211406
URL: http://svn.apache.org/viewvc?rev=1211406&view=rev
Log:
update IT for zip contents
Modified:
incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPANDAY_329_VS2010WcfProjectSupportTest.java
Modified: incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPANDAY_329_VS2010WcfProjectSupportTest.java
URL: http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPANDAY_329_VS2010WcfProjectSupportTest.java?rev=1211406&r1=1211405&r2=1211406&view=diff
==============================================================================
--- incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPANDAY_329_VS2010WcfProjectSupportTest.java (original)
+++ incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPANDAY_329_VS2010WcfProjectSupportTest.java Wed Dec 7 12:16:53 2011
@@ -20,6 +20,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_329_VS2010WcfProjectSupportTest
extends AbstractNPandayIntegrationTestCase
@@ -32,13 +34,23 @@ public class NPANDAY_329_VS2010WcfProjec
public void testWCF2010Project()
throws Exception
{
- File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/NPANDAY_329_VS2010WcfProjectSupportTest" );
+ File testDir = ResourceExtractor.simpleExtractResources( getClass(),
+ "/NPANDAY_329_VS2010WcfProjectSupportTest" );
Verifier verifier = getVerifier( testDir );
verifier.executeGoal( "install" );
- String assembly = new File( testDir,
- getAssemblyFile( "WcfService1", "1.0.0", "zip" ) ).getAbsolutePath();
- verifier.assertFilePresent( assembly );
+ File zipFile = new File( testDir, getAssemblyFile( "WcfService1", "1.0.0", "zip" ) );
+ verifier.assertFilePresent( zipFile.getAbsolutePath() );
verifier.verifyErrorFreeLog();
verifier.resetStreams();
+
+ List<String> expectedEntries = Arrays.asList( "bin/WcfService1.dll", "bin/System.Web.DynamicData.dll",
+ "bin/System.Web.Entity.dll",
+ "bin/System.Web.ApplicationServices.dll", "Service1.svc",
+ "Web.config", "Web.Debug.config", "Web.Release.config" );
+
+ assertZipEntries( zipFile, expectedEntries );
+
+ String assembly = new File( testDir, "target/WcfService1/bin/WcfService1.dll" ).getCanonicalPath();
+ assertClassPresent( assembly, "Service1" );
}
}