コード例 #1
0
 @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");
 }
コード例 #2
0
 @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");
 }