Skip to content

Instantly share code, notes, and snippets.

@prule
Created March 2, 2013 10:44
Show Gist options
  • Save prule/5070470 to your computer and use it in GitHub Desktop.
Save prule/5070470 to your computer and use it in GitHub Desktop.
Integration testing griffon services
import griffon.test.GriffonUnitTestCase
/**
* Date: 18/02/13
*/
class ReportServiceTests extends GriffonUnitTestCase {
GriffonApplication app
ReportService reportService
ImporterService importerService
protected void setUp() {
super.setUp()
reportService = app.serviceManager.findService('reportService')
importerService = app.serviceManager.findService('importerService')
}
public void testStats() {
// implement tests here using services...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment