use of org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder in project spring-security-oauth by spring-projects.
the class JdbcApprovalStoreTests method getApprovalStore.
@Override
protected ApprovalStore getApprovalStore() {
db = new EmbeddedDatabaseBuilder().addDefaultScripts().build();
store = new JdbcApprovalStore(db);
return store;
}
use of org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder in project spring-security-oauth by spring-projects.
the class JdbcAuthorizationCodeServicesTests method setUp.
@Before
public void setUp() throws Exception {
// creates a HSQL in-memory db populated from default scripts classpath:schema.sql and classpath:data.sql
db = new EmbeddedDatabaseBuilder().addDefaultScripts().build();
authorizationCodeServices = new JdbcAuthorizationCodeServices(db);
}
use of org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder in project spring-security-oauth by spring-projects.
the class JdbcClientDetailsServiceTests method setUp.
@Before
public void setUp() throws Exception {
// creates a HSQL in-memory db populated from default scripts
// classpath:schema.sql and classpath:data.sql
db = new EmbeddedDatabaseBuilder().addDefaultScripts().build();
jdbcTemplate = new JdbcTemplate(db);
service = new JdbcClientDetailsService(db);
}
use of org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder in project spring-security-oauth by spring-projects.
the class JdbcTokenStoreTests method setUp.
@Before
public void setUp() throws Exception {
// creates a HSQL in-memory db populated from default scripts classpath:schema.sql and classpath:data.sql
db = new EmbeddedDatabaseBuilder().addDefaultScripts().build();
tokenStore = new JdbcTokenStore(db);
}
use of org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder in project spring-boot by spring-projects.
the class EmbeddedDataSourceConfiguration method dataSource.
@Bean
public EmbeddedDatabase dataSource() {
EmbeddedDatabaseBuilder builder = new EmbeddedDatabaseBuilder().setType(EmbeddedDatabaseConnection.get(this.classLoader).getType());
this.database = builder.setName(this.properties.getName()).generateUniqueName(this.properties.isGenerateUniqueName()).build();
return this.database;
}
Aggregations