From: cvs@openprivacy.orgCVS update: talon/src/java/talon/tests
Date: Tuesday March 13, 19101 @ 1:53
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-serv32063/src/java/talon/tests
Modified Files:
Test9.java
Log Message:
incorrect interface guessing fixed....
*****************************************************************
File: talon/src/java/talon/tests/Test9.java
CVSWEB Options: -------------------
CVSWeb: Annotate this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/tests/Test9.java?annotate=1.2
CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/tests/Test9.java?rev=1.2&content-type=text/x-cvsweb-markup
CVSWeb: Diff to previous version: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/tests/Test9.java.diff?r1=1.2&r2=1.1
-----------------------------------
Index: talon/src/java/talon/tests/Test9.java
diff -u talon/src/java/talon/tests/Test9.java:1.1 talon/src/java/talon/tests/Test9.java:1.2
--- talon/src/java/talon/tests/Test9.java:1.1 Mon Mar 12 23:37:54 2001
+++ talon/src/java/talon/tests/Test9.java Tue Mar 13 01:53:07 2001
@@ -21,6 +21,7 @@
import java.net.*;
import java.util.*;
import org.arrowhead.testlet.*;
+import org.openprivacy.sierra.reputation.talon.implementations.*;
import talon.*;
import talon.implementations.*;
import talon.interfaces.*;
@@ -31,17 +32,14 @@
* Test out Component.getInterfaces()
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: Test9.java,v 1.1 2001/03/13 07:37:54 burton Exp $
+ * @version $Id: Test9.java,v 1.2 2001/03/13 09:53:07 burton Exp $
*/
public class Test9 extends AbstractTestlet implements Serializable {
public void initialize( TestletContext context ) throws Exception {
- ComponentHandle handle = new ComponentHandle()
- .setImplementation( SimpleLogger.class.getName() );
-
- Component test = ComponentFactory.getInstance( handle );
-
+ Component test = getTestComponent();
+
Class[] classes = test.getInterfaces();
System.out.println( "dumping interfaces...." );
@@ -54,9 +52,24 @@
}
-
System.out.println( "TypeReference: " + test.getTypeReference() );
}
+ public Component getTestComponent() throws Exception {
+
+// PropertyManagerPayload test = (PropertyManagerPayload)ComponentFactory
+// .getInstance( PropertyManagerPayload.class.getName() );
+
+// return test;
+
+
+ ComponentHandle handle = new ComponentHandle()
+ .setImplementation( SimpleLogger.class.getName() );
+
+ Component test = ComponentFactory.getInstance( handle );
+
+ return test;
+
+ }
}
This archive was generated by hypermail 2b30 : Tue Mar 13 2001 - 01:53:38 PST