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

From: cvs@openprivacy.org
Date: Tue Jan 16 2001 - 09:14:48 PST


Date: Tuesday January 16, 19101 @ 9:14
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/cvsroot/sierra/src/java/org/openprivacy/sierra/tests
In directory openprivacy.org:/tmp/cvs-serv18881/src/java/org/openprivacy/sierra/tests

Modified Files:
        Test2.java
Log Message:
reputation:// URI is added... but currently broken I think...

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

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

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

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

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

Index: sierra/src/java/org/openprivacy/sierra/tests/Test2.java
diff -u sierra/src/java/org/openprivacy/sierra/tests/Test2.java:1.3 sierra/src/java/org/openprivacy/sierra/tests/Test2.java:1.4
--- sierra/src/java/org/openprivacy/sierra/tests/Test2.java:1.3 Sun Jan 14 22:40:54 2001
+++ sierra/src/java/org/openprivacy/sierra/tests/Test2.java Tue Jan 16 09:14:48 2001
@@ -31,7 +31,7 @@
  *
  *
  * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: Test2.java,v 1.3 2001/01/15 06:40:54 burton Exp $
+ * @version $Id: Test2.java,v 1.4 2001/01/16 17:14:48 burton Exp $
  */
 public class Test2 extends BaseTest {
 
@@ -40,13 +40,17 @@
 
         String router = this.getContext().getInitParameter( SOAP_RPCROUTER );
 
- Reputation rep = new Reputation( new URIReference( "urn:TestPrincipal" ),
- "http://www.openprivacy.org" );
-
- rep.addValue( new Value( "*", "GOOD" ) );
+ System.out.println( "Fetching reputation... " );
         
- new PutReputation( router, rep );
+ GetReputation gr = new GetReputation( router, "http://www.openprivacy.org" );
+
+ Reputation rep = gr.getReputation();
+
+ System.out.println( rep.getPrettyPrint() );
 
+
+ System.out.println( "Reputation URI: " + rep.getURI().toString() );
+
     }
 
 }



This archive was generated by hypermail 2b30 : Mon Jan 22 2001 - 15:52:15 PST