fixed test bug

This commit is contained in:
Adrian Cole 2012-02-15 12:30:18 +01:00
parent 27a94fc490
commit 44db3e0d57
1 changed files with 3 additions and 0 deletions

View File

@ -824,6 +824,7 @@ public class TemplateBuilderImplTest {
.ids("Ubuntu 11.04 x64") .ids("Ubuntu 11.04 x64")
.name("Ubuntu 11.04 x64") .name("Ubuntu 11.04 x64")
.description("Ubuntu 11.04 x64") .description("Ubuntu 11.04 x64")
.location(defaultLocation)
.operatingSystem( .operatingSystem(
OperatingSystem.builder().name("Ubuntu 11.04 x64").description("Ubuntu 11.04 x64") OperatingSystem.builder().name("Ubuntu 11.04 x64").description("Ubuntu 11.04 x64")
.is64Bit(true).version("11.04").family(OsFamily.UBUNTU).build()).build(), .is64Bit(true).version("11.04").family(OsFamily.UBUNTU).build()).build(),
@ -831,6 +832,7 @@ public class TemplateBuilderImplTest {
.ids("Ubuntu 11.04 64-bit") .ids("Ubuntu 11.04 64-bit")
.name("Ubuntu 11.04 64-bit") .name("Ubuntu 11.04 64-bit")
.description("Ubuntu 11.04 64-bit") .description("Ubuntu 11.04 64-bit")
.location(defaultLocation)
.operatingSystem( .operatingSystem(
OperatingSystem.builder().name("Ubuntu 11.04 64-bit").description("Ubuntu 11.04 64-bit") OperatingSystem.builder().name("Ubuntu 11.04 64-bit").description("Ubuntu 11.04 64-bit")
.is64Bit(true).version("11.04").family(OsFamily.UBUNTU).build()).build())); .is64Bit(true).version("11.04").family(OsFamily.UBUNTU).build()).build()));
@ -868,6 +870,7 @@ public class TemplateBuilderImplTest {
} }
}; };
expect(defaultLocation.getId()).andReturn("region").anyTimes();
replay(defaultLocation); replay(defaultLocation);