Skip to content
Snippets Groups Projects
Commit 101823c8 authored by Vincent Massol's avatar Vincent Massol
Browse files

[Misc] Convert test to JUnit5

parent 715b1bf5
No related branches found
No related tags found
No related merge requests found
......@@ -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.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotSame;
import static org.junit.jupiter.api.Assertions.assertSame;
import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Unit tests for {@link DatabaseProduct}.
*
* @version $Id$
*/
public class DatabaseProductTest
class DatabaseProductTest
{
@Test
public void testEquality()
void toProductEquality()
{
DatabaseProduct product = DatabaseProduct.toProduct("Oracle");
assertEquals(DatabaseProduct.ORACLE, product);
......@@ -62,7 +62,7 @@ public void testEquality()
}
@Test
public void testDifference()
void toProductDifference()
{
DatabaseProduct product = DatabaseProduct.toProduct("Oracle");
assertTrue(product != DatabaseProduct.DERBY);
......@@ -70,7 +70,7 @@ public void testDifference()
}
@Test
public void testUnknown()
void toProductUnknown()
{
DatabaseProduct product = DatabaseProduct.toProduct("whatever");
assertSame(DatabaseProduct.UNKNOWN, product);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment