chore: Copy and rename packages and classes for new browserless-test API#2141
Merged
chore: Copy and rename packages and classes for new browserless-test API#2141
Conversation
Move 104 files from com/vaadin/testbench/unit/ to com/vaadin/browserless/ across all three OSS modules. Pure directory rename — no file content changes.
Update license headers in 231 Java source files from Vaadin Commercial License to Apache License 2.0. Kotlin files retain their original headers. Mechanical change: each file's 4-line commercial header is replaced with the standard 11-line Apache 2.0 header.
Update package declarations, import statements, and class names across 208 files to establish the new public API: - Package: com.vaadin.testbench.unit → com.vaadin.testing.browserless - BaseUIUnitTest → BaseBrowserlessTest - UIUnitTest → BrowserlessTest - SpringUIUnitTest → SpringBrowserlessTest - QuarkusUIUnitTest → QuarkusBrowserlessTest - UIUnitTestSetupException → BrowserlessTestSetupException - UITestSpringLookupInitializer → BrowserlessTestSpringLookupInitializer
Add Apache 2.0 license header template, parent aggregator POM, and child POM files for three new open-source browserless test modules under browserless-test/: - browserless-test/bom - browserless-test/shared - browserless-test/junit6 - browserless-test/quarkus Include duplicates of eclipse formatter config and import order files so the browserless-test directory can be extracted as a standalone project with working spotless configuration. Register the parent module in root POM. No source code yet.
Copy Java/Kotlin sources from vaadin-testbench-unit-* into the new modules, preserving original relative paths and content: - browserless-test/shared ← vaadin-testbench-unit-shared - browserless-test/junit6 ← vaadin-testbench-unit-junit5 - browserless-test/quarkus ← vaadin-testbench-unit-quarkus 281 new files — byte-for-byte identical to their originals.
Copy Java/Kotlin sources from vaadin-testbench-unit-* into the new modules, preserving original relative paths and content: - browserless-test/shared ← vaadin-testbench-unit-shared - browserless-test/junit6 ← vaadin-testbench-unit-junit5 - browserless-test/quarkus ← vaadin-testbench-unit-quarkus 281 new files — byte-for-byte identical to their originals.
Move 104 files from com/vaadin/testbench/unit/ to com/vaadin/browserless/ across all three OSS modules. Pure directory rename — no file content changes.
Update license headers in 231 Java source files from Vaadin Commercial License to Apache License 2.0. Kotlin files retain their original headers. Mechanical change: each file's 4-line commercial header is replaced with the standard 11-line Apache 2.0 header.
Update package declarations, import statements, and class names across 208 files to establish the new public API: - Package: com.vaadin.testbench.unit → com.vaadin.testing.browserless - BaseUIUnitTest → BaseBrowserlessTest - UIUnitTest → BrowserlessTest - SpringUIUnitTest → SpringBrowserlessTest - QuarkusUIUnitTest → QuarkusBrowserlessTest - UIUnitTestSetupException → BrowserlessTestSetupException - UITestSpringLookupInitializer → BrowserlessTestSpringLookupInitializer
59078e9 to
19a2ae5
Compare
mcollovati
reviewed
Feb 24, 2026
...ess-test/junit6/src/test/java/com/vaadin/flow/component/html/testbench/AnchorTesterTest.java
Outdated
Show resolved
Hide resolved
mcollovati
reviewed
Feb 24, 2026
...serless-test/shared/src/main/java/com/vaadin/flow/component/html/testbench/AnchorTester.java
Outdated
Show resolved
Hide resolved
mcollovati
reviewed
Feb 24, 2026
browserless-test/junit6/src/main/java/com/vaadin/browserless/BrowserlessTest.java
Outdated
Show resolved
Hide resolved
Contributor
|
I built locally and updated a project with a simple Spring based test:
With only these changes, I was able to run tests successfully. |
…t classes Rename test classes: UIUnitBaseClassTest, UIUnitNavigationTest, UIUnitShortcutTest, SpringUIUnitBaseClassTest, and QuarkusUIUnitBaseClassTest to use Browserless prefix. Update Javadoc and comments to say "browserless test(s/ing)" instead of "UI unit test(s/ing)".
…ofiles CI uses pull_request_target which reads main's workflow YAML passing -Dtestbench.javadocs. All pom files must use this property name for the dokka-javadocs profile to activate correctly.
996c14c to
1da58c0
Compare
Port CommercialTesterWrappers interface from legacy module, providing the test(Chart) factory method for commercial components. Update ChartTesterTest to use implements CommercialTesterWrappers instead of a local workaround method.
Test Results76 tests 74 ✅ 5m 56s ⏱️ Results for commit cdd4249. ♻️ This comment has been updated with latest results. |
mcollovati
approved these changes
Feb 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.