@Test public void snapshotRepositoriesDisabled() { SystemProperties.doWithSystemProperties( new Runnable() { @Override public void run() { List<RepositoryConfiguration> repositoryConfiguration = RepositoryConfigurationFactory.createDefaultRepositoryConfiguration(); assertRepositoryConfiguration(repositoryConfiguration, "central", "local"); } }, "user.home:src/test/resources/maven-settings/basic", "disableSpringSnapshotRepos:true"); }
@Test public void activeByDefaultProfileRepositories() { SystemProperties.doWithSystemProperties( new Runnable() { @Override public void run() { List<RepositoryConfiguration> repositoryConfiguration = RepositoryConfigurationFactory.createDefaultRepositoryConfiguration(); assertRepositoryConfiguration( repositoryConfiguration, "central", "local", "spring-snapshot", "spring-milestone", "active-by-default"); } }, "user.home:src/test/resources/maven-settings/active-profile-repositories"); }