Skip to content

Instantly share code, notes, and snippets.

@maggandalf
Created December 17, 2013 11:36
Show Gist options
  • Select an option

  • Save maggandalf/8003618 to your computer and use it in GitHub Desktop.

Select an option

Save maggandalf/8003618 to your computer and use it in GitHub Desktop.
@Glues({FlightDetailsSteps.class, ScheduledFlightsSteps.class})
@Features({"com/wakaleo/bddinaction/chapter9/flightstatus/flight_details.feature", "com/wakaleo/bddinaction/chapter9/flightstatus/scheduled_flights.feature"})
@RunWith(ArquillianCucumber.class)
@Cucumber.Options(format = { "pretty", "html:target/cucumber-html-report", "json:target/report.json" })
@RunAsClient
public class FlightStatusFeaturesIT {
private static final String WEBAPP_SRC = "src/main/webapp";
public static final String REST_FLIGHTS_URL = "rest/flights";
@Deployment(testable = false)
public static WebArchive createDeployment() {
return ShrinkWrap
.create(WebArchive.class, "flightstatus.war")
.addPackages(false, "com.wakaleo.bddinaction.chapter9.flightstatus.model",
"com.wakaleo.bddinaction.chapter9.flightstatus.resources",
"com.wakaleo.bddinaction.chapter9.flightstatus.service")
//.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
.setWebXML(new File(WEBAPP_SRC, "WEB-INF/web.xml"))
.addAsWebResource(new File(WEBAPP_SRC, "index.html"))
.addAsLibraries(Maven.resolver().loadPomFromFile("pom.xml").importCompileAndRuntimeDependencies().resolve().withTransitivity().asFile())
;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment