From 90826ef135565dd7a8bafe9b84eeaf4210d656fa Mon Sep 17 00:00:00 2001 From: danikov Date: Mon, 13 Feb 2012 14:10:03 +0000 Subject: [PATCH] add metadata to the expect test --- .../director/v1_5/features/NetworkClientExpectTest.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/labs/vcloud-director/src/test/java/org/jclouds/vcloud/director/v1_5/features/NetworkClientExpectTest.java b/labs/vcloud-director/src/test/java/org/jclouds/vcloud/director/v1_5/features/NetworkClientExpectTest.java index 46e887a551..0b6a2a1c02 100644 --- a/labs/vcloud-director/src/test/java/org/jclouds/vcloud/director/v1_5/features/NetworkClientExpectTest.java +++ b/labs/vcloud-director/src/test/java/org/jclouds/vcloud/director/v1_5/features/NetworkClientExpectTest.java @@ -41,6 +41,8 @@ import org.jclouds.vcloud.director.v1_5.domain.SyslogServerSettings; import org.jclouds.vcloud.director.v1_5.internal.BaseVCloudDirectorRestClientExpectTest; import org.testng.annotations.Test; +import com.google.common.collect.ImmutableSet; + /** * Allows us to test a client via its side effects. * @@ -157,6 +159,7 @@ public class NetworkClientExpectTest extends BaseVCloudDirectorRestClientExpectT .type("application/vnd.vmware.vcloud.network+xml") .href(URI.create("https://vcloudbeta.bluelock.com/api/network/55a677cf-ab3f-48ae-b880-fab90421980c")) .build()) + .metadata(ImmutableSet.of(MetadataEntry.builder().entry("key", "value").build())) .build(); Reference networkRef = Reference.builder().href(networkUri).build(); @@ -173,7 +176,7 @@ public class NetworkClientExpectTest extends BaseVCloudDirectorRestClientExpectT getStandardPayloadResponse("/network/metadataEntry.xml", VCloudDirectorMediaType.METADATA_ENTRY)); MetadataEntry expected = MetadataEntry.builder() - .key("KEY") + .entry("key", "value") .build(); Reference networkRef = Reference.builder().href(networkUri).build();