mirror of https://github.com/apache/jclouds.git
Correct reversed assertEquals arguments
Found via error-prone 2.0.21.
This commit is contained in:
parent
624e4cb6af
commit
d6ca5cb429
|
@ -34,7 +34,7 @@ public class CreateDataCenterRequestBinderTest {
|
|||
|
||||
String actual = binder.createPayload(payload);
|
||||
assertNotNull(actual, "Binder returned null payload");
|
||||
assertEquals(expectedPayload, actual);
|
||||
assertEquals(actual, expectedPayload);
|
||||
}
|
||||
|
||||
private final String expectedPayload
|
||||
|
|
|
@ -33,7 +33,7 @@ public class UpdateDataCenterRequestBinderTest {
|
|||
|
||||
String actual = binder.createPayload(payload);
|
||||
assertNotNull(actual, "Binder returned null payload");
|
||||
assertEquals(expectedPayload, actual);
|
||||
assertEquals(actual, expectedPayload);
|
||||
}
|
||||
|
||||
private final String expectedPayload
|
||||
|
|
|
@ -34,7 +34,7 @@ public class AddRomDriveToServerRequestBinderTest {
|
|||
.build();
|
||||
|
||||
String actual = binder.createPayload(payload);
|
||||
assertEquals(expectedPayload, actual);
|
||||
assertEquals(actual, expectedPayload);
|
||||
}
|
||||
|
||||
private final String expectedPayload
|
||||
|
|
|
@ -47,7 +47,7 @@ public class AddFirewallRuleToNicRequestBinderTest {
|
|||
|
||||
String actual = binder.createPayload(payload);
|
||||
assertNotNull(actual, "Binder returned null payload");
|
||||
assertEquals(expectedPayload, actual);
|
||||
assertEquals(actual, expectedPayload);
|
||||
}
|
||||
|
||||
private final String expectedPayload = (" <ws:addFirewallRulesToNic>\n"
|
||||
|
|
|
@ -50,7 +50,7 @@ public class CreateLoadBalancerRequestBinderTest {
|
|||
.build());
|
||||
|
||||
assertNotNull(actual, "Binder returned null payload");
|
||||
assertEquals(expectedPayload, actual);
|
||||
assertEquals(actual, expectedPayload);
|
||||
}
|
||||
|
||||
private final String expectedPayload
|
||||
|
|
|
@ -35,7 +35,7 @@ public class DeregisterLoadBalancerRequestBinderTest {
|
|||
"load-balancer-id", ImmutableList.of("1", "2")));
|
||||
|
||||
assertNotNull(actual, "Binder returned null payload");
|
||||
assertEquals(expectedPayload, actual);
|
||||
assertEquals(actual, expectedPayload);
|
||||
}
|
||||
|
||||
private final String expectedPayload
|
||||
|
|
|
@ -34,7 +34,7 @@ public class RegisterLoadBalancerRequestBinderTest {
|
|||
"load-balancer-id", ImmutableList.of("1", "2")));
|
||||
|
||||
assertNotNull(actual, "Binder returned null payload");
|
||||
assertEquals(expectedPayload, actual);
|
||||
assertEquals(actual, expectedPayload);
|
||||
}
|
||||
|
||||
private final String expectedPayload
|
||||
|
|
|
@ -46,7 +46,7 @@ public class UpdateLoadBalancerRequestBinderTest {
|
|||
String actual = binder.createPayload(payload);
|
||||
|
||||
assertNotNull(actual, "Binder returned null payload");
|
||||
assertEquals(expectedPayload, actual);
|
||||
assertEquals(actual, expectedPayload);
|
||||
}
|
||||
|
||||
private final String expectedPayload
|
||||
|
|
|
@ -38,7 +38,7 @@ public class CreateNicRequestBinderTest {
|
|||
|
||||
String actual = binder.createPayload(payload);
|
||||
assertNotNull(actual, "Binder returned null payload");
|
||||
assertEquals(expectedPayload, actual);
|
||||
assertEquals(actual, expectedPayload);
|
||||
}
|
||||
|
||||
private final String expectedPayload = ("<ws:createNic>\n"
|
||||
|
|
|
@ -37,7 +37,7 @@ public class SetInternetAccessBinderTest {
|
|||
String actual = binder.createPayload(payload);
|
||||
|
||||
assertNotNull(actual, "Binder returned null payload");
|
||||
assertEquals(expectedPayload, actual);
|
||||
assertEquals(actual, expectedPayload);
|
||||
}
|
||||
|
||||
private final String expectedPayload = (" <ws:setInternetAccess>\n"
|
||||
|
|
|
@ -39,7 +39,7 @@ public class UpdateNicRequestBinderTest {
|
|||
String actual = binder.createPayload(payload);
|
||||
|
||||
assertNotNull(actual, "Binder returned null payload");
|
||||
assertEquals(expectedPayload, actual);
|
||||
assertEquals(actual, expectedPayload);
|
||||
}
|
||||
|
||||
private final String expectedPayload = (" <ws:updateNic>\n"
|
||||
|
|
|
@ -37,7 +37,7 @@ public class CreateSnapshotRequestBinderTest {
|
|||
|
||||
String actual = binder.createPayload(payload);
|
||||
assertNotNull(actual, "Binder returned null payload");
|
||||
assertEquals(expectedPayload, actual);
|
||||
assertEquals(actual, expectedPayload);
|
||||
}
|
||||
|
||||
private final String expectedPayload
|
||||
|
|
|
@ -32,7 +32,7 @@ public class RollbackSnapshotRequestBinderTest {
|
|||
|
||||
String actual = binder.createPayload(payload);
|
||||
assertNotNull(actual, "Binder returned null payload");
|
||||
assertEquals(expectedPayload, actual);
|
||||
assertEquals(actual, expectedPayload);
|
||||
}
|
||||
|
||||
private final String expectedPayload = "<ws:rollbackSnapshot>"
|
||||
|
|
|
@ -48,7 +48,7 @@ public class UpdateSnapshotRequestBinderTest {
|
|||
|
||||
String actual = binder.createPayload(payload);
|
||||
assertNotNull(actual, "Binder returned null payload");
|
||||
assertEquals(expectedPayload, actual);
|
||||
assertEquals(actual, expectedPayload);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ public class ServiceFaultResponseHandlerTest extends BaseResponseHandlerTest<Ser
|
|||
"The requested resource could not be found. Please refer to Request Id : 16370720. [VDC-6-404] The requested resource does not exist or already deleted by the users. ResourceId random-non-existing-id")
|
||||
.requestId(16370720).build()).build();
|
||||
|
||||
assertEquals(expected, actual);
|
||||
assertEquals(actual, expected);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -64,6 +64,6 @@ public class ServiceFaultResponseHandlerTest extends BaseResponseHandlerTest<Ser
|
|||
ServiceFault expected = ServiceFault.builder().faultCode("S:Server").faultString("javax.ejb.EJBException")
|
||||
.build();
|
||||
|
||||
assertEquals(expected, actual);
|
||||
assertEquals(actual, expected);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,6 +48,6 @@ public class DataCenterListResponseHandlerTest extends BaseResponseHandlerTest<L
|
|||
DataCenter.builder().id("aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee").name("JClouds-DC").version(10).state(ProvisioningState.AVAILABLE).build(),
|
||||
DataCenter.builder().id("qqqqqqqq-wwww-rrrr-tttt-yyyyyyyyyyyy").name("Random DC").version(238).state(ProvisioningState.INPROCESS).build()
|
||||
);
|
||||
assertEquals(expected, actual);
|
||||
assertEquals(actual, expected);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ public class FirewallResponseHandlerTest extends BaseResponseHandlerTest<Firewal
|
|||
.rules(firewallRules)
|
||||
.build();
|
||||
|
||||
assertEquals(expected, actual);
|
||||
assertEquals(actual, expected);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ public class ImageInfoResponseHandlerTest extends BaseResponseHandlerTest<Image>
|
|||
.isWriteable(true)
|
||||
.build();
|
||||
|
||||
assertEquals(expected, actual);
|
||||
assertEquals(actual, expected);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -178,6 +178,6 @@ public class ImageListResponseHandlerTest extends BaseResponseHandlerTest<List<I
|
|||
.build()
|
||||
);
|
||||
|
||||
assertEquals(expected, actual);
|
||||
assertEquals(actual, expected);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue