Adds two setPanel tests.
@@ -103,6 +103,17 @@ public class ComponentBuilderTest {
Assert.assertEquals(0, builder.getRowIndex());
}
+ @Test
+ public void testSetPanel_returnValue() {
+ Assert.assertTrue(builder == builder.setPanel(null));
+ }
+
+ @Test
+ public void testSetPanel_withNullPanel() {
+ builder.setPanel(null);
+ Assert.assertEquals(null, builder.getPanel());
+ }
+
@Test
public void testSetRadio_radio() {
final Radio<String> radio = new Radio<>();
