brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [4/6] brooklyn-server git commit: Add ApplicationLifecycleStateStressTest
Date Wed, 16 Nov 2016 06:44:19 GMT
Add ApplicationLifecycleStateStressTest

Project: http://git-wip-us.apache.org/repos/asf/brooklyn-server/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-server/commit/3e2cf878
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-server/tree/3e2cf878
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-server/diff/3e2cf878

Branch: refs/heads/master
Commit: 3e2cf878b3a85fc289b104b60f471816849bc97f
Parents: 555d59a
Author: Aled Sage <aled.sage@gmail.com>
Authored: Mon Nov 7 11:28:58 2016 +0000
Committer: Aled Sage <aled.sage@gmail.com>
Committed: Mon Nov 14 11:09:54 2016 +0000

----------------------------------------------------------------------
 .../ApplicationLifecycleStateStressTest.java    | 73 ++++++++++++++++++++
 1 file changed, 73 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-server/blob/3e2cf878/core/src/test/java/org/apache/brooklyn/core/entity/ApplicationLifecycleStateStressTest.java
----------------------------------------------------------------------
diff --git a/core/src/test/java/org/apache/brooklyn/core/entity/ApplicationLifecycleStateStressTest.java
b/core/src/test/java/org/apache/brooklyn/core/entity/ApplicationLifecycleStateStressTest.java
new file mode 100644
index 0000000..c4b288c
--- /dev/null
+++ b/core/src/test/java/org/apache/brooklyn/core/entity/ApplicationLifecycleStateStressTest.java
@@ -0,0 +1,73 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.brooklyn.core.entity;
+
+import org.testng.annotations.Test;
+
+@Test(invocationCount=100, groups="Integration")
+public class ApplicationLifecycleStateStressTest extends ApplicationLifecycleStateTest {
+    
+    // TODO Is there a nicer way to get all the super-class public methods to run with the

+    // invocationCount defined on this class, rather than the simple `@Test` annotation on

+    // the super-class (without redefining all the public methods here!)?
+    
+    public void testHappyPathEmptyApp() throws Exception {
+        super.testHappyPathEmptyApp();
+    }
+    
+    public void testHappyPathWithChild() throws Exception {
+        super.testHappyPathWithChild();
+    }
+    
+    public void testOnlyChildFailsToStartCausesAppToFail() throws Exception {
+        super.testOnlyChildFailsToStartCausesAppToFail();
+    }
+    
+    public void testSomeChildFailsOnStartCausesAppToFail() throws Exception {
+        super.testSomeChildFailsOnStartCausesAppToFail();
+    }
+    
+    public void testOnlyChildFailsToStartThenRecoversCausesAppToRecover() throws Exception
{
+        super.testOnlyChildFailsToStartThenRecoversCausesAppToRecover();
+    }
+    
+    public void testSomeChildFailsToStartThenRecoversCausesAppToRecover() throws Exception
{
+        super.testSomeChildFailsToStartThenRecoversCausesAppToRecover();
+    }
+    
+    public void testStartsThenOnlyChildFailsCausesAppToFail() throws Exception {
+        super.testStartsThenOnlyChildFailsCausesAppToFail();
+    }
+
+    public void testStartsThenSomeChildFailsCausesAppToFail() throws Exception {
+        super.testStartsThenSomeChildFailsCausesAppToFail();
+    }
+
+    public void testChildFailuresOnStartButWithQuorumCausesAppToSucceed() throws Exception
{
+        super.testChildFailuresOnStartButWithQuorumCausesAppToSucceed();
+    }
+    
+    public void testStartsThenChildFailsButWithQuorumCausesAppToSucceed() throws Exception
{
+        super.testStartsThenChildFailsButWithQuorumCausesAppToSucceed();
+    }
+
+    public void testStartsThenChildFailsButWithQuorumCausesAppToStayHealthy() throws Exception
{
+        super.testStartsThenChildFailsButWithQuorumCausesAppToStayHealthy();
+    }
+}


Mime
View raw message