CVS update: sierra/src/java/org/openprivacy/sierra/tests

From: cvs@openprivacy.org
Date: Sun Mar 18 2001 - 22:18:35 PST

  • Next message: cvs@openprivacy.org: "CVS update: sierra/htdocs"

    Date: Sunday March 18, 19101 @ 22:18
    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/sierra/src/java/org/openprivacy/sierra/tests

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

    Update of /usr/local/cvs/public/sierra/src/java/org/openprivacy/sierra/tests
    In directory giga:/tmp/cvs-serv13310/src/java/org/openprivacy/sierra/tests

    Modified Files:
            Test9.java
    Log Message:
    ...

    *****************************************************************
    File: sierra/src/java/org/openprivacy/sierra/tests/Test9.java

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

    CVSWeb: Annotate this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/tests/Test9.java?annotate=1.14

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

    CVSWeb: Diff to previous version: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/tests/Test9.java.diff?r1=1.14&r2=1.13

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

    Index: sierra/src/java/org/openprivacy/sierra/tests/Test9.java
    diff -u sierra/src/java/org/openprivacy/sierra/tests/Test9.java:1.13 sierra/src/java/org/openprivacy/sierra/tests/Test9.java:1.14
    --- sierra/src/java/org/openprivacy/sierra/tests/Test9.java:1.13 Sat Mar 17 18:28:30 2001
    +++ sierra/src/java/org/openprivacy/sierra/tests/Test9.java Sun Mar 18 22:18:35 2001
    @@ -38,30 +38,63 @@
     /**
      * <p>
      * This test implements an Use case one which was defined as:
    - *
    + *
    + * <p>
    + * <b>Definitions:</b>
      * <ul>
    - * <li>Current host fetches some RSS channels and
    - *
    + * <li><b>JS1:</b> JetsPeek agent 1. Backend engine/server which is an
    + * intermediary betwen A1 and A2.
    + *
    + * <li><b>A1:</b> Agent 1. First peer into the system. Sets up initial
    + * reputations.
    + *
    + * <li><b>A2:</b> Agent 2. Second peer into the system. Benefits from
    + * A1s reptuation(s).
    + *
    + * </ul>
    + *
    + * <p>
    + * <ul>
    + *
    + * <li><i>JS1:</i> Fetches some RSS channels and creates reputations with
    + * these URLs.
    + *
    + * <li><i>A1:</i> Does a getReputation request for the RSS channels added byte JS1.
    + *
    + * <li><i>A2:</i> Does a getReputation request for the RSS channels..
    + *
    + * </ul>
    + *
      * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: Test9.java,v 1.13 2001/03/18 02:28:30 burton Exp $
    + * @version $Id: Test9.java,v 1.14 2001/03/19 06:18:35 burton Exp $
      */
     public class Test9 extends BaseTest {
     
    + //default RCE to use for all operations
    + private RCE rce = null;
    +
    + //StoreEngie used by talon
    + private StoreEngine se = null;
    +
    + private NymBuilder a1 = null;
    +
    + private NymBuilder a2 = null;
    +
    + private NymBuilder js1 = null;
    +
         public void initialize( TestletContext context ) throws Exception {
     
             //get the basic RCE
    - RCE rce = (RCE)requireComponent( SierraResources.RCE_HANDLE );
    + this.rce = (RCE)requireComponent( SierraResources.RCE_HANDLE );
     
             //get its StoreEngine
    - //StoreEngine se = rce.getStoreEngine();
    -
    - //StoreEngine se = (StoreEngine)requireComponent( SierraResources.STORE_ENGINE_HANDLE );
    -
    - ComponentHandle handle = HandleManager.byName( "sierra_store_engine" );
    + this.se = rce.getStoreEngine();
    +
    + this.a1 = getNymBuilder( "urn:burtonator" );
     
    - StoreEngine se = (StoreEngine)requireComponent( handle );
    + this.a2 = getNymBuilder( "urn:fen" );
     
    - NymBuilder nb = getNymBuilder( "urn:burtonator" );
    + this.js1 = getNymBuilder( "urn:jetspeek" );
             
             Reputation reputation = SierraResources.getReputation();
     
    @@ -74,23 +107,31 @@
             PropertyManagerPayload pmp1 = (PropertyManagerPayload)ComponentFactory
                 .getInstance( PropertyManagerPayload.class.getName() );
     
    + //openprivacy:///reserved-properties/reputations/quality
    +
             pmp1.setString( "foo", "bar" );
             pmp1.setString( "Free Software Foundation", "good" );
    +
    +
             
             reputation.addPayload( pmp1 );
             
    - ReputationConstrainer.constrain( reputation, nb );
    + ReputationConstrainer.constrain( reputation, js1 );
     
             se.put( reputation );
             
             executeQuery( se );
         }
     
    + public void run_test() throws Exception {
    +
    + }
    +
         /**
          * Test out a query execution...
          *
          * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: Test9.java,v 1.13 2001/03/18 02:28:30 burton Exp $
    + * @version $Id: Test9.java,v 1.14 2001/03/19 06:18:35 burton Exp $
          */
         private void executeQuery( StoreEngine se ) throws Exception {
     



    This archive was generated by hypermail 2b30 : Sun Mar 18 2001 - 22:19:36 PST