Skip to content

chore: Copy and rename packages and classes for new browserless-test API#2141

Merged
Artur- merged 17 commits intomainfrom
extract-browserless-test
Feb 25, 2026
Merged

chore: Copy and rename packages and classes for new browserless-test API#2141
Artur- merged 17 commits intomainfrom
extract-browserless-test

Conversation

@Artur-
Copy link
Member

@Artur- Artur- commented Feb 24, 2026

No description provided.

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
@Artur- Artur- force-pushed the extract-browserless-test branch from 59078e9 to 19a2ae5 Compare February 24, 2026 11:49
@mcollovati
Copy link
Contributor

mcollovati commented Feb 24, 2026

I built locally and updated a project with a simple Spring based test:

  • added the com.vaadin:browserless-test-junit6 dependency to my pom
  • replaced SpringUIUnitTest with SpringBrowserlessTest
  • excluded com.vaadin:vaadin-testbench-unit-junit5 from com.vaadin:vaadin-testbench-junit6 (there because the project has also E2E tests)

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)".
@Artur- Artur- requested a review from mcollovati February 24, 2026 16:04
…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.
@Artur- Artur- force-pushed the extract-browserless-test branch from 996c14c to 1da58c0 Compare February 24, 2026 19:37
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.
@github-actions
Copy link

github-actions bot commented Feb 24, 2026

Test Results

76 tests   74 ✅  5m 56s ⏱️
 8 suites   2 💤
 8 files     0 ❌

Results for commit cdd4249.

♻️ This comment has been updated with latest results.

@Artur- Artur- merged commit d665bf6 into main Feb 25, 2026
19 of 26 checks passed
@Artur- Artur- deleted the extract-browserless-test branch February 25, 2026 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants