949596979899100101102103104
// TODO // le changement de device ne fonctionne pas // Assert.assertTrue("Widget does'nt reflect image attribute",equality(widget.getData(),data)); // clean widget.stop(); jf1.dispose(); } @Override protected void componentNotWritableTest() throws DevFailed {
139140141142143144145146147148149
Sleeper.SECONDS.sleep(1); Assert.assertFalse("Table should not be editable", table.isEditable()); // clean widget.stop(); jf1.dispose(); } @Override protected void confirmationMessageTest(final boolean withCancel) throws DevFailed {
198199200201202203204205206207208
Sleeper.SECONDS.sleep(1); Assert.assertTrue("Table should be editable", table.isEditable()); // clean widget.stop(); jf1.dispose(); } private void monochromeTest() throws DevFailed { final String attributeName = "int_image_rw";
228229230231232233234235236237238
Assert.assertTrue("Image is not BW", isBWColor(new Color(image.getRGB(0, 0)))); } } // clean widget.stop(); jf1.dispose(); } private boolean isBWColor(final Color color) { if (color.getBlue() != color.getRed()) {
9899100101102103104105106107108
143144145146147148149150151152153
Sleeper.SECONDS.sleep(1); Assert.assertFalse("Table should not be editable", table.isEditable()); // clean widget.stop(); jf1.dispose(); } @Override protected void confirmationMessageTest(final boolean withCancel)
204205206207208209210211212213214
235236237238239240241242243244245
isBWColor(new Color(image.getRGB(0, 0)))); } } // clean widget.stop(); jf1.dispose(); } private boolean isBWColor(final Color color) { if (color.getBlue() != color.getRed()) {