DATAGEODE-180 - Fix test failures.

This commit is contained in:
John Blum
2019-04-10 18:27:44 -07:00
parent ad8195a1a2
commit fcafb4d540
4 changed files with 45 additions and 23 deletions

View File

@@ -796,7 +796,9 @@ public class CacheFactoryBean extends AbstractFactoryBeanSupport<GemFireCache>
@Override
@SuppressWarnings("all")
public GemFireCache getObject() throws Exception {
return Optional.<GemFireCache>ofNullable(getCache()).orElseGet(this::init);
return Optional.<GemFireCache>ofNullable(getCache())
.orElseGet(this::init);
}
/**

View File

@@ -63,8 +63,7 @@ public class DefinedIndexesApplicationListener implements ApplicationListener<Co
queryService.createDefinedIndexes();
}
catch (MultiIndexCreationException cause) {
logger.warn("Failed to create pre-defined Indexes: {}", cause.getMessage(), cause);
logger.warn(String.format("Failed to create pre-defined Indexes: %s", cause.getMessage()), cause);
}
});
}