@Test public void initTest() { final Command selectCommand = mock(Command.class); presenter.init("label", "description", selectCommand); verify(view).init(presenter); verify(view).setup("label", "description", selectCommand); }
public void init(final String label, final String description, final Command selectCommand) { this.label = label; view.init(this); view.setup(label, description, selectCommand); view.setNumberOfAssets(0); }
TileWidget { public void init(final String label, final String description, final Command selectCommand) { this.label = label; view.init(this); view.setup(label, description, selectCommand); view.setNumberOfAssets(0); } }
TileWidget { public void init(final String label, final String description, final Command selectCommand) { this.label = label; view.init(this); view.setup(label, description, selectCommand); view.setNumberOfAssets(0); } @Inject  TileWidget(final View view); }
TileWidget { public void init(final String label, final String description, final Command selectCommand) { this.label = label; view.init(this); view.setup(label, description, selectCommand); view.setNumberOfAssets(0); } @Inject  TileWidget(final View view); void init(final String label,
                     final String description,
                     final Command selectCommand); CONTENT getContent(); void setContent(CONTENT content); boolean isSelected(); void setSelected(final boolean selected); String getLabel(); void setNumberOfAssets(Integer numberOfAssets); View getView(); }
TileWidget { public void init(final String label, final String description, final Command selectCommand) { this.label = label; view.init(this); view.setup(label, description, selectCommand); view.setNumberOfAssets(0); } @Inject  TileWidget(final View view); void init(final String label,
                     final String description,
                     final Command selectCommand); CONTENT getContent(); void setContent(CONTENT content); boolean isSelected(); void setSelected(final boolean selected); String getLabel(); void setNumberOfAssets(Integer numberOfAssets); View getView();  }