ScoreDirectorFactoryForm implements IsWidget { public void setModel(final ScoreDirectorFactoryConfigModel model, final Path path) { this.model = model; view.setKSession(model.getKSessionName(), path); } @Inject  ScoreDirectorFactoryForm(final ScoreDirectorFactoryFormView view); @Override Widget asWidget(); void setModel(final ScoreDirectorFactoryConfigModel model,
                         final Path path); void onKSessionNameChange(final String ksessionName);  }
@Test public void setEmptyModel() throws Exception { ScoreDirectorFactoryConfigModel model = new ScoreDirectorFactoryConfigModel(); form.setModel(model, path); verify(view).setKSession(null, path); }
@Test public void setEmptyKSession() throws Exception { ScoreDirectorFactoryConfigModel model = new ScoreDirectorFactoryConfigModel(); form.setModel(model, path); verify(view).setKSession(null, path); }
@Test public void setModel() throws Exception { ScoreDirectorFactoryConfigModel model = new ScoreDirectorFactoryConfigModel(); model.setKSessionName("someSession"); form.setModel(model, path); verify(view).setKSession("someSession", path); }