Created
March 2, 2013 10:44
-
-
Save prule/5070470 to your computer and use it in GitHub Desktop.
Integration testing griffon services
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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