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

From: cvs@openprivacy.org
Date: Fri Mar 02 2001 - 19:16:57 PST

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

    Date: Friday March 2, 19101 @ 19:16
    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-serv19479/src/java/talon/tests

    Modified Files:
            Test3.java
    Log Message:
    ...

    *****************************************************************
    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.3

    CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/tests/Test3.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/Test3.java.diff?r1=1.3&r2=1.2

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

    Index: talon/src/java/talon/tests/Test3.java
    diff -u talon/src/java/talon/tests/Test3.java:1.2 talon/src/java/talon/tests/Test3.java:1.3
    --- talon/src/java/talon/tests/Test3.java:1.2 Sun Feb 11 14:02:11 2001
    +++ talon/src/java/talon/tests/Test3.java Fri Mar 2 19:16:57 2001
    @@ -30,29 +30,25 @@
      *
      *
      * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: Test3.java,v 1.2 2001/02/11 22:02:11 burton Exp $
    + * @version $Id: Test3.java,v 1.3 2001/03/03 03:16:57 burton Exp $
      */
     public class Test3 extends AbstractTestlet {
     
         public void initialize( TestletContext context ) throws Exception {
     
    - //make sure the ComponentLogger works (via getLogger() )
    -
    - Component comp = ComponentFactory
    + //Get a PropertyManager Component via its handle in ComponentFactory
    + PropertyManager pm = (PropertyManager)ComponentFactory
                 .getInstance( ComponentFactory.TALON_DEFAULT_PROPERTY_MANAGER );
     
    - comp.getLogger().message( "It worked..." );
    + //test the logging mechanism
    + pm.getLogger().message( "It worked..." );
     
    - //try to get a Component by impl...
    + //try to get a Component by its implementation
             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 );
    + //try to get a Component via its name
    + ComponentHandle handle = HandleManager.byName( "default_logger" );
             ComponentFactory.getInstance( handle );
     
             



    This archive was generated by hypermail 2b30 : Fri Mar 02 2001 - 19:17:59 PST