java format
This commit is contained in:
parent
7e07ee17a6
commit
3c12f19576
1 changed files with 15 additions and 15 deletions
|
|
@ -29,19 +29,19 @@ public class PersistenceInitTest extends AbstractJavaTest {
|
||||||
new TestKitJunitResource(
|
new TestKitJunitResource(
|
||||||
ConfigFactory.parseString(
|
ConfigFactory.parseString(
|
||||||
"akka.persistence.journal.plugin = \"akka.persistence.journal.inmem\" \n"
|
"akka.persistence.journal.plugin = \"akka.persistence.journal.inmem\" \n"
|
||||||
+ "akka.persistence.journal.inmem.test-serialization = on \n" +
|
+ "akka.persistence.journal.inmem.test-serialization = on \n"
|
||||||
"akka.persistence.snapshot-store.plugin = \"akka.persistence.snapshot-store.local\" \n"
|
+ "akka.persistence.snapshot-store.plugin = \"akka.persistence.snapshot-store.local\" \n"
|
||||||
+ "akka.persistence.snapshot-store.local.dir = \"target/snapshot-"
|
+ "akka.persistence.snapshot-store.local.dir = \"target/snapshot-"
|
||||||
+ UUID.randomUUID().toString()
|
+ UUID.randomUUID().toString()
|
||||||
+ "\" \n"
|
+ "\" \n")
|
||||||
)
|
|
||||||
.withFallback(ConfigFactory.defaultApplication()));
|
.withFallback(ConfigFactory.defaultApplication()));
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testInit() throws Exception {
|
public void testInit() throws Exception {
|
||||||
// #init
|
// #init
|
||||||
Duration timeout = Duration.ofSeconds(5);
|
Duration timeout = Duration.ofSeconds(5);
|
||||||
CompletionStage<Done> done = PersistenceInit.initializeDefaultPlugins(testKit.system(), timeout);
|
CompletionStage<Done> done =
|
||||||
|
PersistenceInit.initializeDefaultPlugins(testKit.system(), timeout);
|
||||||
done.toCompletableFuture().get(timeout.getSeconds(), TimeUnit.SECONDS);
|
done.toCompletableFuture().get(timeout.getSeconds(), TimeUnit.SECONDS);
|
||||||
// #init
|
// #init
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue