diff --git a/src/core/Akka.Persistence.TCK/Journal/JournalSpec.cs b/src/core/Akka.Persistence.TCK/Journal/JournalSpec.cs index c95220a00dd..10248194248 100644 --- a/src/core/Akka.Persistence.TCK/Journal/JournalSpec.cs +++ b/src/core/Akka.Persistence.TCK/Journal/JournalSpec.cs @@ -10,6 +10,7 @@ using System.Collections.Immutable; using System.Linq; using Akka.Actor; +using Akka.Actor.Setup; using Akka.Configuration; using Akka.Persistence.TCK.Serialization; using Akka.TestKit; @@ -52,6 +53,18 @@ protected JournalSpec(Config config = null, string actorSystemName = null, ITest { } + protected JournalSpec(ActorSystemSetup setup, string actorSystemName = null, ITestOutputHelper output = null) + : base(setup, actorSystemName ?? "SnapshotStoreSpec", output) + { + _senderProbe = CreateTestProbe(); + } + + protected JournalSpec(ActorSystem system = null, ITestOutputHelper output = null) + : base(system, output) + { + _senderProbe = CreateTestProbe(); + } + protected override bool SupportsSerialization => true; /// diff --git a/src/core/Akka.Persistence.TCK/PluginSpec.cs b/src/core/Akka.Persistence.TCK/PluginSpec.cs index d92f8364748..f82a4856904 100644 --- a/src/core/Akka.Persistence.TCK/PluginSpec.cs +++ b/src/core/Akka.Persistence.TCK/PluginSpec.cs @@ -7,6 +7,7 @@ using System; using Akka.Actor; +using Akka.Actor.Setup; using Akka.Configuration; using Akka.Util.Internal; using Xunit.Abstractions; @@ -27,6 +28,22 @@ protected PluginSpec(Config config = null, string actorSystemName = null, ITestO WriterGuid = Guid.NewGuid().ToString(); } + protected PluginSpec(ActorSystemSetup setup, string actorSystemName = null, ITestOutputHelper output = null) + : base(setup, actorSystemName, output) + { + Extension = Persistence.Instance.Apply(Sys as ExtendedActorSystem); + Pid = "p-" + Counter.IncrementAndGet(); + WriterGuid = Guid.NewGuid().ToString(); + } + + protected PluginSpec(ActorSystem system = null, ITestOutputHelper output = null) + : base(system, output) + { + Extension = Persistence.Instance.Apply(Sys as ExtendedActorSystem); + Pid = "p-" + Counter.IncrementAndGet(); + WriterGuid = Guid.NewGuid().ToString(); + } + protected static Config FromConfig(Config config = null) { return config.IsNullOrEmpty() diff --git a/src/core/Akka.Persistence.TCK/Snapshot/SnapshotStoreSpec.cs b/src/core/Akka.Persistence.TCK/Snapshot/SnapshotStoreSpec.cs index 952e612d509..e19c31cb3ea 100644 --- a/src/core/Akka.Persistence.TCK/Snapshot/SnapshotStoreSpec.cs +++ b/src/core/Akka.Persistence.TCK/Snapshot/SnapshotStoreSpec.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Linq; using Akka.Actor; +using Akka.Actor.Setup; using Akka.Configuration; using Akka.Persistence.Fsm; using Akka.Persistence.TCK.Serialization; @@ -56,6 +57,18 @@ protected SnapshotStoreSpec(Config config = null, string actorSystemName = null, _senderProbe = CreateTestProbe(); } + protected SnapshotStoreSpec(ActorSystemSetup setup, string actorSystemName = null, ITestOutputHelper output = null) + : base(setup, actorSystemName ?? "SnapshotStoreSpec", output) + { + _senderProbe = CreateTestProbe(); + } + + protected SnapshotStoreSpec(ActorSystem system = null, ITestOutputHelper output = null) + : base(system, output) + { + _senderProbe = CreateTestProbe(); + } + protected SnapshotStoreSpec(Type snapshotStoreType, string actorSystemName = null) : base(ConfigFromTemplate(snapshotStoreType), actorSystemName) { diff --git a/src/core/Akka/Actor/ActorSystem.cs b/src/core/Akka/Actor/ActorSystem.cs index 69513bf41f0..481aafbd06b 100644 --- a/src/core/Akka/Actor/ActorSystem.cs +++ b/src/core/Akka/Actor/ActorSystem.cs @@ -93,7 +93,7 @@ internal static ProviderSelection GetProvider(string providerClass) } /// - /// Core boostrap settings for the , which can be created using one of the static factory methods + /// Core bootstrap settings for the , which can be created using one of the static factory methods /// on this class. /// public sealed class BootstrapSetup : Setup.Setup