@Test public void testClearOldValues() throws Exception { verify( view ).clean(); newDependencyPopup.show( callback ); verify( view, times( 2 ) ).clean(); }
public void show(final Callback<Dependency> callback) { this.callback = callback; dependency = new Dependency(); validator = new DependencyValidator(dependency); view.clean(); view.show(); }
NewDependencyPopup { public void show(final Callback<Dependency> callback) { this.callback = callback; dependency = new Dependency(); validator = new DependencyValidator(dependency); view.clean(); view.show(); } }
NewDependencyPopup { public void show(final Callback<Dependency> callback) { this.callback = callback; dependency = new Dependency(); validator = new DependencyValidator(dependency); view.clean(); view.show(); } @Inject  NewDependencyPopup(final NewDependencyPopupView view); }
NewDependencyPopup { public void show(final Callback<Dependency> callback) { this.callback = callback; dependency = new Dependency(); validator = new DependencyValidator(dependency); view.clean(); view.show(); } @Inject  NewDependencyPopup(final NewDependencyPopupView view); void show(final Callback<Dependency> callback); void onOkClicked(); void onGroupIdChange(final String groupId); void validateGroupId(); void onArtifactIdChange(final String artifactId); void validateArtifactId(); void onVersionChange(final String version); void validateVersion(); }
NewDependencyPopup { public void show(final Callback<Dependency> callback) { this.callback = callback; dependency = new Dependency(); validator = new DependencyValidator(dependency); view.clean(); view.show(); } @Inject  NewDependencyPopup(final NewDependencyPopupView view); void show(final Callback<Dependency> callback); void onOkClicked(); void onGroupIdChange(final String groupId); void validateGroupId(); void onArtifactIdChange(final String artifactId); void validateArtifactId(); void onVersionChange(final String version); void validateVersion();  }