DefaultRunnerInfoImpl extends Composite implements DefaultRunnerInfo { @Override public void update(@NotNull Environment environment) { name.setText(environment.getName()); type.setText(environment.getType()); ram.setText(String.valueOf(environment.getRam()) + " mb"); } @Inject  DefaultRunnerInfoImpl(RunnerResources resources, RunnerLocalizationConstant locale); @Override void update(@NotNull Environment environment);  }
@Test public void infoWidgetShouldBeUpdated() throws Exception { view.update(environment); verify(view.name).setText(SOME_TEXT); verify(view.type).setText(SOME_TEXT); verify(view.ram).setText("512 mb"); verify(environment).getName(); verify(environment).getType(); verify(environment).getRam(); }