tag:blogger.com,1999:blog-6978368526355160507.post2445820813753939823..comments2014-03-04T04:09:51.395+01:00Comments on MJL Online: Writing lightweight REST integration tests with the Jersey Test FrameworkAnonymoushttp://www.blogger.com/profile/11184753518724068363noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-6978368526355160507.post-72386637202603998252014-03-04T04:09:51.395+01:002014-03-04T04:09:51.395+01:00Thanks for the thorough introduction to JerseyTest...Thanks for the thorough introduction to JerseyTest!<br /><br />There are two problems with the code (probably got cut while editing HTML or something):<br />1. return WebAppDescriptor.Builder(<br />2. The last part of the following line:<br />ClientResponse response = resource().path("todo/"+test-todo")alfasinhttps://www.blogger.com/profile/00739299324489361159noreply@blogger.comtag:blogger.com,1999:blog-6978368526355160507.post-16189520248936505542014-01-19T20:12:34.939+01:002014-01-19T20:12:34.939+01:00The tests are simple JUnit4 Tests. If you execute ...The tests are simple JUnit4 Tests. If you execute the tests with the JUnit Test Runner, all Tests will be placed in one "test suite". Anonymoushttps://www.blogger.com/profile/11184753518724068363noreply@blogger.comtag:blogger.com,1999:blog-6978368526355160507.post-59838087581143229712014-01-17T10:36:56.087+01:002014-01-17T10:36:56.087+01:00I want to ask you, where exactly you defined, that...I want to ask you, where exactly you defined, that all JerseyTest run per Suit. Thank youAnonymoushttps://www.blogger.com/profile/06566462630487707001noreply@blogger.comtag:blogger.com,1999:blog-6978368526355160507.post-42298073272319214322013-11-24T14:54:34.318+01:002013-11-24T14:54:34.318+01:00Hi Allen,
I'm glad, that the post was helpful....Hi Allen,<br />I'm glad, that the post was helpful. If you are interested in the topic of In-Container-Integration-Testing, you should take a look at the Spring TestContext Framework and the @WebAppConfiguration annotation. The approach there is much cleaner than the Jersey Test Framework. But unfortunately only for Spring-Web applications and not for JAX-RS.<br /><br />Greetings,<br />MichaelAnonymoushttps://www.blogger.com/profile/11184753518724068363noreply@blogger.comtag:blogger.com,1999:blog-6978368526355160507.post-74969703265078112462013-11-17T20:00:21.398+01:002013-11-17T20:00:21.398+01:00Thank you.
This is the most straight-forward and ...Thank you.<br /><br />This is the most straight-forward and complete description I've seen on injecting dependencies into a jersey test container. FWIW, I used it to inject a mock HttpServletContext into my resource, and so, avoid using the grizzly container. A slight abuse of your approach, but perfect for my needs.<br /><br />Thanks again, for taking the time!Allen Georgehttps://www.blogger.com/profile/01313028189977750181noreply@blogger.com