| org.apache.axis2.jaxws.sample.AddNumbersHandlerTests
AddNumbersHandlerTests | public class AddNumbersHandlerTests extends TestCase (Code) | | author: rott |
Inner Class :class AddNumbersHandlerAsyncCallback implements AsyncHandler<AddNumbersHandlerResponse> | |
testAddNumbersClientHandler | public void testAddNumbersClientHandler()(Code) | | testAddNumbersClientHandler performs the same tests as testAddNumbersHandler, except
that two client-side handlers are also inserted into the flow. The inbound AddNumbersClientLogicalHandler
checks that the properties set here in this method (the client app) and the properties set in the
outbound AddNumbersClientProtocolHandler are accessible. These properties are also checked here in
the client app. AddNumbersClientLogicalHandler also subtracts 1 from the sum on the inbound flow.
|
testAddNumbersClientHandlerAsync | public void testAddNumbersClientHandlerAsync()(Code) | | test results should be the same as testAddNumbersClientHandler, except that
AddNumbersClientLogicalHandler2 doubles the first param on outbound. Async, of course.
|
testAddNumbersClientHandlerMyResolver | public void testAddNumbersClientHandlerMyResolver()(Code) | | |
testAddNumbersClientHandlerWithFault | public void testAddNumbersClientHandlerWithFault()(Code) | | |
testAddNumbersClientProtoAndLogicalHandler | public void testAddNumbersClientProtoAndLogicalHandler()(Code) | | |
testAddNumbersHandler | public void testAddNumbersHandler()(Code) | | Client app sends 10, 10 as params to sum. No client-side handlers are configured
for this scenario. The server-side AddNumbersLogicalHandler is instantiated with a
variable "deduction" with value 1. Upon class initialization using PostConstruct
annotation, that internal variable is changed to value 2. The inbound AddNumbersLogicalHandler
subtracts 1 from the first param, then outbound it subtracts 2 from the result sum.
This test accomplishes three things (which also carry over to other tests since they all use
the same endpoint and server-side handlers:
1) PostConstruct annotation honored in the handler framework for handler instantiation
2) AddNumbersLogicalHandler also sets two message context properties, one with APPLICATION
scope, which the endpoint checks.
3) Handlers are sharing properties, both APPLICATION scoped and HANDLER scoped
3) General handler framework functionality; make sure handlers are instantiated and called
|
testAddNumbersHandlerDispatch | public void testAddNumbersHandlerDispatch()(Code) | | |
testAddNumbersHandlerHandlerResolver | public void testAddNumbersHandlerHandlerResolver()(Code) | | |
testAddNumbersHandlerResolver | public void testAddNumbersHandlerResolver()(Code) | | |
testAddNumbersHandlerWithFault | public void testAddNumbersHandlerWithFault()(Code) | | |
testOneWay | public void testOneWay()(Code) | | |
|
|