/[Apache-SVN]/jakarta/commons/proper/cli/trunk/src/test/org/apache/commons/cli2/option/ParentTest.java
ViewVC logotype

Diff of /jakarta/commons/proper/cli/trunk/src/test/org/apache/commons/cli2/option/ParentTest.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- jakarta/commons/proper/cli/trunk/src/test/org/apache/commons/cli2/option/ParentTest.java	2005/06/03 21:14:45	179891
+++ jakarta/commons/proper/cli/trunk/src/test/org/apache/commons/cli2/option/ParentTest.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.
@@ -33,6 +33,7 @@ import org.apache.commons.cli2.builder.A
 import org.apache.commons.cli2.builder.CommandBuilder;
 import org.apache.commons.cli2.builder.DefaultOptionBuilder;
 import org.apache.commons.cli2.builder.GroupBuilder;
+import org.apache.commons.cli2.commandline.WriteableCommandLineImpl;
 
 /**
  * @author Rob Oxspring
@@ -135,17 +136,17 @@ public class ParentTest extends ParentTe
 	 */
 	public void testCanProcess() {
 		final Parent option = buildKParent();
-		assertTrue(option.canProcess("-k"));
+		assertTrue(option.canProcess(new WriteableCommandLineImpl(option,null), "-k"));
 	}
 
 	public void testCanProcess_BadMatch() {
 		final Parent option = buildKParent();
-		assertFalse(option.canProcess("-K"));
+		assertFalse(option.canProcess(new WriteableCommandLineImpl(option,null), "-K"));
 	}
 
 	public void testCanProcess_ContractedArgument() {
 		final Parent option = buildLibParent();
-		assertTrue(option.canProcess("--lib=/usr/lib"));
+		assertTrue(option.canProcess(new WriteableCommandLineImpl(option,null), "--lib=/usr/lib"));
 	}
 
 	/* (non-Javadoc)

 

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26