Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xwiki-platform
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XWiki
xwiki-platform
Commits
101823c8
Commit
101823c8
authored
4 years ago
by
Vincent Massol
Browse files
Options
Downloads
Patches
Plain Diff
[Misc] Convert test to JUnit5
parent
715b1bf5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xwiki-platform-core/xwiki-platform-oldcore/src/test/java/com/xpn/xwiki/store/DatabaseProductTest.java
+9
-9
9 additions, 9 deletions
...rc/test/java/com/xpn/xwiki/store/DatabaseProductTest.java
with
9 additions
and
9 deletions
xwiki-platform-core/xwiki-platform-oldcore/src/test/java/com/xpn/xwiki/store/DatabaseProductTest.java
+
9
−
9
View file @
101823c8
...
...
@@ -19,22 +19,22 @@
*/
package
com.xpn.xwiki.store
;
import
org.junit.Test
;
import
org.junit.
jupiter.api.
Test
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
import
static
org
.
junit
.
Assert
.
assertNotSame
;
import
static
org
.
junit
.
Assert
.
assertSame
;
import
static
org
.
junit
.
Assert
.
assertTrue
;
import
static
org
.
junit
.
jupiter
.
api
.
Assert
ions
.
assertEquals
;
import
static
org
.
junit
.
jupiter
.
api
.
Assert
ions
.
assertNotSame
;
import
static
org
.
junit
.
jupiter
.
api
.
Assert
ions
.
assertSame
;
import
static
org
.
junit
.
jupiter
.
api
.
Assert
ions
.
assertTrue
;
/**
* Unit tests for {@link DatabaseProduct}.
*
* @version $Id$
*/
public
class
DatabaseProductTest
class
DatabaseProductTest
{
@Test
public
void
tes
tEquality
()
void
toProduc
tEquality
()
{
DatabaseProduct
product
=
DatabaseProduct
.
toProduct
(
"Oracle"
);
assertEquals
(
DatabaseProduct
.
ORACLE
,
product
);
...
...
@@ -62,7 +62,7 @@ public void testEquality()
}
@Test
public
void
tes
tDifference
()
void
toProduc
tDifference
()
{
DatabaseProduct
product
=
DatabaseProduct
.
toProduct
(
"Oracle"
);
assertTrue
(
product
!=
DatabaseProduct
.
DERBY
);
...
...
@@ -70,7 +70,7 @@ public void testDifference()
}
@Test
public
void
tes
tUnknown
()
void
toProduc
tUnknown
()
{
DatabaseProduct
product
=
DatabaseProduct
.
toProduct
(
"whatever"
);
assertSame
(
DatabaseProduct
.
UNKNOWN
,
product
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment