From c54bc0b1b5db182c431d7c1ac28cbc73edb229c2 Mon Sep 17 00:00:00 2001 From: mwebster Date: Mon, 6 Nov 2006 13:51:05 +0000 Subject: [PATCH] Bug 155033 "Use ajcore for LTW problems" (rename HelloWorld HelloWorldWithException) --- .../ajc150/ataspectj/AtAjLTWTests.java | 23 ++++--------------- .../org/aspectj/systemtest/ajc153/ajc153.xml | 10 ++++---- 2 files changed, 9 insertions(+), 24 deletions(-) diff --git a/tests/src/org/aspectj/systemtest/ajc150/ataspectj/AtAjLTWTests.java b/tests/src/org/aspectj/systemtest/ajc150/ataspectj/AtAjLTWTests.java index 3d586958f..6e7e7d546 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/ataspectj/AtAjLTWTests.java +++ b/tests/src/org/aspectj/systemtest/ajc150/ataspectj/AtAjLTWTests.java @@ -12,7 +12,6 @@ package org.aspectj.systemtest.ajc150.ataspectj; import java.io.File; -import java.io.FilenameFilter; import junit.framework.Test; @@ -100,13 +99,13 @@ public class AtAjLTWTests extends XMLBasedAjcTestCase { // before File f = new File("_ajdump/_before/com/foo/bar"); - CountingFilenameFilter cff = new CountingFilenameFilter(); + CountingFilenameFilter cff = new CountingFilenameFilter(".class"); f.listFiles(cff); assertEquals("Expected dump file in " + f.getAbsolutePath(),1,cff.getCount()); // after f = new File("_ajdump/com/foo/bar"); - cff = new CountingFilenameFilter(); + cff = new CountingFilenameFilter(".class"); f.listFiles(cff); assertEquals("Expected dump file in " + f.getAbsolutePath(),1,cff.getCount()); @@ -134,11 +133,11 @@ public class AtAjLTWTests extends XMLBasedAjcTestCase { // The working directory is different because this test must be forked File dir = new File("../tests/java5/ataspectj"); File f = new File(dir,"_ajdump/_before"); - CountingFilenameFilter cff = new CountingFilenameFilter(); + CountingFilenameFilter cff = new CountingFilenameFilter(".class"); f.listFiles(cff); assertEquals("Expected dump file in " + f.getAbsolutePath(),1,cff.getCount()); f = new File(dir,"_ajdump"); - cff = new CountingFilenameFilter(); + cff = new CountingFilenameFilter(".class"); f.listFiles(cff); assertEquals(1,cff.getCount()); @@ -215,18 +214,4 @@ public class AtAjLTWTests extends XMLBasedAjcTestCase { public void testCflowBelowStack() { runTest("CflowBelowStack"); } - - private static class CountingFilenameFilter implements FilenameFilter { - - private int count; - - public boolean accept(File dir, String name) { - if (name.endsWith(".class")) count++; - return false; - } - - public int getCount() { - return count; - } - } } diff --git a/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml b/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml index 85219fc09..10bb31e01 100644 --- a/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml +++ b/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml @@ -576,17 +576,17 @@ - - + + - + - + @@ -672,7 +672,7 @@ - + -- 2.39.5