CVS update: talon/src/java/talon/tests

From: cvs@openprivacy.org
Date: Sun Feb 11 2001 - 14:02:12 PST

  • Next message: cvs@openprivacy.org: "CVS update: talon/src/java/talon/util"

    Date: Sunday February 11, 19101 @ 14:02
    Author: burton
    CVSWEB Options: -------------------

    Main CVSWeb: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi

    View this module: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/tests

    -----------------------------------

    Update of /usr/local/cvs/public/talon/src/java/talon/tests
    In directory giga:/tmp/cvs-serv4717/src/java/talon/tests

    Modified Files:
            Test3.java Test4.java test.xml
    Log Message:
    ug... added some more features necessary for M1. Stupid bug in java.lang.Properties which took a while to fix.

    *****************************************************************
    File: talon/src/java/talon/tests/Test3.java

    CVSWEB Options: -------------------

    CVSWeb: Annotate this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/tests/Test3.java?annotate=1.2

    CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/tests/Test3.java?rev=1.2&content-type=text/x-cvsweb-markup

    CVSWeb: Diff to previous version: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/tests/Test3.java.diff?r1=1.2&r2=1.1

    -----------------------------------

    Index: talon/src/java/talon/tests/Test3.java
    diff -u talon/src/java/talon/tests/Test3.java:1.1 talon/src/java/talon/tests/Test3.java:1.2
    --- talon/src/java/talon/tests/Test3.java:1.1 Thu Jan 25 11:05:55 2001
    +++ talon/src/java/talon/tests/Test3.java Sun Feb 11 14:02:11 2001
    @@ -30,7 +30,7 @@
      *
      *
      * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: Test3.java,v 1.1 2001/01/25 19:05:55 burton Exp $
    + * @version $Id: Test3.java,v 1.2 2001/02/11 22:02:11 burton Exp $
      */
     public class Test3 extends AbstractTestlet {
     
    @@ -38,12 +38,23 @@
     
             //make sure the ComponentLogger works (via getLogger() )
     
    - //get any component.
    -
             Component comp = ComponentFactory
                 .getInstance( ComponentFactory.TALON_DEFAULT_PROPERTY_MANAGER );
     
             comp.getLogger().message( "It worked..." );
    +
    + //try to get a Component by impl...
    + ComponentFactory.getInstance( HandleManager
    + .byImplementation( "talon.implementations.SimpleLogger" ) );
    +
    +
    +
    + //make sure we can get a component by name!
    +
    + String builder = "default_logger";
    + ComponentHandle handle = HandleManager.byName( builder );
    + ComponentFactory.getInstance( handle );
    +
             
         }
     

    *****************************************************************
    File: talon/src/java/talon/tests/Test4.java

    CVSWEB Options: -------------------

    CVSWeb: Annotate this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/tests/Test4.java?annotate=1.3

    CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/tests/Test4.java?rev=1.3&content-type=text/x-cvsweb-markup

    CVSWeb: Diff to previous version: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/tests/Test4.java.diff?r1=1.3&r2=1.2

    -----------------------------------

    Index: talon/src/java/talon/tests/Test4.java
    diff -u talon/src/java/talon/tests/Test4.java:1.2 talon/src/java/talon/tests/Test4.java:1.3
    --- talon/src/java/talon/tests/Test4.java:1.2 Wed Feb 7 01:59:34 2001
    +++ talon/src/java/talon/tests/Test4.java Sun Feb 11 14:02:11 2001
    @@ -30,7 +30,7 @@
      *
      *
      * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: Test4.java,v 1.2 2001/02/07 09:59:34 burton Exp $
    + * @version $Id: Test4.java,v 1.3 2001/02/11 22:02:11 burton Exp $
      */
     public class Test4 extends AbstractTestlet {
     
    @@ -39,7 +39,7 @@
          * Test group properties.
          *
          * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: Test4.java,v 1.2 2001/02/07 09:59:34 burton Exp $
    + * @version $Id: Test4.java,v 1.3 2001/02/11 22:02:11 burton Exp $
          */
         public void initialize( TestletContext context ) throws Exception {
     
    @@ -51,16 +51,16 @@
     
             String key = "talon.component.1";
             
    - Hashtable ht = pm.getGroup( key );
    + PropertyManager group = pm.getGroup( key );
     
             System.out.println( "Found the following properties for key: " + key );
     
    - Enumeration keys = ht.keys();
    + Enumeration keys = group.getKeys();
             
             while ( keys.hasMoreElements() ) {
     
                 String name = (String)keys.nextElement();
    - String value = (String)ht.get( name );
    + String value = group.getString( name );
                 System.out.println( name + "\t" + value );
                 
             }

    *****************************************************************
    File: talon/src/java/talon/tests/test.xml

    CVSWEB Options: -------------------

    CVSWeb: Annotate this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/tests/test.xml?annotate=1.5

    CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/tests/test.xml?rev=1.5&content-type=text/x-cvsweb-markup

    CVSWeb: Diff to previous version: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/tests/test.xml.diff?r1=1.5&r2=1.4

    -----------------------------------

    Index: talon/src/java/talon/tests/test.xml
    diff -u talon/src/java/talon/tests/test.xml:1.4 talon/src/java/talon/tests/test.xml:1.5
    --- talon/src/java/talon/tests/test.xml:1.4 Wed Feb 7 00:17:15 2001
    +++ talon/src/java/talon/tests/test.xml Sun Feb 11 14:02:11 2001
    @@ -13,6 +13,7 @@
       <target name="test" >
         <echo message="Performing unit tests." />
     
    + <testlet classname="talon.tests.Test5"/>
         <testlet classname="talon.tests.Test1"/>
         <testlet classname="talon.tests.Test2"/>
         <testlet classname="talon.tests.Test3"/>



    This archive was generated by hypermail 2b30 : Sun Feb 11 2001 - 14:03:13 PST