// Path: my-aktion/src/test/java/de/dpunkt/myaktion/test/pages/LoginPage.java
// @Location("login.jsf")
// public class LoginPage extends AbstractPage {
//     @FindBy(xpath = "//input[@name='j_username']")
//     private WebElement email;
// 
//     @FindBy(xpath = "//input[@name='j_password']")
//     private WebElement password;
// 
//     @FindBy(xpath = "//input[@type='submit']")
//     private WebElement loginLink;
// 
//     public void doLogin(final String email, final String password) {
//         this.email.sendKeys(email);
//         this.password.sendKeys(password);
//         guardHttp(loginLink).click();
//     }
// 
// }


import de.dpunkt.myaktion.test.pages.LoginPage;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.graphene.Graphene;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.importer.ZipImporter;
import org.jboss.shrinkwrap.api.spec.WebArchive;
import java.io.File;
package de.dpunkt.myaktion.test;



public abstract class AbstractITCase {

    @Deployment(testable = false)
    public static WebArchive createDeployment() {
        WebArchive archive = ShrinkWrap.create(ZipImporter.class, "test.war").importFrom(new File("target/my-aktion.war"))
                .as(WebArchive.class);
// Path: my-aktion/src/test/java/de/dpunkt/myaktion/test/pages/LoginPage.java
// @Location("login.jsf")
// public class LoginPage extends AbstractPage {
//     @FindBy(xpath = "//input[@name='j_username']")
//     private WebElement email;
// 
//     @FindBy(xpath = "//input[@name='j_password']")
//     private WebElement password;
// 
//     @FindBy(xpath = "//input[@type='submit']")
//     private WebElement loginLink;
// 
//     public void doLogin(final String email, final String password) {
//         this.email.sendKeys(email);
//         this.password.sendKeys(password);
//         guardHttp(loginLink).click();
//     }
// 
// }


// Path: my-aktion/src/test/java/de/dpunkt/myaktion/test/AbstractITCase.java
import de.dpunkt.myaktion.test.pages.LoginPage;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.graphene.Graphene;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.importer.ZipImporter;
import org.jboss.shrinkwrap.api.spec.WebArchive;
import java.io.File;

package de.dpunkt.myaktion.test;



public abstract class AbstractITCase {

    @Deployment(testable = false)
    public static WebArchive createDeployment() {
        WebArchive archive = ShrinkWrap.create(ZipImporter.class, "test.war").importFrom(new File("target/my-aktion.war"))
                .as(WebArchive.class);
        archive.delete("/WEB-INF/classes/META-INF/persistence.xml");