mirror of
https://github.com/google/nomulus.git
synced 2025-07-09 04:33:28 +02:00
Make jpaTm for nomulus tool use local credential (#515)
* Make jpaTm for nomulus tool use local credential * Remove unused methods in RegistryToolEnvironment * Fix order of annotations * Remove unused method in PersistenceComponent * Move the creation of credential to the module * Move creadential creation to AuthModule * Add a TODO
This commit is contained in:
parent
e9610636e4
commit
d01f1f7604
11 changed files with 86 additions and 38 deletions
|
@ -133,12 +133,12 @@ abstract class JpaTransactionManagerRule extends ExternalResource {
|
|||
extraEntityClasses);
|
||||
JpaTransactionManagerImpl txnManager = new JpaTransactionManagerImpl(emf, clock);
|
||||
cachedTm = TransactionManagerFactory.jpaTm();
|
||||
TransactionManagerFactory.setJpaTmForTesting(txnManager);
|
||||
TransactionManagerFactory.setJpaTm(txnManager);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void after() {
|
||||
TransactionManagerFactory.setJpaTmForTesting(cachedTm);
|
||||
TransactionManagerFactory.setJpaTm(cachedTm);
|
||||
if (emf != null) {
|
||||
emf.close();
|
||||
emf = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue