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