Skip to content

Commit 5668cee

Browse files
committed
Updated unit tests #3357
1 parent 41e9c30 commit 5668cee

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/test/groovy/au/org/ala/merit/GmsMapperSpec.groovy

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class GmsMapperSpec extends Specification{
5454
'GreenArmy-1234567-1' == project.externalId
5555
'Test Project Name' == project.name
5656
'Test Project Description' == project.description
57-
[[organisationId:"123", name:"Test org 1", organisationName:"Test org 1", description:"Recipient"]] == project.associatedOrgs
57+
[[organisationId:"123", name:"Test org 1", description:"Recipient"]] == project.associatedOrgs
5858
'gar1' == project.programId
5959
[[idType:'INTERNAL_ORDER_NUMBER', externalId:'111111']] == project.externalIds
6060

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

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

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

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

src/test/groovy/au/org/ala/merit/ImportServiceSpec.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class ImportServiceSpec extends Specification implements ServiceUnitTest<ImportS
134134
projectDetails.managementUnitId == "m1"
135135
projectDetails.description == "Test project description"
136136
projectDetails.externalId == "123"
137-
projectDetails.associatedOrgs == [[organisationId:"123", name:"Test organisation", organisationName:"Test organisation", description:"Recipient"]]
137+
projectDetails.associatedOrgs == [[organisationId:"123", name:"Test organisation", description:"Recipient"]]
138138
!projectDetails.associatedProgram // We didn't supply a program name in the test.
139139
!projectDetails.associatedSubProgram
140140
projectDetails.plannedStartDate == "2019-06-30T14:00:00+0000"

0 commit comments

Comments
 (0)