Skip to content

dbeaver/pro#8766 Migrage from junit 4 to junit 6#84

Merged
serge-rider merged 10 commits into
develfrom
dbeaver/pro#8766-migrate-to-junit5
Jun 9, 2026
Merged

dbeaver/pro#8766 Migrage from junit 4 to junit 6#84
serge-rider merged 10 commits into
develfrom
dbeaver/pro#8766-migrate-to-junit5

Conversation

@labanovichttps

Copy link
Copy Markdown
Contributor

No description provided.

…estExtension

Without extending DBVRTest, @ExtendWith(OSGITestExtension.class) was never
applied to the suite class, so the CLI application was never started before
tests ran, causing "Application is not running" for all 27 tests.
In JUnit 4, @BeforeClass on DBVRTestSuite called initApplication() which started
the CLI application before tests ran. The JUnit 5 migration stripped @BeforeClass
but added nothing to replace it — OSGITestExtension is IDEA-only and is a no-op
in CI. Add @BeforeAll setUpApplication() to DBVRTest so initApplication() is
called before each test class runs.
# Conflicts:
#	test/org.dbvr.test.platform/META-INF/MANIFEST.MF
# Conflicts:
#	bundles/org.dbvr.cli/src/org/dbvr/cli/app/CLIApplicationBase.java
#	test/org.dbvr.test.platform/src/org/dbvr/test/HelpArgTest.java
@labanovichttps labanovichttps changed the title dbeaver/pro#8766 Boom dbeaver/pro#8766 Migrage from junit 4 to junit 6 Jun 8, 2026
@serge-rider serge-rider merged commit 4736c73 into devel Jun 9, 2026
6 checks passed
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