Package com.vaadin.tests.validation
Class AbstractValidationIT<T extends com.vaadin.testbench.HasValidation>
java.lang.Object
com.vaadin.testbench.TestBenchTestCase
com.vaadin.tests.AbstractComponentIT
com.vaadin.tests.validation.AbstractValidationIT<T>
- All Implemented Interfaces:
com.vaadin.testbench.HasDriver,com.vaadin.testbench.HasElementQuery,com.vaadin.testbench.HasSearchContext,com.vaadin.testbench.HasTestBenchCommandExecutor
public abstract class AbstractValidationIT<T extends com.vaadin.testbench.HasValidation>
extends AbstractComponentIT
-
Field Summary
FieldsFields inherited from class com.vaadin.tests.AbstractComponentIT
screenshotOnFailureFields inherited from class com.vaadin.testbench.TestBenchTestCase
driver, maxAttempts -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidprotected voidassertErrorMessage(String expected) protected voidprotected voidprotected voidprotected voidprotected voidprotected voidassertValidation(boolean valid, String errorMessage) protected voidassertValidationCount(int expected) protected voidprotected voidprotected voidprotected voidprotected abstract Tprotected voidvoidinit()protected voidprotected voidMethods inherited from class com.vaadin.tests.AbstractComponentIT
blur, checkLogsForErrors, checkLogsForErrors, clickElementWithJs, clickElementWithJs, createDriver, getLogEntries, getProperty, getRootURL, getTestPath, getTestURL, getTestURL, isElementPresent, open, open, quitDriver, quitDriverPerMethod, resetDriver, scrollIntoViewAndClick, scrollToElement, waitForDevServer, waitForElementNotPresent, waitForElementPresent, waitForElementVisible, waitUntilNot, waitUntilNotMethods inherited from class com.vaadin.testbench.TestBenchTestCase
concatUrl, executeScript, findElement, findElements, getCommandExecutor, getContext, getDriver, setDriver, testBench, waitUntil, waitUntil, wrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.testbench.HasElementQuery
$, $
-
Field Details
-
testField
-
-
Constructor Details
-
AbstractValidationIT
public AbstractValidationIT()
-
-
Method Details
-
init
public void init() -
getTestField
-
assertValidationCount
protected void assertValidationCount(int expected) -
resetValidationCount
protected void resetValidationCount() -
assertErrorMessage
-
assertClientValid
protected void assertClientValid() -
assertClientInvalid
protected void assertClientInvalid() -
assertServerValid
protected void assertServerValid() -
assertServerInvalid
protected void assertServerInvalid() -
assertValid
protected void assertValid() -
assertInvalid
protected void assertInvalid() -
assertValidation
-
assertNoValidation
protected void assertNoValidation() -
detachAndReattachField
protected void detachAndReattachField() -
detachField
protected void detachField() -
attachField
protected void attachField() -
attachAndInvalidateField
protected void attachAndInvalidateField() -
hideField
protected void hideField() -
showAndInvalidateField
protected void showAndInvalidateField()
-