Author: brett Date: Thu Dec 8 10:51:38 2011 New Revision: 1211819 URL: http://svn.apache.org/viewvc?rev=1211819&view=rev Log: [NPANDAY-465] integration test for disable precompile flag
Added: incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPANDAY_465_AspxDisablePrecompilationTest.java - copied, changed from r1211762, incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPANDAY_96_GlobalAsaxPrecompiledTest.java incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_465_AspxDisablePrecompilationTest/ - copied from r1211762, incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_96_GlobalAsaxPrecompiledTest/ Modified: incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_465_AspxDisablePrecompilationTest/pom.xml Copied: incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPANDAY_465_AspxDisablePrecompilationTest.java (from r1211762, incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPANDAY_96_GlobalAsaxPrecompiledTest.java) URL: http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPANDAY_465_AspxDisablePrecompilationTest.java?p2=incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPANDAY_465_AspxDisablePrecompilationTest.java&p1=incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPANDAY_96_GlobalAsaxPrecompiledTest.java&r1=1211762&r2=1211819&rev=1211819&view=diff ============================================================================== --- incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPANDAY_96_GlobalAsaxPrecompiledTest.java (original) +++ incubator/npanday/npanday-its/trunk/src/test/java/npanday/its/NPANDAY_465_AspxDisablePrecompilationTest.java Thu Dec 8 10:51:38 2011 @@ -23,18 +23,18 @@ import java.io.File; import java.util.Arrays; import java.util.List; -public class NPANDAY_96_GlobalAsaxPrecompiledTest +public class NPANDAY_465_AspxDisablePrecompilationTest extends AbstractNPandayIntegrationTestCase { - public NPANDAY_96_GlobalAsaxPrecompiledTest() + public NPANDAY_465_AspxDisablePrecompilationTest() { - super( "[1.4.0-incubating,)", "[v3.5,)" ); + super( "[1.4.1-incubating,)", "[v3.5,)" ); } - public void testGlobalAsaxPrecompiled() + public void testDisablePrecompilation() throws Exception { - File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/NPANDAY_96_GlobalAsaxPrecompiledTest" ); + File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/NPANDAY_465_AspxDisablePrecompilationTest" ); Verifier verifier = getVerifier( testDir ); verifier.executeGoal( "install" ); File zipFile = new File( testDir, getAssemblyFile( "GlobalASAXExample", "1.0.0", "zip" ) ); @@ -54,5 +54,6 @@ public class NPANDAY_96_GlobalAsaxPrecom String assembly = new File( testDir, "target/GlobalASAXExample/bin/GlobalASAXExample.dll" ).getCanonicalPath(); assertClassPresent( assembly, "_Default" ); + assertClassPresent( assembly, "Global" ); } } Modified: incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_465_AspxDisablePrecompilationTest/pom.xml URL: http://svn.apache.org/viewvc/incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_465_AspxDisablePrecompilationTest/pom.xml?rev=1211819&r1=1211762&r2=1211819&view=diff ============================================================================== --- incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_465_AspxDisablePrecompilationTest/pom.xml (original) +++ incubator/npanday/npanday-its/trunk/src/test/resources/NPANDAY_465_AspxDisablePrecompilationTest/pom.xml Thu Dec 8 10:51:38 2011 @@ -6,11 +6,11 @@ <version>1-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> - <groupId>NPanday.ITs.GlobalASAXExample</groupId> + <groupId>NPanday.ITs.NPANDAY465</groupId> <artifactId>GlobalASAXExample</artifactId> <version>1.0-SNAPSHOT</version> <packaging>asp</packaging> - <name>NPanday.ITs.GlobalASAXExample : GlobalASAXExample</name> + <name>NPanday.ITs.NPANDAY465 : GlobalASAXExample</name> <build> <sourceDirectory>.</sourceDirectory> <plugins> @@ -29,6 +29,13 @@ <outputDirectory>bin</outputDirectory> </configuration> </plugin> + <plugin> + <groupId>org.apache.npanday.plugins</groupId> + <artifactId>maven-aspx-plugin</artifactId> + <configuration> + <precompile>false</precompile> + </configuration> + </plugin> </plugins> </build> </project>