if (chosenLabelType.equalsIgnoreCase("booleanLabel")) {
label = m_deviceProxy.get_attribute_info(attr).label;
b = (JButton) tth.findFirstComponent(JButton.class, this.jf1);
assertThat(b.getText()).isEqualTo("OK");
m_deviceProxy.write_attribute(new DeviceAttribute(attr, false));
Sleeper.SECONDS.sleep(3);
assertThat(b.getText()).isEqualTo("KO");
} else if (chosenLabelType.equalsIgnoreCase("label")) {
label = m_deviceProxy.get_attribute_info(attr).label;
b = (JButton) tth.findFirstComponent(JButton.class, this.jf1);
assertThat(b.getText()).isEqualTo(label);
m_deviceProxy.write_attribute(new DeviceAttribute(attr, false));
Sleeper.SECONDS.sleep(3);
assertThat(b.getText()).isEqualTo(label);
} else if (chosenLabelType.equalsIgnoreCase("labelAndBoolean")) {
label = m_deviceProxy.get_attribute_info(attr).label;
b = (JButton) tth.findFirstComponent(JButton.class, this.jf1);
assertThat(b.getText()).isEqualTo(label + ":OK");
m_deviceProxy.write_attribute(new DeviceAttribute(attr, false));
Sleeper.SECONDS.sleep(3);
assertThat(b.getText()).isEqualTo(label + ":KO");
}
}