aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoraclement <aclement>2004-08-06 12:31:02 +0000
committeraclement <aclement>2004-08-06 12:31:02 +0000
commit8e7cc4198d414f20188edad080a13551a9a08a02 (patch)
treed57e71e2634335a2214a152b80c707633c7442fc /tests
parent78d3b3abde28d3064ffb6dacffe47a952b912fce (diff)
downloadaspectj-8e7cc4198d414f20188edad080a13551a9a08a02.tar.gz
aspectj-8e7cc4198d414f20188edad080a13551a9a08a02.zip
promoted code up the hierarchy.
Diffstat (limited to 'tests')
-rw-r--r--tests/src/org/aspectj/systemtest/incremental/IncrementalTests.java51
1 files changed, 0 insertions, 51 deletions
diff --git a/tests/src/org/aspectj/systemtest/incremental/IncrementalTests.java b/tests/src/org/aspectj/systemtest/incremental/IncrementalTests.java
index abefc41f3..dacbfd2cb 100644
--- a/tests/src/org/aspectj/systemtest/incremental/IncrementalTests.java
+++ b/tests/src/org/aspectj/systemtest/incremental/IncrementalTests.java
@@ -226,56 +226,5 @@ public class IncrementalTests extends org.aspectj.testing.XMLBasedAjcTestCase {
assertTrue("Should say updated hello",after.getStdOut().startsWith("updated hello"));
}
- private long nextIncrement(boolean doWait) {
- long time = System.currentTimeMillis();
- if (doWait) {
- try {
- Thread.sleep(1000);
- } catch (InterruptedException intEx) {}
- }
- return time;
- }
-
- private void copyFileAndDoIncrementalBuild(String from, String to) throws Exception {
- String dir = getCurrentTest().getDir();
- FileUtil.copyFile(new File(dir + File.separator + from),
- new File(ajc.getSandboxDirectory(),to));
- CompilationResult result = ajc.doIncrementalCompile();
- assertNoMessages(result,"Expected clean compile from test '" + getCurrentTest().getTitle() + "'");
- }
-
- private void copyFileAndDoIncrementalBuild(String from, String to, MessageSpec expectedResults) throws Exception {
- String dir = getCurrentTest().getDir();
- FileUtil.copyFile(new File(dir + File.separator + from),
- new File(ajc.getSandboxDirectory(),to));
- CompilationResult result = ajc.doIncrementalCompile();
- assertMessages(result,"Test '" + getCurrentTest().getTitle() + "' did not produce expected messages",expectedResults);
- }
-
-
- private void deleteFileAndDoIncrementalBuild(String file, MessageSpec expectedResult) throws Exception {
- new File(ajc.getSandboxDirectory(),file).delete();
- CompilationResult result = ajc.doIncrementalCompile();
- assertMessages(result,"Test '" + getCurrentTest().getTitle() + "' did not produce expected messages",expectedResult);
- }
-
- private void deleteFileAndDoIncrementalBuild(String file) throws Exception {
- deleteFileAndDoIncrementalBuild(file,MessageSpec.EMPTY_MESSAGE_SET);
- }
-
- private void assertAdded(String file) {
- assertTrue("File " + file + " should have been added",
- new File(ajc.getSandboxDirectory(),file).exists());
- }
-
- private void assertDeleted(String file) {
- assertFalse("File " + file + " should have been deleted",
- new File(ajc.getSandboxDirectory(),file).exists());
- }
-
- private void assertUpdated(String file, long sinceTime) {
- File f = new File(ajc.getSandboxDirectory(),file);
- assertTrue("File " + file + " should have been updated",f.lastModified() > sinceTime);
- }
}