1 package test; 2 3 import org.testng.Assert; 4 import org.testng.ITestContext; 5 import org.testng.annotations.Test; 6 7 /** 8 * Make sure that these test pass when run by the Eclipse plug-in. 9 * 10 * @author Cedric Beust <cedric@beust.com> 11 * 12 */ 13 public class EclipseTest { 14 15 @Test xmlFileShouldBeRunAtItsPlaceAndNotCopied(ITestContext ctx)16 public void xmlFileShouldBeRunAtItsPlaceAndNotCopied(ITestContext ctx) { 17 String fileName = ctx.getSuite().getXmlSuite().getFileName().replace("\\", "/"); 18 Assert.assertTrue(fileName.contains("src/test/resources")); 19 } 20 } 21