use of com.adaptris.core.stubs.TestBranchingService in project interlok by adaptris.
the class BranchingServiceCollectionTest method setUp.
@Before
public void setUp() throws Exception {
branchService = new TestBranchingService();
branchService.setUniqueId(FIRST_SERVICE_ID);
lowService = new AddMetadataService();
lowService.setUniqueId(BRANCH_LOW);
lowService.addMetadataElement("service-id", BRANCH_LOW);
highService = new AddMetadataService();
highService.setUniqueId(BRANCH_HIGH);
highService.addMetadataElement("service-id", BRANCH_HIGH);
openMocks = MockitoAnnotations.openMocks(this);
}
use of com.adaptris.core.stubs.TestBranchingService in project interlok by adaptris.
the class BranchingServiceEnablerTest method testService_WrapBranching.
@Test
public void testService_WrapBranching() throws Exception {
AdaptrisMessage msg = AdaptrisMessageFactory.getDefaultInstance().newMessage("ABC");
BranchingServiceEnabler s = wrap(new TestBranchingService());
execute(s, msg);
assertEquals("001", msg.getNextServiceId());
}
Aggregations