[jboss-cvs] JBossAS SVN: r82658 - in projects/ejb3/trunk/testsuite: src/test/java/org/jboss/ejb3/test and 2 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Jan 7 02:43:40 EST 2009


Author: ALRubinger
Date: 2009-01-07 02:43:39 -0500 (Wed, 07 Jan 2009)
New Revision: 82658

Added:
   projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1530/
   projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1530/LifecycleManagement.java
   projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1530/Service1HasADependency.java
   projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1530/Service2IsADependency.java
   projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1530/StartLifecycleRegisteringServiceBase.java
   projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1530/StartLifecycleReporterBean.java
   projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1530/StartLifecycleReporterRemoteBusiness.java
   projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1530/unit/
   projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1530/unit/ServiceStartOrderTestCase.java
Modified:
   projects/ejb3/trunk/testsuite/build-test.xml
Log:
[EJBTHREE-1530] Added test showing alphabetical ordering by impl class name of @Service start(), and multi-callbacks

Modified: projects/ejb3/trunk/testsuite/build-test.xml
===================================================================
--- projects/ejb3/trunk/testsuite/build-test.xml	2009-01-07 06:13:32 UTC (rev 82657)
+++ projects/ejb3/trunk/testsuite/build-test.xml	2009-01-07 07:43:39 UTC (rev 82658)
@@ -2407,6 +2407,10 @@
       <build-simple-jar name="ejbthree1504"/>
    </target>  
 	
+   <target name="ejbthree1530">
+      <build-simple-jar name="ejbthree1530"/>
+   </target> 
+	
    <target name="ejbthree1624">
       <build-simple-jar name="ejbthree1624"/>
    </target>
@@ -4199,7 +4203,7 @@
       ejbthree1066, ejbthree1071, ejbthree1075, ejbthree1082, ejbthree1090, ejbthree1092, ejbthree1116, ejbthree1119, ejbthree1122, ejbthree1123, ejbthree1127,
       ejbthree1130, 
       ejbthree1146, ejbthree1148, ejbthree1154, ejbthree1157, ejbthree1222, ejbthree1271, ejbthree1339,
-      ejbthree1504, ejbthree1624,
+      ejbthree1504, ejbthree1530, ejbthree1624,
    	  jaxws, jbas4489, epcpropagation, aspectdomain, ejbcontext, schema, mail, scopedclassloader, dependency,
       securitydomain, enventry, security5,
       jms/managed, naming, bmt, jca/inflowmdb, pool, jms, security, reference21_30, factory, dd/web, txexceptions,
@@ -5005,6 +5009,9 @@
       <antcall target="test" inheritRefs="true">
          <param name="test" value="ejbthree1339"/>
       </antcall>
+   	  <antcall target="test" inheritRefs="true">
+   	     <param name="test" value="ejbthree1530"/>
+      </antcall>
       <antcall target="test" inheritRefs="true">
          <param name="test" value="ejbthree1624"/>
       </antcall>

Added: projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1530/LifecycleManagement.java
===================================================================
--- projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1530/LifecycleManagement.java	                        (rev 0)
+++ projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1530/LifecycleManagement.java	2009-01-07 07:43:39 UTC (rev 82658)
@@ -0,0 +1,45 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, 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.ejb3.test.ejbthree1530;
+
+/**
+ * LifecycleManagement
+ * 
+ * MBean interface for a service that contains lifecycle
+ * methods required of implementations
+ *
+ * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
+ * @version $Revision: $
+ */
+public interface LifecycleManagement
+{
+   // ----------------------------------------------------------------||
+   // Contracts ------------------------------------------------------||
+   // ----------------------------------------------------------------||
+
+   /*
+    * Define Requisite Lifecycle Methods
+    */
+
+   void start() throws Exception;
+
+}

Added: projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1530/Service1HasADependency.java
===================================================================
--- projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1530/Service1HasADependency.java	                        (rev 0)
+++ projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1530/Service1HasADependency.java	2009-01-07 07:43:39 UTC (rev 82658)
@@ -0,0 +1,63 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, 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.ejb3.test.ejbthree1530;
+
+import org.jboss.ejb3.annotation.Depends;
+import org.jboss.ejb3.annotation.Management;
+import org.jboss.ejb3.annotation.Service;
+
+/**
+ * Service1HasADependency
+ * 
+ * A @Service bean that depends upon another
+ * service to start (and should therefore be started after
+ * the dependency)
+ *
+ * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
+ * @version $Revision: $
+ */
+ at Service(objectName = Service1HasADependency.OBJECT_NAME)
+ at Management(LifecycleManagement.class)
+ at Depends(Service2IsADependency.OBJECT_NAME)
+// < Defines the dependency, and hence order of startup
+public class Service1HasADependency extends StartLifecycleRegisteringServiceBase
+      implements
+         LifecycleManagement
+{
+
+   // ----------------------------------------------------------------||
+   // Class Members --------------------------------------------------||
+   // ----------------------------------------------------------------||
+
+   public static final String OBJECT_NAME = "org.jboss.ejb3.test.ejbthree1530:Service=RequiresDependencyToStartService";
+
+   // ----------------------------------------------------------------||
+   // Required Implementations ---------------------------------------||
+   // ----------------------------------------------------------------||
+
+   @Override
+   public String getObjectName()
+   {
+      return OBJECT_NAME;
+   }
+
+}


Property changes on: projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1530/Service1HasADependency.java
___________________________________________________________________
Name: svn:mergeinfo
   + 

Added: projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1530/Service2IsADependency.java
===================================================================
--- projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1530/Service2IsADependency.java	                        (rev 0)
+++ projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1530/Service2IsADependency.java	2009-01-07 07:43:39 UTC (rev 82658)
@@ -0,0 +1,56 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, 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.ejb3.test.ejbthree1530;
+
+import org.jboss.ejb3.annotation.Management;
+import org.jboss.ejb3.annotation.Service;
+
+/**
+ * Service2IsADependency
+ * 
+ * A @Service bean that may be depended upon, and thus should
+ * start before anyone relying upon it
+ *
+ * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
+ * @version $Revision: $
+ */
+ at Service(objectName = Service2IsADependency.OBJECT_NAME)
+ at Management(LifecycleManagement.class)
+public class Service2IsADependency extends StartLifecycleRegisteringServiceBase implements LifecycleManagement
+{
+
+   // ----------------------------------------------------------------||
+   // Class Members --------------------------------------------------||
+   // ----------------------------------------------------------------||
+
+   public static final String OBJECT_NAME = "org.jboss.ejb3.test.ejbthree1530:Service=DependedUponService";
+
+   // ----------------------------------------------------------------||
+   // Required Implementations ---------------------------------------||
+   // ----------------------------------------------------------------||
+
+   @Override
+   public String getObjectName()
+   {
+      return OBJECT_NAME;
+   }
+}


Property changes on: projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1530/Service2IsADependency.java
___________________________________________________________________
Name: svn:mergeinfo
   + 

Added: projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1530/StartLifecycleRegisteringServiceBase.java
===================================================================
--- projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1530/StartLifecycleRegisteringServiceBase.java	                        (rev 0)
+++ projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1530/StartLifecycleRegisteringServiceBase.java	2009-01-07 07:43:39 UTC (rev 82658)
@@ -0,0 +1,65 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, 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.ejb3.test.ejbthree1530;
+
+import org.jboss.logging.Logger;
+
+/**
+ * LifecycleServiceBase
+ * 
+ * A base for a @Service that registers start() of its lifecycle
+ * with a reporter
+ *
+ * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
+ * @version $Revision: $
+ */
+public abstract class StartLifecycleRegisteringServiceBase implements LifecycleManagement
+{
+
+   // ----------------------------------------------------------------||
+   // Class Members --------------------------------------------------||
+   // ----------------------------------------------------------------||
+
+   private static final Logger log = Logger.getLogger(StartLifecycleRegisteringServiceBase.class);
+
+   // ----------------------------------------------------------------||
+   // Required Implementations ---------------------------------------||
+   // ----------------------------------------------------------------||
+
+   public void start() throws Exception
+   {
+      // Log and register
+      String objectName = this.getObjectName();
+      log.info("START: " + objectName);
+      StartLifecycleReporterBean.CREATED_SERVICE_NAMES.add(objectName);
+   }
+
+   // ----------------------------------------------------------------||
+   // Contracts ------------------------------------------------------||
+   // ----------------------------------------------------------------||
+
+   /**
+    * Returns the ObjectName (String form) for this service
+    */
+   public abstract String getObjectName();
+
+}

Added: projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1530/StartLifecycleReporterBean.java
===================================================================
--- projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1530/StartLifecycleReporterBean.java	                        (rev 0)
+++ projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1530/StartLifecycleReporterBean.java	2009-01-07 07:43:39 UTC (rev 82658)
@@ -0,0 +1,62 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, 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.ejb3.test.ejbthree1530;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import javax.ejb.Remote;
+import javax.ejb.Stateless;
+
+/**
+ * StartLifecycleReporterBean
+ * 
+ * Reports order in which start() lifecycle of @Services 
+ * are registered
+ *
+ * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
+ * @version $Revision: $
+ */
+ at Stateless
+ at Remote(StartLifecycleReporterRemoteBusiness.class)
+public class StartLifecycleReporterBean implements StartLifecycleReporterRemoteBusiness
+{
+   // ----------------------------------------------------------------||
+   // Class Members --------------------------------------------------||
+   // ----------------------------------------------------------------||
+
+   /**
+    * Holds the name of each service as it reports it's been started, in order
+    */
+   public static List<String> CREATED_SERVICE_NAMES = new ArrayList<String>();
+
+   // ----------------------------------------------------------------||
+   // Required Implementations ---------------------------------------||
+   // ----------------------------------------------------------------||
+
+   public List<String> getServicesStarted()
+   {
+      return Collections.unmodifiableList(CREATED_SERVICE_NAMES);
+   }
+
+}

Added: projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1530/StartLifecycleReporterRemoteBusiness.java
===================================================================
--- projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1530/StartLifecycleReporterRemoteBusiness.java	                        (rev 0)
+++ projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1530/StartLifecycleReporterRemoteBusiness.java	2009-01-07 07:43:39 UTC (rev 82658)
@@ -0,0 +1,45 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, 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.ejb3.test.ejbthree1530;
+
+import java.util.List;
+
+/**
+ * StartLifecycleReporterRemoteBusiness
+ * 
+ * EJB 3.x Remote Business interface for a reporter
+ * of the start() lifecycle events for @Services deployed
+ *
+ * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
+ * @version $Revision: $
+ */
+public interface StartLifecycleReporterRemoteBusiness
+{
+   // ----------------------------------------------------------------||
+   // Contracts ------------------------------------------------------||
+   // ----------------------------------------------------------------||
+
+   /**
+    * Obtains a list of the names (ObjectName) of services started, in order
+    */
+   List<String> getServicesStarted();
+}

Added: projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1530/unit/ServiceStartOrderTestCase.java
===================================================================
--- projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1530/unit/ServiceStartOrderTestCase.java	                        (rev 0)
+++ projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1530/unit/ServiceStartOrderTestCase.java	2009-01-07 07:43:39 UTC (rev 82658)
@@ -0,0 +1,114 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, 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.ejb3.test.ejbthree1530.unit;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.naming.Context;
+
+import junit.framework.Test;
+
+import org.jboss.ejb3.test.ejbthree1530.Service2IsADependency;
+import org.jboss.ejb3.test.ejbthree1530.Service1HasADependency;
+import org.jboss.ejb3.test.ejbthree1530.StartLifecycleReporterBean;
+import org.jboss.ejb3.test.ejbthree1530.StartLifecycleReporterRemoteBusiness;
+import org.jboss.logging.Logger;
+import org.jboss.test.JBossTestCase;
+
+/**
+ * ServiceStartOrderTestCase
+ * 
+ * Test Cases to ensure @Service lifecycle start() 
+ * is called in proper order
+ *
+ * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
+ * @version $Revision: $
+ */
+public class ServiceStartOrderTestCase extends JBossTestCase
+{
+
+   // --------------------------------------------------------------------------------||
+   // Class Members ------------------------------------------------------------------||
+   // --------------------------------------------------------------------------------|| 
+
+   private static final Logger log = Logger.getLogger(ServiceStartOrderTestCase.class);
+
+   // --------------------------------------------------------------------------------||
+   // Constructor --------------------------------------------------------------------||
+   // --------------------------------------------------------------------------------|| 
+
+   public ServiceStartOrderTestCase(String name)
+   {
+      super(name);
+   }
+
+   // --------------------------------------------------------------------------------||
+   // Suite --------------------------------------------------------------------------||
+   // --------------------------------------------------------------------------------|| 
+
+   public static Test suite() throws Exception
+   {
+      /*
+       * Get the deploy setup 
+       */
+      return getDeploySetup(ServiceStartOrderTestCase.class, "ejbthree1530.jar");
+   }
+
+   // --------------------------------------------------------------------------------||
+   // Tests --------------------------------------------------------------------------||
+   // --------------------------------------------------------------------------------|| 
+
+   /**
+    * Tests that the dependent service is started before the service declaring
+    * the dependency
+    */
+   public void testDependentServiceStartedFirst() throws Throwable
+   {
+
+      // Lookup the reporter
+      Context context = this.getInitialContext();
+      Object obj = context.lookup(StartLifecycleReporterBean.class.getSimpleName() + "/remote");
+      StartLifecycleReporterRemoteBusiness reporter = (StartLifecycleReporterRemoteBusiness) obj;
+
+      // Initialize the expected start order
+      List<String> servicesStartedAsExpected = new ArrayList<String>();
+      servicesStartedAsExpected.add(Service2IsADependency.OBJECT_NAME);
+      servicesStartedAsExpected.add(Service1HasADependency.OBJECT_NAME);
+      log.info("Services Start Expected Order: " + servicesStartedAsExpected);
+
+      // Get the actual start order
+      List<String> servicesStarted = reporter.getServicesStarted();
+      log.info("Services Start Actual Order: " + servicesStarted);
+
+      // Test all is as expected
+      assertEquals("Wrong number of services reported as started", servicesStartedAsExpected.size(), servicesStarted
+            .size());
+      for (int i = 0; i < servicesStarted.size(); i++)
+      {
+         assertEquals("Service start order did not match expected", servicesStartedAsExpected.get(i), servicesStarted
+               .get(i));
+      }
+
+   }
+
+}




More information about the jboss-cvs-commits mailing list