Examples of SleepAction


Examples of com.consol.citrus.actions.SleepAction

        Template rootTemplate = new Template();
        rootTemplate.setName("fooTemplate");
       
        List<TestAction> actions = new ArrayList<TestAction>();
        actions.add(new EchoAction());
        actions.add(new SleepAction());
        rootTemplate.setActions(actions);
       
        reset(applicationContextMock);

        expect(applicationContextMock.getBean("fooTemplate", Template.class)).andReturn(rootTemplate).once();
View Full Code Here

Examples of org.apache.hadoop.fi.DataTransferTestUtil.SleepAction

      throws IOException {
    FiTestUtil.LOG.info("Running " + methodName + " ...");
    final int maxSleep = 3000;
    final DataTransferTest t = (DataTransferTest) DataTransferTestUtil
        .initTest();
    initSlowDatanodeTest(t, new SleepAction(methodName, 0, 0, maxSleep));
    initSlowDatanodeTest(t, new SleepAction(methodName, 1, 0, maxSleep));
    initSlowDatanodeTest(t, new SleepAction(methodName, 2, 0, maxSleep));
    t.fiCallWritePacketToDisk.set(new CountdownDoosAction(methodName, dnIndex, 3));
    t.fiPipelineErrorAfterInit.set(new VerificationAction(methodName, dnIndex));
    writeSeveralPackets(methodName);
    Assert.assertTrue(t.isSuccess());
  }
View Full Code Here

Examples of org.apache.hadoop.fi.DataTransferTestUtil.SleepAction

  private void runTest29_30(String methodName, int dnIndex) throws IOException {
    FiTestUtil.LOG.info("Running " + methodName + " ...");
    final int maxSleep = 3000;
    final DataTransferTest t = (DataTransferTest) DataTransferTestUtil
        .initTest();
    initSlowDatanodeTest(t, new SleepAction(methodName, 0, 0, maxSleep));
    initSlowDatanodeTest(t, new SleepAction(methodName, 1, 0, maxSleep));
    initSlowDatanodeTest(t, new SleepAction(methodName, 2, 0, maxSleep));
    t.fiAfterDownstreamStatusRead.set(new CountdownOomAction(methodName, dnIndex, 3));
    t.fiPipelineErrorAfterInit.set(new VerificationAction(methodName, dnIndex));
    writeSeveralPackets(methodName);
    Assert.assertTrue(t.isSuccess());
  }
View Full Code Here

Examples of org.apache.hadoop.fi.DataTransferTestUtil.SleepAction

  public void pipeline_Fi_20() throws IOException {
    final String methodName = FiTestUtil.getMethodName();
    FiTestUtil.LOG.info("Running " + methodName + " ...");
    final DataTransferTest t = (DataTransferTest) DataTransferTestUtil
        .initTest();
    initSlowDatanodeTest(t, new SleepAction(methodName, 0, 3000));
    writeSeveralPackets(methodName);
  }
View Full Code Here

Examples of org.apache.hadoop.fi.DataTransferTestUtil.SleepAction

  public void pipeline_Fi_21() throws IOException {
    final String methodName = FiTestUtil.getMethodName();
    FiTestUtil.LOG.info("Running " + methodName + " ...");
    final DataTransferTest t = (DataTransferTest) DataTransferTestUtil
        .initTest();
    initSlowDatanodeTest(t, new SleepAction(methodName, 1, 3000));
    writeSeveralPackets(methodName);
  }
View Full Code Here

Examples of org.apache.hadoop.fi.DataTransferTestUtil.SleepAction

  public void pipeline_Fi_22() throws IOException {
    final String methodName = FiTestUtil.getMethodName();
    FiTestUtil.LOG.info("Running " + methodName + " ...");
    final DataTransferTest t = (DataTransferTest) DataTransferTestUtil
        .initTest();
    initSlowDatanodeTest(t, new SleepAction(methodName, 2, 3000));
    writeSeveralPackets(methodName);
  }
View Full Code Here

Examples of org.apache.hadoop.fi.DataTransferTestUtil.SleepAction

   * Client gets an IOException and determine DN0 bad.
   */
  @Test
  public void pipeline_Fi_01() throws IOException {
    final String methodName = FiTestUtil.getMethodName();
    runReceiverOpWriteBlockTest(methodName, 0, new SleepAction(methodName, 0, 0));
  }
View Full Code Here

Examples of org.apache.hadoop.fi.DataTransferTestUtil.SleepAction

   * Client gets an IOException and determine DN1 bad.
   */
  @Test
  public void pipeline_Fi_02() throws IOException {
    final String methodName = FiTestUtil.getMethodName();
    runReceiverOpWriteBlockTest(methodName, 1, new SleepAction(methodName, 1, 0));
  }
View Full Code Here

Examples of org.apache.hadoop.fi.DataTransferTestUtil.SleepAction

   * Client gets an IOException and determine DN2 bad.
   */
  @Test
  public void pipeline_Fi_03() throws IOException {
    final String methodName = FiTestUtil.getMethodName();
    runReceiverOpWriteBlockTest(methodName, 2, new SleepAction(methodName, 2, 0));
  }
View Full Code Here

Examples of org.apache.hadoop.fi.DataTransferTestUtil.SleepAction

   * Client gets an IOException and determine DN1 bad.
   */
  @Test
  public void pipeline_Fi_04() throws IOException {
    final String methodName = FiTestUtil.getMethodName();
    runStatusReadTest(methodName, 1, new SleepAction(methodName, 1, 0));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.