Author: jcarman Date: Sat Nov 19 10:46:33 2005 New Revision: 345667 URL: http://svn.apache.org/viewcvs?rev=345667&view=rev Log: Improving test coverage.
Added: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestBurlapProvider.java (with props) jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestHessianProvider.java (with props) Added: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestBurlapProvider.java URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestBurlapProvider.java?rev=345667&view=auto ============================================================================== --- jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestBurlapProvider.java (added) +++ jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestBurlapProvider.java Sat Nov 19 10:46:33 2005 @@ -0,0 +1,36 @@ +/* $Id$ + * + * Copyright 2005 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.commons.proxy.provider; +import junit.framework.TestCase; +import org.apache.commons.proxy.util.Echo; +import org.apache.commons.proxy.exception.ObjectProviderException; + +public class TestBurlapProvider extends TestCase +{ + public void testWithMalformedUrl() + { + try + { + final BurlapProvider p = new BurlapProvider( Echo.class, "a malformed URL" ); + p.getObject(); + fail(); + } + catch( ObjectProviderException e ) + { + } + } +} \ No newline at end of file Propchange: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestBurlapProvider.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestBurlapProvider.java ------------------------------------------------------------------------------ svn:keywords = Id Added: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestHessianProvider.java URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestHessianProvider.java?rev=345667&view=auto ============================================================================== --- jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestHessianProvider.java (added) +++ jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestHessianProvider.java Sat Nov 19 10:46:33 2005 @@ -0,0 +1,41 @@ +/* $Id$ + * + * Copyright 2005 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.commons.proxy.provider; + +import junit.framework.TestCase; +import org.apache.commons.proxy.exception.ObjectProviderException; +import org.apache.commons.proxy.util.Echo; + +public class TestHessianProvider extends TestCase +{ +//---------------------------------------------------------------------------------------------------------------------- +// Other Methods +//---------------------------------------------------------------------------------------------------------------------- + + public void testWithMalformedUrl() + { + try + { + final HessianProvider p = new HessianProvider( Echo.class, "a malformed URL" ); + p.getObject(); + fail(); + } + catch( ObjectProviderException e ) + { + } + } +} \ No newline at end of file Propchange: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestHessianProvider.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestHessianProvider.java ------------------------------------------------------------------------------ svn:keywords = Id --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]