BAEL-9496 Fix failing context tests (#7855)

* BAEL-9496 Fix failing context tests

- Fixes for SpringContextIntegrationTest in several projects

* BAEL-9496 Fix failing context tests

-Fixed ContextTests for spring-jms and further fixes spring-session-mongodb

* BAEL-9496 Fix failing context tests

-Fixed context tests from spring-rest-angular project
This commit is contained in:
Dhawal Kapil
2019-09-25 18:55:50 +05:30
committed by Josh Cummings
parent 6f9c339986
commit af75e04e50
25 changed files with 77 additions and 101 deletions
@@ -26,7 +26,7 @@ public class PersistenceConfig {
@Bean
public DataSource dataSource() {
EmbeddedDatabaseBuilder builder = new EmbeddedDatabaseBuilder();
EmbeddedDatabase db = builder.setType(EmbeddedDatabaseType.HSQL).addScript("db/sql/data.sql").build();
EmbeddedDatabase db = builder.setType(EmbeddedDatabaseType.HSQL).build();
return db;
}
@@ -1,4 +1,5 @@
server.servlet.contextPath=/
spring.h2.console.enabled=true
logging.level.org.hibernate.SQL=info
spring.jpa.hibernate.ddl-auto=none
spring.jpa.generate-ddl=true
spring.jpa.hibernate.ddl-auto=create
@@ -1,10 +1,3 @@
CREATE TABLE student (
id INTEGER PRIMARY KEY,
name VARCHAR(30),
gender VARCHAR(10),
age INTEGER
);
INSERT INTO student (id,name,gender,age)
VALUES (1,'Bryan', 'Male',20);
INSERT INTO student (id,name,gender,age)