diff options
author | aclement <aclement> | 2005-11-07 10:53:18 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-11-07 10:53:18 +0000 |
commit | a625ea2ed4810fb5aa1334c027418d25cfb37834 (patch) | |
tree | 6b02edf6c31afafd77ecb4bdc28ca802b4c49596 /org.aspectj.ajdt.core/testsrc | |
parent | e9e0a7be5be07919d74f7da12fa59232a8b81a1e (diff) | |
download | aspectj-a625ea2ed4810fb5aa1334c027418d25cfb37834.tar.gz aspectj-a625ea2ed4810fb5aa1334c027418d25cfb37834.zip |
fix for 95516 (-outxml / -outxmlfile) - from Matthew.
Diffstat (limited to 'org.aspectj.ajdt.core/testsrc')
-rw-r--r-- | org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/ajc/BuildArgParserTestCase.java | 18 |
1 files changed, 18 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 a020afe9f..e207fe91c 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 @@ -21,6 +21,8 @@ import org.aspectj.ajdt.internal.core.builder.*; import org.aspectj.bridge.CountingMessageHandler; import org.aspectj.bridge.IMessage; import org.aspectj.bridge.IMessageHandler; +import org.aspectj.bridge.IMessageHolder; +import org.aspectj.bridge.MessageHandler; import org.aspectj.bridge.MessageWriter; import org.aspectj.testing.util.TestUtil; import org.aspectj.org.eclipse.jdt.core.compiler.InvalidInputException; @@ -490,6 +492,22 @@ public class BuildArgParserTestCase extends TestCase { genBuildConfig(new String[] { TEST_DIR + "X.aj", TEST_DIR + "Y.aj"}, messageWriter); } + public void testOutxml () { + IMessageHolder messageHolder = new MessageHandler(); + AjBuildConfig config = genBuildConfig(new String[] { "-outxml", "-showWeaveInfo" }, messageHolder); + assertTrue("Warnings: " + messageHolder,!messageHolder.hasAnyMessage(IMessage.WARNING, true)); + assertEquals("Wrong outxml","META-INF/aop.xml",config.getOutxmlName()); + assertTrue("Following option currupted",config.getShowWeavingInformation()); + } + + public void testOutxmlfile () { + IMessageHolder messageHolder = new MessageHandler(); + AjBuildConfig config = genBuildConfig(new String[] { "-outxmlfile", "custom/aop.xml", "-showWeaveInfo" }, messageHolder); + assertTrue("Warnings: " + messageHolder,!messageHolder.hasAnyMessage(IMessage.WARNING, true)); + assertEquals("Wrong outxml","custom/aop.xml",config.getOutxmlName()); + assertTrue("Following option currupted",config.getShowWeavingInformation()); + } + protected void setUp() throws Exception { super.setUp(); } |