summaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authoradinn <adinn@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2010-04-13 09:00:47 +0000
committeradinn <adinn@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2010-04-13 09:00:47 +0000
commit80a7ea38018dabee467d08e258a3071ae4baa565 (patch)
tree843cfbb2a02a6c7173ab177a5db36430cf422ccc /src/test
parent243bceef5ab08307d8136a3c40b70f9fc6661100 (diff)
downloadjavassist-80a7ea38018dabee467d08e258a3071ae4baa565.tar.gz
javassist-80a7ea38018dabee467d08e258a3071ae4baa565.zip
fixed regression introduced by fix to ProxyFactory -- fixes JASSIST-113
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@527 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test/javassist/proxy/JASSIST113RegressionTest.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/test/test/javassist/proxy/JASSIST113RegressionTest.java b/src/test/test/javassist/proxy/JASSIST113RegressionTest.java
new file mode 100644
index 00000000..baecdb9b
--- /dev/null
+++ b/src/test/test/javassist/proxy/JASSIST113RegressionTest.java
@@ -0,0 +1,22 @@
+package test.javassist.proxy;
+
+import javassist.util.proxy.ProxyFactory;
+import junit.framework.TestCase;
+
+/**
+ * Test for regression error detailed in JASSIST-113
+ */
+public class JASSIST113RegressionTest extends TestCase
+{
+ interface Bear
+ {
+ void hibernate();
+ }
+
+ public void testProxyFactoryWithNonPublicInterface()
+ {
+ ProxyFactory proxyFactory = new ProxyFactory();
+ proxyFactory.setInterfaces(new Class[]{Bear.class});
+ proxyFactory.createClass();
+ }
+}