Diff of /jakarta/commons/proper/cli/trunk/src/test/org/apache/commons/cli2/option/SwitchTest.java
Parent Directory
| Revision Log
| Patch
--- jakarta/commons/proper/cli/trunk/src/test/org/apache/commons/cli2/option/SwitchTest.java 2005/06/03 21:14:45 179891
+++ jakarta/commons/proper/cli/trunk/src/test/org/apache/commons/cli2/option/SwitchTest.java 2005/06/03 21:15:13 179892
@@ -1,5 +1,5 @@
/**
- * Copyright 2003-2004 The Apache Software Foundation
+ * Copyright 2003-2005 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -25,6 +25,7 @@ import org.apache.commons.cli2.Option;
import org.apache.commons.cli2.OptionException;
import org.apache.commons.cli2.Parent;
import org.apache.commons.cli2.WriteableCommandLine;
+import org.apache.commons.cli2.commandline.WriteableCommandLineImpl;
/**
* @author Rob Oxspring
@@ -93,12 +94,12 @@ public class SwitchTest extends ParentTe
*/
public void testCanProcess() {
final Switch option = buildDisplaySwitch();
- assertTrue(option.canProcess("+d"));
+ assertTrue(option.canProcess(new WriteableCommandLineImpl(option,null),"+d"));
}
public void testCanProcess_BadMatch() {
final Switch option = buildDisplaySwitch();
- assertFalse(option.canProcess("-dont"));
+ assertFalse(option.canProcess(new WriteableCommandLineImpl(option,null),"-dont"));
}
/*