@Test public void loadEditorTest() { DataModelerContext context = createContext(); List<Pair<String, String>> expectedPackageList = expectedPackageList(); PackageSelector packageSelector = new PackageSelector( view ); packageSelector.setContext( context ); verify( view, times( 1 ) ).initPackageList( expectedPackageList, null, true ); }
public void setContext( DataModelerContext context ) { this.context = context; initList( null, true ); }
PackageSelector implements
        PackageSelectorView.Presenter,
        IsWidget { public void setContext( DataModelerContext context ) { this.context = context; initList( null, true ); } }
PackageSelector implements
        PackageSelectorView.Presenter,
        IsWidget { public void setContext( DataModelerContext context ) { this.context = context; initList( null, true ); } @Inject  PackageSelector( PackageSelectorView view ); }
PackageSelector implements
        PackageSelectorView.Presenter,
        IsWidget { public void setContext( DataModelerContext context ) { this.context = context; initList( null, true ); } @Inject  PackageSelector( PackageSelectorView view ); @Override Widget asWidget(); @Override void onPackageChange(); @Override void onNewPackage(); void enableCreatePackage( boolean enable ); void setEnabled( boolean enabled ); boolean isValueSelected(); String getPackage(); String getNewPackage(); DataModelerContext getContext(); void setContext( DataModelerContext context ); void setCurrentPackage( String currentPackage ); void clear(); void addPackageSelectorHandler( PackageSelectorView.PackageSelectorHandler handler ); }
PackageSelector implements
        PackageSelectorView.Presenter,
        IsWidget { public void setContext( DataModelerContext context ) { this.context = context; initList( null, true ); } @Inject  PackageSelector( PackageSelectorView view ); @Override Widget asWidget(); @Override void onPackageChange(); @Override void onNewPackage(); void enableCreatePackage( boolean enable ); void setEnabled( boolean enabled ); boolean isValueSelected(); String getPackage(); String getNewPackage(); DataModelerContext getContext(); void setContext( DataModelerContext context ); void setCurrentPackage( String currentPackage ); void clear(); void addPackageSelectorHandler( PackageSelectorView.PackageSelectorHandler handler );  }