This is my embedded database:
public void init() {
EmbeddedDatabaseBuilder builder = new EmbeddedDatabaseBuilder();
db = builder
.setType(EmbeddedDatabaseType.H2)
.addScript("h2/create.sql")
.addScript("h2/insert.sql")
.build();
}
When I launch JUnit tests, I don't see in web console, the db that was created during application context intialization.
@Before
public void initTest() throws SQLException {
Server webServer = Server.createWebServer("-web", "-webAllowOthers", "-webPort", "8082");
webServer.start();
}
What's wrong?