use of org.eclipse.che.ide.api.dialogs.InputValidator.Violation in project che by eclipse.
the class SshKeyManagerPresenterTest method shouldReturnNullOnHostNameWithSeveralDotsAndDashesValidation.
@Test
public void shouldReturnNullOnHostNameWithSeveralDotsAndDashesValidation() throws OperationException {
String validHostname = "ho-st.na-me.com";
Violation violation = ((InputValidator) presenter.hostNameValidator).validate(validHostname);
assertNull(violation);
}
use of org.eclipse.che.ide.api.dialogs.InputValidator.Violation in project che by eclipse.
the class SshKeyManagerPresenterTest method shouldReturnNullOnHostNameWithDotAndDashValidation.
@Test
public void shouldReturnNullOnHostNameWithDotAndDashValidation() throws OperationException {
String validHostname = "host-name.com";
Violation violation = ((InputValidator) presenter.hostNameValidator).validate(validHostname);
assertNull(violation);
}
use of org.eclipse.che.ide.api.dialogs.InputValidator.Violation in project che by eclipse.
the class SshKeyManagerPresenterTest method shouldReturnNullOnValidHostNameValidation.
@Test
public void shouldReturnNullOnValidHostNameValidation() throws OperationException {
String validHostname = "hostname.com";
Violation violation = ((InputValidator) presenter.hostNameValidator).validate(validHostname);
assertNull(violation);
}
Aggregations