hammant 2002/08/18 06:14:10
Added: altrmi/src/test/org/apache/excalibur/altrmi/test/proxies
CodedProxyTestCase.java DynamicProxyTestCase.java
NonProxyTestCase.java
Removed: altrmi/src/test/org/apache/excalibur/altrmi/test/proxies
CodedProxyTest.java DynamicProxyTest.java
UnProxyTest.java
altrmi proxies.xml
Log:
Proxies now run thru Junit.
Revision Changes Path
1.1
jakarta-avalon-excalibur/altrmi/src/test/org/apache/excalibur/altrmi/test/proxies/CodedProxyTestCase.java
Index: CodedProxyTestCase.java
===================================================================
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.excalibur.altrmi.test.proxies;
import org.apache.excalibur.altrmi.test.AbstractHelloTestCase;
import org.apache.excalibur.altrmi.test.SimpleHelloTestServerImpl;
/**
* Test Hand Coded Proxy for comparison sake
* @author Paul Hammant
*/
public class CodedProxyTestCase extends AbstractHelloTestCase
{
public CodedProxyTestCase(String name)
{
super(name);
}
protected void setUp() throws Exception
{
super.setUp();
testServer = new SimpleHelloTestServerImpl();
testClient = new CodedProxyTestInterfaceProxy( testServer );
}
}
1.1
jakarta-avalon-excalibur/altrmi/src/test/org/apache/excalibur/altrmi/test/proxies/DynamicProxyTestCase.java
Index: DynamicProxyTestCase.java
===================================================================
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.excalibur.altrmi.test.proxies;
import org.apache.excalibur.altrmi.test.AbstractHelloTestCase;
import org.apache.excalibur.altrmi.test.TestInterface;
import org.apache.excalibur.altrmi.test.SimpleHelloTestServerImpl;
/**
* Test Dynamic Proxy (reflection) for comparison sake
* @author Paul Hammant
*/
public class DynamicProxyTestCase extends AbstractHelloTestCase
{
public DynamicProxyTestCase(String name)
{
super(name);
}
protected void setUp() throws Exception
{
super.setUp();
testServer = new SimpleHelloTestServerImpl();
testClient = (TestInterface) DynamicProxy.newInstance( testServer, new
Class[]{TestInterface.class} );
}
}
1.1
jakarta-avalon-excalibur/altrmi/src/test/org/apache/excalibur/altrmi/test/proxies/NonProxyTestCase.java
Index: NonProxyTestCase.java
===================================================================
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.excalibur.altrmi.test.proxies;
import org.apache.excalibur.altrmi.test.AbstractHelloTestCase;
import org.apache.excalibur.altrmi.test.SimpleHelloTestServerImpl;
/**
* Test Non Proxy for comparison sake
* @author Paul Hammant
*/
public class NonProxyTestCase extends AbstractHelloTestCase
{
public NonProxyTestCase(String name)
{
super(name);
}
protected void setUp() throws Exception
{
super.setUp();
testServer = new SimpleHelloTestServerImpl();
testClient = testServer;
}
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>