Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
In-memory database for testing
component displayname="Application" {
// Set up an in-memory testing datasource
// You may need to install the H2 driver (or Apache Derby, or whatever)
this.datasources[ "testing" ] = {
class: 'org.h2.Driver',
connectionString: 'jdbc:h2:mem:testing;MODE=MySQL',
username = "sa"
};
this.datasource = "testing";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.