From: cvs@openprivacy.orgCVS update: sierra/src/java/org/openprivacy/sierra/tests
Date: Monday February 19, 19101 @ 15:38
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-serv27155/src/java/org/openprivacy/sierra/tests
Modified Files:
BaseTest.java Test1.java Test2.java Test3.java Test6.java
Log Message:
more work on the store mechanism
*****************************************************************
File: sierra/src/java/org/openprivacy/sierra/tests/BaseTest.java
CVSWEB Options: -------------------
CVSWeb: Annotate this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/tests/BaseTest.java?annotate=1.4
CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/tests/BaseTest.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/BaseTest.java.diff?r1=1.4&r2=1.3
-----------------------------------
Index: sierra/src/java/org/openprivacy/sierra/tests/BaseTest.java
diff -u sierra/src/java/org/openprivacy/sierra/tests/BaseTest.java:1.3 sierra/src/java/org/openprivacy/sierra/tests/BaseTest.java:1.4
--- sierra/src/java/org/openprivacy/sierra/tests/BaseTest.java:1.3 Sun Feb 18 22:50:30 2001
+++ sierra/src/java/org/openprivacy/sierra/tests/BaseTest.java Mon Feb 19 15:38:24 2001
@@ -22,6 +22,7 @@
import java.util.*;
import org.arrowhead.testlet.*;
import org.openprivacy.sierra.nym.talon.interfaces.*;
+import org.openprivacy.sierra.util.*;
import talon.*;
import talon.interfaces.*;
import talon.util.net.*;
@@ -30,7 +31,7 @@
* Central location for storing Parameter keys needed by Sierra Unit Tests
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: BaseTest.java,v 1.3 2001/02/19 06:50:30 burton Exp $
+ * @version $Id: BaseTest.java,v 1.4 2001/02/19 23:38:24 burton Exp $
*/
public class BaseTest extends AbstractTestlet {
@@ -43,20 +44,14 @@
* Quick way to get a nym.
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: BaseTest.java,v 1.3 2001/02/19 06:50:30 burton Exp $
+ * @version $Id: BaseTest.java,v 1.4 2001/02/19 23:38:24 burton Exp $
*/
public Nym getNym( String name ) throws Exception {
- String builder = "sierra_default_nym_builder";
- ComponentHandle handle = HandleManager.byName( builder );
+ //String builder = "sierra_default_nym_builder";
+ ComponentHandle handle = SierraResources.NYM_BUILDER_HANDLE;
- /**
- *
- *
- * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: BaseTest.java,v 1.3 2001/02/19 06:50:30 burton Exp $
- */
handle.getInitProperties().setString( "nym_name", "urn:burtonator" );
NymBuilder nb = (NymBuilder)ComponentFactory.getInstance( handle );
*****************************************************************
File: sierra/src/java/org/openprivacy/sierra/tests/Test1.java
CVSWEB Options: -------------------
CVSWeb: Annotate this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/tests/Test1.java?annotate=1.9
CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/tests/Test1.java?rev=1.9&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/Test1.java.diff?r1=1.9&r2=1.8
-----------------------------------
Index: sierra/src/java/org/openprivacy/sierra/tests/Test1.java
diff -u sierra/src/java/org/openprivacy/sierra/tests/Test1.java:1.8 sierra/src/java/org/openprivacy/sierra/tests/Test1.java:1.9
--- sierra/src/java/org/openprivacy/sierra/tests/Test1.java:1.8 Sun Feb 18 22:50:30 2001
+++ sierra/src/java/org/openprivacy/sierra/tests/Test1.java Mon Feb 19 15:38:24 2001
@@ -1,3 +1,9 @@
+//-----BEGIN ARROWHEAD-TEST-SIGNATURE-----
+
+
+//------END ARROWHEAD-TEST-SIGNATURE------
+
+
/*
* Copyright 2001 OpenPrivacy.org. All rights reserved.
*
@@ -37,27 +43,29 @@
*
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: Test1.java,v 1.8 2001/02/19 06:50:30 burton Exp $
+ * @version $Id: Test1.java,v 1.9 2001/02/19 23:38:24 burton Exp $
*/
public class Test1 extends BaseTest {
public void initialize( TestletContext context ) throws Exception {
- String router = this.getContext().getInitParameter( SOAP_RPCROUTER_KEY );
+ //FIXME: commented when we migrated to the new Reputation objects.
+
+// String router = this.getContext().getInitParameter( SOAP_RPCROUTER_KEY );
- Reputation rep = new Reputation( new URI( "urn:TestPrincipal" ),
- "http://www.openprivacy.org" );
+// Reputation rep = new Reputation( new URI( "urn:TestPrincipal" ),
+// "http://www.openprivacy.org" );
- rep.addValue( new Value( "*", "GOOD" ) );
+// rep.addValue( new Value( "*", "GOOD" ) );
- System.out.println( rep.getPrettyPrint() );
+// System.out.println( rep.getPrettyPrint() );
- System.out.println( "Reputation URI: " + rep.getURI().toString() );
+// System.out.println( "Reputation URI: " + rep.getURI().toString() );
- new PutReputation( router, rep );
+// new PutReputation( router, rep );
- System.out.println( "Using router: " + router );
+// System.out.println( "Using router: " + router );
}
*****************************************************************
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.7
CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/tests/Test2.java?rev=1.7&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.7&r2=1.6
-----------------------------------
Index: sierra/src/java/org/openprivacy/sierra/tests/Test2.java
diff -u sierra/src/java/org/openprivacy/sierra/tests/Test2.java:1.6 sierra/src/java/org/openprivacy/sierra/tests/Test2.java:1.7
--- sierra/src/java/org/openprivacy/sierra/tests/Test2.java:1.6 Sun Feb 18 22:50:30 2001
+++ sierra/src/java/org/openprivacy/sierra/tests/Test2.java Mon Feb 19 15:38:24 2001
@@ -23,15 +23,15 @@
import org.arrowhead.testlet.*;
-import org.openprivacy.sierra.*;
import org.openprivacy.sierra.client.*;
import org.openprivacy.sierra.util.*;
+import org.openprivacy.sierra.reputation.talon.interfaces.*;
/**
*
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: Test2.java,v 1.6 2001/02/19 06:50:30 burton Exp $
+ * @version $Id: Test2.java,v 1.7 2001/02/19 23:38:24 burton Exp $
*/
public class Test2 extends BaseTest {
@@ -46,8 +46,7 @@
Reputation rep = gr.getReputation();
- System.out.println( rep.getPrettyPrint() );
-
+ //System.out.println( rep.getPrettyPrint() );
System.out.println( "Reputation URI: " + rep.getURI().toString() );
*****************************************************************
File: sierra/src/java/org/openprivacy/sierra/tests/Test3.java
CVSWEB Options: -------------------
CVSWeb: Annotate this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/tests/Test3.java?annotate=1.4
CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/tests/Test3.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/Test3.java.diff?r1=1.4&r2=1.3
-----------------------------------
Index: sierra/src/java/org/openprivacy/sierra/tests/Test3.java
diff -u sierra/src/java/org/openprivacy/sierra/tests/Test3.java:1.3 sierra/src/java/org/openprivacy/sierra/tests/Test3.java:1.4
--- sierra/src/java/org/openprivacy/sierra/tests/Test3.java:1.3 Sun Feb 18 22:50:30 2001
+++ sierra/src/java/org/openprivacy/sierra/tests/Test3.java Mon Feb 19 15:38:24 2001
@@ -30,7 +30,7 @@
*
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: Test3.java,v 1.3 2001/02/19 06:50:30 burton Exp $
+ * @version $Id: Test3.java,v 1.4 2001/02/19 23:38:24 burton Exp $
*/
public class Test3 extends BaseTest {
@@ -38,7 +38,7 @@
//fetch all necessary components.
requireComponent( new ComponentHandle()
- .setImplementation( "org.openprivacy.sierra.talon.implementations.PropertyManagerPayloadImpl" ) );
+ .setImplementation( "org.openprivacy.sierra.reputation.talon.implementations.PropertyManagerPayloadImpl" ) );
}
*****************************************************************
File: sierra/src/java/org/openprivacy/sierra/tests/Test6.java
CVSWEB Options: -------------------
CVSWeb: Annotate this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/tests/Test6.java?annotate=1.2
CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/tests/Test6.java?rev=1.2&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/Test6.java.diff?r1=1.2&r2=1.1
-----------------------------------
Index: sierra/src/java/org/openprivacy/sierra/tests/Test6.java
diff -u sierra/src/java/org/openprivacy/sierra/tests/Test6.java:1.1 sierra/src/java/org/openprivacy/sierra/tests/Test6.java:1.2
--- sierra/src/java/org/openprivacy/sierra/tests/Test6.java:1.1 Sun Feb 18 22:53:17 2001
+++ sierra/src/java/org/openprivacy/sierra/tests/Test6.java Mon Feb 19 15:38:24 2001
@@ -22,6 +22,7 @@
import java.util.*;
import org.arrowhead.testlet.*;
import org.openprivacy.sierra.nym.talon.interfaces.*;
+import org.openprivacy.sierra.util.*;
import talon.*;
import talon.interfaces.*;
import talon.util.net.*;
@@ -29,21 +30,29 @@
/**
* Test which creates a sample Reputation and places it within an RCE and a
* Store.
+ *
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: Test6.java,v 1.1 2001/02/19 06:53:17 burton Exp $
+ * @version $Id: Test6.java,v 1.2 2001/02/19 23:38:24 burton Exp $
*/
public class Test6 extends BaseTest {
/**
* @see Testlet
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: Test6.java,v 1.1 2001/02/19 06:53:17 burton Exp $
+ * @version $Id: Test6.java,v 1.2 2001/02/19 23:38:24 burton Exp $
*/
public void initialize( TestletContext context ) throws Exception {
+ System.out.println( "Creating basic reputation and payload objects.." );
-
+ ComponentFactory.getInstance( SierraResources.REPUTATION_HANDLE );
+
+ ComponentFactory.getInstance( SierraResources.PAYLOAD_HANDLE );
+ ComponentFactory.getInstance( SierraResources.STORE_MANAGER_HANDLE );
+
+ ComponentFactory.getInstance( SierraResources.STORE_HANDLE );
+
}
}
This archive was generated by hypermail 2b30 : Mon Feb 19 2001 - 15:40:26 PST