You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by jc...@apache.org on 2005/08/27 05:52:30 UTC

svn commit: r240386 [5/5] - in /jakarta/commons/sandbox/proxy/trunk: ./ src/java/org/apache/commons/proxy/ src/java/org/apache/commons/proxy/exception/ src/java/org/apache/commons/proxy/factory/ src/java/org/apache/commons/proxy/factory/cglib/ src/java...

Modified: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/interceptor/TestFilteredMethodInterceptor.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/interceptor/TestFilteredMethodInterceptor.java?rev=240386&r1=240385&r2=240386&view=diff
==============================================================================
--- jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/interceptor/TestFilteredMethodInterceptor.java (original)
+++ jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/interceptor/TestFilteredMethodInterceptor.java Fri Aug 26 20:51:56 2005
@@ -1,42 +1,42 @@
-/*
- *  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.interceptor;
-
-import org.apache.commons.proxy.util.Echo;
-import org.apache.commons.proxy.util.EchoImpl;
-import org.apache.commons.proxy.util.SuffixMethodInterceptor;
-import org.apache.commons.proxy.factory.cglib.CglibProxyFactory;
-import org.apache.commons.proxy.interceptor.filter.SimpleMethodFilter;
-import junit.framework.TestCase;
-
-/**
- * @author James Carman
- * @version 1.0
- */
-public class TestFilteredMethodInterceptor extends TestCase
-{
-    public void testFilterAccepts()
-    {
-        Echo echo = ( Echo ) new MethodInterceptorChain( new FilteredMethodInterceptor( new SuffixMethodInterceptor( "a" ), new SimpleMethodFilter( "echoBack" ) ) ).createProxyProvider( new CglibProxyFactory(), new EchoImpl() ).getObject();
-        assertEquals( "messagea", echo.echoBack( "message" ) );
-    }
-
-    public void testFilterDenies()
-    {
-        Echo echo = ( Echo ) new MethodInterceptorChain( new FilteredMethodInterceptor( new SuffixMethodInterceptor( "a" ), new SimpleMethodFilter() ) ).createProxyProvider(  new CglibProxyFactory(), new EchoImpl() ).getObject();
-        assertEquals( "message", echo.echoBack( "message" ) );
-    }
-}
+/*
+ *  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.interceptor;
+
+import org.apache.commons.proxy.util.Echo;
+import org.apache.commons.proxy.util.EchoImpl;
+import org.apache.commons.proxy.util.SuffixMethodInterceptor;
+import org.apache.commons.proxy.factory.cglib.CglibProxyFactory;
+import org.apache.commons.proxy.interceptor.filter.SimpleMethodFilter;
+import junit.framework.TestCase;
+
+/**
+ * @author James Carman
+ * @version 1.0
+ */
+public class TestFilteredMethodInterceptor extends TestCase
+{
+    public void testFilterAccepts()
+    {
+        Echo echo = ( Echo ) new MethodInterceptorChain( new FilteredMethodInterceptor( new SuffixMethodInterceptor( "a" ), new SimpleMethodFilter( "echoBack" ) ) ).createProxyProvider( new CglibProxyFactory(), new EchoImpl() ).getObject();
+        assertEquals( "messagea", echo.echoBack( "message" ) );
+    }
+
+    public void testFilterDenies()
+    {
+        Echo echo = ( Echo ) new MethodInterceptorChain( new FilteredMethodInterceptor( new SuffixMethodInterceptor( "a" ), new SimpleMethodFilter() ) ).createProxyProvider(  new CglibProxyFactory(), new EchoImpl() ).getObject();
+        assertEquals( "message", echo.echoBack( "message" ) );
+    }
+}

Propchange: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/interceptor/TestFilteredMethodInterceptor.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/interceptor/TestMethodInterceptorChain.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/interceptor/TestMethodInterceptorChain.java?rev=240386&r1=240385&r2=240386&view=diff
==============================================================================
--- jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/interceptor/TestMethodInterceptorChain.java (original)
+++ jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/interceptor/TestMethodInterceptorChain.java Fri Aug 26 20:51:56 2005
@@ -1,42 +1,42 @@
-/*
- *  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.interceptor;
-
-import junit.framework.TestCase;
-import org.apache.commons.proxy.factory.cglib.CglibProxyFactory;
-import org.apache.commons.proxy.util.Echo;
-import org.apache.commons.proxy.util.SuffixMethodInterceptor;
-import org.apache.commons.proxy.util.EchoImpl;
-
-/**
- * @author James Carman
- * @version 1.0
- */
-public class TestMethodInterceptorChain extends TestCase
-{
-    public void testWithSingleInterceptor()
-    {
-        Echo echo = ( Echo ) new MethodInterceptorChain( new SuffixMethodInterceptor( "a" ) ).createProxyProvider( new CglibProxyFactory(), new EchoImpl(), Echo.class ).getObject();
-        assertEquals( "messagea", echo.echoBack( "message" ) );
-    }
-
-    public void testWithMultipleInterceptors()
-    {
-        Echo echo = ( Echo ) new MethodInterceptorChain( new SuffixMethodInterceptor( "a" ), new SuffixMethodInterceptor( "b" ) ).createProxyProvider( new CglibProxyFactory(), new EchoImpl(), Echo.class ).getObject();
-        assertEquals( "messageba", echo.echoBack( "message" ) );
-    }
-}
-
+/*
+ *  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.interceptor;
+
+import junit.framework.TestCase;
+import org.apache.commons.proxy.factory.cglib.CglibProxyFactory;
+import org.apache.commons.proxy.util.Echo;
+import org.apache.commons.proxy.util.SuffixMethodInterceptor;
+import org.apache.commons.proxy.util.EchoImpl;
+
+/**
+ * @author James Carman
+ * @version 1.0
+ */
+public class TestMethodInterceptorChain extends TestCase
+{
+    public void testWithSingleInterceptor()
+    {
+        Echo echo = ( Echo ) new MethodInterceptorChain( new SuffixMethodInterceptor( "a" ) ).createProxyProvider( new CglibProxyFactory(), new EchoImpl(), Echo.class ).getObject();
+        assertEquals( "messagea", echo.echoBack( "message" ) );
+    }
+
+    public void testWithMultipleInterceptors()
+    {
+        Echo echo = ( Echo ) new MethodInterceptorChain( new SuffixMethodInterceptor( "a" ), new SuffixMethodInterceptor( "b" ) ).createProxyProvider( new CglibProxyFactory(), new EchoImpl(), Echo.class ).getObject();
+        assertEquals( "messageba", echo.echoBack( "message" ) );
+    }
+}
+

Propchange: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/interceptor/TestMethodInterceptorChain.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/interceptor/filter/TestPatternMethodFilter.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/interceptor/filter/TestPatternMethodFilter.java?rev=240386&r1=240385&r2=240386&view=diff
==============================================================================
--- jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/interceptor/filter/TestPatternMethodFilter.java (original)
+++ jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/interceptor/filter/TestPatternMethodFilter.java Fri Aug 26 20:51:56 2005
@@ -1,39 +1,39 @@
-/*
- *  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.interceptor.filter;
-
-import junit.framework.TestCase;
-
-import java.util.Date;
-
-/**
- * @author James Carman
- * @version 1.0
- */
-public class TestPatternMethodFilter extends TestCase
-{
-    public void testAccepts() throws Exception
-    {
-        final PatternMethodFilter filter = new PatternMethodFilter( "set\\w+|get\\w+" );
-        assertTrue( filter.accepts( Date.class.getMethod( "getSeconds" ) ) );
-        assertTrue( filter.accepts( Date.class.getMethod( "getMinutes" ) ) );
-        assertTrue( filter.accepts( Date.class.getMethod( "setSeconds", Integer.TYPE ) ) );
-        assertTrue( filter.accepts( Date.class.getMethod( "setMinutes", Integer.TYPE ) ) );
-        assertFalse( filter.accepts( Date.class.getMethod( "toString" ) ) );
-        assertFalse( filter.accepts( Date.class.getMethod( "hashCode" ) ) );
-
-    }
-}
+/*
+ *  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.interceptor.filter;
+
+import junit.framework.TestCase;
+
+import java.util.Date;
+
+/**
+ * @author James Carman
+ * @version 1.0
+ */
+public class TestPatternMethodFilter extends TestCase
+{
+    public void testAccepts() throws Exception
+    {
+        final PatternMethodFilter filter = new PatternMethodFilter( "set\\w+|get\\w+" );
+        assertTrue( filter.accepts( Date.class.getMethod( "getSeconds" ) ) );
+        assertTrue( filter.accepts( Date.class.getMethod( "getMinutes" ) ) );
+        assertTrue( filter.accepts( Date.class.getMethod( "setSeconds", Integer.TYPE ) ) );
+        assertTrue( filter.accepts( Date.class.getMethod( "setMinutes", Integer.TYPE ) ) );
+        assertFalse( filter.accepts( Date.class.getMethod( "toString" ) ) );
+        assertFalse( filter.accepts( Date.class.getMethod( "hashCode" ) ) );
+
+    }
+}

Propchange: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/interceptor/filter/TestPatternMethodFilter.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/interceptor/filter/TestSimpleMethodFilter.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/interceptor/filter/TestSimpleMethodFilter.java?rev=240386&r1=240385&r2=240386&view=diff
==============================================================================
--- jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/interceptor/filter/TestSimpleMethodFilter.java (original)
+++ jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/interceptor/filter/TestSimpleMethodFilter.java Fri Aug 26 20:51:56 2005
@@ -1,35 +1,35 @@
-/*
- *  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.interceptor.filter;
-
-import junit.framework.TestCase;
-import org.apache.commons.proxy.util.Echo;
-import org.apache.commons.proxy.util.EchoImpl;
-
-/**
- * @author James Carman
- * @version 1.0
- */
-public class TestSimpleMethodFilter extends TestCase
-{
-    public void testAccepts() throws Exception
-    {
-        final SimpleMethodFilter filter = new SimpleMethodFilter( "echoBack" );
-        assertTrue( filter.accepts( Echo.class.getMethod( "echoBack", String.class ) ) );
-        assertFalse( filter.accepts( EchoImpl.class.getMethod( "hashCode" ) ) );
-    }
-
-}
+/*
+ *  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.interceptor.filter;
+
+import junit.framework.TestCase;
+import org.apache.commons.proxy.util.Echo;
+import org.apache.commons.proxy.util.EchoImpl;
+
+/**
+ * @author James Carman
+ * @version 1.0
+ */
+public class TestSimpleMethodFilter extends TestCase
+{
+    public void testAccepts() throws Exception
+    {
+        final SimpleMethodFilter filter = new SimpleMethodFilter( "echoBack" );
+        assertTrue( filter.accepts( Echo.class.getMethod( "echoBack", String.class ) ) );
+        assertFalse( filter.accepts( EchoImpl.class.getMethod( "hashCode" ) ) );
+    }
+
+}

Propchange: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/interceptor/filter/TestSimpleMethodFilter.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/CountingProvider.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/CountingProvider.java?rev=240386&r1=240385&r2=240386&view=diff
==============================================================================
--- jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/CountingProvider.java (original)
+++ jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/CountingProvider.java Fri Aug 26 20:51:56 2005
@@ -1,43 +1,43 @@
-/*
- *  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 org.apache.commons.proxy.ObjectProvider;
-
-/**
- * @author James Carman
- * @version 1.0
- */
-public class CountingProvider<T> extends ProviderDecorator<T>
-{
-    private int count = 0;
-
-    public CountingProvider( ObjectProvider<T> inner )
-    {
-        super( inner );
-    }
-
-    public synchronized T getObject()
-    {
-        count++;
-        return super.getObject();
-    }
-
-    public synchronized int getCount()
-    {
-        return count;
-    }
-}
+/*
+ *  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 org.apache.commons.proxy.ObjectProvider;
+
+/**
+ * @author James Carman
+ * @version 1.0
+ */
+public class CountingProvider<T> extends ProviderDecorator<T>
+{
+    private int count = 0;
+
+    public CountingProvider( ObjectProvider<T> inner )
+    {
+        super( inner );
+    }
+
+    public synchronized T getObject()
+    {
+        count++;
+        return super.getObject();
+    }
+
+    public synchronized int getCount()
+    {
+        return count;
+    }
+}

Propchange: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/CountingProvider.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestCachedProvider.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestCachedProvider.java?rev=240386&r1=240385&r2=240386&view=diff
==============================================================================
--- jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestCachedProvider.java (original)
+++ jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestCachedProvider.java Fri Aug 26 20:51:56 2005
@@ -1,60 +1,60 @@
-/*
- *  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.provider.cache.SimpleCache;
-import org.apache.commons.proxy.provider.cache.ThreadLocalCache;
-import org.apache.commons.proxy.util.Echo;
-import org.apache.commons.proxy.util.EchoImpl;
-
-import java.util.concurrent.CountDownLatch;
-
-public class TestCachedProvider extends TestCase
-{
-    public void testWithSimpleCache()
-    {
-        final CountingProvider<Echo> counter = new CountingProvider<Echo>( new ConstantProvider<Echo>( new EchoImpl() ) );
-        final CachedProvider<Echo> provider = new CachedProvider<Echo>( counter );
-        provider.setCache( new SimpleCache() );
-        for( int i = 0; i < 10; ++i )
-        {
-            provider.getObject().echoBack( "Hello, World" );
-        }
-        assertEquals( 1, counter.getCount() );
-    }
-
-    public void testWithThreadLocalCache() throws Exception
-    {
-        final CountingProvider<Echo> counter = new CountingProvider<Echo>( new ConstantProvider<Echo>( new EchoImpl() ) );
-        final CachedProvider<Echo> provider = new CachedProvider<Echo>( counter );
-        provider.setCache( new ThreadLocalCache() );
-        final CountDownLatch latch = new CountDownLatch( 10 );
-        for( int i = 0; i < 10; ++i )
-        {
-            new Thread( new Runnable()
-            {
-                public void run()
-                {
-                    provider.getObject().echoBack( "Hello, World" );
-                    latch.countDown();
-                }
-            }).start();
-        }
-        latch.await();
-        assertEquals( 10, counter.getCount() );
-    }
+/*
+ *  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.provider.cache.SimpleCache;
+import org.apache.commons.proxy.provider.cache.ThreadLocalCache;
+import org.apache.commons.proxy.util.Echo;
+import org.apache.commons.proxy.util.EchoImpl;
+
+import java.util.concurrent.CountDownLatch;
+
+public class TestCachedProvider extends TestCase
+{
+    public void testWithSimpleCache()
+    {
+        final CountingProvider<Echo> counter = new CountingProvider<Echo>( new ConstantProvider<Echo>( new EchoImpl() ) );
+        final CachedProvider<Echo> provider = new CachedProvider<Echo>( counter );
+        provider.setCache( new SimpleCache() );
+        for( int i = 0; i < 10; ++i )
+        {
+            provider.getObject().echoBack( "Hello, World" );
+        }
+        assertEquals( 1, counter.getCount() );
+    }
+
+    public void testWithThreadLocalCache() throws Exception
+    {
+        final CountingProvider<Echo> counter = new CountingProvider<Echo>( new ConstantProvider<Echo>( new EchoImpl() ) );
+        final CachedProvider<Echo> provider = new CachedProvider<Echo>( counter );
+        provider.setCache( new ThreadLocalCache() );
+        final CountDownLatch latch = new CountDownLatch( 10 );
+        for( int i = 0; i < 10; ++i )
+        {
+            new Thread( new Runnable()
+            {
+                public void run()
+                {
+                    provider.getObject().echoBack( "Hello, World" );
+                    latch.countDown();
+                }
+            }).start();
+        }
+        latch.await();
+        assertEquals( 10, counter.getCount() );
+    }
 }

Propchange: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestCachedProvider.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestConstantProvider.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestConstantProvider.java?rev=240386&r1=240385&r2=240386&view=diff
==============================================================================
--- jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestConstantProvider.java (original)
+++ jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestConstantProvider.java Fri Aug 26 20:51:56 2005
@@ -1,32 +1,32 @@
-/*
- *  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 org.apache.commons.proxy.util.AbstractTestCase;
-
-/**
- * @author James Carman
- * @version 1.0
- */
-public class TestConstantProvider extends AbstractTestCase
-{
-    public void testGetObject() throws Exception
-    {
-        final String s = "Hello, World!";
-        final ConstantProvider<String> provider = new ConstantProvider<String>( s );
-        assertSame( s, provider.getObject() );
-    }
-}
+/*
+ *  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 org.apache.commons.proxy.util.AbstractTestCase;
+
+/**
+ * @author James Carman
+ * @version 1.0
+ */
+public class TestConstantProvider extends AbstractTestCase
+{
+    public void testGetObject() throws Exception
+    {
+        final String s = "Hello, World!";
+        final ConstantProvider<String> provider = new ConstantProvider<String>( s );
+        assertSame( s, provider.getObject() );
+    }
+}

Propchange: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestConstantProvider.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestJaxRpcProvider.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestJaxRpcProvider.java?rev=240386&r1=240385&r2=240386&view=diff
==============================================================================
--- jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestJaxRpcProvider.java (original)
+++ jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestJaxRpcProvider.java Fri Aug 26 20:51:56 2005
@@ -1,32 +1,32 @@
-/*
- *  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.QuoteService;
-
-public class TestJaxRpcProvider extends TestCase
-{
-    public void testGetObject() throws Exception
-    {
-        final JaxRpcProvider provider = new JaxRpcProvider<QuoteService>( QuoteService.class );
-        provider.setWsdlUrl( "http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl" );
-        provider.setServiceNamespaceUri( "http://www.themindelectric.com/wsdl/net.xmethods.services.stockquote.StockQuote/" );
-        provider.setServiceLocalPart( "net.xmethods.services.stockquote.StockQuoteService" );
-        provider.setPortLocalPart( "net.xmethods.services.stockquote.StockQuotePort" );
-        final QuoteService quote = ( QuoteService )provider.getObject();
-        assertNotNull( quote );
-    }
+/*
+ *  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.QuoteService;
+
+public class TestJaxRpcProvider extends TestCase
+{
+    public void testGetObject() throws Exception
+    {
+        final JaxRpcProvider provider = new JaxRpcProvider<QuoteService>( QuoteService.class );
+        provider.setWsdlUrl( "http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl" );
+        provider.setServiceNamespaceUri( "http://www.themindelectric.com/wsdl/net.xmethods.services.stockquote.StockQuote/" );
+        provider.setServiceLocalPart( "net.xmethods.services.stockquote.StockQuoteService" );
+        provider.setPortLocalPart( "net.xmethods.services.stockquote.StockQuotePort" );
+        final QuoteService quote = ( QuoteService )provider.getObject();
+        assertNotNull( quote );
+    }
 }

Propchange: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestJaxRpcProvider.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestNullProvider.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestNullProvider.java?rev=240386&r1=240385&r2=240386&view=diff
==============================================================================
--- jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestNullProvider.java (original)
+++ jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestNullProvider.java Fri Aug 26 20:51:56 2005
@@ -1,31 +1,31 @@
-/*
- *  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;
-
-/**
- * @author James Carman
- * @version 1.0
- */
-public class TestNullProvider extends TestCase
-{
-    public void testGetObject()
-    {
-        final NullProvider provider = new NullProvider();
-        assertNull( provider.getObject() );
-    }
-}
+/*
+ *  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;
+
+/**
+ * @author James Carman
+ * @version 1.0
+ */
+public class TestNullProvider extends TestCase
+{
+    public void testGetObject()
+    {
+        final NullProvider provider = new NullProvider();
+        assertNull( provider.getObject() );
+    }
+}

Propchange: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestNullProvider.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestPooledProvider.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestPooledProvider.java?rev=240386&r1=240385&r2=240386&view=diff
==============================================================================
--- jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestPooledProvider.java (original)
+++ jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestPooledProvider.java Fri Aug 26 20:51:56 2005
@@ -1,86 +1,86 @@
-/*
- *  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.pool.impl.GenericObjectPool;
-import org.apache.commons.proxy.provider.cache.SimpleCache;
-import org.apache.commons.proxy.provider.cache.ThreadLocalCache;
-import org.apache.commons.proxy.util.Echo;
-import org.apache.commons.proxy.util.EchoImpl;
-
-import java.util.concurrent.CountDownLatch;
-
-public class TestPooledProvider extends TestCase
-{
-    public void testWithSimpleCache()
-    {
-        final CountingProvider<Echo> counter = new CountingProvider<Echo>( new ConstantProvider<Echo>( new EchoImpl() ) );
-        final PooledProvider<Echo> provider = new PooledProvider<Echo>( counter );
-        final SimpleCache cache = new SimpleCache();
-        provider.setCache( cache );
-        for( int i = 0; i < 10; ++i )
-        {
-            provider.getObject().echoBack( "Hello, World" );
-            cache.clearCache();
-        }
-        assertEquals( 1, counter.getCount() );
-
-    }
-
-    public void testWithThreadLocalCache() throws Exception
-    {
-        final CountingProvider<Echo> counter = new CountingProvider<Echo>( new ConstantProvider<Echo>( new EchoImpl() ) );
-        final PooledProvider<Echo> provider = new PooledProvider<Echo>( counter );
-        provider.setMaxActive( 10 );
-        provider.setMinIdle( 5 );
-        provider.setWhenExhaustedAction( GenericObjectPool.WHEN_EXHAUSTED_GROW );
-        final ThreadLocalCache cache = new ThreadLocalCache();
-        provider.setCache( cache );
-        final CountDownLatch goLatch = new CountDownLatch( 1 );
-        final CountDownLatch borrowedLatch = new CountDownLatch( 10 );
-        final CountDownLatch finished = new CountDownLatch( 10 );
-        for( int i = 0; i < 10; ++i )
-        {
-            new Thread( new Runnable()
-            {
-                public void run()
-                {
-                    try
-                    {
-                        provider.getObject().echoBack( "Hello, World" );
-                        borrowedLatch.countDown();
-                        goLatch.await();
-                        for( int i = 0; i < 10; ++i )
-                        {
-                            provider.getObject().echoBack( "Hello, World" );
-
-                        }
-                        cache.clearCache();
-                        finished.countDown();
-                    }
-                    catch( InterruptedException e )
-                    {
-                    }
-                }
-            } ).start();
-        }
-        borrowedLatch.await();
-        goLatch.countDown();
-        finished.await();
-        assertEquals( 10, counter.getCount() );
-    }
+/*
+ *  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.pool.impl.GenericObjectPool;
+import org.apache.commons.proxy.provider.cache.SimpleCache;
+import org.apache.commons.proxy.provider.cache.ThreadLocalCache;
+import org.apache.commons.proxy.util.Echo;
+import org.apache.commons.proxy.util.EchoImpl;
+
+import java.util.concurrent.CountDownLatch;
+
+public class TestPooledProvider extends TestCase
+{
+    public void testWithSimpleCache()
+    {
+        final CountingProvider<Echo> counter = new CountingProvider<Echo>( new ConstantProvider<Echo>( new EchoImpl() ) );
+        final PooledProvider<Echo> provider = new PooledProvider<Echo>( counter );
+        final SimpleCache cache = new SimpleCache();
+        provider.setCache( cache );
+        for( int i = 0; i < 10; ++i )
+        {
+            provider.getObject().echoBack( "Hello, World" );
+            cache.clearCache();
+        }
+        assertEquals( 1, counter.getCount() );
+
+    }
+
+    public void testWithThreadLocalCache() throws Exception
+    {
+        final CountingProvider<Echo> counter = new CountingProvider<Echo>( new ConstantProvider<Echo>( new EchoImpl() ) );
+        final PooledProvider<Echo> provider = new PooledProvider<Echo>( counter );
+        provider.setMaxActive( 10 );
+        provider.setMinIdle( 5 );
+        provider.setWhenExhaustedAction( GenericObjectPool.WHEN_EXHAUSTED_GROW );
+        final ThreadLocalCache cache = new ThreadLocalCache();
+        provider.setCache( cache );
+        final CountDownLatch goLatch = new CountDownLatch( 1 );
+        final CountDownLatch borrowedLatch = new CountDownLatch( 10 );
+        final CountDownLatch finished = new CountDownLatch( 10 );
+        for( int i = 0; i < 10; ++i )
+        {
+            new Thread( new Runnable()
+            {
+                public void run()
+                {
+                    try
+                    {
+                        provider.getObject().echoBack( "Hello, World" );
+                        borrowedLatch.countDown();
+                        goLatch.await();
+                        for( int i = 0; i < 10; ++i )
+                        {
+                            provider.getObject().echoBack( "Hello, World" );
+
+                        }
+                        cache.clearCache();
+                        finished.countDown();
+                    }
+                    catch( InterruptedException e )
+                    {
+                    }
+                }
+            } ).start();
+        }
+        borrowedLatch.await();
+        goLatch.countDown();
+        finished.await();
+        assertEquals( 10, counter.getCount() );
+    }
 }

Propchange: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestPooledProvider.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestRmiProvider.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestRmiProvider.java?rev=240386&r1=240385&r2=240386&view=diff
==============================================================================
--- jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestRmiProvider.java (original)
+++ jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestRmiProvider.java Fri Aug 26 20:51:56 2005
@@ -1,37 +1,37 @@
-/*
- *  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.rmi.RmiEcho;
-import org.apache.commons.proxy.util.rmi.RmiEchoImpl;
-
-import java.rmi.registry.LocateRegistry;
-import java.rmi.registry.Registry;
-
-public class TestRmiProvider extends TestCase
-{
-    RmiProvider rmiProvider;
-
-    public void testGetObject() throws Exception
-    {
-        final Registry registry = LocateRegistry.createRegistry( Registry.REGISTRY_PORT );
-        registry.bind( "echo", new RmiEchoImpl() );
-        final RmiProvider<RmiEcho> provider = new RmiProvider<RmiEcho>( "echo", RmiEcho.class );
-        final RmiEcho echo = provider.getObject();
-        assertEquals( "Hello, World!", echo.echoBack( "Hello, World!" ) );
-    }
+/*
+ *  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.rmi.RmiEcho;
+import org.apache.commons.proxy.util.rmi.RmiEchoImpl;
+
+import java.rmi.registry.LocateRegistry;
+import java.rmi.registry.Registry;
+
+public class TestRmiProvider extends TestCase
+{
+    RmiProvider rmiProvider;
+
+    public void testGetObject() throws Exception
+    {
+        final Registry registry = LocateRegistry.createRegistry( Registry.REGISTRY_PORT );
+        registry.bind( "echo", new RmiEchoImpl() );
+        final RmiProvider<RmiEcho> provider = new RmiProvider<RmiEcho>( "echo", RmiEcho.class );
+        final RmiEcho echo = provider.getObject();
+        assertEquals( "Hello, World!", echo.echoBack( "Hello, World!" ) );
+    }
 }

Propchange: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/provider/TestRmiProvider.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/util/AbstractTestCase.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/util/AbstractTestCase.java?rev=240386&r1=240385&r2=240386&view=diff
==============================================================================
--- jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/util/AbstractTestCase.java (original)
+++ jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/util/AbstractTestCase.java Fri Aug 26 20:51:56 2005
@@ -1,26 +1,26 @@
-/*
- * Copyright (c) 2005 Carman Consulting, Inc. All Rights Reserved.
- *
- * 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.util;
-
-import junit.framework.TestCase;
-
-/**
- * @author James Carman
- * @version 1.0
- */
-public abstract class AbstractTestCase extends TestCase
-{
-}
+/*
+ * Copyright (c) 2005 Carman Consulting, Inc. All Rights Reserved.
+ *
+ * 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.util;
+
+import junit.framework.TestCase;
+
+/**
+ * @author James Carman
+ * @version 1.0
+ */
+public abstract class AbstractTestCase extends TestCase
+{
+}

Propchange: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/util/AbstractTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/util/Echo.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/util/Echo.java?rev=240386&r1=240385&r2=240386&view=diff
==============================================================================
--- jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/util/Echo.java (original)
+++ jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/util/Echo.java Fri Aug 26 20:51:56 2005
@@ -1,26 +1,26 @@
-/*
- * Copyright (c) 2005 Carman Consulting, Inc. All Rights Reserved.
- *
- * 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.util;
-
-/**
- * @author James Carman
- * @version 1.0
- */
-public interface Echo
-{
-    public String echoBack( String message );
-    public void echo();
-}
+/*
+ * Copyright (c) 2005 Carman Consulting, Inc. All Rights Reserved.
+ *
+ * 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.util;
+
+/**
+ * @author James Carman
+ * @version 1.0
+ */
+public interface Echo
+{
+    public String echoBack( String message );
+    public void echo();
+}

Propchange: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/util/Echo.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/util/EchoImpl.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/util/EchoImpl.java?rev=240386&r1=240385&r2=240386&view=diff
==============================================================================
--- jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/util/EchoImpl.java (original)
+++ jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/util/EchoImpl.java Fri Aug 26 20:51:56 2005
@@ -1,32 +1,32 @@
-/*
- * Copyright (c) 2005 Carman Consulting, Inc. All Rights Reserved.
- *
- * 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.util;
-
-/**
- * @author James Carman
- * @version 1.0
- */
-public class EchoImpl implements Echo
-{
-    public String echoBack( String message )
-    {
-        return message;
-    }
-
-    public void echo()
-    {
-    }
-}
+/*
+ * Copyright (c) 2005 Carman Consulting, Inc. All Rights Reserved.
+ *
+ * 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.util;
+
+/**
+ * @author James Carman
+ * @version 1.0
+ */
+public class EchoImpl implements Echo
+{
+    public String echoBack( String message )
+    {
+        return message;
+    }
+
+    public void echo()
+    {
+    }
+}

Propchange: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/util/EchoImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/util/QuoteService.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/util/QuoteService.java?rev=240386&r1=240385&r2=240386&view=diff
==============================================================================
--- jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/util/QuoteService.java (original)
+++ jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/util/QuoteService.java Fri Aug 26 20:51:56 2005
@@ -1,28 +1,28 @@
-/*
- *  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.util;
-
-import java.rmi.Remote;
-import java.rmi.RemoteException;
-
-/**
- * @author James Carman
- * @version 1.0
- */
-public interface QuoteService extends Remote
-{
-    public float getQuote( String symbol ) throws RemoteException;
-}
+/*
+ *  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.util;
+
+import java.rmi.Remote;
+import java.rmi.RemoteException;
+
+/**
+ * @author James Carman
+ * @version 1.0
+ */
+public interface QuoteService extends Remote
+{
+    public float getQuote( String symbol ) throws RemoteException;
+}

Propchange: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/util/QuoteService.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/util/SuffixMethodInterceptor.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/util/SuffixMethodInterceptor.java?rev=240386&r1=240385&r2=240386&view=diff
==============================================================================
--- jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/util/SuffixMethodInterceptor.java (original)
+++ jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/util/SuffixMethodInterceptor.java Fri Aug 26 20:51:56 2005
@@ -1,38 +1,38 @@
-/*
- * Copyright (c) 2005 Carman Consulting, Inc. All Rights Reserved.
- *
- * 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.util;
-
-import org.aopalliance.intercept.MethodInterceptor;
-import org.aopalliance.intercept.MethodInvocation;
-
-/**
- * @author James Carman
- * @version 1.0
- */
-public class SuffixMethodInterceptor implements MethodInterceptor
-{
-    private final String suffix;
-
-    public SuffixMethodInterceptor( String suffix )
-    {
-        this.suffix = suffix;
-    }
-
-    public Object invoke( MethodInvocation methodInvocation ) throws Throwable
-    {
-        return methodInvocation.proceed() + suffix; 
-    }
-}
+/*
+ * Copyright (c) 2005 Carman Consulting, Inc. All Rights Reserved.
+ *
+ * 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.util;
+
+import org.aopalliance.intercept.MethodInterceptor;
+import org.aopalliance.intercept.MethodInvocation;
+
+/**
+ * @author James Carman
+ * @version 1.0
+ */
+public class SuffixMethodInterceptor implements MethodInterceptor
+{
+    private final String suffix;
+
+    public SuffixMethodInterceptor( String suffix )
+    {
+        this.suffix = suffix;
+    }
+
+    public Object invoke( MethodInvocation methodInvocation ) throws Throwable
+    {
+        return methodInvocation.proceed() + suffix; 
+    }
+}

Propchange: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/util/SuffixMethodInterceptor.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/util/rmi/RmiEcho.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/util/rmi/RmiEcho.java?rev=240386&r1=240385&r2=240386&view=diff
==============================================================================
--- jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/util/rmi/RmiEcho.java (original)
+++ jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/util/rmi/RmiEcho.java Fri Aug 26 20:51:56 2005
@@ -1,28 +1,28 @@
-/*
- *  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.util.rmi;
-
-import java.rmi.Remote;
-import java.rmi.RemoteException;
-
-/**
- * @author James Carman
- * @version 1.0
- */
-public interface RmiEcho extends Remote
-{
-    public String echoBack( String message ) throws RemoteException;
-}
+/*
+ *  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.util.rmi;
+
+import java.rmi.Remote;
+import java.rmi.RemoteException;
+
+/**
+ * @author James Carman
+ * @version 1.0
+ */
+public interface RmiEcho extends Remote
+{
+    public String echoBack( String message ) throws RemoteException;
+}

Propchange: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/util/rmi/RmiEcho.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/util/rmi/RmiEchoImpl.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/util/rmi/RmiEchoImpl.java?rev=240386&r1=240385&r2=240386&view=diff
==============================================================================
--- jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/util/rmi/RmiEchoImpl.java (original)
+++ jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/util/rmi/RmiEchoImpl.java Fri Aug 26 20:51:56 2005
@@ -1,35 +1,35 @@
-/*
- *  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.util.rmi;
-
-import java.rmi.server.UnicastRemoteObject;
-import java.rmi.RemoteException;
-
-/**
- * @author James Carman
- * @version 1.0
- */
-public class RmiEchoImpl extends UnicastRemoteObject implements RmiEcho
-{
-    public RmiEchoImpl() throws RemoteException
-    {
-    }
-
-    public String echoBack( String message ) throws RemoteException
-    {
-        return message;
-    }
-}
+/*
+ *  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.util.rmi;
+
+import java.rmi.server.UnicastRemoteObject;
+import java.rmi.RemoteException;
+
+/**
+ * @author James Carman
+ * @version 1.0
+ */
+public class RmiEchoImpl extends UnicastRemoteObject implements RmiEcho
+{
+    public RmiEchoImpl() throws RemoteException
+    {
+    }
+
+    public String echoBack( String message ) throws RemoteException
+    {
+        return message;
+    }
+}

Propchange: jakarta/commons/sandbox/proxy/trunk/src/test/org/apache/commons/proxy/util/rmi/RmiEchoImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org