You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by an...@apache.org on 2014/03/20 02:49:04 UTC
git commit: Fixing CloudSigma tests failing on Java 8
Repository: jclouds-labs
Updated Branches:
refs/heads/fix-cloudsigma-tests-java-8 [created] 47229f4b3
Fixing CloudSigma tests failing on Java 8
Using a map type in the test setup that has a deterministic iteration order
Project: http://git-wip-us.apache.org/repos/asf/jclouds-labs/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds-labs/commit/47229f4b
Tree: http://git-wip-us.apache.org/repos/asf/jclouds-labs/tree/47229f4b
Diff: http://git-wip-us.apache.org/repos/asf/jclouds-labs/diff/47229f4b
Branch: refs/heads/fix-cloudsigma-tests-java-8
Commit: 47229f4b3a3ef1e653a9c428e27a953ea5ba3e54
Parents: b98e6b4
Author: Andrew Phillips <an...@apache.org>
Authored: Wed Mar 19 21:47:52 2014 -0400
Committer: Andrew Phillips <an...@apache.org>
Committed: Wed Mar 19 21:47:52 2014 -0400
----------------------------------------------------------------------
.../org/jclouds/cloudsigma2/CloudSigma2ApiExpectTest.java | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/47229f4b/cloudsigma2/src/test/java/org/jclouds/cloudsigma2/CloudSigma2ApiExpectTest.java
----------------------------------------------------------------------
diff --git a/cloudsigma2/src/test/java/org/jclouds/cloudsigma2/CloudSigma2ApiExpectTest.java b/cloudsigma2/src/test/java/org/jclouds/cloudsigma2/CloudSigma2ApiExpectTest.java
index b2ed4e5..8d268e3 100644
--- a/cloudsigma2/src/test/java/org/jclouds/cloudsigma2/CloudSigma2ApiExpectTest.java
+++ b/cloudsigma2/src/test/java/org/jclouds/cloudsigma2/CloudSigma2ApiExpectTest.java
@@ -1093,10 +1093,11 @@ public class CloudSigma2ApiExpectTest extends BaseRestApiExpectTest<CloudSigma2A
@Test
public void testEditVLAN() throws Exception {
String uuid = "96537817-f4b6-496b-a861-e74192d3ccb0";
- Map<String, String> meta = Maps.newHashMap();
+ // test depends on the order of the meta tags
+ Map<String, String> meta = Maps.newLinkedHashMap();
+ meta.put("test_key_2", "test_value_2");
meta.put("description", "test vlan");
meta.put("test_key_1", "test_value_1");
- meta.put("test_key_2", "test_value_2");
CloudSigma2Api api = requestSendsResponse(
putBuilder()
@@ -1209,10 +1210,11 @@ public class CloudSigma2ApiExpectTest extends BaseRestApiExpectTest<CloudSigma2A
@Test
public void testEditIP() throws Exception {
String uuid = "96537817-f4b6-496b-a861-e74192d3ccb0";
- Map<String, String> meta = Maps.newHashMap();
+ // test depends on the order of the meta tags
+ Map<String, String> meta = Maps.newLinkedHashMap();
+ meta.put("test_key_2", "test_value_2");
meta.put("description", "test vlan");
meta.put("test_key_1", "test_value_1");
- meta.put("test_key_2", "test_value_2");
CloudSigma2Api api = requestSendsResponse(
putBuilder()