add metadata to the expect test

This commit is contained in:
danikov 2012-02-13 14:10:03 +00:00
parent 09fa69cc5e
commit 90826ef135
1 changed files with 4 additions and 1 deletions

View File

@ -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();