### Question:
ReassignmentEditorWidget implements IsWidget,
                                                 ReassignmentEditorWidgetView.Presenter { public void setReadOnly(boolean readOnly) { view.setReadOnly(readOnly); } @Inject  ReassignmentEditorWidget(ReassignmentEditorWidgetView view,
                                    ClientTranslationService translationService); @Override Widget asWidget(); @Override String getNameHeader(); @Override void createOrEdit(ReassignmentWidgetView parent, ReassignmentRow row); void setReadOnly(boolean readOnly);  }### Answer:
@Test public void testReadOnly() { reassignmentEditorWidget.setReadOnly(true); HTMLButtonElement closeButton = getFieldValue(ReassignmentEditorWidgetViewImpl.class, view, "closeButton"); HTMLButtonElement okButton = getFieldValue(ReassignmentEditorWidgetViewImpl.class, view, "okButton"); Assert.assertFalse(closeButton.disabled); Assert.assertTrue(okButton.disabled); }