@Deployment 어노테이션이 추가된 메서드의 잘못된 시그니처를 보고합니다.
Arquillian 문서에 따르면 Arquillian 테스트 클래스는 @Deployment 어노테이션이 추가된 특정 시그니처를 가진 public static 메서드를 사용해 배포 아카이브를 정의해야 합니다.
예:
// 이 테스트 케이스는 Arquillian에 의해 시작될 수 없습니다. Deployment 메서드가 static이 아닙니다
@RunWith(Arquillian.class)
public class SomeTest {
@Deployment
public JavaArchive createDeployment() {
throw new UnsupportedOperationException("Implement me");
}
@Test
public void testSomething() {
Assert.fail("To be implemented");
}
}
빠른 수정 적용 후:
@RunWith(Arquillian.class)
public class SomeTest {
@Deployment
public static JavaArchive createDeployment() {
throw new UnsupportedOperationException("Implement me");
}
@Test
public void testSomething() {
Assert.fail("To be implemented");
}
}