ReactiveTriggerFactory { public static ReactiveTrigger afterUpdate(String triggerTable, List<String> tableColumns) { return createTrigger(triggerTable, UPDATE, AFTER, tableColumns); }  static ReactiveTrigger afterInsert(String triggerTable, List<String> tableColumns); static ReactiveTrigger afterUpdate(String triggerTable, List<String> tableColumns); static ReactiveTrigger afterDelete(String triggerTable, List<String> tableColumns);  }
@Test(groups = SMALL) public void testCanBuildAfterUpdateTrigger() { ReactiveTrigger reactiveTrigger = ReactiveTriggerFactory.afterUpdate(TRIGGER_TABLE, TABLE_COLS); assertNotNull(reactiveTrigger); assertEquals(reactiveTrigger.getTriggerEvent(), UPDATE); assertEquals(reactiveTrigger.getTriggerTime(), AFTER); assertEquals(reactiveTrigger.getTriggerTable(), TRIGGER_TABLE); assertEquals(reactiveTrigger.getTableColumns(), TABLE_COLS); assertEquals(reactiveTrigger.getTriggerName(), String.format(TRIGGER_NAME_TEMPLATE, AFTER, UPDATE, TRIGGER_TABLE)); }