Skip to content

Commit

Permalink
Fixed test #942
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisala committed May 29, 2024
1 parent 90c92a5 commit 74af996
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/test/groovy/au/org/ala/ecodata/ParatooServiceSpec.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,8 @@ class ParatooServiceSpec extends MongoSpec implements ServiceUnitTest<ParatooSer
1 * userService.setCurrentUser(userId)

and:
site.name == "SATFLB0001 - Control (100 x 100)"
site.description == "SATFLB0001 - Control (100 x 100)"
site.name == "SATFLB0001 - Control (Core + Fauna)"
site.description == "SATFLB0001 - Control (Core + Fauna)"
site.notes == "Core monitoring plot some comment"
site.type == "compound"
site.publicationStatus == "published"
Expand All @@ -357,10 +357,10 @@ class ParatooServiceSpec extends MongoSpec implements ServiceUnitTest<ParatooSer
Date afterSubmissionDate = DateUtil.parseWithMilliseconds("2023-09-15T06:00:11.996Z")
Date beforeSubmissionDate = DateUtil.parseWithMilliseconds("2023-09-14T06:00:11.996Z")
new Site(
name: "SATFLB0001 - Control (100 x 100)",
name: "SATFLB0001 - Control (Core)",
siteId: "s0",
extent: [geometry: DUMMY_POLYGON],
description: "SATFLB0001 - Control (100 x 100)",
description: "SATFLB0001 - Control (Core)",
notes: "Core monitoring plot some comment",
type: "compound",
externalIds: [new ExternalId(externalId: "2", idType: ExternalId.IdType.MONITOR_PLOT_GUID)],
Expand Down Expand Up @@ -420,10 +420,10 @@ class ParatooServiceSpec extends MongoSpec implements ServiceUnitTest<ParatooSer
Date beforeSubmissionDate = DateUtil.parseWithMilliseconds("2023-09-14T06:00:11.996Z")
Site.withSession { session ->
new Site(
name: "SATFLB0001 - Control (100 x 100)",
name: "SATFLB0001 - Control (Core)",
siteId: "s0",
extent: [geometry: DUMMY_POLYGON],
description: "SATFLB0001 - Control (100 x 100)",
description: "SATFLB0001 - Control (Core)",
notes: "Core monitoring plot some comment",
type: "compound",
externalIds: [new ExternalId(externalId: "2", idType: ExternalId.IdType.MONITOR_PLOT_GUID)],
Expand Down

0 comments on commit 74af996

Please sign in to comment.