From: cvs@openprivacy.orgCVS update: sierra/src/java/org/openprivacy/sierra/test
Date: Tuesday January 9, 19101 @ 4: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/sierra/src/java/org/openprivacy/sierra/test
-----------------------------------
Update of /usr/local/cvsroot/sierra/src/java/org/openprivacy/sierra/test
In directory openprivacy.org:/tmp/cvs-serv19527/src/java/org/openprivacy/sierra/test
Modified Files:
Test.java
Log Message:
init of put reputation object... some reason it is still using a null reference... hmmm
*****************************************************************
File: sierra/src/java/org/openprivacy/sierra/test/Test.java
CVSWEB Options: -------------------
CVSWeb: Annotate this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/test/Test.java?annotate=1.5
CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/sierra/src/java/org/openprivacy/sierra/test/Test.java?rev=1.5&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/test/Test.java.diff?r1=1.5&r2=1.4
-----------------------------------
Index: sierra/src/java/org/openprivacy/sierra/test/Test.java
diff -u sierra/src/java/org/openprivacy/sierra/test/Test.java:1.4 sierra/src/java/org/openprivacy/sierra/test/Test.java:1.5
--- sierra/src/java/org/openprivacy/sierra/test/Test.java:1.4 Mon Jan 8 16:21:58 2001
+++ sierra/src/java/org/openprivacy/sierra/test/Test.java Tue Jan 9 04:16:58 2001
@@ -17,13 +17,30 @@
package org.openprivacy.sierra.test;
+
import java.io.*;
+import org.openprivacy.sierra.*;
+import org.openprivacy.sierra.client.*;
+
public class Test
{
public static void one() {
+ httpSOAPMessage( "./test/input/test.1" );
+ }
+
+ public static void two() throws Exception {
+
+ Reputation rep = new Reputation( "http://www.openprivacy.org" );
+
+ new PutReputation( "http://localhost:6666/soap/servlet/rpcrouter",
+ new Reputation() );
+
+ }
+
+ private static void httpSOAPMessage( String input ) {
- HttpPostUtil hpu = new HttpPostUtil( "localhost", 8080, "/soap/servlet/rpcrouter", "text/xml", "./test/input/test.1" );
+ HttpPostUtil hpu = new HttpPostUtil( "localhost", 8080, "/soap/servlet/rpcrouter", "text/xml", input );
hpu.addParameter( "SOAPAction", "http://schemas.openprivacy.org/soap/service/reputation/12/2000/" );
try {
@@ -33,19 +50,19 @@
}
}
-
- public static void two() {
-
- }
-
+
public static void main( String args[] )
{
System.out.println( "Running Sierra tests..." );
- one();
- two();
+ try {
+ //one();
+ two();
+ } catch ( Throwable t ) {
+ t.printStackTrace();
+ }
}
}
This archive was generated by hypermail 2b30 : Mon Jan 22 2001 - 15:52:14 PST