78798081828384
MeasureFilterDto filterDto = registration.register("Fake", filterTemplate.createFilter()); assertThat(filterDto).isNotNull(); verify(filterDao).insert(filterDto); verify(loadedTemplateDao).insert(eq(new LoadedTemplateDto("Fake", LoadedTemplateDto.FILTER_TYPE))); }
89909192939495
MeasureFilterDto filterDto = registration.register("Fake", null); assertThat(filterDto).isNull(); verify(filterDao, never()).insert(filterDto); verify(loadedTemplateDao).insert(eq(new LoadedTemplateDto("Fake", LoadedTemplateDto.FILTER_TYPE))); }
141142143144145146147148
} ruleActivator.activate(session, activation, name); } } LoadedTemplateDto template = new LoadedTemplateDto(templateKey(name), LoadedTemplateDto.QUALITY_PROFILE_TYPE); dbClient.loadedTemplateDao().insert(template, session); }