test/entities/TestDatabaseApplication.java
/**
     * Creates an instance of a Play Application using an H2 In-Memory
     * database with Evolutions turned on.
     */
Creates an instance of a Play Application using an H2 In-Memory
database with Evolutions turned on.
Creates an instance of a Play Application using an H2 In - Memory database with Evolutions turned on .
@BeforeClass
    public static void startApp() {
        Map<String, String> inMemoryDatabase = new ImmutableMap.Builder<String, String>()
                .put("db.default.driver", "org.h2.Driver")
                .put("db.default.url", "jdbc:h2:mem:play;MODE=MYSQL")
                .put("db.default.user", "")
                .put("db.default.password", "")
                .put("db.default.jndiName", "MicroserviceDS")
                .put("jpa.default", "MicroserviceDS")
                .put("applyEvolutions.default", "true")
                .put("applyDownEvolutions.default", "true")
                .build();
        app = Helpers.fakeApplication(inMemoryDatabase);
        Helpers.start(app);
    }
@ BeforeClass public static void startApp ( ) { Map < String , String > inMemoryDatabase = new ImmutableMap . Builder < String , String > ( ) . put ( "db.default.driver" , "org.h2.Driver" ) . put ( "db.default.url" , "jdbc:h2:mem:play;MODE=MYSQL" ) . put ( "db.default.user" , "" ) . put ( "db.default.password" , "" ) . put ( "db.default.jndiName" , "MicroserviceDS" ) . put ( "jpa.default" , "MicroserviceDS" ) . put ( "applyEvolutions.default" , "true" ) . put ( "applyDownEvolutions.default" , "true" ) . build ( ) ; app = Helpers . fakeApplication ( inMemoryDatabase ) ; Helpers . start ( app ) ; }
Creates an instance of a Play Application using an H2 In-Memory
 database with Evolutions turned on.
Creates an instance of a Play Application using an H2 In - Memory database with Evolutions turned on .