SubmissionsTestData

uk.gov.hmrc.apiplatform.modules.organisations.submissions.utils.SubmissionsTestData

Attributes

Graph
Supertypes
trait FixedClock
trait ClockNow
class Object
trait Matchable
class Any
Show all
Known subtypes

Members list

Type members

Inherited classlikes

object Instants

Attributes

Inherited from:
FixedClock
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
QuestionnaireTestData
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
QuestionnaireTestData
Supertypes
class Object
trait Matchable
class Any
object Texts

Attributes

Inherited from:
FixedClock
Supertypes
class Object
trait Matchable
class Any
object given_MakeOptional_ChooseOneOfQuestion extends MakeOptional[ChooseOneOfQuestion]

Attributes

Inherited from:
QuestionBuilder
Supertypes
trait MakeOptional[ChooseOneOfQuestion]
class Object
trait Matchable
class Any
object given_MakeOptional_MultiChoiceQuestion extends MakeOptional[MultiChoiceQuestion]

Attributes

Inherited from:
QuestionBuilder
Supertypes
trait MakeOptional[MultiChoiceQuestion]
class Object
trait Matchable
class Any
object given_MakeOptional_TextQuestion extends MakeOptional[TextQuestion]

Attributes

Inherited from:
QuestionBuilder
Supertypes
trait MakeOptional[TextQuestion]
class Object
trait Matchable
class Any
object given_MakeOptional_YesNoQuestion extends MakeOptional[YesNoQuestion]

Attributes

Inherited from:
QuestionBuilder
Supertypes
trait MakeOptional[YesNoQuestion]
class Object
trait Matchable
class Any

Value members

Concrete methods

def allFirstQuestions(questionnaires: NonEmptyList[Questionnaire]): Map[Id, Id]
def buildFullyAnsweredSubmission(submission: Submission = ...): Submission
def buildPartiallyAnsweredSubmission(submission: Submission = ...): Submission
def buildSubmissionWithQuestions(): Submission

Inherited methods

def acknowledgementOnly(counter: Int): AcknowledgementOnly

Attributes

Inherited from:
QuestionBuilder
def addressQuestion(counter: Int): AddressQuestion

Attributes

Inherited from:
QuestionBuilder
def chooseOneOfQuestion(counter: Int, choices: String*): ChooseOneOfQuestion

Attributes

Inherited from:
QuestionBuilder
def dateQuestion(counter: Int): DateQuestion

Attributes

Inherited from:
QuestionBuilder
def firstQuestion(questionnaire: Questionnaire): Id

Attributes

Inherited from:
QuestionnaireTestData
def multichoiceQuestion(counter: Int, choices: String*): MultiChoiceQuestion

Attributes

Inherited from:
QuestionBuilder
def nameQuestion(counter: Int): NameQuestion

Attributes

Inherited from:
QuestionBuilder
def textQuestion(counter: Int): TextQuestion

Attributes

Inherited from:
QuestionBuilder
def yesNoQuestion(counter: Int): YesNoQuestion

Attributes

Inherited from:
QuestionBuilder

Concrete fields

val aSubmission: Submission
val altSubmission: Submission
val altSubmissionId: SubmissionId
val answeredSubmission: Submission
val answeringSubmission: Submission
val completedSubmissionId: SubmissionId
val completelyAnswerExtendedSubmission: ExtendedSubmission
val createdSubmission: Submission
val declinedSubmission: Submission
val failSubmission: Submission
val gatekeeperUserName: String
val grantedSubmission: Submission
val organisationId: OrganisationId
val partialQuestionnaireProgress: Map[Id, QuestionnaireProgress]
val partiallyAnsweredExtendedSubmission: ExtendedSubmission
val pendingRISubmission: Submission
val reasons: String
val simpleContext: Map[String, String]
val soldContext: Map[String, String]
val standardContext: Context
val submissionId: SubmissionId
val submittedSubmission: Submission
val userId: UserId
val vatContext: Map[String, String]
val warnings: String
val warningsSubmission: Submission

Inherited fields

val allQuestionnaires: NonEmptyList[Questionnaire]

Attributes

Inherited from:
QuestionnaireTestData
val answersToQuestions: AnswersToQuestions

Attributes

Inherited from:
QuestionnaireTestData
val clock: Clock

Attributes

Inherited from:
FixedClock
val expectedAppName: String

Attributes

Inherited from:
QuestionnaireTestData
override val instant: Instant

Attributes

Inherited from:
FixedClock
override val now: LocalDateTime

Attributes

Inherited from:
FixedClock
val nowAsText: String

Attributes

Inherited from:
FixedClock
val optionalQuestion: TextQuestion

Attributes

Inherited from:
QuestionnaireTestData

Attributes

Inherited from:
QuestionnaireTestData
override val precise: Instant

Attributes

Inherited from:
FixedClock
val question: Question

Attributes

Inherited from:
QuestionnaireTestData
val question2Id: Id

Attributes

Inherited from:
QuestionnaireTestData
val question3Id: Id

Attributes

Inherited from:
QuestionnaireTestData
val questionAltId: Id

Attributes

Inherited from:
QuestionnaireTestData
val questionId: Id

Attributes

Inherited from:
QuestionnaireTestData
val questionnaire: Questionnaire

Attributes

Inherited from:
QuestionnaireTestData
val questionnaireAlt: Questionnaire

Attributes

Inherited from:
QuestionnaireTestData

Attributes

Inherited from:
QuestionnaireTestData
val questionnaireId: Id

Attributes

Inherited from:
QuestionnaireTestData
val sampleAnswersToQuestions1: Map[Id, ActualAnswer]

Attributes

Inherited from:
QuestionnaireTestData
val sampleFailAnswersToQuestions: Map[Id, ActualAnswer]

Attributes

Inherited from:
QuestionnaireTestData
val samplePassAnswersToQuestions: Map[Id, ActualAnswer]

Attributes

Inherited from:
QuestionnaireTestData
val sampleWarningsAnswersToQuestions: Map[Id, ActualAnswer]

Attributes

Inherited from:
QuestionnaireTestData
val testGroups: NonEmptyList[GroupOfQuestionnaires]

Attributes

Inherited from:
QuestionnaireTestData
val testQuestionIdsOfInterest: QuestionIdsOfInterest

Attributes

Inherited from:
QuestionnaireTestData

Extensions

Inherited extensions

extension (submission: Submission)
def answering: Submission

Attributes

Inherited from:
StatusTestDataHelper
def answeringWith(answers: AnswersToQuestions): Submission

Attributes

Inherited from:
StatusTestDataHelper
def hasCompletelyAnswered: Submission

Attributes

Inherited from:
StatusTestDataHelper
def hasCompletelyAnsweredWith(answers: AnswersToQuestions): Submission

Attributes

Inherited from:
StatusTestDataHelper
def submitted: Submission

Attributes

Inherited from:
StatusTestDataHelper
extension (submission: Submission)
def withCompletedProgress(): ExtendedSubmission

Attributes

Inherited from:
ProgressTestDataHelper
def withIncompleteProgress(): ExtendedSubmission

Attributes

Inherited from:
ProgressTestDataHelper
def withNotApplicableProgress(): ExtendedSubmission

Attributes

Inherited from:
ProgressTestDataHelper
def withNotStartedProgress(): ExtendedSubmission

Attributes

Inherited from:
ProgressTestDataHelper
def withSubmittedProgress(): ExtendedSubmission

Attributes

Inherited from:
ProgressTestDataHelper