package core.framework.module;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

import static org.assertj.core.api.Assertions.assertThat;

/**
 * @author neo
 */
class TestDBConfigTest {
    private TestDBConfig config;

    @BeforeEach
    void createTestDBConfig() {
        config = new TestDBConfig();
    }

    @Test
    void databaseURL() {
        assertThat(config.databaseURL(null))
            .isEqualTo("jdbc:hsqldb:mem:.;sql.syntax_mys=true");

        assertThat(config.databaseURL("db1"))
            .isEqualTo("jdbc:hsqldb:mem:db1;sql.syntax_ora=true");
    }
}

@@ -481,16 +481,45 @@
 rue%22);%0A%0A
+        config.name = %22db1%22;%0A
         
@@ -548,21 +548,20 @@
 baseURL(
-%22db1%22
+null
 ))%0A     
@@ -614,11 +614,11 @@
 tax_
-ora
+mys
 =tru

fix unit test