use of org.jumpmind.symmetric.model.Trigger in project symmetric-ds by JumpMind.
the class RouterServiceTest method testNotProducesCommonBatchesMultipleTablesTwoChannelsMultipleRoutersSyncOnIncoming.
@Test
public void testNotProducesCommonBatchesMultipleTablesTwoChannelsMultipleRoutersSyncOnIncoming() {
List<TriggerRouter> triggerRouters = new ArrayList<TriggerRouter>();
Trigger tableTrigger = new Trigger("a", CHANNEL_2_TEST.getChannelId(), true);
triggerRouters.add(new TriggerRouter(tableTrigger, new Router("test", SOURCE_NODE_GROUP, TARGET_NODE_GROUP, "default")));
triggerRouters.add(new TriggerRouter(tableTrigger, new Router("test", TARGET_NODE_GROUP, SOURCE_NODE_GROUP, "default")));
assertTrue(!routerService.producesCommonBatches(CHANNEL_2_TEST, SOURCE_NODE_GROUP, triggerRouters));
}
use of org.jumpmind.symmetric.model.Trigger in project symmetric-ds by JumpMind.
the class RouterServiceTest method testProducesCommonBatchesOneTableOneChannelDefaultRouter.
@Test
public void testProducesCommonBatchesOneTableOneChannelDefaultRouter() {
List<TriggerRouter> triggerRouters = new ArrayList<TriggerRouter>();
triggerRouters.add(new TriggerRouter(new Trigger("a", CHANNEL_2_TEST.getChannelId()), new Router("test", SOURCE_NODE_GROUP, TARGET_NODE_GROUP, "default")));
assertTrue(routerService.producesCommonBatches(CHANNEL_2_TEST, SOURCE_NODE_GROUP, triggerRouters));
}
Aggregations