[jboss-cvs] JBossAS SVN: r84754 - in projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/jbosgi36: bundle/internal and 1 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Feb 25 12:13:24 EST 2009
Author: thomas.diesler at jboss.com
Date: 2009-02-25 12:13:23 -0500 (Wed, 25 Feb 2009)
New Revision: 84754
Added:
projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/jbosgi36/bundle/internal/
projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/jbosgi36/bundle/internal/SomeInternal.java
Modified:
projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/jbosgi36/junit/JBOSGI36Test.java
Log:
Use exclude in pom
Added: projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/jbosgi36/bundle/internal/SomeInternal.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/jbosgi36/bundle/internal/SomeInternal.java (rev 0)
+++ projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/jbosgi36/bundle/internal/SomeInternal.java 2009-02-25 17:13:23 UTC (rev 84754)
@@ -0,0 +1,28 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.osgi.jbosgi36.bundle.internal;
+
+//$Id$
+
+public class SomeInternal
+{
+}
Property changes on: projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/jbosgi36/bundle/internal/SomeInternal.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified: projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/jbosgi36/junit/JBOSGI36Test.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/jbosgi36/junit/JBOSGI36Test.java 2009-02-25 17:07:22 UTC (rev 84753)
+++ projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/jbosgi36/junit/JBOSGI36Test.java 2009-02-25 17:13:23 UTC (rev 84754)
@@ -26,6 +26,7 @@
import junit.framework.Test;
import org.jboss.osgi.spi.jmx.MBeanProxy;
+import org.jboss.osgi.spi.jmx.MBeanProxyException;
import org.jboss.osgi.spi.junit.IntegrationTestCase;
import org.jboss.osgi.spi.junit.IntegrationTestSetup;
import org.jboss.test.osgi.jbosgi36.mbean.FooMBean;
@@ -47,22 +48,14 @@
public void testAccessMBean() throws Exception
{
- FooMBean foo = (FooMBean)MBeanProxy.get(FooMBean.class, FooMBean.OBJECT_NAME, getServer());
- assertEquals("hello", foo.echo("hello"));
+ assertEquals("hello", getFooMBean().echo("hello"));
}
public void testAccessSomeService() throws Exception
{
- if (true)
- {
- System.out.println("FIXME: [JBOSGI-36] Bundle classes leak into system classloader");
- return;
- }
-
- FooMBean foo = (FooMBean)MBeanProxy.get(FooMBean.class, FooMBean.OBJECT_NAME, getServer());
try
{
- foo.accessSomeService();
+ getFooMBean().accessSomeService();
fail("ClassNotFoundException expected");
}
catch (ClassNotFoundException ex)
@@ -73,16 +66,9 @@
public void testAccessSomeInternal() throws Exception
{
- if (true)
- {
- System.out.println("FIXME: [JBOSGI-36] Bundle classes leak into system classloader");
- return;
- }
-
- FooMBean foo = (FooMBean)MBeanProxy.get(FooMBean.class, FooMBean.OBJECT_NAME, getServer());
try
{
- foo.accessSomeInternal();
+ getFooMBean().accessSomeInternal();
fail("ClassNotFoundException expected");
}
catch (ClassNotFoundException ex)
@@ -90,4 +76,10 @@
// expected
}
}
+
+ private FooMBean getFooMBean() throws MBeanProxyException
+ {
+ FooMBean foo = (FooMBean)MBeanProxy.get(FooMBean.class, FooMBean.OBJECT_NAME, getServer());
+ return foo;
+ }
}
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list