Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- fixed failing tests
  • Loading branch information
temi committed May 24, 2024
1 parent 9836b67 commit 329daf5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class OrganisationServiceSpec extends Specification implements ServiceUnitTest<O
def reportService = Mock(ReportService)
def userService = Mock(UserService)
def metadataService = Mock(MetadataService)
def documentService = Mock(DocumentService)
AbnLookupService abnLookupService = Mock(AbnLookupService)

def setup() {
Expand All @@ -28,6 +29,7 @@ class OrganisationServiceSpec extends Specification implements ServiceUnitTest<O
service.metadataService = metadataService
service.abnLookupService = abnLookupService
service.grailsApplication = grailsApplication
service.documentService = documentService
}


Expand Down Expand Up @@ -217,6 +219,7 @@ class OrganisationServiceSpec extends Specification implements ServiceUnitTest<O
1 * reportService.get("r1") >> [reportId:"r1", organisationId:"o1", activityId:'a1']
1 * reportService.cancelReport("r1", ['a1'], "Testing", [organisationId:"o1", reports:null], [])
1 * webService.getJson({it.endsWith('permissions/getMembersForOrganisation/o1')}) >> []
1 * documentService.search(_) >> [documents:[]]
}
static int activityId = 0
Expand Down

0 comments on commit 329daf5

Please sign in to comment.