[jboss-cvs] JBossAS SVN: r88667 - branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon May 11 15:19:40 EDT 2009
Author: bstansberry at jboss.com
Date: 2009-05-11 15:19:40 -0400 (Mon, 11 May 2009)
New Revision: 88667
Added:
branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/BasicFieldGranularityClassloaderLeakTestCase.java
branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/FieldGranularityClassloaderLeakTestBase.java
branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/J2EEClassloaderLeakTestBase.java
branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/NoPassivationWarClassloaderLeakTestCase.java
branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/NoReplicableWarFieldGranularityClassloaderLeakTestCase.java
branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/NonFieldGranularityReplicableClassloaderLeakTestCase.java
branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/SimpleWarClassloaderLeakTestCase.java
Removed:
branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/ClassloaderLeakUnitTestCase.java
branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/FieldGranularityClassloaderLeakUnitTestCase.java
Log:
[JBAS-6864] Split up the tests into one test per class
Added: branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/BasicFieldGranularityClassloaderLeakTestCase.java
===================================================================
--- branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/BasicFieldGranularityClassloaderLeakTestCase.java (rev 0)
+++ branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/BasicFieldGranularityClassloaderLeakTestCase.java 2009-05-11 19:19:40 UTC (rev 88667)
@@ -0,0 +1,57 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.cluster.classloader.leak.test;
+
+import junit.framework.Test;
+
+/**
+ * Test for classloader leaks following deployment, use and undeployment
+ * of a war configured for FIELD granularity.
+ * <p/>
+ * If these tests are run with JBoss Profiler's jbossAgent (.dll or .so) on the path
+ * and the AS is started with -agentlib:jbossAgent, in case of classloader leakage
+ * an extensive report will be logged to the server log, showing the path to root of
+ * all references to the classloader.
+ *
+ * @author Brian Stansberry
+ */
+public class BasicFieldGranularityClassloaderLeakTestCase extends FieldGranularityClassloaderLeakTestBase
+{
+ private static final String FIELD_WAR = "cluster-clleak-field.war";
+
+
+ public BasicFieldGranularityClassloaderLeakTestCase(String name)
+ {
+ super(name);
+ }
+
+
+ public static Test suite() throws Exception
+ {
+ return getDeploySetup(BasicFieldGranularityClassloaderLeakTestCase.class, "classloader-leak-test.sar");
+ }
+
+ public void testFieldWar() throws Exception
+ {
+ warTest(FIELD_WAR);
+ }
+}
Property changes on: branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/BasicFieldGranularityClassloaderLeakTestCase.java
___________________________________________________________________
Name: svn:keywords
+
Deleted: branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/ClassloaderLeakUnitTestCase.java
===================================================================
--- branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/ClassloaderLeakUnitTestCase.java 2009-05-11 19:10:12 UTC (rev 88666)
+++ branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/ClassloaderLeakUnitTestCase.java 2009-05-11 19:19:40 UTC (rev 88667)
@@ -1,129 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file 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.cluster.classloader.leak.test;
-
-import javax.naming.InitialContext;
-
-import junit.framework.Test;
-
-import org.jboss.test.classloader.leak.ejb.interfaces.StatefulSession;
-import org.jboss.test.classloader.leak.ejb.interfaces.StatefulSessionHome;
-import org.jboss.test.classloader.leak.ejb.interfaces.StatelessSession;
-import org.jboss.test.classloader.leak.ejb.interfaces.StatelessSessionHome;
-
-/**
- * Test for classloader leaks following deployment, use and undeployment
- * of various packages (wars, ejb jars and ears with and without scoped
- * classloaders).
- * <p/>
- * If these tests are run with JBoss Profiler's jbossAgent (.dll or .so) on the path
- * and the AS is started with -agentlib:jbossAgent, in case of classloader leakage
- * an extensive report will be logged to the server log, showing the path to root of
- * all references to the classloader.
- *
- * @author Brian Stansberry
- */
-public class ClassloaderLeakUnitTestCase extends ClassloaderLeakTestBase
-{
- private static final String SIMPLE_WAR = "cluster-clleak-simple.war";
- private static final String SIMPLE_EJB = "cluster-clleak-ejb.jar";
- private static final String SIMPLE_EAR = "cluster clleak-simple.ear";
- private static final String SIMPLE_ISOLATED_EAR = "cluster-clleak-simple-isolated.ear";
- private static final String NO_WEB_EAR = "cluster-clleak-noweb.ear";
- private static final String ISOLATED_NO_WEB_EAR = "cluster-clleak-noweb-isolated.ear";
- private static final String NO_PASSIVATION_WAR = "cluster-clleak-nopass.war";
-
- private static final String EJB2_SLSB = "EJB2_SLSB";
- private static final String EJB2_SFSB = "EJB2_SFSB";
- private static final String EJB2_SLSB_TCCL = "EJB2_SLSB_TCCL";
- private static final String EJB2_SFSB_TCCL = "EJB2_SFSB_TCCL";
-
- private static final String[] EJB2 = new String[]{ EJB2_SLSB, EJB2_SLSB_TCCL, EJB2_SFSB, EJB2_SFSB_TCCL };
-
-
- public ClassloaderLeakUnitTestCase(String name)
- {
- super(name);
- }
-
-
- public static Test suite() throws Exception
- {
- return getDeploySetup(ClassloaderLeakUnitTestCase.class, "classloader-leak-test.sar");
- }
-
- public void testSimpleWar() throws Exception
- {
- warTest(SIMPLE_WAR);
- }
-
- public void testNoPassivationWar() throws Exception
- {
- warTest(NO_PASSIVATION_WAR);
- }
-
-// public void testSimpleEjb() throws Exception
-// {
-// ejbTest(SIMPLE_EJB);
-// }
-
-// public void testSimpleEar() throws Exception
-// {
-// earTest(SIMPLE_EAR);
-// }
-//
-// public void testNoWebEar() throws Exception
-// {
-// ejbTest(NO_WEB_EAR);
-// }
-//
-// public void testSimpleIsolatedEar() throws Exception
-// {
-// earTest(SIMPLE_ISOLATED_EAR);
-// }
-//
-// public void testIsolatedNoWebEar() throws Exception
-// {
-// ejbTest(ISOLATED_NO_WEB_EAR);
-// }
-
- protected String getWarContextPath()
- {
- return "clustered-clleak";
- }
-
- protected String[] getEjbKeys()
- {
- return EJB2;
- }
-
- protected void makeEjbRequests() throws Exception
- {
- InitialContext ctx = new InitialContext();
- StatelessSessionHome slsbhome = (StatelessSessionHome) ctx.lookup("ClassloaderLeakStatelessSession");
- StatelessSession slsbbean = slsbhome.create();
- slsbbean.log("EJB");
- StatefulSessionHome sfsbhome = (StatefulSessionHome) ctx.lookup("ClassloaderLeakStatefulSession");
- StatefulSession sfsbbean = sfsbhome.create();
- sfsbbean.log("EJB");
- }
-}
Copied: branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/FieldGranularityClassloaderLeakTestBase.java (from rev 88565, branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/FieldGranularityClassloaderLeakUnitTestCase.java)
===================================================================
--- branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/FieldGranularityClassloaderLeakTestBase.java (rev 0)
+++ branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/FieldGranularityClassloaderLeakTestBase.java 2009-05-11 19:19:40 UTC (rev 88667)
@@ -0,0 +1,59 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.cluster.classloader.leak.test;
+
+
+/**
+ * Base class for test for classloader leaks following deployment, use and undeployment
+ * of various wars configured for FIELD granularity or with session attribute
+ * types bytecode enhanced for POJO Cache.
+ * <p/>
+ * If these tests are run with JBoss Profiler's jbossAgent (.dll or .so) on the path
+ * and the AS is started with -agentlib:jbossAgent, in case of classloader leakage
+ * an extensive report will be logged to the server log, showing the path to root of
+ * all references to the classloader.
+ *
+ * @author Brian Stansberry
+ */
+public class FieldGranularityClassloaderLeakTestBase extends ClassloaderLeakTestBase
+{
+
+ public FieldGranularityClassloaderLeakTestBase(String name)
+ {
+ super(name);
+ }
+
+ protected String getWarContextPath()
+ {
+ return "clustered-clleak";
+ }
+
+ protected String[] getEjbKeys()
+ {
+ return new String[]{};
+ }
+
+ protected void makeEjbRequests() throws Exception
+ {
+ throw new UnsupportedOperationException("No EJB tests");
+ }
+}
Property changes on: branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/FieldGranularityClassloaderLeakTestBase.java
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Revision
Name: svn:mergeinfo
+
Name: svn:eol-style
+ native
Deleted: branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/FieldGranularityClassloaderLeakUnitTestCase.java
===================================================================
--- branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/FieldGranularityClassloaderLeakUnitTestCase.java 2009-05-11 19:10:12 UTC (rev 88666)
+++ branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/FieldGranularityClassloaderLeakUnitTestCase.java 2009-05-11 19:19:40 UTC (rev 88667)
@@ -1,85 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file 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.cluster.classloader.leak.test;
-
-import junit.framework.Test;
-
-/**
- * Test for classloader leaks following deployment, use and undeployment
- * of various packages (wars, ejb jars and ears with and without scoped
- * classloaders).
- * <p/>
- * If these tests are run with JBoss Profiler's jbossAgent (.dll or .so) on the path
- * and the AS is started with -agentlib:jbossAgent, in case of classloader leakage
- * an extensive report will be logged to the server log, showing the path to root of
- * all references to the classloader.
- *
- * @author Brian Stansberry
- */
-public class FieldGranularityClassloaderLeakUnitTestCase extends ClassloaderLeakTestBase
-{
- private static final String SIMPLE_REPLICABLE_WAR = "cluster-clleak-simple-replicable.war";
- private static final String FIELD_WAR = "cluster-clleak-field.war";
- private static final String FIELD_NO_REPLICABLE_WAR = "cluster-clleak-field-no-replicable.war";
-
-
- public FieldGranularityClassloaderLeakUnitTestCase(String name)
- {
- super(name);
- }
-
-
- public static Test suite() throws Exception
- {
- return getDeploySetup(FieldGranularityClassloaderLeakUnitTestCase.class, "classloader-leak-test.sar");
- }
-
- public void testSimpleReplicableWar() throws Exception
- {
- warTest(SIMPLE_REPLICABLE_WAR);
- }
-
- public void testFieldWar() throws Exception
- {
- warTest(FIELD_WAR);
- }
-
- public void testFieldNoReplicableWar() throws Exception
- {
- warTest(FIELD_NO_REPLICABLE_WAR);
- }
-
- protected String getWarContextPath()
- {
- return "clustered-clleak";
- }
-
- protected String[] getEjbKeys()
- {
- return new String[]{};
- }
-
- protected void makeEjbRequests() throws Exception
- {
- throw new UnsupportedOperationException("No EJB tests");
- }
-}
Copied: branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/J2EEClassloaderLeakTestBase.java (from rev 88565, branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/ClassloaderLeakUnitTestCase.java)
===================================================================
--- branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/J2EEClassloaderLeakTestBase.java (rev 0)
+++ branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/J2EEClassloaderLeakTestBase.java 2009-05-11 19:19:40 UTC (rev 88667)
@@ -0,0 +1,80 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.cluster.classloader.leak.test;
+
+import javax.naming.InitialContext;
+
+import junit.framework.Test;
+
+import org.jboss.test.classloader.leak.ejb.interfaces.StatefulSession;
+import org.jboss.test.classloader.leak.ejb.interfaces.StatefulSessionHome;
+import org.jboss.test.classloader.leak.ejb.interfaces.StatelessSession;
+import org.jboss.test.classloader.leak.ejb.interfaces.StatelessSessionHome;
+
+/**
+ * Base class for tests for classloader leaks following deployment, use and undeployment
+ * of various J2EE packages (wars, ejb jars and ears with and without scoped
+ * classloaders).
+ * <p/>
+ * If these tests are run with JBoss Profiler's jbossAgent (.dll or .so) on the path
+ * and the AS is started with -agentlib:jbossAgent, in case of classloader leakage
+ * an extensive report will be logged to the server log, showing the path to root of
+ * all references to the classloader.
+ *
+ * @author Brian Stansberry
+ */
+public class J2EEClassloaderLeakTestBase extends ClassloaderLeakTestBase
+{
+ private static final String EJB2_SLSB = "EJB2_SLSB";
+ private static final String EJB2_SFSB = "EJB2_SFSB";
+ private static final String EJB2_SLSB_TCCL = "EJB2_SLSB_TCCL";
+ private static final String EJB2_SFSB_TCCL = "EJB2_SFSB_TCCL";
+
+ private static final String[] EJB2 = new String[]{ EJB2_SLSB, EJB2_SLSB_TCCL, EJB2_SFSB, EJB2_SFSB_TCCL };
+
+
+ public J2EEClassloaderLeakTestBase(String name)
+ {
+ super(name);
+ }
+
+ protected String getWarContextPath()
+ {
+ return "clustered-clleak";
+ }
+
+ protected String[] getEjbKeys()
+ {
+ return EJB2;
+ }
+
+ protected void makeEjbRequests() throws Exception
+ {
+ InitialContext ctx = new InitialContext();
+ StatelessSessionHome slsbhome = (StatelessSessionHome) ctx.lookup("ClassloaderLeakStatelessSession");
+ StatelessSession slsbbean = slsbhome.create();
+ slsbbean.log("EJB");
+ StatefulSessionHome sfsbhome = (StatefulSessionHome) ctx.lookup("ClassloaderLeakStatefulSession");
+ StatefulSession sfsbbean = sfsbhome.create();
+ sfsbbean.log("EJB");
+ }
+}
Property changes on: branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/J2EEClassloaderLeakTestBase.java
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Revision
Name: svn:mergeinfo
+
Name: svn:eol-style
+ native
Added: branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/NoPassivationWarClassloaderLeakTestCase.java
===================================================================
--- branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/NoPassivationWarClassloaderLeakTestCase.java (rev 0)
+++ branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/NoPassivationWarClassloaderLeakTestCase.java 2009-05-11 19:19:40 UTC (rev 88667)
@@ -0,0 +1,56 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.cluster.classloader.leak.test;
+
+import junit.framework.Test;
+
+/**
+ * Test for classloader leaks following deployment, use and undeployment
+ * of a simple war with clustered sessions.
+ * <p/>
+ * If these tests are run with JBoss Profiler's jbossAgent (.dll or .so) on the path
+ * and the AS is started with -agentlib:jbossAgent, in case of classloader leakage
+ * an extensive report will be logged to the server log, showing the path to root of
+ * all references to the classloader.
+ *
+ * @author Brian Stansberry
+ */
+public class NoPassivationWarClassloaderLeakTestCase extends J2EEClassloaderLeakTestBase
+{
+ private static final String NO_PASSIVATION_WAR = "cluster-clleak-nopass.war";
+
+ public NoPassivationWarClassloaderLeakTestCase(String name)
+ {
+ super(name);
+ }
+
+
+ public static Test suite() throws Exception
+ {
+ return getDeploySetup(NoPassivationWarClassloaderLeakTestCase.class, "classloader-leak-test.sar");
+ }
+
+ public void testNoPassivationWar() throws Exception
+ {
+ warTest(NO_PASSIVATION_WAR);
+ }
+}
Property changes on: branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/NoPassivationWarClassloaderLeakTestCase.java
___________________________________________________________________
Name: svn:keywords
+
Added: branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/NoReplicableWarFieldGranularityClassloaderLeakTestCase.java
===================================================================
--- branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/NoReplicableWarFieldGranularityClassloaderLeakTestCase.java (rev 0)
+++ branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/NoReplicableWarFieldGranularityClassloaderLeakTestCase.java 2009-05-11 19:19:40 UTC (rev 88667)
@@ -0,0 +1,58 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.cluster.classloader.leak.test;
+
+import junit.framework.Test;
+
+/**
+ * Test for classloader leaks following deployment, use and undeployment
+ * of a war configured for FIELD granularity which doesn't contain any
+ * classes enhanced for POJO Cache.
+ * <p/>
+ * If these tests are run with JBoss Profiler's jbossAgent (.dll or .so) on the path
+ * and the AS is started with -agentlib:jbossAgent, in case of classloader leakage
+ * an extensive report will be logged to the server log, showing the path to root of
+ * all references to the classloader.
+ *
+ * @author Brian Stansberry
+ */
+public class NoReplicableWarFieldGranularityClassloaderLeakTestCase extends FieldGranularityClassloaderLeakTestBase
+{
+ private static final String FIELD_NO_REPLICABLE_WAR = "cluster-clleak-field-no-replicable.war";
+
+
+ public NoReplicableWarFieldGranularityClassloaderLeakTestCase(String name)
+ {
+ super(name);
+ }
+
+
+ public static Test suite() throws Exception
+ {
+ return getDeploySetup(NoReplicableWarFieldGranularityClassloaderLeakTestCase.class, "classloader-leak-test.sar");
+ }
+
+ public void testFieldNoReplicableWar() throws Exception
+ {
+ warTest(FIELD_NO_REPLICABLE_WAR);
+ }
+}
Property changes on: branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/NoReplicableWarFieldGranularityClassloaderLeakTestCase.java
___________________________________________________________________
Name: svn:keywords
+
Added: branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/NonFieldGranularityReplicableClassloaderLeakTestCase.java
===================================================================
--- branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/NonFieldGranularityReplicableClassloaderLeakTestCase.java (rev 0)
+++ branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/NonFieldGranularityReplicableClassloaderLeakTestCase.java 2009-05-11 19:19:40 UTC (rev 88667)
@@ -0,0 +1,56 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.cluster.classloader.leak.test;
+
+import junit.framework.Test;
+
+/**
+ * Test for classloader leaks following deployment, use and undeployment
+ * of a war NOT configured for FIELD granularity which however does contain
+ * session attribute classes bytecode enhanced for POJO Cache.
+ * <p/>
+ * If these tests are run with JBoss Profiler's jbossAgent (.dll or .so) on the path
+ * and the AS is started with -agentlib:jbossAgent, in case of classloader leakage
+ * an extensive report will be logged to the server log, showing the path to root of
+ * all references to the classloader.
+ *
+ * @author Brian Stansberry
+ */
+public class NonFieldGranularityReplicableClassloaderLeakTestCase extends FieldGranularityClassloaderLeakTestBase
+{
+ private static final String SIMPLE_REPLICABLE_WAR = "cluster-clleak-simple-replicable.war";
+
+ public NonFieldGranularityReplicableClassloaderLeakTestCase(String name)
+ {
+ super(name);
+ }
+
+ public static Test suite() throws Exception
+ {
+ return getDeploySetup(NonFieldGranularityReplicableClassloaderLeakTestCase.class, "classloader-leak-test.sar");
+ }
+
+ public void testSimpleReplicableWar() throws Exception
+ {
+ warTest(SIMPLE_REPLICABLE_WAR);
+ }
+}
Property changes on: branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/NonFieldGranularityReplicableClassloaderLeakTestCase.java
___________________________________________________________________
Name: svn:keywords
+
Added: branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/SimpleWarClassloaderLeakTestCase.java
===================================================================
--- branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/SimpleWarClassloaderLeakTestCase.java (rev 0)
+++ branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/SimpleWarClassloaderLeakTestCase.java 2009-05-11 19:19:40 UTC (rev 88667)
@@ -0,0 +1,56 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.cluster.classloader.leak.test;
+
+import junit.framework.Test;
+
+/**
+ * Test for classloader leaks following deployment, use and undeployment
+ * of a simple war with clustered sessions.
+ * <p/>
+ * If these tests are run with JBoss Profiler's jbossAgent (.dll or .so) on the path
+ * and the AS is started with -agentlib:jbossAgent, in case of classloader leakage
+ * an extensive report will be logged to the server log, showing the path to root of
+ * all references to the classloader.
+ *
+ * @author Brian Stansberry
+ */
+public class SimpleWarClassloaderLeakTestCase extends J2EEClassloaderLeakTestBase
+{
+ private static final String SIMPLE_WAR = "cluster-clleak-simple.war";
+
+
+ public SimpleWarClassloaderLeakTestCase(String name)
+ {
+ super(name);
+ }
+
+ public static Test suite() throws Exception
+ {
+ return getDeploySetup(SimpleWarClassloaderLeakTestCase.class, "classloader-leak-test.sar");
+ }
+
+ public void testSimpleWar() throws Exception
+ {
+ warTest(SIMPLE_WAR);
+ }
+}
Property changes on: branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/classloader/leak/test/SimpleWarClassloaderLeakTestCase.java
___________________________________________________________________
Name: svn:keywords
+
More information about the jboss-cvs-commits
mailing list