Created
October 30, 2010 20:47
-
-
Save wsargent/655724 to your computer and use it in GitHub Desktop.
Want to do a callback
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
def setupMocks(onSubmitFunc(): => acm:ApplicationContextMock): Unit = { | |
val acm: ApplicationContextMock = new ApplicationContextMock | |
onSubmitFunc(acm) | |
tester = new WicketTester(new Application { | |
protected override def getSpringInjector: SpringComponentInjector = { | |
return new SpringComponentInjector(this, acm, true) | |
} | |
}) | |
} | |
setupMocks({ | |
val eventDao: EventDao = Mockito.mock(classOf[EventDao]) | |
acm.putBean("eventDao", EventDao) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment