Permalink
Browse files

Fixed Cargo WAR tests to create container config under target/

Original implementation created configuration config under
System.getProperty("java.io.tmpdir"), this unnecessary complicated
finding container configuration and logs during test failure
debugging.

Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
  • Loading branch information...
1 parent a55a0f9 commit 2da30377b45762839f5a46f2e47eb80d6e8ef16e @ifedorenko ifedorenko committed Jan 6, 2013
@@ -97,11 +97,14 @@ public void setUp()
WAR war = new WAR( getWarFile().getAbsolutePath() );
war.setContext( "nexus" );
+
+ File configHome = new File( "target/conatiner-configs", getContainer() ).getAbsoluteFile();
ConfigurationFactory configurationFactory = new DefaultConfigurationFactory();
LocalConfiguration configuration =
(LocalConfiguration) configurationFactory.createConfiguration( getContainer(), ContainerType.INSTALLED,
- ConfigurationType.STANDALONE );
+ ConfigurationType.STANDALONE,
+ configHome.getAbsolutePath() );
configuration.addDeployable( war );
configuration.setProperty( ServletPropertySet.PORT, TestProperties.getString( "nexus.application.port" ) );
container =

0 comments on commit 2da3037

Please sign in to comment.