@Test public void shouldCreateBuildConfigurationWithNameOfArchivedConfiguration() { String name = randomAlphabetic(10); BuildConfiguration archived = createValidBuildConfiguration(name); archived.setArchived(true); repository.save(archived); repository.save(createValidBuildConfiguration(name)); }
@Test public void shouldCreateBuildConfigurationWithTwoArchivedWithTheSameName() { String name = randomAlphabetic(10); BuildConfiguration config1 = createValidBuildConfiguration(name); BuildConfiguration config2 = createValidBuildConfiguration(name); config1.setArchived(true); repository.save(config1); config2.setArchived(true); repository.save(config2); repository.save(createValidBuildConfiguration(name)); }