NetBeans を使用して Restfuse テストを実行しようとしています。
NetBeans は次の Maven コマンドを使用して、Restfuse テストを実行しています。
mvn -Dtest=com.mycompany.RequestTest -DfailIfNoTests=false test-compile surefire:test
ただし、HttpTest メソッドは呼び出されませんでした。
@RunWith(HttpJUnitRunner.class)
public class RequestTest {
@Rule
public Destination destination;
@Context
private Response response;
public MatchRequestTest() throws UnknownHostException {
this.destination = getDestination();
this.callbackHost = InetAddress.getLocalHost().getHostAddress();
}
@HttpTest(method = Method.GET, path = "/request")
public void matchRequest() {
assertOk(response);
}
}