Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
B
- build() - Method in class com.vaadin.flow.testutil.FrontendStubs.ToolStubBuilder
-
Builds a new instance of tool stub info.
- builder(FrontendStubs.Tool) - Static method in class com.vaadin.flow.testutil.FrontendStubs.ToolStubInfo
-
Creates a new builder for constructing a new instance of tool stub info.
C
- ChromeTests - Interface in com.vaadin.flow.testcategory
-
Tests that requires Chrome browser for their execution should be annotated with @
Category(ChromeTests.classso they can be optionally excluded from the build when needed. - classesSerializable() - Method in class com.vaadin.flow.testutil.ClassesSerializableTest
-
Tests that all the relevant classes and interfaces under
ClassFinder.getBasePackages()implement Serializable. - ClassesSerializableTest - Class in com.vaadin.flow.testutil
-
A superclass for serialization testing.
- ClassesSerializableTest() - Constructor for class com.vaadin.flow.testutil.ClassesSerializableTest
- ClassFinder - Class in com.vaadin.flow.testutil
-
Superclass for testing classes which need to scan project's classpath.
- ClassFinder() - Constructor for class com.vaadin.flow.testutil.ClassFinder
- com.vaadin.flow.testcategory - package com.vaadin.flow.testcategory
- com.vaadin.flow.testutil - package com.vaadin.flow.testutil
- createStubNode(boolean, boolean, String) - Static method in class com.vaadin.flow.testutil.FrontendStubs
-
Creates stub versions of `node` and `npm` in the .
- createStubNode(FrontendStubs.ToolStubInfo, FrontendStubs.ToolStubInfo, String) - Static method in class com.vaadin.flow.testutil.FrontendStubs
-
Creates stub versions of `node` and `npm` in the .
- createStubViteServer(String, int, String) - Static method in class com.vaadin.flow.testutil.FrontendStubs
-
Creates a stub vite-dev-server able to output a ready string, sleep for a while and output arguments passed to a file, so as tests can check it.
- createStubViteServer(String, int, String, boolean) - Static method in class com.vaadin.flow.testutil.FrontendStubs
-
Creates a stub vite-dev-server able to output a ready string, sleep for a while and output arguments passed to a file, so as tests can check it.
- CurrentInstanceCleaner - Class in com.vaadin.flow.testutil
-
Removes any CurrentInstance thread locals before running a test.
- CurrentInstanceCleaner() - Constructor for class com.vaadin.flow.testutil.CurrentInstanceCleaner
F
- findServerClasses(String, Collection<Pattern>) - Method in class com.vaadin.flow.testutil.ClassFinder
-
Finds the server side classes/interfaces under a class path entry - either a directory or a JAR that matches
ClassFinder.getJarPattern(). - FrontendStubs - Class in com.vaadin.flow.testutil
-
Utility class for stubbing Node.JS and frontend tooling.
- FrontendStubs.Tool - Enum Class in com.vaadin.flow.testutil
-
Types of build tools.
- FrontendStubs.ToolStubBuilder - Class in com.vaadin.flow.testutil
-
Builds a new instance of
FrontendStubs.ToolStubInfo. - FrontendStubs.ToolStubInfo - Class in com.vaadin.flow.testutil
-
Holds an information about build tool to be stubbed.
G
- getBasePackages() - Method in class com.vaadin.flow.testutil.ClassFinder
- getExcludedPatterns() - Method in class com.vaadin.flow.testutil.ClassesSerializableTest
- getJarPattern() - Method in class com.vaadin.flow.testutil.ClassFinder
-
JARs that will be scanned for classes to test, in addition to classpath directories.
- getRawClasspathEntries() - Static method in class com.vaadin.flow.testutil.ClassFinder
-
Lists all class path entries by splitting the class path string.
- getScript() - Method in class com.vaadin.flow.testutil.FrontendStubs.ToolStubInfo
- getTestFolder(String) - Static method in class com.vaadin.flow.testutil.TestUtils
-
Gets a test folder by its resource name using
getTestResource(String). - getTestJar() - Static method in class com.vaadin.flow.testutil.TestUtils
-
An easy way to get a test jar.
- getTestJar(String) - Static method in class com.vaadin.flow.testutil.TestUtils
-
Gets a test jar file by its resource name using
getTestResource(String). - getTestResource(String) - Static method in class com.vaadin.flow.testutil.TestUtils
-
Gets a test resouce by its name using using
ClassLoader.getResource(String).
I
- IgnoreOSGi - Interface in com.vaadin.flow.testcategory
-
Tests that should not be run inside OSGi container should be annotated with @
Category(IgnoreOSGi.class)so they can be optionally excluded from the build. - isFunctionalType(Type) - Static method in class com.vaadin.flow.testutil.ClassFinder
- isStubbed() - Method in class com.vaadin.flow.testutil.FrontendStubs.ToolStubInfo
- isTestClass(Class<?>) - Method in class com.vaadin.flow.testutil.ClassFinder
- isTestClassPath(String) - Method in class com.vaadin.flow.testutil.ClassFinder
L
- listFilesRecursively(File) - Static method in class com.vaadin.flow.testutil.TestUtils
-
Lists all file (not directories) paths in directory specified.
N
- NODE - Enum constant in enum class com.vaadin.flow.testutil.FrontendStubs.Tool
- none() - Static method in class com.vaadin.flow.testutil.FrontendStubs.ToolStubInfo
-
Returns a dummy tool stub info, which denotes no stub is used.
- NPM - Enum constant in enum class com.vaadin.flow.testutil.FrontendStubs.Tool
P
- PushTests - Interface in com.vaadin.flow.testcategory
-
Tests which test push functionality should be annotated with
@Category(PushTests.class).
R
- resetThreadLocals() - Method in class com.vaadin.flow.testutil.ClassesSerializableTest
-
The method is called right after a class instantiation and might be overriden by subclasses to reset thread local values (ex. current UI).
S
- ScreenshotTests - Interface in com.vaadin.flow.testcategory
-
Screenshot tests should be annotated with @
Category(ScreenshotTest.classso they can be optionally excluded from the build when needed. - serializeAndDeserialize(T) - Method in class com.vaadin.flow.testutil.ClassesSerializableTest
-
Performs actual serialization/deserialization
- setupThreadLocals() - Method in class com.vaadin.flow.testutil.ClassesSerializableTest
-
The method is called right a class instantiation and might be overriden by subclasses to install some necessary thread local values (ex. current UI).
- SlowTests - Interface in com.vaadin.flow.testcategory
-
Tests which take more than 0.5s to run should be annotated with @
@Category(SlowTests.class)and will be excluded by default from the test suite.
T
- TestCategory - Interface in com.vaadin.flow.testcategory
-
Base for classes and interfaces used as a JUnit test category
- testStarted(Description) - Method in class com.vaadin.flow.testutil.CurrentInstanceCleaner
- TestUtils - Class in com.vaadin.flow.testutil
-
Shared code to use in the unit tests.
V
- valueOf(String) - Static method in enum class com.vaadin.flow.testutil.FrontendStubs.Tool
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.vaadin.flow.testutil.FrontendStubs.Tool
-
Returns an array containing the constants of this enum class, in the order they are declared.
- VITE_PACKAGE_JSON - Static variable in class com.vaadin.flow.testutil.FrontendStubs
- VITE_SERVER - Static variable in class com.vaadin.flow.testutil.FrontendStubs
- VITE_TEST_OUT_FILE - Static variable in class com.vaadin.flow.testutil.FrontendStubs
W
- withCacheDir(String) - Method in class com.vaadin.flow.testutil.FrontendStubs.ToolStubBuilder
-
Adds a stub for npm cache directory.
- withVersion(String) - Method in class com.vaadin.flow.testutil.FrontendStubs.ToolStubBuilder
-
Adds a stub for tool version.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form