Package io.pekko.integrationtest.http
Class HttpModelIntegrationSpec
java.lang.Object
org.scalatest.wordspec.AnyWordSpec
io.pekko.integrationtest.http.HttpModelIntegrationSpec
- All Implemented Interfaces:
- Serializable,- org.scalactic.Explicitly,- org.scalactic.Tolerance,- org.scalactic.TripleEquals,- org.scalactic.TripleEqualsSupport,- org.scalatest.Alerting,- org.scalatest.Assertions,- org.scalatest.BeforeAndAfterAll,- 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
public class HttpModelIntegrationSpec
extends org.scalatest.wordspec.AnyWordSpec
implements org.scalatest.matchers.should.Matchers, org.scalatest.BeforeAndAfterAll
Integration test for external HTTP libraries that are built on top of
 Pekko HTTP core. An example of an external library is Play Framework.
 The way these libraries use Pekko HTTP core may be different to how
 normal users would use Pekko HTTP core. For example the libraries may
 need direct access to some model objects that users who use Pekko HTTP
 directly would not require.
 
This test is designed to capture the needs of these external libaries. Each test gives a use case of an external library and then checks that it can be fulfilled. A typical example of a use case is converting between one library's HTTP model and the Pekko HTTP core HTTP model.
This test is located a different package (io.pekko vs org.apache.pekko) in order to check for any visibility issues when Pekko HTTP core is used by third party libraries.
- See Also:
- 
Nested Class SummaryNested 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.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.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 TypeMethodDescriptionorg.scalatest.matchers.should.Matchers.AWorda()org.scalactic.Explicitly.TheAfterWordafter()voidafterAll()org.scalatest.matchers.should.Matchers.AnWordan()org.scalatest.matchers.dsl.BeWordbe()org.scalatest.verbs.CompileWordcompile()org.scalatest.matchers.dsl.ContainWordcontain()org.scalactic.Explicitly.DecidedWorddecided()org.scalatest.matchers.dsl.DefinedWorddefined()org.scalactic.Explicitly.DeterminedWordorg.scalatest.matchers.dsl.EmptyWordempty()org.scalatest.matchers.dsl.EndWithWordendWith()org.scalatest.matchers.dsl.ExistWordexist()org.scalatest.matchers.dsl.FullyMatchWordorg.scalatest.matchers.dsl.HaveWordhave()org.scalatest.matchers.dsl.IncludeWordinclude()booleanorg.scalatest.matchers.should.Matchers.KeyWordkey()org.scalatest.matchers.dsl.LengthWordlength()org.scalatest.matchers.dsl.MatchPatternWordorg.scalatest.matchers.dsl.NotWordnot()org.scalatest.matchers.dsl.ReadableWordreadable()org.scalatest.matchers.should.Matchers.RegexWordregex()org.scalatest.matchers.dsl.SizeWordsize()org.scalatest.matchers.dsl.SortedWordsorted()org.scalatest.matchers.dsl.StartWithWordorg.apache.pekko.actor.ActorSystemsystem()com.typesafe.config.ConfigtestConf()org.scalatest.matchers.should.Matchers.TheSameInstanceAsPhraseorg.scalatest.verbs.TypeCheckWordorg.scalatest.matchers.should.Matchers.ValueWordvalue()org.scalatest.matchers.dsl.WritableWordwritable()Methods inherited from class org.scalatest.wordspec.AnyWordSpec$bang$eq$eq, $bang$eq$eq, $bang$eq$eq, $eq$eq$eq, $eq$eq$eq, $eq$eq$eq, afterWord, alert, assertResult, assertResult, assertThrows, behave, cancel, cancel, cancel, cancel, conversionCheckedConstraint, convertEquivalenceToAToBConstraint, convertEquivalenceToAToBConversionConstraint, convertEquivalenceToBToAConstraint, convertEquivalenceToBToAConversionConstraint, convertToCheckingEqualizer, convertToEqualizer, convertToStringCanWrapper, convertToStringMustWrapperForVerb, convertToStringShouldWrapperForVerb, convertToWordSpecStringWrapper, createCatchReporter, defaultEquality, execute, execute$default$1, execute$default$2, execute$default$3, execute$default$4, execute$default$5, execute$default$6, execute$default$7, expectedTestCount, fail, fail, fail, fail, info, intercept, it, lowPriorityConversionCheckedConstraint, lowPriorityTypeCheckedConstraint, markup, nestedSuites, newAssertionFailedException, newTestCanceledException, NoArgTest, note, org$scalatest$Assertions$_setter_$succeed_$eq, org$scalatest$Suite$_setter_$styleName_$eq, 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, pending, pendingUntilFixed, registerIgnoredTest, registerTest, rerunner, run, runNestedSuites, runTest, runTests, stackDepth, styleName, subjectRegistrationFunction, subjectWithAfterWordRegistrationFunction, succeed, suiteId, suiteName, tags, testDataFor, testDataFor$default$2, testNames, they, toString, typeCheckedConstraint, unconstrainedEquality, withClue, withFixtureMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.scalatest.wordspec.AnyWordSpecLikeorg$scalatest$wordspec$AnyWordSpecLike$$registerBranch, org$scalatest$wordspec$AnyWordSpecLike$$registerShorthandBranch, org$scalatest$wordspec$AnyWordSpecLike$$registerTestToIgnore, org$scalatest$wordspec$AnyWordSpecLike$$registerTestToRunMethods 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.BeforeAndAfterAllbeforeAll, org$scalatest$BeforeAndAfterAll$_setter_$invokeBeforeAllAndAfterAllEvenIfNoTestsAreExpected_$eq, runMethods 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.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.ShouldVerbconvertToStringShouldWrapperForVerbMethods inherited from interface org.scalatest.SuiteMixinexpectedTestCount, nestedSuites, rerunner, runNestedSuites, runTest, runTests, styleName, suiteId, suiteName, tags, testDataFor, testNamesMethods 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, defaultEquality
- 
Constructor Details- 
HttpModelIntegrationSpecpublic HttpModelIntegrationSpec()
 
- 
- 
Method Details- 
apublic org.scalatest.matchers.should.Matchers.AWord a()- Specified by:
- ain interface- org.scalatest.matchers.should.Matchers
 
- 
afterpublic org.scalactic.Explicitly.TheAfterWord after()- Specified by:
- afterin interface- org.scalactic.Explicitly
 
- 
afterAllpublic void afterAll()- Specified by:
- afterAllin interface- org.scalatest.BeforeAndAfterAll
 
- 
anpublic org.scalatest.matchers.should.Matchers.AnWord an()- Specified by:
- anin interface- org.scalatest.matchers.should.Matchers
 
- 
bepublic org.scalatest.matchers.dsl.BeWord be()- Specified by:
- bein interface- org.scalatest.matchers.dsl.MatcherWords
 
- 
compilepublic org.scalatest.verbs.CompileWord compile()- Specified by:
- compilein interface- org.scalatest.matchers.dsl.MatcherWords
 
- 
containpublic org.scalatest.matchers.dsl.ContainWord contain()- Specified by:
- containin interface- org.scalatest.matchers.dsl.MatcherWords
 
- 
decidedpublic org.scalactic.Explicitly.DecidedWord decided()- Specified by:
- decidedin interface- org.scalactic.Explicitly
 
- 
definedpublic org.scalatest.matchers.dsl.DefinedWord defined()- Specified by:
- definedin interface- org.scalatest.matchers.dsl.MatcherWords
 
- 
determinedpublic org.scalactic.Explicitly.DeterminedWord determined()- Specified by:
- determinedin interface- org.scalactic.Explicitly
 
- 
emptypublic org.scalatest.matchers.dsl.EmptyWord empty()- Specified by:
- emptyin interface- org.scalatest.matchers.dsl.MatcherWords
 
- 
endWithpublic org.scalatest.matchers.dsl.EndWithWord endWith()- Specified by:
- endWithin interface- org.scalatest.matchers.dsl.MatcherWords
 
- 
existpublic org.scalatest.matchers.dsl.ExistWord exist()- Specified by:
- existin interface- org.scalatest.matchers.dsl.MatcherWords
 
- 
fullyMatchpublic org.scalatest.matchers.dsl.FullyMatchWord fullyMatch()- Specified by:
- fullyMatchin interface- org.scalatest.matchers.dsl.MatcherWords
 
- 
havepublic org.scalatest.matchers.dsl.HaveWord have()- Specified by:
- havein interface- org.scalatest.matchers.dsl.MatcherWords
 
- 
includepublic org.scalatest.matchers.dsl.IncludeWord include()- Specified by:
- includein interface- org.scalatest.matchers.dsl.MatcherWords
 
- 
invokeBeforeAllAndAfterAllEvenIfNoTestsAreExpectedpublic boolean invokeBeforeAllAndAfterAllEvenIfNoTestsAreExpected()- Specified by:
- invokeBeforeAllAndAfterAllEvenIfNoTestsAreExpectedin interface- org.scalatest.BeforeAndAfterAll
 
- 
keypublic org.scalatest.matchers.should.Matchers.KeyWord key()- Specified by:
- keyin interface- org.scalatest.matchers.should.Matchers
 
- 
lengthpublic org.scalatest.matchers.dsl.LengthWord length()- Specified by:
- lengthin interface- org.scalatest.matchers.dsl.MatcherWords
 
- 
matchPatternpublic org.scalatest.matchers.dsl.MatchPatternWord matchPattern()- Specified by:
- matchPatternin interface- org.scalatest.matchers.dsl.MatcherWords
 
- 
notpublic org.scalatest.matchers.dsl.NotWord not()- Specified by:
- notin interface- org.scalatest.matchers.dsl.MatcherWords
 
- 
readablepublic org.scalatest.matchers.dsl.ReadableWord readable()- Specified by:
- readablein interface- org.scalatest.matchers.dsl.MatcherWords
 
- 
regexpublic org.scalatest.matchers.should.Matchers.RegexWord regex()- Specified by:
- regexin interface- org.scalatest.matchers.should.Matchers
 
- 
sizepublic org.scalatest.matchers.dsl.SizeWord size()- Specified by:
- sizein interface- org.scalatest.matchers.dsl.MatcherWords
 
- 
sortedpublic org.scalatest.matchers.dsl.SortedWord sorted()- Specified by:
- sortedin interface- org.scalatest.matchers.dsl.MatcherWords
 
- 
startWithpublic org.scalatest.matchers.dsl.StartWithWord startWith()- Specified by:
- startWithin interface- org.scalatest.matchers.dsl.MatcherWords
 
- 
systempublic org.apache.pekko.actor.ActorSystem system()
- 
testConfpublic com.typesafe.config.Config testConf()
- 
theSameInstanceAspublic org.scalatest.matchers.should.Matchers.TheSameInstanceAsPhrase theSameInstanceAs()- Specified by:
- theSameInstanceAsin interface- org.scalatest.matchers.should.Matchers
 
- 
typeCheckpublic org.scalatest.verbs.TypeCheckWord typeCheck()- Specified by:
- typeCheckin interface- org.scalatest.matchers.dsl.MatcherWords
 
- 
valuepublic org.scalatest.matchers.should.Matchers.ValueWord value()- Specified by:
- valuein interface- org.scalatest.matchers.should.Matchers
 
- 
writablepublic org.scalatest.matchers.dsl.WritableWord writable()- Specified by:
- writablein interface- org.scalatest.matchers.dsl.MatcherWords
 
 
-