Skip to content
This repository has been archived by the owner on Apr 11, 2018. It is now read-only.

Commit

Permalink
RF-13248: correct welcomeFile for WF/JBAS compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Fryc committed Jan 10, 2014
1 parent 1ff265a commit 7cd6831
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
Expand Up @@ -13,6 +13,7 @@ public class FundamentalTestConfiguration implements DroneConfiguration<Fundamen
private String currentBuildRichfacesVersion = "5.0.0-SNAPSHOT";
private String jsfProvider;
private String jsfImplementation;
private String container;
private String containerHome;
private String containerDistribution;
private String containerConfiguration;
Expand Down Expand Up @@ -64,6 +65,14 @@ public JsfProvider getJsfProvider() {
return JsfProvider.valueOf(jsfProvider.toUpperCase());
}

/**
* Get the name of the container profile as specified by -Dintegration={container} execution
* @return
*/
public String getContainer() {
return container;
}

/**
* Get the Maven dependency (GAV) for the container distribution artifact
*/
Expand Down Expand Up @@ -111,8 +120,12 @@ public String getMavenSettings() {
* Validates the configuration
*/
public void validate() {
if (container == null) {
throw new IllegalArgumentException("The ${integration} configuration needs to be specified");
}

if (servletContainerSetup == null) {
throw new IllegalArgumentException("The servletContainerSetup configuration needs to be specified");
throw new IllegalArgumentException("The ${servletContainerSetup} configuration needs to be specified");
}
}

Expand Down
Expand Up @@ -91,7 +91,6 @@ protected Deployment(Class<?> testClass) {
.addNamespace("xmlns:web", "http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd")
.getOrCreateWelcomeFileList()
.welcomeFile("faces/index.xhtml")
.welcomeFile("index.jsf")
.up()
.getOrCreateContextParam()
.paramName("javax.faces.PROJECT_STAGE")
Expand Down
2 changes: 2 additions & 0 deletions build/build-resources/src/main/resources/arquillian.xml
Expand Up @@ -103,6 +103,8 @@
<!-- GAV of the JSF implementation used for testing in servlet containers -->
<property name="jsfImplementation">${arquillian.richfaces.jsfImplementation}</property>
<!-- the home of the container -->
<property name="container">${integration}</property>
<!-- the home of the container -->
<property name="containerHome">${arquillian.container.home}</property>
<!-- the GAV of container distribution artifact -->
<property name="containerDistribution">${arquillian.container.distribution}</property>
Expand Down

0 comments on commit 7cd6831

Please sign in to comment.