Implementing JUnit test cases in Spring Application -


i have initialized spring application using abstractannotationconfigdispatcherservletinitializer , being deployed war.

it not spring boot application.

i have create test cases controller classes, keep getting nosuchbeandefinition exception, autowired beans not available.

please guide me through 1 example on how implement mockmvc test functions.

all other examples spring boot only.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -