return backup.backupProfile(profile);
}
- public boolean isDeletable(QProfile profile) {
- return profileLookup.isDeletable(profile);
- }
-
public void deleteProfile(int profileId) {
operations.deleteProfile(profileId, UserSession.get());
}
verify(qualityProfileDao, never()).update(any(QualityProfileDto.class));
}
- @Test
- public void is_deletable() throws Exception {
- qProfiles.isDeletable(new QProfile());
- verify(profileLookup).isDeletable(any(QProfile.class));
- }
-
@Test
public void delete_profile() throws Exception {
qProfiles.deleteProfile(1);