[jboss-cvs] JBossAS SVN: r82622 - in projects/jboss-deployers/trunk/deployers-impl/src: test/java/org/jboss/test/deployers/deployer/test and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Jan 6 04:20:04 EST 2009
Author: alesj
Date: 2009-01-06 04:20:04 -0500 (Tue, 06 Jan 2009)
New Revision: 82622
Modified:
projects/jboss-deployers/trunk/deployers-impl/src/main/java/org/jboss/deployers/plugins/sort/DeployerDomino.java
projects/jboss-deployers/trunk/deployers-impl/src/main/java/org/jboss/deployers/plugins/sort/DominoOrdering.java
projects/jboss-deployers/trunk/deployers-impl/src/test/java/org/jboss/test/deployers/deployer/test/DeployerFlowUnitTestCase.java
Log:
javadocs
WB mock test.
Modified: projects/jboss-deployers/trunk/deployers-impl/src/main/java/org/jboss/deployers/plugins/sort/DeployerDomino.java
===================================================================
--- projects/jboss-deployers/trunk/deployers-impl/src/main/java/org/jboss/deployers/plugins/sort/DeployerDomino.java 2009-01-06 08:24:40 UTC (rev 82621)
+++ projects/jboss-deployers/trunk/deployers-impl/src/main/java/org/jboss/deployers/plugins/sort/DeployerDomino.java 2009-01-06 09:20:04 UTC (rev 82622)
@@ -45,6 +45,11 @@
this.tail = new SetDots<String>(deployer.getOutputs());
}
+ /**
+ * Get the underlying deployer.
+ *
+ * @return the deployer
+ */
public Deployer getDeployer()
{
return deployer;
Modified: projects/jboss-deployers/trunk/deployers-impl/src/main/java/org/jboss/deployers/plugins/sort/DominoOrdering.java
===================================================================
--- projects/jboss-deployers/trunk/deployers-impl/src/main/java/org/jboss/deployers/plugins/sort/DominoOrdering.java 2009-01-06 08:24:40 UTC (rev 82621)
+++ projects/jboss-deployers/trunk/deployers-impl/src/main/java/org/jboss/deployers/plugins/sort/DominoOrdering.java 2009-01-06 09:20:04 UTC (rev 82622)
@@ -47,6 +47,12 @@
this.message = message;
}
+ /**
+ * Initialize transitions.
+ *
+ * @param dominoes all dominoes
+ * @param cause the possible cycle cause
+ */
@SuppressWarnings("unchecked")
protected void init(List<T> dominoes, Object cause)
{
@@ -90,6 +96,13 @@
}
}
+ /**
+ * Order dominoes.
+ *
+ * @param dominoes all dominoes
+ * @param cause the possible cycle cause
+ * @return ordered dominoes list
+ */
public List<T> orderDominoes(List<T> dominoes, Object cause)
{
// prepare initial transitions
@@ -158,6 +171,9 @@
return -1;
}
+ /**
+ * Fill transitions with name compare.
+ */
protected void fillCompareNames()
{
for (int i = 0; i < size - 1; i++)
@@ -182,6 +198,11 @@
}
}
+ /**
+ * Throw the cycle exception.
+ *
+ * @param cause the cycle cause
+ */
protected void throwCycleException(Object cause)
{
StringBuilder builder = new StringBuilder();
@@ -191,6 +212,9 @@
throw new IllegalStateException(builder.toString());
}
+ /**
+ * The index comparator.
+ */
protected class IndexComparator implements Comparator<Integer>
{
public int compare(Integer i1, Integer i2)
Modified: projects/jboss-deployers/trunk/deployers-impl/src/test/java/org/jboss/test/deployers/deployer/test/DeployerFlowUnitTestCase.java
===================================================================
--- projects/jboss-deployers/trunk/deployers-impl/src/test/java/org/jboss/test/deployers/deployer/test/DeployerFlowUnitTestCase.java 2009-01-06 08:24:40 UTC (rev 82621)
+++ projects/jboss-deployers/trunk/deployers-impl/src/test/java/org/jboss/test/deployers/deployer/test/DeployerFlowUnitTestCase.java 2009-01-06 09:20:04 UTC (rev 82622)
@@ -797,4 +797,49 @@
assertEquals(6, deployer3.getUndeployOrder());
assertEquals(5, deployer4.getUndeployOrder());
}
+
+ public void testWebBeansOrder() throws Exception
+ {
+ DeployerClient main = createMainDeployer();
+
+ TestFlowDeployer mcfcld = new TestFlowDeployer("ManagedConnectionFactory");
+ mcfcld.setInputs("ManagedConnectionFactoryDeploymentGroup");
+ mcfcld.setOutputs("CLMD");
+ addDeployer(main, mcfcld);
+
+ TestFlowDeployer postJBWMD = new TestFlowDeployer("PostJBossWebMetadataDeployer");
+ postJBWMD.setInputs("JBWMD", "CLMD");
+ postJBWMD.setOutputs("JBWMD", "CLMD");
+ addDeployer(main, postJBWMD);
+
+ TestFlowDeployer postEJB = new TestFlowDeployer("PostEjbJar");
+ postEJB.setInputs("EJB");
+ postEJB.setOutputs("EJB");
+ addDeployer(main, postEJB);
+
+ TestFlowDeployer warCL = new TestFlowDeployer("WarClassLoaderDeployer");
+ warCL.setInputs("JBWMD", "CLMD");
+ warCL.setOutputs("CLMD");
+ addDeployer(main, warCL);
+
+ TestFlowDeployer service = new TestFlowDeployer("ServiceCL");
+ service.setInputs("ServiceDeployment");
+ service.setOutputs("CLMD");
+ addDeployer(main, service);
+
+ TestFlowDeployer legacy = new TestFlowDeployer("Legacy");
+ legacy.setInputs("JBWMD", "WMD");
+ legacy.setOutputs("JBWMD");
+ addDeployer(main, legacy);
+
+ TestFlowDeployer cluster = new TestFlowDeployer("Cluster");
+ cluster.setInputs("JBWMD");
+ cluster.setOutputs("JBWMD");
+ addDeployer(main, cluster);
+
+ TestFlowDeployer postWMD = new TestFlowDeployer("PostWebMetadataDeployer");
+ postWMD.setInputs("JBWMD");
+ postWMD.setOutputs("JBWMD");
+ addDeployer(main, postWMD);
+ }
}
More information about the jboss-cvs-commits
mailing list