@Test public void testOnValueTyped() { String value1 = "VALUE1"; String value2 = "ValuE2"; String value3 = "value3"; when(view.getPackageName()).thenReturn(value1); newPackagePopup.onValueTyped(); verify(view, times(1)).setPackageName(value1.toLowerCase()); when(view.getPackageName()).thenReturn(value2); newPackagePopup.onValueTyped(); verify(view, times(1)).setPackageName(value2.toLowerCase()); when(view.getPackageName()).thenReturn(value3); newPackagePopup.onValueTyped(); verify(view, times(1)).setPackageName(value3.toLowerCase()); }
@Override public void onValueTyped() { view.setPackageName(toLowerCase(view.getPackageName())); }
NewPackagePopup implements NewPackagePopupView.Presenter { @Override public void onValueTyped() { view.setPackageName(toLowerCase(view.getPackageName())); } }
NewPackagePopup implements NewPackagePopupView.Presenter { @Override public void onValueTyped() { view.setPackageName(toLowerCase(view.getPackageName())); } @Inject  NewPackagePopup(NewPackagePopupView view,
                           ValidatorService validatorService); }
NewPackagePopup implements NewPackagePopupView.Presenter { @Override public void onValueTyped() { view.setPackageName(toLowerCase(view.getPackageName())); } @Inject  NewPackagePopup(NewPackagePopupView view,
                           ValidatorService validatorService); String getPackageName(); @Override void onCreatePackage(); @Override void onValueTyped(); void show(Command afterAddCommand); }
NewPackagePopup implements NewPackagePopupView.Presenter { @Override public void onValueTyped() { view.setPackageName(toLowerCase(view.getPackageName())); } @Inject  NewPackagePopup(NewPackagePopupView view,
                           ValidatorService validatorService); String getPackageName(); @Override void onCreatePackage(); @Override void onValueTyped(); void show(Command afterAddCommand);  }