Skip to content

Instantly share code, notes, and snippets.

@wsargent

wsargent/gist:655724

Created Oct 30, 2010
Embed
What would you like to do?
Want to do a callback
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
You can’t perform that action at this time.