خرید بک لینک

Vote count: 0

I have an application event listener which contains the function:

@Override
public void onApplicationEvent(ContextRefreshedEvent event) {
//do some stuff
}

How can I write a unit test to simulate a ContextRefreshedEvent, like my jar being executed, and test that my onApplicationEvent function did what it's supposed to do?

asked 43 secs ago

برچسب: نویسنده: استخدام کار تاريخ: جمعه 1 ارديبهشت 1396 ساعت: 1:43

صفحه بندی