diff options
Diffstat (limited to 'testing-client/src/test/java/org/aspectj/testing/server/TestServerTest.java')
-rw-r--r-- | testing-client/src/test/java/org/aspectj/testing/server/TestServerTest.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testing-client/src/test/java/org/aspectj/testing/server/TestServerTest.java b/testing-client/src/test/java/org/aspectj/testing/server/TestServerTest.java index 0c278588e..0f40d3a03 100644 --- a/testing-client/src/test/java/org/aspectj/testing/server/TestServerTest.java +++ b/testing-client/src/test/java/org/aspectj/testing/server/TestServerTest.java @@ -14,6 +14,8 @@ import java.io.IOException; import junit.framework.TestCase; +import static org.aspectj.testing.server.TestServer.REGEX_PROJECT_ROOT_FOLDER; + public class TestServerTest extends TestCase { private TestServer server; @@ -34,6 +36,17 @@ public class TestServerTest extends TestCase { } } + public void testFindProjectRootDirectory() throws IOException { + // Give developers some advice in the build log about why their LTW tests fail + assertNotNull( + "Cannot find AspectJ project root folder. " + + "This will lead to subsequent failures in all tests using class TestServer. " + + "Please make sure to name your project root folder 'org.aspectj', 'AspectJ' or " + + "something else matching regex '"+ REGEX_PROJECT_ROOT_FOLDER+"'.", + server.findProjectRootFolder() + ); + } + public void testSetWorkingDirectory() { server.setWorkingDirectory("../testing-client/testdata"); } |