@Test public void shouldCountByTypeAndKey() { setupData("shouldCountByTypeAndKey"); assertThat(dao.countByTypeAndKey("DASHBOARD", "HOTSPOTS"), is(1)); assertThat(dao.countByTypeAndKey("DASHBOARD", "UNKNOWN"), is(0)); assertThat(dao.countByTypeAndKey("PROFILE", "HOTSPOTS"), is(0)); }
@Test public void shouldInsert() { setupData("shouldInsert"); LoadedTemplateDto template = new LoadedTemplateDto("SQALE", "DASHBOARD"); dao.insert(template); checkTables("shouldInsert", "loaded_templates"); }