diff options
author | jhugunin <jhugunin> | 2004-01-12 11:37:20 +0000 |
---|---|---|
committer | jhugunin <jhugunin> | 2004-01-12 11:37:20 +0000 |
commit | a4a12342a16145ee4ac835c77827d8e16f6078cb (patch) | |
tree | de0584fb2f9a9f8e61b7c58dd34f36e423afaa1e /org.aspectj.ajdt.core/testsrc | |
parent | aa9b8df028b35a921025c4b9922f225dd26090e0 (diff) | |
download | aspectj-a4a12342a16145ee4ac835c77827d8e16f6078cb.tar.gz aspectj-a4a12342a16145ee4ac835c77827d8e16f6078cb.zip |
Fix for: Bugzilla Bug 49814
ConfigParser.java:132
Diffstat (limited to 'org.aspectj.ajdt.core/testsrc')
-rw-r--r-- | org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/ajc/BuildArgParserTestCase.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/ajc/BuildArgParserTestCase.java b/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/ajc/BuildArgParserTestCase.java index fa541febf..3ad2a7166 100644 --- a/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/ajc/BuildArgParserTestCase.java +++ b/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/ajc/BuildArgParserTestCase.java @@ -18,6 +18,8 @@ import java.util.*; import junit.framework.TestCase; import org.aspectj.ajdt.internal.core.builder.*; +import org.aspectj.bridge.CountingMessageHandler; +import org.aspectj.bridge.IMessage; import org.aspectj.bridge.MessageWriter; import org.aspectj.testing.util.TestUtil; import org.eclipse.jdt.core.compiler.InvalidInputException; @@ -147,6 +149,12 @@ public class BuildArgParserTestCase extends TestCase { assertTrue("size: " + config.getInJars().size(), config.getInJars().size() == 1); } + public void testBadPathToSourceFiles() { + CountingMessageHandler countingHandler = new CountingMessageHandler(messageWriter); + AjBuildConfig config = parser.genBuildConfig(new String[]{ "inventedDir/doesntexist/*.java"},countingHandler); + assertTrue("Expected an error for the invalid path.",countingHandler.numMessages(IMessage.ERROR,false)==1); + } + public void testMultipleSourceRoots() throws InvalidInputException, IOException { final String SRCROOT_1 = AjdtAjcTests.TESTDATA_PATH + "/src1/p1"; final String SRCROOT_2 = AjdtAjcTests.TESTDATA_PATH + "/ajc"; |