org.springframework.boot.test.autoconfigure.orm.jpa.TestEntityManager Java Examples

The following examples show how to use org.springframework.boot.test.autoconfigure.orm.jpa.TestEntityManager. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CustomerRepositoryTest.java    From blog with Apache License 2.0 4 votes vote down vote up
static void enableDatabaseEncryption(TestEntityManager testEntityManager) {
    DatabaseEncryptionPasswordProperty.DATABASE_ENCRYPTION_PASSWORD = "MySuperSecretKey";
    DatabaseEncryptionPasswordProperty.DATABASE_ENCRYPTION_SALT= "deadbeef";
    testEntityManager.clear();
}
 
Example #2
Source File: CustomerRepositoryTest.java    From blog with Apache License 2.0 4 votes vote down vote up
static void disableDatabaseEncryption(TestEntityManager testEntityManager) {
    DatabaseEncryptionPasswordProperty.DATABASE_ENCRYPTION_PASSWORD = null;
    DatabaseEncryptionPasswordProperty.DATABASE_ENCRYPTION_SALT= "deadbeef";
    testEntityManager.clear();
}
 
Example #3
Source File: TestFixtures.java    From inception with Apache License 2.0 4 votes vote down vote up
public TestFixtures(TestEntityManager aEntityManager)
{
    entityManager = aEntityManager;
}
 
Example #4
Source File: TestFixtures.java    From inception with Apache License 2.0 4 votes vote down vote up
public TestFixtures(TestEntityManager aEntityManager)
{
    entityManager = aEntityManager;
}