Skip to content

Commit 6f7fcf4

Browse files
committed
test: update AttachedIsoResponseTest to include bootable flag in constructor tests
1 parent e8ece3b commit 6f7fcf4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

api/src/test/java/org/apache/cloudstack/api/response/AttachedIsoResponseTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@ public final class AttachedIsoResponseTest {
2626

2727
@Test
2828
public void testFullConstructorPopulatesAllFields() {
29-
AttachedIsoResponse response = new AttachedIsoResponse("uuid-1", "alpine-iso", "Alpine boot", 3);
29+
AttachedIsoResponse response = new AttachedIsoResponse("uuid-1", "alpine-iso", "Alpine boot", 3, true);
3030
Assert.assertEquals("uuid-1", response.getId());
3131
Assert.assertEquals("alpine-iso", response.getName());
3232
Assert.assertEquals("Alpine boot", response.getDisplayText());
3333
Assert.assertEquals(Integer.valueOf(3), response.getDeviceSeq());
34+
Assert.assertTrue(response.getBootable());
3435
}
3536

3637
@Test
@@ -40,5 +41,6 @@ public void testNoArgConstructorLeavesFieldsNull() {
4041
Assert.assertNull(response.getName());
4142
Assert.assertNull(response.getDisplayText());
4243
Assert.assertNull(response.getDeviceSeq());
44+
Assert.assertNull(response.getBootable());
4345
}
4446
}

0 commit comments

Comments
 (0)