fix broken tests

This commit is contained in:
Adrian Cole 2011-12-07 09:44:56 -08:00
parent 615de6d2a1
commit 83529d2238
2 changed files with 4 additions and 2 deletions

View File

@ -137,7 +137,7 @@ public class PortForwardingRule implements Comparable<PortForwardingRule> {
@SerializedName("virtualmachinename") @SerializedName("virtualmachinename")
private String virtualMachineName; private String virtualMachineName;
@SerializedName("cidrlist") @SerializedName("cidrlist")
private Set<String> CIDRs; private Set<String> CIDRs = ImmutableSet.of();
@SerializedName("privateendport") @SerializedName("privateendport")
private int privateEndPort; private int privateEndPort;
@SerializedName("publicendport") @SerializedName("publicendport")

View File

@ -49,6 +49,7 @@ public class ListNetworksResponseTest extends BaseSetParserTest<Network> {
.<Network> of(Network .<Network> of(Network
.builder() .builder()
.id(204) .id(204)
.account("adrian")
.name("Virtual Network") .name("Virtual Network")
.displayText( .displayText(
"A dedicated virtualized network for your account. The broadcast domain is contained within a VLAN and all public network access is routed out by a virtual router.") "A dedicated virtualized network for your account. The broadcast domain is contained within a VLAN and all public network access is routed out by a virtual router.")
@ -66,7 +67,8 @@ public class ListNetworksResponseTest extends BaseSetParserTest<Network> {
.broadcastURI(URI.create("vlan://240")) .broadcastURI(URI.create("vlan://240"))
.DNS(ImmutableList.of("8.8.8.8")) .DNS(ImmutableList.of("8.8.8.8"))
.guestIPType(GuestIPType.VIRTUAL) .guestIPType(GuestIPType.VIRTUAL)
.domain("cs3cloud.internal") .domain("ROOT")
.domainId(1)
.isDefault(true) .isDefault(true)
.services( .services(
ImmutableSortedSet.of( ImmutableSortedSet.of(