0

I am facing a strange issue. My eclipse debug ( Not stopping at breakpoint ) is not working when my testng test case extend AbstractTestNGSpringContextTests. It runs absolute fine when I run the same code without extending AbstractTestNGSpringContextTests . Plain testng case

package in.xxx.core.integration;

import org.testng.annotations.Test;

public class TestXXX {

    @Test
    public void testMe() {
        System.out.println("verifyFooName: Is foo not null? ");
    }
}

Code with Spring based testng testcase package in.xxx.core.integration;

import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.testng.AbstractTestNGSpringContextTests;
import org.testng.annotations.Test;

@ContextConfiguration(locations = { "classpath:test-spring-application-context.xml" })

public class TestXXX extends AbstractTestNGSpringContextTests {

    @Test
    public void testMe() {
       System.out.println("verifyFooName: Is foo not null? ");
    }
}
Amit Sharma
  • 281
  • 5
  • 8
  • Where did you set your break point? In the test class, or somewhere else? – Sam Brannen Apr 23 '18 at 13:41
  • FWIW, I just set a break point within the test method of a class that extends `AbstractTestNGSpringContextTests`, and I don't have any problems stepping through it with the Eclipse debugger using `Debug As... TestNG Test`. – Sam Brannen Apr 23 '18 at 13:42

0 Answers0