ianroberts wrote: > >> Hello, >> >> I'm trying to create a JUnit test case for my infamous "DoubleIt" web >> service (http://www.jroller.com/gmazza/date/20080417), and would like to: >> >> (1) create the endpoint, >> (2) make several test SOAP requests against it, and >> (3) close the endpoint. >> >> My test case is below--I want to make sure I'm doing this correctly (it >> seems to work--and correctly returns errors when I intentionally place >> wrong >> values in for the expected results), in particular the setUp() and >> tearDown()--is it really as simple as I have it below? > > Your tests are just making normal Java method calls to the impl object, > they're not going through the web service stack at all. If you really > want to test it properly you'd need to create a client proxy talking to > the same address as the Endpoint.publish, and make your test calls > through that proxy rather than straight to the impl. > > Ian >
Thanks--that's something obvious I should have noticed. Glen -- View this message in context: http://www.nabble.com/Need-code-check----JUnit-test-cases-using-endpoint.publish%28%29-tp18925599p18936726.html Sent from the cxf-user mailing list archive at Nabble.com.
