This commit is contained in:
dougqh 2019-10-02 14:39:20 -04:00
parent dfcf9c6abd
commit 001d1d8282
1 changed files with 5 additions and 3 deletions

View File

@ -24,13 +24,15 @@ class Elasticsearch53SpringRepositoryTest extends AgentTestRunner {
DocRepository repo = Proxy.newProxyInstance(
getClass().getClassLoader(),
[DocRepository] as Class[],
new LazyProxyInvoker());
new LazyProxyInvoker())
static class LazyProxyInvoker implements InvocationHandler {
def repo;
def repo
DocRepository getOrCreateRepository() {
if ( repo != null ) return repo;
if (repo != null) {
return repo
}
TEST_WRITER.clear()
runUnderTrace("setup") {