mockForSingleQPInsert(uuid, date);
underTest.create(dbSession, definedQProfile, organization, activeRuleChanges);
+ dbSession.commit();
QualityProfileDto dto = getPersistedQP(organization, FOO_LANGUAGE, "foo1");
assertThat(dto.getId()).isNotNull();
mockForSingleQPInsert();
underTest.create(dbSession, definedQProfile, organization, activeRuleChanges);
+ dbSession.commit();
assertThat(getPersistedQP(organization, FOO_LANGUAGE, "foo1").isDefault()).isTrue();
assertThat(activeRuleChanges).isEmpty();
.setOrganizationUuid(organization.getUuid()));
underTest.create(dbSession, definedQProfile, organization, activeRuleChanges);
+ dbSession.commit();
QualityProfileDto dto = getPersistedQP(organization, FOO_LANGUAGE, "foo1");
assertThat(dto.getId()).isNotEqualTo(existing.getId());
mockForSingleQPInsert();
underTest.create(dbSession, definedQProfile, organization, activeRuleChanges);
+ dbSession.commit();
assertThat(callLogs)
.hasSize(5);
mockForSingleQPInsert();
underTest.create(dbSession, definedQProfile, organization, activeRuleChanges);
+ dbSession.commit();
assertThat(callLogs)
.hasSize(1);
mockForSingleQPInsert();
underTest.create(dbSession, definedQProfile, organization, activeRuleChanges);
+ dbSession.commit();
assertThat(callLogs)
.extracting(CallLog::getRuleActivation)
mockForSingleQPInsert();
underTest.create(dbSession, definedQProfile, organization, activeRuleChanges);
+ dbSession.commit();
Set<Map.Entry<String, String>> parameters = callLogs.get(0).getRuleActivation().getParameters().entrySet();
assertThat(parameters)