ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer/data ConfigTestUnknownReference.java ConfigTestTypedConfigAdder.java ConfigTestTypedAdderRole.java ConfigTestTypedAdderReference.java ConfigTestTypedAdderConversion.java ConfigTestTypedAdder.java ConfigTestSetElement.java ConfigTestSetAttribute.java ConfigTestReferenceElement.java ConfigTestReferenceConversion.java ConfigTestReferenceAttribute.java ConfigTestPropResolution.java ConfigTestNonInterfaceAdder.java ConfigTestMultipleTypedAdder.java ConfigTestMismatchedRefType.java ConfigTestInterfaceAdder.java ConfigTestIgnoreStringMethods.java ConfigTestIdResolve.java ConfigTestEmpty.java ConfigTestContent.java ConfigTestAttributeConvert.java
Date Tue, 05 Mar 2002 14:36:42 GMT
donaldp     02/03/05 06:36:42

  Added:       proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer/data
                        ConfigTestUnknownReference.java
                        ConfigTestTypedConfigAdder.java
                        ConfigTestTypedAdderRole.java
                        ConfigTestTypedAdderReference.java
                        ConfigTestTypedAdderConversion.java
                        ConfigTestTypedAdder.java ConfigTestSetElement.java
                        ConfigTestSetAttribute.java
                        ConfigTestReferenceElement.java
                        ConfigTestReferenceConversion.java
                        ConfigTestReferenceAttribute.java
                        ConfigTestPropResolution.java
                        ConfigTestNonInterfaceAdder.java
                        ConfigTestMultipleTypedAdder.java
                        ConfigTestMismatchedRefType.java
                        ConfigTestInterfaceAdder.java
                        ConfigTestIgnoreStringMethods.java
                        ConfigTestIdResolve.java ConfigTestEmpty.java
                        ConfigTestContent.java
                        ConfigTestAttributeConvert.java
  Log:
  Commit new "data" classes to use during testing.
  
  One class per test
  
  Revision  Changes    Path
  1.1                  jakarta-ant/proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer/data/ConfigTestUnknownReference.java
  
  Index: ConfigTestUnknownReference.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included  with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.myrmidon.components.configurer.data;
  
  import java.util.ArrayList;
  import java.util.List;
  import org.apache.myrmidon.framework.DataType;
  import org.apache.myrmidon.components.configurer.DefaultConfigurerTest;
  
  /**
   * A simple test class with string properties.
   *
   * @author Adam Murdoch
   */
  public class ConfigTestUnknownReference
      implements DataType
  {
      public void setSomeProp( final String value )
      {
      }
  }
  
  
  
  1.1                  jakarta-ant/proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer/data/ConfigTestTypedConfigAdder.java
  
  Index: ConfigTestTypedConfigAdder.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included  with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.myrmidon.components.configurer.data;
  
  import java.util.ArrayList;
  import org.apache.avalon.framework.configuration.Configuration;
  
  /**
   * Simple class to test adder for Configurations.
   *
   * @author <a href="mailto:peter@apache.org">Peter Donald</a>
   * @version $Revision: 1.1 $ $Date: 2002/03/05 14:36:41 $
   */
  public class ConfigTestTypedConfigAdder
  {
      private ArrayList m_configurations = new ArrayList();
  
      public void add( final Configuration configuration )
      {
          m_configurations.add( configuration );
      }
  
      public boolean equals( final Object object )
      {
          final ConfigTestTypedConfigAdder other = (ConfigTestTypedConfigAdder)object;
          return m_configurations.equals( other.m_configurations );
      }
  }
  
  
  
  1.1                  jakarta-ant/proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer/data/ConfigTestTypedAdderRole.java
  
  Index: ConfigTestTypedAdderRole.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included  with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.myrmidon.components.configurer.data;
  
  import java.util.ArrayList;
  import org.apache.myrmidon.components.configurer.MyRole1;
  
  /**
   * Simple class to test typed adder.
   *
   * @author <a href="mailto:peter@apache.org">Peter Donald</a>
   * @version $Revision: 1.1 $ $Date: 2002/03/05 14:36:41 $
   */
  public class ConfigTestTypedAdderRole
  {
      private ArrayList m_roles = new ArrayList();
  
      public void add( final MyRole1 role1 )
      {
          m_roles.add( role1 );
      }
  
      public boolean equals( final Object object )
      {
          final ConfigTestTypedAdderRole other = (ConfigTestTypedAdderRole)object;
          return m_roles.equals( other.m_roles );
      }
  }
  
  
  
  1.1                  jakarta-ant/proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer/data/ConfigTestTypedAdderReference.java
  
  Index: ConfigTestTypedAdderReference.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included  with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.myrmidon.components.configurer.data;
  
  import java.util.ArrayList;
  import org.apache.myrmidon.components.configurer.MyRole1;
  
  /**
   * Simple class to test typed adder.
   *
   * @author <a href="mailto:peter@apache.org">Peter Donald</a>
   * @version $Revision: 1.1 $ $Date: 2002/03/05 14:36:41 $
   */
  public class ConfigTestTypedAdderReference
  {
      private ArrayList m_roles = new ArrayList();
  
      public void add( final MyRole1 role1 )
      {
          m_roles.add( role1 );
      }
  
      public boolean equals( final Object object )
      {
          final ConfigTestTypedAdderReference other = (ConfigTestTypedAdderReference)object;
          return m_roles.equals( other.m_roles );
      }
  }
  
  
  
  1.1                  jakarta-ant/proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer/data/ConfigTestTypedAdderConversion.java
  
  Index: ConfigTestTypedAdderConversion.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included  with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.myrmidon.components.configurer.data;
  
  import java.util.ArrayList;
  import org.apache.myrmidon.components.configurer.MyRole1;
  import org.apache.myrmidon.framework.DataType;
  
  /**
   * Simple class to test typed adder.
   *
   * @author <a href="mailto:peter@apache.org">Peter Donald</a>
   * @version $Revision: 1.1 $ $Date: 2002/03/05 14:36:41 $
   */
  public class ConfigTestTypedAdderConversion
      implements DataType
  {
      private ArrayList m_roles = new ArrayList();
      private String m_prop;
  
      public void setProp( final String prop )
      {
          m_prop = prop;
      }
      public void add( final MyRole1 role1 )
      {
          m_roles.add( role1 );
      }
  
      public boolean equals( final Object object )
      {
          final ConfigTestTypedAdderConversion other = (ConfigTestTypedAdderConversion)object;
          return m_roles.equals( other.m_roles );
      }
  }
  
  
  
  1.1                  jakarta-ant/proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer/data/ConfigTestTypedAdder.java
  
  Index: ConfigTestTypedAdder.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included  with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.myrmidon.components.configurer.data;
  
  import java.util.ArrayList;
  import org.apache.avalon.framework.configuration.Configuration;
  import org.apache.myrmidon.components.configurer.MyRole1;
  
  /**
   * Simple class to test adder for Configurations.
   *
   * @author <a href="mailto:peter@apache.org">Peter Donald</a>
   * @version $Revision: 1.1 $ $Date: 2002/03/05 14:36:41 $
   */
  public class ConfigTestTypedAdder
  {
      private ArrayList m_roles = new ArrayList();
  
      public void add( final MyRole1 role )
      {
          m_roles.add( role );
      }
  
      public boolean equals( final Object object )
      {
          final ConfigTestTypedAdder other = (ConfigTestTypedAdder)object;
          return m_roles.equals( other.m_roles );
      }
  }
  
  
  
  1.1                  jakarta-ant/proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer/data/ConfigTestSetElement.java
  
  Index: ConfigTestSetElement.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included  with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.myrmidon.components.configurer.data;
  
  import java.util.ArrayList;
  import java.util.List;
  import org.apache.myrmidon.components.configurer.DefaultConfigurerTest;
  
  /**
   * A simple test class.
   *
   * @author Adam Murdoch
   */
  public class ConfigTestSetElement
  {
      private ConfigTestSetElement m_prop;
      private List m_propList = new ArrayList();
      private String m_someProp;
  
      public boolean equals( Object obj )
      {
          ConfigTestSetElement test = (ConfigTestSetElement)obj;
          if( !DefaultConfigurerTest.equals( m_prop, test.m_prop ) )
          {
              return false;
          }
          else if( !m_propList.equals( test.m_propList ) )
          {
              return false;
          }
          else if( !DefaultConfigurerTest.equals( m_someProp, test.m_someProp ) )
          {
              return false;
          }
          return true;
      }
  
      public void setSomeProp( final String value )
      {
          m_someProp = value;
      }
  
      public void addProp( final ConfigTestSetElement test )
      {
          m_prop = test;
      }
  
      public void addAnotherProp( final ConfigTestSetElement test )
      {
          m_propList.add( test );
      }
  }
  
  
  
  1.1                  jakarta-ant/proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer/data/ConfigTestSetAttribute.java
  
  Index: ConfigTestSetAttribute.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included  with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.myrmidon.components.configurer.data;
  
  import java.util.List;
  import java.util.ArrayList;
  import org.apache.myrmidon.components.configurer.DefaultConfigurerTest;
  
  /**
   * Simple class to test typed adder.
   *
   * @author <a href="mailto:peter@apache.org">Peter Donald</a>
   * @version $Revision: 1.1 $ $Date: 2002/03/05 14:36:41 $
   */
  public class ConfigTestSetAttribute
  {
      private String m_someProp;
      private List m_propList = new ArrayList();
  
      public boolean equals( final Object obj )
      {
          final ConfigTestSetAttribute test = (ConfigTestSetAttribute)obj;
          if( !DefaultConfigurerTest.equals( m_someProp, test.m_someProp ) )
          {
              return false;
          }
          else if( !m_propList.equals( test.m_propList ) )
          {
              return false;
          }
          else
          {
              return true;
          }
      }
  
      public void setSomeProp( final String value )
      {
          m_someProp = value;
      }
  
      public void setProp( final String value )
      {
          m_propList.add( value );
      }
  }
  
  
  
  1.1                  jakarta-ant/proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer/data/ConfigTestReferenceElement.java
  
  Index: ConfigTestReferenceElement.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included  with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.myrmidon.components.configurer.data;
  
  import java.util.ArrayList;
  import java.util.List;
  import org.apache.myrmidon.components.configurer.DefaultConfigurerTest;
  
  /**
   * A simple test class.
   *
   * @author Adam Murdoch
   */
  public class ConfigTestReferenceElement
  {
      private String m_someProp;
  
      public boolean equals( Object obj )
      {
          ConfigTestReferenceElement test = (ConfigTestReferenceElement)obj;
          if( !DefaultConfigurerTest.equals( m_someProp, test.m_someProp ) )
          {
              return false;
          }
          return true;
      }
  
      public void addSomeProp( final String value )
      {
          m_someProp = value;
      }
  }
  
  
  
  1.1                  jakarta-ant/proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer/data/ConfigTestReferenceConversion.java
  
  Index: ConfigTestReferenceConversion.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included  with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.myrmidon.components.configurer.data;
  
  import java.util.ArrayList;
  import java.util.List;
  import org.apache.myrmidon.components.configurer.DefaultConfigurerTest;
  import org.apache.myrmidon.components.configurer.MyRole1;
  import org.apache.myrmidon.components.configurer.ConfigTestInterfaceProp;
  
  /**
   * A simple test class.
   *
   * @author Adam Murdoch
   */
  public class ConfigTestReferenceConversion
  {
      private final ArrayList m_elems = new ArrayList();
  
      public void setPropA( final MyRole1 role1 )
      {
          m_elems.add( role1 );
      }
  
      public boolean equals( Object obj )
      {
          final ConfigTestReferenceConversion test = (ConfigTestReferenceConversion)obj;
          return m_elems.equals( test.m_elems );
      }
  }
  
  
  
  1.1                  jakarta-ant/proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer/data/ConfigTestReferenceAttribute.java
  
  Index: ConfigTestReferenceAttribute.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included  with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.myrmidon.components.configurer.data;
  
  import java.util.List;
  import java.util.ArrayList;
  import org.apache.myrmidon.components.configurer.DefaultConfigurerTest;
  
  /**
   * Simple class to test typed adder.
   *
   * @author <a href="mailto:peter@apache.org">Peter Donald</a>
   * @version $Revision: 1.1 $ $Date: 2002/03/05 14:36:41 $
   */
  public class ConfigTestReferenceAttribute
  {
      private String m_someProp;
  
      public boolean equals( final Object obj )
      {
          final ConfigTestReferenceAttribute test = (ConfigTestReferenceAttribute)obj;
          if( !DefaultConfigurerTest.equals( m_someProp, test.m_someProp ) )
          {
              return false;
          }
          else
          {
              return true;
          }
      }
  
      public void setSomeProp( final String value )
      {
          m_someProp = value;
      }
  }
  
  
  
  1.1                  jakarta-ant/proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer/data/ConfigTestPropResolution.java
  
  Index: ConfigTestPropResolution.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included  with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.myrmidon.components.configurer.data;
  
  import java.util.List;
  import java.util.ArrayList;
  import org.apache.myrmidon.components.configurer.DefaultConfigurerTest;
  
  /**
   * Simple class to test typed adder.
   *
   * @author <a href="mailto:peter@apache.org">Peter Donald</a>
   * @version $Revision: 1.1 $ $Date: 2002/03/05 14:36:41 $
   */
  public class ConfigTestPropResolution
  {
      private String m_prop;
  
      public boolean equals( final Object obj )
      {
          final ConfigTestPropResolution test = (ConfigTestPropResolution)obj;
          if( !DefaultConfigurerTest.equals( m_prop, test.m_prop ) )
          {
              return false;
          }
          else
          {
              return true;
          }
      }
  
      public void setProp( final String value )
      {
          m_prop = value;
      }
  }
  
  
  
  1.1                  jakarta-ant/proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer/data/ConfigTestNonInterfaceAdder.java
  
  Index: ConfigTestNonInterfaceAdder.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included  with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.myrmidon.components.configurer.data;
  
  /**
   * Simple class to test typed adder.
   *
   * @author <a href="mailto:peter@apache.org">Peter Donald</a>
   * @version $Revision: 1.1 $ $Date: 2002/03/05 14:36:41 $
   */
  public class ConfigTestNonInterfaceAdder
  {
      public void add( final Integer integer )
      {
          System.out.println( "This should not have been called as " +
                              "Integer is not an interface" );
      }
  }
  
  
  
  1.1                  jakarta-ant/proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer/data/ConfigTestMultipleTypedAdder.java
  
  Index: ConfigTestMultipleTypedAdder.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included  with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.myrmidon.components.configurer.data;
  
  import org.apache.myrmidon.components.configurer.MyRole1;
  import org.apache.myrmidon.components.configurer.MyRole2;
  
  /**
   * Simple class with more than one typed adder method.
   *
   * @author <a href="mailto:peter@apache.org">Peter Donald</a>
   * @version $Revision: 1.1 $ $Date: 2002/03/05 14:36:41 $
   */
  public class ConfigTestMultipleTypedAdder
  {
      public void add( final MyRole1 role1 )
      {
      }
  
      public void add( final MyRole2 role2 )
      {
      }
  }
  
  
  
  1.1                  jakarta-ant/proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer/data/ConfigTestMismatchedRefType.java
  
  Index: ConfigTestMismatchedRefType.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included  with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.myrmidon.components.configurer.data;
  
  import java.util.ArrayList;
  import java.util.List;
  import org.apache.myrmidon.framework.DataType;
  import org.apache.myrmidon.components.configurer.DefaultConfigurerTest;
  
  /**
   * A simple test class with string properties.
   *
   * @author Adam Murdoch
   */
  public class ConfigTestMismatchedRefType
      implements DataType
  {
      public void setSomeProp( final String value )
      {
      }
  }
  
  
  
  1.1                  jakarta-ant/proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer/data/ConfigTestInterfaceAdder.java
  
  Index: ConfigTestInterfaceAdder.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included  with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.myrmidon.components.configurer.data;
  
  import java.util.ArrayList;
  import org.apache.myrmidon.components.configurer.MyRole1;
  
  /**
   * A test class with an interface property.
   *
   * @author <a href="mailto:adammurdoch@apache.org">Adam Murdoch</a>
   * @version $Revision: 1.1 $ $Date: 2002/03/05 14:36:41 $
   */
  public class ConfigTestInterfaceAdder
  {
      private final ArrayList m_elems = new ArrayList();
  
      public void addPropA( final MyRole1 role1 )
      {
          m_elems.add( role1 );
      }
  
      public boolean equals( Object obj )
      {
          final ConfigTestInterfaceAdder test = (ConfigTestInterfaceAdder)obj;
          return m_elems.equals( test.m_elems );
      }
  }
  
  
  
  1.1                  jakarta-ant/proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer/data/ConfigTestIgnoreStringMethods.java
  
  Index: ConfigTestIgnoreStringMethods.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included  with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.myrmidon.components.configurer.data;
  
  import java.util.ArrayList;
  import junit.framework.AssertionFailedError;
  import org.apache.myrmidon.components.configurer.ConfigTestStringProps;
  import org.apache.myrmidon.components.configurer.DefaultConfigurerTest;
  import org.apache.myrmidon.components.configurer.ConfigTestMultiSetter;
  
  /**
   * A test class with multiple setters/adders/creators for a property.
   *
   * @author Adam Murdoch
   */
  public class ConfigTestIgnoreStringMethods
  {
      private ConfigTestIgnoreStringMethods m_prop1;
      private ArrayList m_prop2 = new ArrayList();
  
      public boolean equals( Object obj )
      {
          ConfigTestIgnoreStringMethods test = (ConfigTestIgnoreStringMethods)obj;
          if( !DefaultConfigurerTest.equals( m_prop1, test.m_prop1 ) )
          {
              return false;
          }
          if( !m_prop2.equals( test.m_prop2 ) )
          {
              return false;
          }
          return true;
      }
  
      //
      // Multiple setters
      //
  
      public void addProp1( final String value )
      {
          throw new AssertionFailedError();
      }
  
      public void addProp1( final ConfigTestIgnoreStringMethods value )
      {
          m_prop1 = value;
      }
  
      //
      // Multiple Adders
      //
  
      public void addProp2( final String value )
      {
          throw new AssertionFailedError();
      }
  
      public void addProp2( final ConfigTestIgnoreStringMethods value )
      {
          m_prop2.add( value );
      }
  }
  
  
  
  1.1                  jakarta-ant/proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer/data/ConfigTestIdResolve.java
  
  Index: ConfigTestIdResolve.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included  with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.myrmidon.components.configurer.data;
  
  import java.util.ArrayList;
  import java.util.List;
  import org.apache.myrmidon.framework.DataType;
  import org.apache.myrmidon.components.configurer.DefaultConfigurerTest;
  
  /**
   * A simple test class with string properties.
   *
   * @author Adam Murdoch
   */
  public class ConfigTestIdResolve
      implements DataType
  {
      private String m_someProp;
  
      public boolean equals( final Object obj )
      {
          final ConfigTestIdResolve test = (ConfigTestIdResolve)obj;
          if( !DefaultConfigurerTest.equals( m_someProp, test.m_someProp ) )
          {
              return false;
          }
          else
          {
              return true;
          }
      }
  
      public void setSomeProp( final String value )
      {
          m_someProp = value;
      }
  }
  
  
  
  1.1                  jakarta-ant/proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer/data/ConfigTestEmpty.java
  
  Index: ConfigTestEmpty.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included  with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.myrmidon.components.configurer.data;
  
  import java.util.ArrayList;
  import java.util.List;
  import org.apache.myrmidon.framework.DataType;
  
  /**
   * A simple test class with string properties.
   *
   * @author Adam Murdoch
   */
  public class ConfigTestEmpty
      implements DataType
  {
  }
  
  
  
  1.1                  jakarta-ant/proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer/data/ConfigTestContent.java
  
  Index: ConfigTestContent.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included  with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.myrmidon.components.configurer.data;
  
  import java.util.ArrayList;
  import java.util.List;
  import org.apache.myrmidon.framework.DataType;
  import org.apache.myrmidon.components.configurer.DefaultConfigurerTest;
  
  /**
   * A simple test class with string properties.
   *
   * @author Adam Murdoch
   */
  public class ConfigTestContent
      implements DataType
  {
      private String m_content;
  
      public boolean equals( final Object obj )
      {
          final ConfigTestContent test = (ConfigTestContent)obj;
          if( !DefaultConfigurerTest.equals( m_content, test.m_content ) )
          {
              return false;
          }
          else
          {
              return true;
          }
      }
  
      public void addContent( final String content )
      {
          m_content = content;
      }
  }
  
  
  
  1.1                  jakarta-ant/proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer/data/ConfigTestAttributeConvert.java
  
  Index: ConfigTestAttributeConvert.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included  with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.myrmidon.components.configurer.data;
  
  import org.apache.myrmidon.components.AbstractComponentTest;
  
  /**
   * A class for testing conversion.
   *
   * @author <a href="mailto:adammurdoch@apache.org">Adam Murdoch</a>
   */
  public class ConfigTestAttributeConvert
  {
      private int m_intProp;
      private Integer m_integerProp;
  
      public void setIntProp( final int intProp )
      {
          m_intProp = intProp;
      }
  
      public void setIntegerProp( final Integer integerProp )
      {
          m_integerProp = integerProp;
      }
  
      public boolean equals( Object obj )
      {
          ConfigTestAttributeConvert test = (ConfigTestAttributeConvert)obj;
          if( m_intProp != test.m_intProp )
          {
              return false;
          }
          if( !AbstractComponentTest.equals( m_integerProp, test.m_integerProp ) )
          {
              return false;
          }
  
          return true;
      }
  }
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message