javaee7-samples icon indicating copy to clipboard operation
javaee7-samples copied to clipboard

JAX-RS Declarative Security tests are failing

Open bartoszmajsak opened this issue 10 years ago • 0 comments

Running with the default profile mvn clean package results with

testGetSubResourceWithCorrectCredentials(org.javaee7.jaxrs.security.declarative.MyResourceTest)  Time elapsed: 0.415 sec  <<< FAILURE!
java.lang.AssertionError: Basic authentication required: {realm="file"}
    at org.junit.Assert.fail(Assert.java:88)
    at org.javaee7.jaxrs.security.declarative.MyResourceTest.testGetSubResourceWithCorrectCredentials(MyResourceTest.java:70)

testGetWithCorrectCredentials(org.javaee7.jaxrs.security.declarative.MyResourceTest)  Time elapsed: 0.054 sec  <<< FAILURE!
java.lang.AssertionError: Basic authentication required: {realm="file"}
    at org.junit.Assert.fail(Assert.java:88)
    at org.javaee7.jaxrs.security.declarative.MyResourceTest.testGetWithCorrectCredentials(MyResourceTest.java:55)


Results :

Failed tests: 
  MyResourceTest.testGetSubResourceWithCorrectCredentials:70 Basic authentication required: {realm="file"}
  MyResourceTest.testGetWithCorrectCredentials:55 Basic authentication required: {realm="file"}

If the test required some special setup which cannot be automated as a part of a build it should at least be documented in the module's README.

bartoszmajsak avatar Aug 12 '14 12:08 bartoszmajsak