The following test methods fail:
FAILED CONFIGURATION: @BeforeMethod resolveTask
[testng] java.lang.AssertionError: Unexpected response code. expected:<204> but was:<500>
[testng] at org.jboss.seam.example.tasks.test.ResolvedTaskResourceQueryTest$1.onResponse(ResolvedTaskResourceQueryTest.java:69)
[testng] at org.jboss.seam.mock.ResourceRequestEnvironment$ResourceRequest.run(ResourceRequestEnvironment.java:168)
[testng] at org.jboss.seam.example.tasks.test.ResolvedTaskResourceQueryTest.resolveTask(ResolvedTaskResourceQueryTest.java:52)
[testng] ... Removed 28 stack frames
[testng] SKIPPED CONFIGURATION: @BeforeMethod resolveTask
[testng] SKIPPED CONFIGURATION: @BeforeMethod resolveTask
[testng] PASSED: noAuthorizationHeaderTest
[testng] FAILED: getCategoryListTest("application/xml", "<category><name>School</name></category>")
[testng] java.lang.AssertionError: Unexpected response code. expected:<200> but was:<500>
[testng] at org.jboss.seam.example.tasks.test.CategoryResourceTest$1.onResponse(CategoryResourceTest.java:67)
[testng] at org.jboss.seam.mock.ResourceRequestEnvironment$ResourceRequest.run(ResourceRequestEnvironment.java:168)
[testng] at org.jboss.seam.example.tasks.test.CategoryResourceTest.getCategoryListTest(CategoryResourceTest.java:52)
[testng] ... Removed 26 stack frames
[testng] FAILED: getCategoryListTest("application/json", "{"category":{"name":"School"}}")
[testng] java.lang.AssertionError: Unexpected response code. expected:<200> but was:<500>
[testng] at org.jboss.seam.example.tasks.test.CategoryResourceTest$1.onResponse(CategoryResourceTest.java:67)
[testng] at org.jboss.seam.mock.ResourceRequestEnvironment$ResourceRequest.run(ResourceRequestEnvironment.java:168)
[testng] at org.jboss.seam.example.tasks.test.CategoryResourceTest.getCategoryListTest(CategoryResourceTest.java:52)
[testng] ... Removed 26 stack frames
[testng] FAILED: createCategoryTest
[testng] java.lang.AssertionError: Unexpected response code. expected:<201> but was:<500>
[testng] at org.jboss.seam.example.tasks.test.CategoryResourceTest$3.onResponse(CategoryResourceTest.java:120)
[testng] at org.jboss.seam.mock.ResourceRequestEnvironment$ResourceRequest.run(ResourceRequestEnvironment.java:168)
[testng] at org.jboss.seam.example.tasks.test.CategoryResourceTest.createCategoryTest(CategoryResourceTest.java:106)
[testng] ... Removed 26 stack frames
[testng] FAILED: deleteCategoryTest
[testng] java.lang.AssertionError: Unexpected response code. expected:<204> but was:<500>
[testng] at org.jboss.seam.example.tasks.test.CategoryResourceTest$2.onResponse(CategoryResourceTest.java:92)
[testng] at org.jboss.seam.mock.ResourceRequestEnvironment$ResourceRequest.run(ResourceRequestEnvironment.java:168)
[testng] at org.jboss.seam.example.tasks.test.CategoryResourceTest.deleteCategoryTest(CategoryResourceTest.java:77)
[testng] ... Removed 26 stack frames
[testng] FAILED: deleteTaskTest
[testng] java.lang.AssertionError: Unexpected response code. expected:<204> but was:<500>
[testng] at org.jboss.seam.example.tasks.test.TaskResourceTest$4.onResponse(TaskResourceTest.java:138)
[testng] at org.jboss.seam.mock.ResourceRequestEnvironment$ResourceRequest.run(ResourceRequestEnvironment.java:168)
[testng] at org.jboss.seam.example.tasks.test.TaskResourceTest.deleteTaskTest(TaskResourceTest.java:124)
[testng] ... Removed 26 stack frames
[testng] FAILED: createTaskTest
[testng] java.lang.AssertionError: Unexpected response code. expected:<201> but was:<500>
[testng] at org.jboss.seam.example.tasks.test.TaskResourceTest$1.onResponse(TaskResourceTest.java:65)
[testng] at org.jboss.seam.mock.ResourceRequestEnvironment$ResourceRequest.run(ResourceRequestEnvironment.java:168)
[testng] at org.jboss.seam.example.tasks.test.TaskResourceTest.createTaskTest(TaskResourceTest.java:48)
[testng] ... Removed 26 stack frames
[testng] FAILED: editTaskTest
[testng] java.lang.AssertionError: Unexpected response code. expected:<204> but was:<500>
[testng] at org.jboss.seam.example.tasks.test.TaskResourceTest$2.onResponse(TaskResourceTest.java:94)
[testng] at org.jboss.seam.mock.ResourceRequestEnvironment$ResourceRequest.run(ResourceRequestEnvironment.java:168)
[testng] at org.jboss.seam.example.tasks.test.TaskResourceTest.editTaskTest(TaskResourceTest.java:77)
[testng] ... Removed 26 stack frames
[testng] SKIPPED: editTaskTest("application/xml", "<name>Get a haircut</name>")
[testng] SKIPPED: editTaskTest("application/json", ""name":"Get a haircut"")
[testng] SKIPPED: editTaskTest("application/atom+xml", "<atom:title>Get a haircut</atom:title>")
[testng]
[testng] ===============================================
[testng] Tasks
[testng] Tests run: 11, Failures: 7, Skips: 3
[testng] Configuration Failures: 1, Skips: 2
[testng] ===============================================
The whole stacktrace can be seen here: (http://hudson.qa.jboss.com/hudson/view/Seam%20Release/job/seam-eap5-unit-integration-testsuite/jdk=ibm16,label=RHEL5_x86_64/26/consoleFull )
- duplicates
-
JBPAPP-3713 JAX-RS web services executed within an EJB transaction cannot use Seam HTTP authentication
- Closed
-
JBPAPP-3985 Unit test RestBay Security.synchronizationsLookup is failing
- Closed