jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ignasi Barrera <notificati...@github.com>
Subject Re: [jclouds-labs] Profitbricks Drives API (#146)
Date Tue, 03 Mar 2015 21:48:00 GMT
> +
> +@Test(groups = "unit", testName = "AddRomDriveToServerRequestBinderTest")
> +public class AddRomDriveToServerRequestBinderTest {
> +
> +   @Test
> +   public void testAddRomDriveToServerPayload() {
> +      AddRomDriveToServerRequestBinder binder = new AddRomDriveToServerRequestBinder();
> +
> +      Drive.Request.AddRomDriveToServerPayload payload = Drive.Request.AddRomDriveToServerPayload.builder()
> +              .serverId("server-id")
> +              .storageId("image-id")
> +              .deviceNumber("device-number")
> +              .build();
> +
> +      String actual = binder.createPayload(payload);
> +      assertNotNull(actual, "Binder returned null payload");

nit: This is redundant, the next check will also fail as the expected payload is not null.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/146/files#r25730216
Mime
View raw message