// Initialiser le composant
initFirstDevice();
final String attributeName = "boolean_scalar_rw";
final AttributeBooleanComboBox widget = new AttributeBooleanComboBox.Builder(
m_deviceName, attributeName).defaultValue(!isTrueLabel)
.jframe(jf1).build();
Sleeper.SECONDS.sleep(2);
if (isTrueLabel) {
final String trueLabel = "TRUE_LABEL";
widget.setTrueLabel(trueLabel);
m_deviceProxy.write_attribute(new DeviceAttribute(attributeName,
isTrueLabel));
Sleeper.SECONDS.sleep(2);
final JComboBox combobox = getComboBox(jf1);
final Object selectedItem = combobox.getSelectedItem();
final String selectedValue = (String) selectedItem;
Assert.assertTrue(
"The label for 'true' value is not correctly modified",
trueLabel.equals(selectedValue));
} else {
final String falseLabel = "FALSE_LABEL";
widget.setFalseLabel(falseLabel);
m_deviceProxy.write_attribute(new DeviceAttribute(attributeName,
isTrueLabel));
Sleeper.SECONDS.sleep(2);
final JComboBox combobox = getComboBox(jf1);
final Object selectedItem = combobox.getSelectedItem();
final String selectedValue = (String) selectedItem;
Assert.assertTrue(
"The label for 'false' value is not correctly modified",
falseLabel.equals(selectedValue));
}
widget.stop();
jf1.dispose();
}