throws Exception
{
// Setting up test data
testLocalRepository1 = createTestLocalRepository( "name1", "location1", "layout1" );
LocalRepository localRepository1 = createTestLocalRepository( testLocalRepository1 );
if ( addToStore )
{
localRepository1 = localRepositoryDao.addLocalRepository( localRepository1 );
testLocalRepository1.setId( localRepository1.getId() );
}
else
{
localRepository1.setId( 1 );
testLocalRepository1.setId( 1 );
}
testLocalRepository2 = createTestLocalRepository( "name2", "location2", "layout2" );
LocalRepository localRepository2 = createTestLocalRepository( testLocalRepository2 );
if ( addToStore )
{
localRepository2 = localRepositoryDao.addLocalRepository( localRepository2 );
testLocalRepository2.setId( localRepository2.getId() );
}
else
{
localRepository2.setId( 2 );
testLocalRepository2.setId( 2 );
}
testLocalRepository3 = createTestLocalRepository( "name3", "location3", "layout3" );
LocalRepository localRepository3 = createTestLocalRepository( testLocalRepository3 );
if ( addToStore )
{
localRepository3 = localRepositoryDao.addLocalRepository( localRepository3 );
testLocalRepository3.setId( localRepository3.getId() );
}
else
{
localRepository3.setId( 3 );
testLocalRepository3.setId( 3 );
}
testBuildQueue1 = createTestBuildQueue( "build queue 1" );