@Test(groups = SMALL) public void testGenerateDropTriggerCreatesTheCorrectQuery() { String query = PsqlQueryGenerator.generateDropTriggerQuery("trigger_name", "table_name"); String expected = String.format( "DROP TRIGGER IF EXISTS %s ON %s", "trigger_name", "table_name"); assertEquals(query, expected); }
static String generateDropTriggerQuery(String triggerName, String tableName) { return format(DROP_TRIGGER_TMPLT, triggerName, tableName); }
PsqlQueryGenerator { static String generateDropTriggerQuery(String triggerName, String tableName) { return format(DROP_TRIGGER_TMPLT, triggerName, tableName); } }
PsqlQueryGenerator { static String generateDropTriggerQuery(String triggerName, String tableName) { return format(DROP_TRIGGER_TMPLT, triggerName, tableName); }  }
PsqlQueryGenerator { static String generateDropTriggerQuery(String triggerName, String tableName) { return format(DROP_TRIGGER_TMPLT, triggerName, tableName); }   }
PsqlQueryGenerator { static String generateDropTriggerQuery(String triggerName, String tableName) { return format(DROP_TRIGGER_TMPLT, triggerName, tableName); }    }