Correct reversed assertEquals arguments

Found via error-prone 2.0.21.
This commit is contained in:
Andrew Gaul 2017-07-04 11:14:16 -07:00
parent 624e4cb6af
commit d6ca5cb429
19 changed files with 20 additions and 20 deletions

View File

@ -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

View File

@ -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

View File

@ -34,7 +34,7 @@ public class AddRomDriveToServerRequestBinderTest {
.build();
String actual = binder.createPayload(payload);
assertEquals(expectedPayload, actual);
assertEquals(actual, expectedPayload);
}
private final String expectedPayload

View File

@ -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"

View File

@ -50,7 +50,7 @@ public class CreateLoadBalancerRequestBinderTest {
.build());
assertNotNull(actual, "Binder returned null payload");
assertEquals(expectedPayload, actual);
assertEquals(actual, expectedPayload);
}
private final String expectedPayload

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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

View File

@ -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>"

View File

@ -48,7 +48,7 @@ public class UpdateSnapshotRequestBinderTest {
String actual = binder.createPayload(payload);
assertNotNull(actual, "Binder returned null payload");
assertEquals(expectedPayload, actual);
assertEquals(actual, expectedPayload);
}

View File

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

View File

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

View File

@ -64,7 +64,7 @@ public class FirewallResponseHandlerTest extends BaseResponseHandlerTest<Firewal
.rules(firewallRules)
.build();
assertEquals(expected, actual);
assertEquals(actual, expected);
}

View File

@ -59,7 +59,7 @@ public class ImageInfoResponseHandlerTest extends BaseResponseHandlerTest<Image>
.isWriteable(true)
.build();
assertEquals(expected, actual);
assertEquals(actual, expected);
}
}

View File

@ -178,6 +178,6 @@ public class ImageListResponseHandlerTest extends BaseResponseHandlerTest<List<I
.build()
);
assertEquals(expected, actual);
assertEquals(actual, expected);
}
}