I have created a source test folder and all my test cases are under that folder. I am using SpringJUnit4ClassRunner with JUnit 4.4
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { “classpath:applicationContext.xml” })
@TestExecutionListeners({DependencyInjectionTestExecutionListener.class})
public abstract class AbstractTest {}
I can run all the tests by click on my project and right mouse click and from Run As -> Maven test.
But when I choose the individual test and right mouse click and from Ran As I don’t get “JUnit test”. If I open my test java file and then choose the individual test from the project explore and right click and from Run As I DO get “Junit test” but when I choose this option I get “No JUnit test found”.
Please advice