Package org.springframework.jdbc.datasource.embedded

Examples of org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder


  }

  @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 JdbcClientTokenServices(db);
  }
View Full Code Here


  private EmbeddedDatabase db;

  @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);
  }
View Full Code Here

public class DefaultTokenServicesWithJdbcTests extends AbstractPersistentDefaultTokenServicesTests {

  private EmbeddedDatabase db;

  protected TokenStore createTokenStore() {
    db = new EmbeddedDatabaseBuilder().addDefaultScripts().build();
    return new JdbcTokenStore(db);
  }
View Full Code Here

  }
 
  @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);
  }
View Full Code Here

    db.shutdown();
  }

  @Override
  protected ApprovalStore getApprovalStore() {
    db = new EmbeddedDatabaseBuilder().addDefaultScripts().build();
    store = new JdbcApprovalStore(db);
    return store;
  }
View Full Code Here

@EnableJpaRepositories
@EnableTransactionManagement
public class ApplicationConfig {

  @Bean public DataSource dataSource() {
    EmbeddedDatabaseBuilder builder = new EmbeddedDatabaseBuilder();
    return builder.setType(EmbeddedDatabaseType.HSQL).build();
  }
View Full Code Here

@EnableJpaRepositories(repositoryFactoryBeanClass = EnversRevisionRepositoryFactoryBean.class)
public class Config {

  @Bean
  public DataSource dataSource() throws SQLException {
    return new EmbeddedDatabaseBuilder().setType(EmbeddedDatabaseType.H2).build();
  }
View Full Code Here

    private EmbeddedDatabase db;
    private JdbcTemplate jdbcTemplate;

    @Before
    public void setUp() throws Exception {
        db = new EmbeddedDatabaseBuilder()
            .setType(EmbeddedDatabaseType.DERBY).addScript("sql/createAndPopulateDatabase.sql").build();

        jdbcTemplate = new JdbcTemplate(db);

        super.setUp();
View Full Code Here

    private static final Logger logger = LoggerFactory.getLogger(JpaHsqlEmbeddedConfig.class);

    @Bean
    @Override
    public DataSource dataSource() {
        EmbeddedDatabaseBuilder builder = new EmbeddedDatabaseBuilder();
        return builder.setType(EmbeddedDatabaseType.HSQL).build();
    }
View Full Code Here

    private static final Logger logger = LoggerFactory.getLogger(JpaH2EmbeddedConfig.class);

    @Bean
    @Override
    public DataSource dataSource() {
        EmbeddedDatabaseBuilder builder = new EmbeddedDatabaseBuilder();
        return builder.setType(EmbeddedDatabaseType.H2).build();
    }
View Full Code Here

TOP

Related Classes of org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.