Skip to content

Instantly share code, notes, and snippets.



Created Oct 30, 2010
What would you like to do?
Want to do a callback
def setupMocks(onSubmitFunc(): => acm:ApplicationContextMock): Unit = {
val acm: ApplicationContextMock = new ApplicationContextMock
tester = new WicketTester(new Application {
protected override def getSpringInjector: SpringComponentInjector = {
return new SpringComponentInjector(this, acm, true)
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.