Package org.apache.pekko.testkit
Class PekkoSpec
java.lang.Object
org.apache.pekko.testkit.TestKit
org.apache.pekko.testkit.PekkoBaseSpec
org.apache.pekko.testkit.PekkoSpec
- All Implemented Interfaces:
- Serializable,- org.apache.pekko.testkit.TestKitBase,- WatchedByCoroner,- org.scalactic.Explicitly,- org.scalactic.LowPriorityTypeCheckedConstraint,- org.scalactic.Tolerance,- org.scalactic.TripleEquals,- org.scalactic.TripleEqualsSupport,- org.scalactic.TypeCheckedTripleEquals,- org.scalatest.Alerting,- org.scalatest.Assertions,- org.scalatest.BeforeAndAfterAll,- org.scalatest.concurrent.AbstractPatienceConfiguration,- org.scalatest.concurrent.Futures,- org.scalatest.concurrent.PatienceConfiguration,- org.scalatest.concurrent.ScalaFutures,- org.scalatest.concurrent.ScaledTimeSpans,- org.scalatest.Documenting,- org.scalatest.Informing,- org.scalatest.matchers.dsl.MatcherWords,- org.scalatest.matchers.should.Matchers,- org.scalatest.Notifying,- org.scalatest.Suite,- org.scalatest.SuiteMixin,- org.scalatest.TestRegistration,- org.scalatest.TestSuite,- org.scalatest.verbs.CanVerb,- org.scalatest.verbs.MustVerb,- org.scalatest.verbs.ShouldVerb,- org.scalatest.wordspec.AnyWordSpecLike
- Direct Known Subclasses:
- ClientConnectionSettingsSpec,- ConfigSpec,- ConnectionPoolSettingsSpec,- Http2CommonSettingsSpec,- HttpConfigurationSpec,- HttpServerSpec,- One2OneBidiFlowSpec,- PekkoSpecWithMaterializer,- PrepareRequestsSpec,- PrepareResponseSpec,- ResponseParsingMergeSpec,- ServerSettingsSpec,- SlotStateSpec,- StreamUtilsSpec
public abstract class PekkoSpec
extends PekkoBaseSpec
implements org.scalatest.wordspec.AnyWordSpecLike, org.scalatest.BeforeAndAfterAll
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.scalatest.concurrent.AbstractPatienceConfigurationorg.scalatest.concurrent.AbstractPatienceConfiguration.PatienceConfig, org.scalatest.concurrent.AbstractPatienceConfiguration.PatienceConfig$Nested classes/interfaces inherited from interface org.scalatest.wordspec.AnyWordSpecLikeorg.scalatest.wordspec.AnyWordSpecLike.AfterWord, org.scalatest.wordspec.AnyWordSpecLike.ItWord, org.scalatest.wordspec.AnyWordSpecLike.ResultOfTaggedAsInvocationOnString, org.scalatest.wordspec.AnyWordSpecLike.TheyWord, org.scalatest.wordspec.AnyWordSpecLike.WordSpecStringWrapperNested classes/interfaces inherited from interface org.scalatest.Assertionsorg.scalatest.Assertions.AssertionsHelperNested classes/interfaces inherited from interface org.scalatest.verbs.CanVerborg.scalatest.verbs.CanVerb.StringCanWrapperForVerbNested classes/interfaces inherited from interface org.scalactic.Explicitlyorg.scalactic.Explicitly.DecidedByEquality<A extends Object>, org.scalactic.Explicitly.DecidedWord, org.scalactic.Explicitly.DeterminedByEquivalence<T extends Object>, org.scalactic.Explicitly.DeterminedWord, org.scalactic.Explicitly.TheAfterWordNested classes/interfaces inherited from interface org.scalatest.concurrent.Futuresorg.scalatest.concurrent.Futures.FutureConcept<T extends Object>Nested classes/interfaces inherited from interface org.scalatest.matchers.should.Matchersorg.scalatest.matchers.should.Matchers.AnWord, org.scalatest.matchers.should.Matchers.AnyShouldWrapper<T extends Object>, org.scalatest.matchers.should.Matchers.AWord, org.scalatest.matchers.should.Matchers.Collected, org.scalatest.matchers.should.Matchers.HavePropertyMatcherGenerator, org.scalatest.matchers.should.Matchers.KeyWord, org.scalatest.matchers.should.Matchers.RegexWord, org.scalatest.matchers.should.Matchers.RegexWrapper, org.scalatest.matchers.should.Matchers.ResultOfBeWordForAny<T extends Object>, org.scalatest.matchers.should.Matchers.ResultOfBeWordForCollectedAny<T extends Object>, org.scalatest.matchers.should.Matchers.ResultOfBeWordForCollectedArray<T extends Object>, org.scalatest.matchers.should.Matchers.ResultOfCollectedAny<T extends Object>, org.scalatest.matchers.should.Matchers.ResultOfContainWordForCollectedAny<T extends Object>, org.scalatest.matchers.should.Matchers.ResultOfEndWithWordForCollectedString, org.scalatest.matchers.should.Matchers.ResultOfEndWithWordForString, org.scalatest.matchers.should.Matchers.ResultOfFullyMatchWordForCollectedString, org.scalatest.matchers.should.Matchers.ResultOfFullyMatchWordForString, org.scalatest.matchers.should.Matchers.ResultOfHaveWordForCollectedExtent<A extends Object>, org.scalatest.matchers.should.Matchers.ResultOfHaveWordForExtent<A extends Object>, org.scalatest.matchers.should.Matchers.ResultOfIncludeWordForCollectedString, org.scalatest.matchers.should.Matchers.ResultOfIncludeWordForString, org.scalatest.matchers.should.Matchers.ResultOfNotWordForCollectedAny<T extends Object>, org.scalatest.matchers.should.Matchers.ResultOfStartWithWordForCollectedString, org.scalatest.matchers.should.Matchers.ResultOfStartWithWordForString, org.scalatest.matchers.should.Matchers.StringShouldWrapper, org.scalatest.matchers.should.Matchers.TheSameInstanceAsPhrase, org.scalatest.matchers.should.Matchers.ValueWordNested classes/interfaces inherited from interface org.scalatest.verbs.MustVerborg.scalatest.verbs.MustVerb.StringMustWrapperForVerbNested classes/interfaces inherited from interface org.scalatest.concurrent.PatienceConfigurationorg.scalatest.concurrent.PatienceConfiguration.Interval, org.scalatest.concurrent.PatienceConfiguration.Interval$, org.scalatest.concurrent.PatienceConfiguration.PatienceConfigParam, org.scalatest.concurrent.PatienceConfiguration.Timeout, org.scalatest.concurrent.PatienceConfiguration.Timeout$Nested classes/interfaces inherited from interface org.scalatest.verbs.ShouldVerborg.scalatest.verbs.ShouldVerb.StringShouldWrapperForVerbNested classes/interfaces inherited from interface org.scalatest.TestSuiteorg.scalatest.TestSuite.NoArgTest, org.scalatest.TestSuite.NoArgTest$Nested classes/interfaces inherited from interface org.scalactic.Toleranceorg.scalactic.Tolerance.PlusOrMinusWrapper<T extends Object>Nested classes/interfaces inherited from interface org.scalactic.TripleEqualsSupportorg.scalactic.TripleEqualsSupport.AToBEquivalenceConstraint<A extends Object,B extends Object>, org.scalactic.TripleEqualsSupport.BToAEquivalenceConstraint<A extends Object, B extends Object>, org.scalactic.TripleEqualsSupport.CheckingEqualizer<L extends Object>, org.scalactic.TripleEqualsSupport.EqualityConstraint<A extends Object, B extends Object>, org.scalactic.TripleEqualsSupport.Equalizer<L extends Object>, org.scalactic.TripleEqualsSupport.Spread<T extends Object>, org.scalactic.TripleEqualsSupport.Spread$, org.scalactic.TripleEqualsSupport.TripleEqualsInvocation<T extends Object>, org.scalactic.TripleEqualsSupport.TripleEqualsInvocation$, org.scalactic.TripleEqualsSupport.TripleEqualsInvocationOnSpread<T extends Object>, org.scalactic.TripleEqualsSupport.TripleEqualsInvocationOnSpread$ 
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal voidafterAll()final voidprotected org.scalatest.verbs.BehaveWordbehave()static StringgetCallerName(Class<?> clazz) booleanprotected org.scalatest.wordspec.AnyWordSpecLike.ItWordit()static com.typesafe.config.ConfigmapToConfig(scala.collection.immutable.Map<String, Object> map) intfinal StringDeprecated.The styleName lifecycle method has been deprecated and will be removed in a future version of ScalaTest with no replacement.protected org.scalatest.verbs.StringVerbBlockRegistrationprotected org.scalatest.verbs.SubjectWithAfterWordRegistrationstatic com.typesafe.config.ConfigtestConf()protected org.scalatest.wordspec.AnyWordSpecLike.TheyWordthey()Methods inherited from class org.apache.pekko.testkit.PekkoBaseSpeca, after, afterTermination, an, atStartup, be, beforeTermination, classEqualityConstraint, compile, contain, decided, defined, determined, empty, endWith, exist, expectedTestDuration, fullyMatch, have, include, jsAdjustment, key, length, log, matchPattern, muteDeadLetters, NoArgTest, not, patience, PatienceConfig, readable, regex, setEqualityConstraint, size, sorted, spawn, startWith, succeed, theSameInstanceAs, typeCheck, value, writableMethods inherited from class org.apache.pekko.testkit.TestKitassertForDuration, assertForDuration$default$3, awaitAssert, awaitAssert$default$2, awaitAssert$default$3, awaitCond, awaitCond$default$2, awaitCond$default$3, awaitCond$default$4, childActorOf, childActorOf, childActorOf, childActorOf, expectMsg, expectMsg, expectMsg, expectMsgAllClassOf, expectMsgAllClassOf, expectMsgAllConformingOf, expectMsgAllConformingOf, expectMsgAllOf, expectMsgAllOf, expectMsgAnyClassOf, expectMsgAnyClassOf, expectMsgAnyOf, expectMsgAnyOf, expectMsgClass, expectMsgClass, expectMsgPF, expectMsgPF$default$1, expectMsgPF$default$2, expectMsgType, expectMsgType, expectNoMessage, expectNoMessage, expectNoMsg, expectNoMsg, expectTerminated, expectTerminated$default$2, fishForMessage, fishForMessage$default$1, fishForMessage$default$2, fishForSpecificMessage, fishForSpecificMessage$default$1, fishForSpecificMessage$default$2, ignoreMsg, ignoreNoMsg, lastMessage, lastMessage_$eq, lastSender, msgAvailable, now, org$apache$pekko$testkit$TestKitBase$_setter_$org$apache$pekko$testkit$TestKitBase$$queue_$eq, org$apache$pekko$testkit$TestKitBase$$end, org$apache$pekko$testkit$TestKitBase$$end_$eq, org$apache$pekko$testkit$TestKitBase$$lastWasNoMsg, org$apache$pekko$testkit$TestKitBase$$lastWasNoMsg_$eq, org$apache$pekko$testkit$TestKitBase$$queue, receiveN, receiveN, receiveOne, receiveWhile, receiveWhile$default$1, receiveWhile$default$2, receiveWhile$default$3, remaining, remainingOr, remainingOrDefault, setAutoPilot, shutdown, shutdown$default$1, shutdown$default$2, shutdown$default$3, shutdownActorSystem, shutdownActorSystem$default$2, shutdownActorSystem$default$3, system, testActor, testActorName, testKitSettings, unwatch, watch, within, withinMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.scalatest.wordspec.AnyWordSpecLikeafterWord, alert, convertToWordSpecStringWrapper, info, markup, note, org$scalatest$wordspec$AnyWordSpecLike$_setter_$behave_$eq, org$scalatest$wordspec$AnyWordSpecLike$_setter_$it_$eq, org$scalatest$wordspec$AnyWordSpecLike$_setter_$org$scalatest$wordspec$AnyWordSpecLike$$engine_$eq, org$scalatest$wordspec$AnyWordSpecLike$_setter_$stackDepth_$eq, org$scalatest$wordspec$AnyWordSpecLike$_setter_$styleName_$eq, org$scalatest$wordspec$AnyWordSpecLike$_setter_$subjectRegistrationFunction_$eq, org$scalatest$wordspec$AnyWordSpecLike$_setter_$subjectWithAfterWordRegistrationFunction_$eq, org$scalatest$wordspec$AnyWordSpecLike$_setter_$they_$eq, org$scalatest$wordspec$AnyWordSpecLike$$engine, org$scalatest$wordspec$AnyWordSpecLike$$registerBranch, org$scalatest$wordspec$AnyWordSpecLike$$registerShorthandBranch, org$scalatest$wordspec$AnyWordSpecLike$$registerTestToIgnore, org$scalatest$wordspec$AnyWordSpecLike$$registerTestToRun, registerIgnoredTest, registerTest, run, runTest, runTests, tags, testDataFor, testDataFor$default$2, testNamesMethods inherited from interface org.scalatest.AssertionsassertResult, assertResult, assertThrows, cancel, cancel, cancel, cancel, fail, fail, fail, fail, intercept, newAssertionFailedException, newTestCanceledException, org$scalatest$Assertions$_setter_$succeed_$eq, pending, pendingUntilFixed, succeed, withClueMethods inherited from interface org.scalatest.BeforeAndAfterAllorg$scalatest$BeforeAndAfterAll$_setter_$invokeBeforeAllAndAfterAllEvenIfNoTestsAreExpected_$eq, runMethods inherited from interface org.scalatest.verbs.CanVerbconvertToStringCanWrapperMethods inherited from interface org.scalactic.Explicitlyorg$scalactic$Explicitly$_setter_$after_$eq, org$scalactic$Explicitly$_setter_$decided_$eq, org$scalactic$Explicitly$_setter_$determined_$eqMethods inherited from interface org.scalatest.concurrent.Futuresorg$scalatest$concurrent$Futures$_setter_$jsAdjustment_$eq, whenReady, whenReady, whenReady, whenReadyMethods inherited from interface org.scalactic.LowPriorityTypeCheckedConstraintconvertEquivalenceToAToBConstraint, lowPriorityTypeCheckedConstraintMethods inherited from interface org.scalatest.matchers.should.Matchers$greater, $greater$eq, $less, $less$eq, a, all, all, all, all, allElementsOf, allOf, an, atLeast, atLeast, atLeast, atLeast, atLeastOneElementOf, atLeastOneOf, atMost, atMost, atMost, atMost, atMostOneElementOf, atMostOneOf, between, between, between, convertSymbolToHavePropertyMatcherGenerator, convertToAnyShouldWrapper, convertToRegexWrapper, convertToStringShouldWrapper, definedAt, doCollected, equal, equal, every, every, every, every, exactly, exactly, exactly, exactly, inOrder, inOrderElementsOf, inOrderOnly, message, no, no, no, noElementsOf, noneOf, of, oneElementOf, oneOf, only, org$scalatest$matchers$should$Matchers$_setter_$a_$eq, org$scalatest$matchers$should$Matchers$_setter_$an_$eq, org$scalatest$matchers$should$Matchers$_setter_$key_$eq, org$scalatest$matchers$should$Matchers$_setter_$org$scalatest$matchers$should$Matchers$$AllCollected_$eq, org$scalatest$matchers$should$Matchers$_setter_$org$scalatest$matchers$should$Matchers$$EveryCollected_$eq, org$scalatest$matchers$should$Matchers$_setter_$org$scalatest$matchers$should$Matchers$$NoCollected_$eq, org$scalatest$matchers$should$Matchers$_setter_$org$scalatest$matchers$should$Matchers$$ShouldMethodHelper_$eq, org$scalatest$matchers$should$Matchers$_setter_$regex_$eq, org$scalatest$matchers$should$Matchers$_setter_$theSameInstanceAs_$eq, org$scalatest$matchers$should$Matchers$_setter_$value_$eq, org$scalatest$matchers$should$Matchers$$AllCollected, org$scalatest$matchers$should$Matchers$$AtLeastCollected, org$scalatest$matchers$should$Matchers$$AtMostCollected, org$scalatest$matchers$should$Matchers$$BetweenCollected, org$scalatest$matchers$should$Matchers$$EveryCollected, org$scalatest$matchers$should$Matchers$$ExactlyCollected, org$scalatest$matchers$should$Matchers$$NoCollected, org$scalatest$matchers$should$Matchers$$ShouldMethodHelper, the, theSameElementsAs, theSameElementsInOrderAs, thrownByMethods inherited from interface org.scalatest.matchers.dsl.MatcherWordsequal, noException, org$scalatest$matchers$dsl$MatcherWords$_setter_$be_$eq, org$scalatest$matchers$dsl$MatcherWords$_setter_$compile_$eq, org$scalatest$matchers$dsl$MatcherWords$_setter_$contain_$eq, org$scalatest$matchers$dsl$MatcherWords$_setter_$defined_$eq, org$scalatest$matchers$dsl$MatcherWords$_setter_$empty_$eq, org$scalatest$matchers$dsl$MatcherWords$_setter_$endWith_$eq, org$scalatest$matchers$dsl$MatcherWords$_setter_$exist_$eq, org$scalatest$matchers$dsl$MatcherWords$_setter_$fullyMatch_$eq, org$scalatest$matchers$dsl$MatcherWords$_setter_$have_$eq, org$scalatest$matchers$dsl$MatcherWords$_setter_$include_$eq, org$scalatest$matchers$dsl$MatcherWords$_setter_$length_$eq, org$scalatest$matchers$dsl$MatcherWords$_setter_$matchPattern_$eq, org$scalatest$matchers$dsl$MatcherWords$_setter_$not_$eq, org$scalatest$matchers$dsl$MatcherWords$_setter_$readable_$eq, org$scalatest$matchers$dsl$MatcherWords$_setter_$size_$eq, org$scalatest$matchers$dsl$MatcherWords$_setter_$sorted_$eq, org$scalatest$matchers$dsl$MatcherWords$_setter_$startWith_$eq, org$scalatest$matchers$dsl$MatcherWords$_setter_$typeCheck_$eq, org$scalatest$matchers$dsl$MatcherWords$_setter_$writable_$eqMethods inherited from interface org.scalatest.verbs.MustVerbconvertToStringMustWrapperForVerbMethods inherited from interface org.scalatest.concurrent.PatienceConfigurationinterval, org$scalatest$concurrent$PatienceConfiguration$_setter_$org$scalatest$concurrent$PatienceConfiguration$$defaultPatienceConfig_$eq, org$scalatest$concurrent$PatienceConfiguration$$defaultPatienceConfig, patienceConfig, timeoutMethods inherited from interface org.scalatest.concurrent.ScalaFuturesconvertScalaFutureMethods inherited from interface org.scalatest.concurrent.ScaledTimeSpansscaled, spanScaleFactorMethods inherited from interface org.scalatest.verbs.ShouldVerbconvertToStringShouldWrapperForVerbMethods inherited from interface org.scalatest.SuitecreateCatchReporter, execute, execute$default$1, execute$default$2, execute$default$3, execute$default$4, execute$default$5, execute$default$6, execute$default$7, expectedTestCount, nestedSuites, org$scalatest$Suite$_setter_$styleName_$eq, rerunner, runNestedSuites, suiteId, suiteNameMethods inherited from interface org.scalatest.SuiteMixinexpectedTestCount, nestedSuites, rerunner, runNestedSuites, runTest, runTests, suiteId, suiteName, tags, testDataFor, testNamesMethods inherited from interface org.scalatest.TestSuiteNoArgTest, withFixtureMethods inherited from interface org.scalactic.ToleranceconvertNumericToPlusOrMinusWrapperMethods inherited from interface org.scalactic.TripleEqualsconversionCheckedConstraint, convertEquivalenceToAToBConstraint, convertEquivalenceToAToBConversionConstraint, convertEquivalenceToBToAConstraint, convertEquivalenceToBToAConversionConstraint, convertToCheckingEqualizer, convertToEqualizer, lowPriorityConversionCheckedConstraint, lowPriorityTypeCheckedConstraint, typeCheckedConstraint, unconstrainedEqualityMethods inherited from interface org.scalactic.TripleEqualsSupport$bang$eq$eq, $bang$eq$eq, $bang$eq$eq, $eq$eq$eq, $eq$eq$eq, $eq$eq$eq, defaultEqualityMethods inherited from interface org.scalactic.TypeCheckedTripleEqualsconversionCheckedConstraint, convertEquivalenceToAToBConversionConstraint, convertEquivalenceToBToAConstraint, convertEquivalenceToBToAConversionConstraint, convertToCheckingEqualizer, convertToEqualizer, lowPriorityConversionCheckedConstraint, typeCheckedConstraint, unconstrainedEqualityMethods inherited from interface org.apache.pekko.testkit.WatchedByCoronerdisplayThreadCounts, startAndStopDuration, startCoroner, stopCoroner
- 
Constructor Details- 
PekkoSpecpublic PekkoSpec(org.apache.pekko.actor.ActorSystem _system) 
- 
PekkoSpecpublic PekkoSpec(com.typesafe.config.Config config) 
- 
PekkoSpec
- 
PekkoSpec
- 
PekkoSpecpublic PekkoSpec()
 
- 
- 
Method Details- 
testConfpublic static com.typesafe.config.Config testConf()
- 
mapToConfig
- 
getCallerName
- 
stackDepthpublic int stackDepth()- Specified by:
- stackDepthin interface- org.scalatest.wordspec.AnyWordSpecLike
 
- 
itprotected org.scalatest.wordspec.AnyWordSpecLike.ItWord it()- Specified by:
- itin interface- org.scalatest.wordspec.AnyWordSpecLike
 
- 
theyprotected org.scalatest.wordspec.AnyWordSpecLike.TheyWord they()- Specified by:
- theyin interface- org.scalatest.wordspec.AnyWordSpecLike
 
- 
subjectRegistrationFunctionprotected org.scalatest.verbs.StringVerbBlockRegistration subjectRegistrationFunction()- Specified by:
- subjectRegistrationFunctionin interface- org.scalatest.wordspec.AnyWordSpecLike
 
- 
subjectWithAfterWordRegistrationFunctionprotected org.scalatest.verbs.SubjectWithAfterWordRegistration subjectWithAfterWordRegistrationFunction()- Specified by:
- subjectWithAfterWordRegistrationFunctionin interface- org.scalatest.wordspec.AnyWordSpecLike
 
- 
behaveprotected org.scalatest.verbs.BehaveWord behave()- Specified by:
- behavein interface- org.scalatest.wordspec.AnyWordSpecLike
 
- 
styleNameDeprecated.The styleName lifecycle method has been deprecated and will be removed in a future version of ScalaTest with no replacement. Since 3.1.0.- Specified by:
- styleNamein interface- org.scalatest.wordspec.AnyWordSpecLike
- Specified by:
- styleNamein interface- org.scalatest.Suite
- Specified by:
- styleNamein interface- org.scalatest.SuiteMixin
- Overrides:
- styleNamein class- PekkoBaseSpec
 
- 
invokeBeforeAllAndAfterAllEvenIfNoTestsAreExpectedpublic boolean invokeBeforeAllAndAfterAllEvenIfNoTestsAreExpected()- Specified by:
- invokeBeforeAllAndAfterAllEvenIfNoTestsAreExpectedin interface- org.scalatest.BeforeAndAfterAll
 
- 
beforeAllpublic final void beforeAll()- Specified by:
- beforeAllin interface- org.scalatest.BeforeAndAfterAll
 
- 
afterAllpublic final void afterAll()- Specified by:
- afterAllin interface- org.scalatest.BeforeAndAfterAll
 
 
-