aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/pdsuidomain/fakes/entities/trialcuration.scala
diff options
context:
space:
mode:
authorKseniya Tomskikh <ktomskih@datamonsters.co>2017-10-19 14:53:56 +0700
committerKseniya Tomskikh <ktomskih@datamonsters.co>2017-10-20 12:56:12 +0700
commitf3afdc358e52e2399bb4b089d26e3e3521570872 (patch)
treee15ff07004b72e3fa2a4b6c8bec9ed2808631c6d /src/main/scala/xyz/driver/pdsuidomain/fakes/entities/trialcuration.scala
parent61d03bffcb6000268bb600d5336fb490056837f9 (diff)
downloadrest-query-f3afdc358e52e2399bb4b089d26e3e3521570872.tar.gz
rest-query-f3afdc358e52e2399bb4b089d26e3e3521570872.tar.bz2
rest-query-f3afdc358e52e2399bb4b089d26e3e3521570872.zip
Review fixes
Diffstat (limited to 'src/main/scala/xyz/driver/pdsuidomain/fakes/entities/trialcuration.scala')
-rw-r--r--src/main/scala/xyz/driver/pdsuidomain/fakes/entities/trialcuration.scala57
1 files changed, 57 insertions, 0 deletions
diff --git a/src/main/scala/xyz/driver/pdsuidomain/fakes/entities/trialcuration.scala b/src/main/scala/xyz/driver/pdsuidomain/fakes/entities/trialcuration.scala
index 84dcb88..3ab50e1 100644
--- a/src/main/scala/xyz/driver/pdsuidomain/fakes/entities/trialcuration.scala
+++ b/src/main/scala/xyz/driver/pdsuidomain/fakes/entities/trialcuration.scala
@@ -3,6 +3,7 @@ package xyz.driver.pdsuidomain.fakes.entities
import xyz.driver.core.generators._
import xyz.driver.entities.labels.{Label, LabelCategory}
import xyz.driver.pdsuicommon.domain.{LongId, User}
+import xyz.driver.pdsuidomain.ListResponse
import xyz.driver.pdsuidomain.entities._
import xyz.driver.pdsuidomain.services.CriterionService.RichCriterion
@@ -182,4 +183,60 @@ object trialcuration {
originalName = nextString(),
trialId = nextStringId
)
+
+ def nextTrialListResponse(): ListResponse[Trial] = {
+ val xs: Seq[Trial] = Seq.fill(3)(nextTrial())
+ nextListResponse(xs)
+ }
+
+ def nextTrialIssueListResponse(): ListResponse[TrialIssue] = {
+ val xs: Seq[TrialIssue] = Seq.fill(3)(nextTrialIssue())
+ nextListResponse(xs)
+ }
+
+ def nextTrialHistoryListResponse(): ListResponse[TrialHistory] = {
+ val xs: Seq[TrialHistory] = Seq.fill(3)(nextTrialHistory())
+ nextListResponse(xs)
+ }
+
+ def nextArmListResponse(): ListResponse[Arm] = {
+ val xs: Seq[Arm] = Seq.fill(3)(nextArm())
+ nextListResponse(xs)
+ }
+
+ def nextInterventionWithArmsListResponse(): ListResponse[InterventionWithArms] = {
+ val xs: Seq[InterventionWithArms] = Seq.fill(3)(nextInterventionWithArms())
+ nextListResponse(xs)
+ }
+
+ def nextEligibilityArmWithDiseasesListResponse(): ListResponse[EligibilityArmWithDiseases] = {
+ val xs: Seq[EligibilityArmWithDiseases] = Seq.fill(3)(nextEligibilityArmWithDiseases())
+ nextListResponse(xs)
+ }
+
+ def nextSlotArmListResponse(): ListResponse[SlotArm] = {
+ val xs: Seq[SlotArm] = Seq.fill(3)(nextSlotArm())
+ nextListResponse(xs)
+ }
+
+ def nextRichCriterionListResponse(): ListResponse[RichCriterion] = {
+ val xs: Seq[RichCriterion] = Seq.fill(3)(nextRichCriterion())
+ nextListResponse(xs)
+ }
+
+ def nextInterventionTypeListResponse(): ListResponse[InterventionType] = {
+ val xs: Seq[InterventionType] = Seq.fill(3)(nextInterventionType())
+ nextListResponse(xs)
+ }
+
+ def nextStudyDesignListResponse(): ListResponse[StudyDesign] = {
+ val xs: Seq[StudyDesign] = Seq.fill(3)(nextStudyDesign())
+ nextListResponse(xs)
+ }
+
+ def nextHypothesesListResponse(): ListResponse[Hypothesis] = {
+ val xs: Seq[Hypothesis] = Seq.fill(3)(nextHypothesis())
+ nextListResponse(xs)
+ }
+
}