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