Author: adietish
Date: 2010-12-15 05:21:59 -0500 (Wed, 15 Dec 2010)
New Revision: 27498
Modified:
trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/src/org/jboss/tools/internal/deltacloud/test/core/job/CloudSchedulingRulesTest.java
Log:
[JBIDE-7594]
* corrected scheduling rules to have correct blocking across the scheduling class
hierarchy
* created #createSecurePasswordStore to be able to fake store in tests
* created tests for all scheduling rules
Modified:
trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/src/org/jboss/tools/internal/deltacloud/test/core/job/CloudSchedulingRulesTest.java
===================================================================
---
trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/src/org/jboss/tools/internal/deltacloud/test/core/job/CloudSchedulingRulesTest.java 2010-12-15
10:16:53 UTC (rev 27497)
+++
trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/src/org/jboss/tools/internal/deltacloud/test/core/job/CloudSchedulingRulesTest.java 2010-12-15
10:21:59 UTC (rev 27498)
@@ -98,6 +98,13 @@
assertTrue(cloudInstancesRule.isConflicting(cloudRule));
}
+ @Test
+ public void cloudImagesRule2CloudImagesRule() throws DeltaCloudException {
+ CloudElementSchedulingRule cloudImagesRule =
+ new CloudElementSchedulingRule(cloudFake, CLOUDELEMENT.IMAGES);
+ assertTrue(cloudImagesRule.isConflicting(cloudImagesRule));
+ }
+
private static class DeltaCloudFake extends DeltaCloud {
public DeltaCloudFake() throws DeltaCloudException {
Show replies by date