UserUtil.setUserTypeManagerForTest(userTypeManager);
AttributeViewHandler attributeViewHandler = new AttributeViewHandler(
login, managerRepository);
final EditAttributeView editAttributeView = new EditAttributeView(
attributeViewHandler, new Attribute(), false);
JDialog dialog = GuiActionRunner.execute(new GuiQuery<JDialog>() {
protected JDialog executeInEDT() {
JDialog dialog = new JDialog();
WindowInterface window = new JDialogAdapter(dialog);
dialog.add(editAttributeView.buildPanel(window));
dialog.pack();
return dialog;
}
});
dialogFixture = new DialogFixture(dialog);