@Test public void should_build_archive() { GradleBuildAutomaticDeployment gradle = new GradleBuildAutomaticDeployment(); Archive<?> archive = gradle.build(new TestClass(TestCaseClass.class)); assertThat(archive.contains("/WEB-INF/classes/org/arquillian/example/helloworld/GreetingService.class")) .isTrue(); }
@Override protected Archive<?> build(TestClass testClass) { if (testClass.isAnnotationPresent(GradleBuild.class)) { final GradleBuild gradleBuildDeployment = testClass.getAnnotation(GradleBuild.class); return runBuild(gradleBuildDeployment); } return null; }
GradleBuildAutomaticDeployment extends AbstractAutomaticDeployment { @Override protected Archive<?> build(TestClass testClass) { if (testClass.isAnnotationPresent(GradleBuild.class)) { final GradleBuild gradleBuildDeployment = testClass.getAnnotation(GradleBuild.class); return runBuild(gradleBuildDeployment); } return null; } }
GradleBuildAutomaticDeployment extends AbstractAutomaticDeployment { @Override protected Archive<?> build(TestClass testClass) { if (testClass.isAnnotationPresent(GradleBuild.class)) { final GradleBuild gradleBuildDeployment = testClass.getAnnotation(GradleBuild.class); return runBuild(gradleBuildDeployment); } return null; }  }
GradleBuildAutomaticDeployment extends AbstractAutomaticDeployment { @Override protected Archive<?> build(TestClass testClass) { if (testClass.isAnnotationPresent(GradleBuild.class)) { final GradleBuild gradleBuildDeployment = testClass.getAnnotation(GradleBuild.class); return runBuild(gradleBuildDeployment); } return null; }   }
GradleBuildAutomaticDeployment extends AbstractAutomaticDeployment { @Override protected Archive<?> build(TestClass testClass) { if (testClass.isAnnotationPresent(GradleBuild.class)) { final GradleBuild gradleBuildDeployment = testClass.getAnnotation(GradleBuild.class); return runBuild(gradleBuildDeployment); } return null; }    }