commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From roxspr...@apache.org
Subject cvs commit: jakarta-commons/cli/src/test/org/apache/commons/cli CLI2ConverterTest.java
Date Tue, 30 Mar 2004 01:46:11 GMT
roxspring    2004/03/29 17:46:11

  Modified:    cli/src/java/org/apache/commons/cli Tag:
                        RESEARCH_CLI_2_ROXSPRING CLI2Converter.java
               cli/src/test/org/apache/commons/cli Tag:
                        RESEARCH_CLI_2_ROXSPRING CLI2ConverterTest.java
  Log:
  Removed debugging code
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.1.2.2   +1 -6      jakarta-commons/cli/src/java/org/apache/commons/cli/Attic/CLI2Converter.java
  
  Index: CLI2Converter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/cli/src/java/org/apache/commons/cli/Attic/CLI2Converter.java,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- CLI2Converter.java	30 Mar 2004 01:43:09 -0000	1.1.2.1
  +++ CLI2Converter.java	30 Mar 2004 01:46:11 -0000	1.1.2.2
  @@ -134,7 +134,6 @@
   		for(final Iterator i = options1.getOptionGroups().iterator();i.hasNext();){
   			final OptionGroup optionGroup1 = (OptionGroup)i.next();
   			Group group = group(optionGroup1);
  -			System.out.println("Adding "+group);
   			gbuilder.withOption(group);
   			optionGroups.add(optionGroup1);
   		}
  @@ -143,15 +142,11 @@
   			final org.apache.commons.cli.Option option1 = (org.apache.commons.cli.Option)i.next();
   			if(!optionInAGroup(option1,optionGroups)){
   				final Option option2 = option(option1);
  -				System.out.println("Adding "+option2);
   				gbuilder.withOption(option2);
   			}
   		}
   		
  -		GroupImpl group = (GroupImpl)gbuilder.create();
  -		System.out.println("Created "+group);
  -		System.out.println("From " + group.getOptions());
  -		return group;
  +		return gbuilder.create();
   	}
   
   	private static boolean optionInAGroup(final org.apache.commons.cli.Option option1, final
Set optionGroups) {
  
  
  
  No                   revision
  No                   revision
  1.1.2.2   +0 -1      jakarta-commons/cli/src/test/org/apache/commons/cli/Attic/CLI2ConverterTest.java
  
  Index: CLI2ConverterTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/cli/src/test/org/apache/commons/cli/Attic/CLI2ConverterTest.java,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- CLI2ConverterTest.java	30 Mar 2004 01:43:09 -0000	1.1.2.1
  +++ CLI2ConverterTest.java	30 Mar 2004 01:46:11 -0000	1.1.2.2
  @@ -119,7 +119,6 @@
   		assertEquals(Integer.MAX_VALUE,group.getMaximum());
   		
   		group = (GroupImpl)CLI2Converter.group(abcdeOptions);
  -		System.out.println(getName()+" "+ abcdeOptions.getOptionGroups());
   		
   		assertEquals("[-a|-c|-e|-d|-b]",group.toString());
   		assertEquals(0,group.getMinimum());
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message