Skip to content

Commit

Permalink
Updated unit tests #3357
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisala committed Nov 18, 2024
1 parent 41e9c30 commit 5668cee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/test/groovy/au/org/ala/merit/GmsMapperSpec.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class GmsMapperSpec extends Specification{
'GreenArmy-1234567-1' == project.externalId
'Test Project Name' == project.name
'Test Project Description' == project.description
[[organisationId:"123", name:"Test org 1", organisationName:"Test org 1", description:"Recipient"]] == project.associatedOrgs
[[organisationId:"123", name:"Test org 1", description:"Recipient"]] == project.associatedOrgs
'gar1' == project.programId
[[idType:'INTERNAL_ORDER_NUMBER', externalId:'111111']] == project.externalIds

Expand Down Expand Up @@ -249,7 +249,7 @@ class GmsMapperSpec extends Specification{
1 * abnLookupService.lookupOrganisationDetailsByABN(abn) >> abnValue

and:
result.project.associatedOrgs == [[organisationId:null, name:"Test org 12345678900", organisationName:"Test org 12345678900", description:"Recipient"]]
result.project.associatedOrgs == [[organisationId:null, name:"Test org 12345678900", description:"Recipient"]]
result.messages[0] == "An organisation will be created with ABN: 12345678900 and name: Test org 12345678900"
}

Expand All @@ -266,7 +266,7 @@ class GmsMapperSpec extends Specification{
1 * abnLookupService.lookupOrganisationDetailsByABN(abn) >> abnValue

and:
result.project.associatedOrgs == [[organisationId:null, name:"Test org 12345678900", organisationName:"Test org 12345678900", description:"Recipient"]]
result.project.associatedOrgs == [[organisationId:null, name:"Test org 12345678900", description:"Recipient"]]
result.messages[0] == "An organisation will be created with ABN: 12345678900 and name: Test org 12345678900"
}

Expand Down
2 changes: 1 addition & 1 deletion src/test/groovy/au/org/ala/merit/ImportServiceSpec.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class ImportServiceSpec extends Specification implements ServiceUnitTest<ImportS
projectDetails.managementUnitId == "m1"
projectDetails.description == "Test project description"
projectDetails.externalId == "123"
projectDetails.associatedOrgs == [[organisationId:"123", name:"Test organisation", organisationName:"Test organisation", description:"Recipient"]]
projectDetails.associatedOrgs == [[organisationId:"123", name:"Test organisation", description:"Recipient"]]
!projectDetails.associatedProgram // We didn't supply a program name in the test.
!projectDetails.associatedSubProgram
projectDetails.plannedStartDate == "2019-06-30T14:00:00+0000"
Expand Down

0 comments on commit 5668cee

Please sign in to comment.