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

php - Embed BBCode within itself not working -

three.js - how to load gltf in three JS -

sql server - T-SQL: Access DB objects in same schema without qualifying? -