assertNull( generalConfig.getContinuumServerUrl() );
assertNull( generalConfig.getBuildOutputDirectory() );
assertNull( generalConfig.getWorkingDirectory() );
assertNull( generalConfig.getInstallations() );
Installation expectedInstallation = getExpectedInstallation();
List<Installation> installations = new ArrayList<Installation>();
installations.add( expectedInstallation );
LocalRepository expectedLocalRepo = getExpectedLocalRepo();
List<LocalRepository> localRepos = new ArrayList<LocalRepository>();
localRepos.add( expectedLocalRepo );
generalConfig.setContinuumServerUrl( expectedUrl );
generalConfig.setBuildOutputDirectory( expectedBuildOutputDir );
generalConfig.setWorkingDirectory( expectedWorkingDir );
generalConfig.setInstallations( installations );
generalConfig.setLocalRepositories( localRepos );
config.save();
config.reload();
assertTrue( configFile.exists() );
assertEquals( expectedUrl, config.getContinuumBuildAgentConfiguration().getContinuumServerUrl() );
assertEquals( expectedBuildOutputDir, config.getContinuumBuildAgentConfiguration().getBuildOutputDirectory() );
assertEquals( expectedWorkingDir, config.getContinuumBuildAgentConfiguration().getWorkingDirectory() );
assertEquals( 1, config.getContinuumBuildAgentConfiguration().getInstallations().size() );
Installation installation = generalConfig.getInstallations().get( 0 );
assertInstallation( expectedInstallation, installation );
LocalRepository localRepo = generalConfig.getLocalRepositories().get( 0 );
assertLocalRepository( expectedLocalRepo, localRepo );
}