You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by rd...@apache.org on 2003/07/01 23:46:19 UTC

cvs commit: jakarta-commons/betwixt/src/test/org/apache/commons/betwixt/nowrap POTest.java

rdonkin     2003/07/01 14:46:19

  Modified:    betwixt/src/test/org/apache/commons/betwixt/nowrap
                        POTest.java
  Log:
  Added debug field so to limit the amount printed to system.out
  
  Revision  Changes    Path
  1.3       +9 -8      jakarta-commons/betwixt/src/test/org/apache/commons/betwixt/nowrap/POTest.java
  
  Index: POTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/betwixt/src/test/org/apache/commons/betwixt/nowrap/POTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- POTest.java	30 Dec 2002 18:16:47 -0000	1.2
  +++ POTest.java	1 Jul 2003 21:46:18 -0000	1.3
  @@ -66,6 +66,7 @@
   
   public class POTest
   {
  +    private static final boolean debug = false;
   
       private List componentTests;
   
  @@ -73,13 +74,13 @@
   
       public POTest()
       {
  -        System.out.println("-- INSTANTIATING NEW PO");
  +        if (debug) System.out.println("-- INSTANTIATING NEW PO");
           componentTests = new ArrayList();
       }
   
       public List getComponenttests()
       {
  -        System.out.println("-- GET PO.getComponents");
  +        if (debug) System.out.println("-- GET PO.getComponents");
           return this.componentTests;
       }
   
  @@ -89,19 +90,19 @@
   
       public void addComponenttest(Componenttest c)
       {
  -        System.out.println("-- ADD PO.addComponent");
  +        if (debug) System.out.println("-- ADD PO.addComponent");
           componentTests.add(c);
       }
   
       public void setPrintingNumber(String s)
       {
  -        System.out.println("-- SET PO.setPrintingNumber");
  +        if (debug) System.out.println("-- SET PO.setPrintingNumber");
           printingNumber = s;
       }
   
       public String getPrintingNumber()
       {
  -        System.out.println("-- GET PO.getPrintingNumber");
  +        if (debug) System.out.println("-- GET PO.getPrintingNumber");
           return printingNumber;
       }
   }
  
  
  

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