Package statechum.Helper

Examples of statechum.Helper.whatToRun


   * we receive a timeout.
   */
  @Test
  public void testErlangResponseTimeout2()
  {
    checkForCorrectException(new whatToRun() { public @Override void run() {
      runner.call(new OtpErlangObject[]{new OtpErlangAtom("echoA")},200);
    }},IllegalArgumentException.class,"timeout");
  }
View Full Code Here


   * but the server responds with {noreply, State}
   */
  @Test
  public void testErlangResponseTimeout3()
  {
    checkForCorrectException(new whatToRun() { public @Override void run() {
      runner.call(new OtpErlangObject[]{new OtpErlangAtom("noreply")},200);
    }},IllegalArgumentException.class,"timeout");
  }
View Full Code Here

  public void testErlangResponseTimeout4() throws InterruptedException
  {
    checkEcho(runner);
    erlRuntime.erlangProcess.destroy();
    erlRuntime.erlangProcess.waitFor();
    checkForCorrectException(new whatToRun() { public @Override void run() {
      makeCall(runner);
    }},IllegalArgumentException.class,"timeout");
    erlRuntime.killErlang();
  }
View Full Code Here

  @Test
  public void testErlangResponseTimeout5()
  {
    checkEcho(runner);
    checkEcho(runner);
    checkForCorrectException(new whatToRun() { public @Override void run() {
      runner.call(new OtpErlangObject[]{new OtpErlangAtom("echoA")},200);
    }},IllegalArgumentException.class,"timeout");
    checkForCorrectException(new whatToRun() { public @Override void run() {
      makeCall(runner);
    }},IllegalArgumentException.class,"timeout");
   
  }
View Full Code Here

  }

  @Test
  public void testCallResponseDecodeFailure1()
  {
    checkForCorrectException(new whatToRun() { public @Override void run() {
      erlRuntime.createNewRunner().call(
          new OtpErlangObject[]{new OtpErlangAtom("echo2Error"), new OtpErlangAtom("aaa")},
          "ErrMsg");
    }},IllegalArgumentException.class,"ErrMsg : error errorProcessinG");
  }
View Full Code Here

  }

  @Test
  public void testCallResponseDecodeFailure2()
  {
    checkForCorrectException(new whatToRun() { public @Override void run() {
      runner.call(
          new OtpErlangObject[]{new OtpErlangAtom("echo2ErrorMessage"), new OtpErlangAtom("aaa")},
          "ErrMsg");
    }},IllegalArgumentException.class,"veryLongErrorMessage");
  }
View Full Code Here

  }
 
  @Test
  public void testCallResponseDecodeFailure3()
  {
    checkForCorrectException(new whatToRun() { public @Override void run() {
      runner.call(
          new OtpErlangObject[]{new OtpErlangAtom("echo2List"), new OtpErlangAtom("aaa")},
          "ErrMsg");
    }},IllegalArgumentException.class,"unexpected response type");
  }
View Full Code Here

  }
 
  @Test
  public void testCallResponseDecodeFailure4()
  {
    checkForCorrectException(new whatToRun() { public @Override void run() {
      runner.call(
          new OtpErlangObject[]{new OtpErlangAtom("echo2WrongType"), new OtpErlangAtom("aaa")},
          "ErrMsg");
    }},IllegalArgumentException.class,"unexpected type in response tuple");
  }
View Full Code Here

  }
 
  @Test
  public void testCallResponseDecodeFailure5()
  {
    checkForCorrectException(new whatToRun() { public @Override void run() {
      runner.call(
          new OtpErlangObject[]{new OtpErlangAtom("echo2ShortTuple"), new OtpErlangAtom("aaa")},
          "ErrMsg");
    }},IllegalArgumentException.class,"unexpectedly short response");
  }
View Full Code Here

  }
 
  @Test
  public void testEvaluateTermFailure1()
  {
    checkForCorrectException(new whatToRun() { public @Override void run() {
      runner.evaluateString("aa/gg.");
    }},IllegalArgumentException.class,"syntax error before");
  }
View Full Code Here

TOP

Related Classes of statechum.Helper.whatToRun

Copyright © 2018 www.massapicom. 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.