/*
 * See the NOTICE file distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 */
package com.xpn.xwiki.store;

import org.junit.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;

/**
 * Unit tests for {@link DatabaseProduct}.
 *
 * @version $Id$
 */
public class DatabaseProductTest
{
    @Test
    public void testEquality()
    {
        DatabaseProduct product = DatabaseProduct.toProduct("Oracle");
        assertEquals(DatabaseProduct.ORACLE, product);
        assertSame(DatabaseProduct.ORACLE, product);

        product = DatabaseProduct.toProduct("Apache Derby");
        assertEquals(DatabaseProduct.DERBY, product);
        assertSame(DatabaseProduct.DERBY, product);

        product = DatabaseProduct.toProduct("HSQL Database Engine");
        assertEquals(DatabaseProduct.HSQLDB, product);
        assertSame(DatabaseProduct.HSQLDB, product);

        product = DatabaseProduct.toProduct("DB2/LINUXX8664");
        assertEquals(DatabaseProduct.DB2, product);
        assertSame(DatabaseProduct.DB2, product);

        product = DatabaseProduct.toProduct("Unknown");
        assertEquals(DatabaseProduct.UNKNOWN, product);
        assertSame(DatabaseProduct.UNKNOWN, product);

        product = DatabaseProduct.toProduct("H2");
        assertEquals(DatabaseProduct.H2, product);
        assertSame(DatabaseProduct.H2, product);
    }

    @Test
    public void testDifference()
    {
        DatabaseProduct product = DatabaseProduct.toProduct("Oracle");
        assertTrue(product != DatabaseProduct.DERBY);
        assertNotSame(DatabaseProduct.DERBY, product);
    }

    @Test
    public void testUnknown()
    {
        DatabaseProduct product = DatabaseProduct.toProduct("whatever");
        assertSame(DatabaseProduct.UNKNOWN, product);
    }
}
@@ -934,16 +934,28 @@
 g.junit.
+jupiter.api.
 Test;%0A%0Ai
@@ -973,30 +973,46 @@
 c org.junit.
+jupiter.api.
 Assert
+ions
 .assertEqual
@@ -1034,30 +1034,46 @@
 c org.junit.
+jupiter.api.
 Assert
+ions
 .assertNotSa
@@ -1096,30 +1096,46 @@
 c org.junit.
+jupiter.api.
 Assert
+ions
 .assertSame;
@@ -1159,22 +1159,38 @@
 g.junit.
+jupiter.api.
 Assert
+ions
 .assertT
@@ -1266,23 +1266,16 @@
 Id$%0A */%0A
-public 
 class Da
@@ -1308,31 +1308,29 @@
 est%0A    
-public void tes
+void toProduc
 tEqualit
@@ -2370,31 +2370,29 @@
 est%0A    
-public void tes
+void toProduc
 tDiffere
@@ -2608,23 +2608,21 @@
     
-public void tes
+void toProduc
 tUnk

Convert test to JUnit5