Package com.ericsson.otp.erlang

Examples of com.ericsson.otp.erlang.OtpErlangAtom.atomValue()


        }, "running trace");

    OtpErlangAtom outcome = (OtpErlangAtom) result.elementAt(1);

    TRACEOUTCOME outcomeEnum = null;
    if (outcome.atomValue().equals("ok")) {
      outcomeEnum = TRACEOUTCOME.TRACE_OK;
    } else if (outcome.atomValue().equals("failed_but")) {
      outcomeEnum = TRACEOUTCOME.TRACE_DIFFERENTOUTPUT;
    } else if (outcome.atomValue().equals("timeout")) {
      outcomeEnum = TRACEOUTCOME.TRACE_FAIL;
View Full Code Here


    OtpErlangAtom outcome = (OtpErlangAtom) result.elementAt(1);

    TRACEOUTCOME outcomeEnum = null;
    if (outcome.atomValue().equals("ok")) {
      outcomeEnum = TRACEOUTCOME.TRACE_OK;
    } else if (outcome.atomValue().equals("failed_but")) {
      outcomeEnum = TRACEOUTCOME.TRACE_DIFFERENTOUTPUT;
    } else if (outcome.atomValue().equals("timeout")) {
      outcomeEnum = TRACEOUTCOME.TRACE_FAIL;
    } else if (outcome.atomValue().equals("failed")) {
      outcomeEnum = TRACEOUTCOME.TRACE_FAIL;
View Full Code Here

    TRACEOUTCOME outcomeEnum = null;
    if (outcome.atomValue().equals("ok")) {
      outcomeEnum = TRACEOUTCOME.TRACE_OK;
    } else if (outcome.atomValue().equals("failed_but")) {
      outcomeEnum = TRACEOUTCOME.TRACE_DIFFERENTOUTPUT;
    } else if (outcome.atomValue().equals("timeout")) {
      outcomeEnum = TRACEOUTCOME.TRACE_FAIL;
    } else if (outcome.atomValue().equals("failed")) {
      outcomeEnum = TRACEOUTCOME.TRACE_FAIL;
    } else {
      throw new IllegalArgumentException("unknown Erlang response " + outcome);
View Full Code Here

      outcomeEnum = TRACEOUTCOME.TRACE_OK;
    } else if (outcome.atomValue().equals("failed_but")) {
      outcomeEnum = TRACEOUTCOME.TRACE_DIFFERENTOUTPUT;
    } else if (outcome.atomValue().equals("timeout")) {
      outcomeEnum = TRACEOUTCOME.TRACE_FAIL;
    } else if (outcome.atomValue().equals("failed")) {
      outcomeEnum = TRACEOUTCOME.TRACE_FAIL;
    } else {
      throw new IllegalArgumentException("unknown Erlang response " + outcome);
    }
    OtpErlangList trace = (OtpErlangList) result.elementAt(2);
View Full Code Here

  @Test
  public void testParse1f()
  {
    String text = " \'this\\'i s\\\" fh an \"atom\'   ";
    OtpErlangAtom atom = (OtpErlangAtom)ErlangLabel.parseText(text);
    Assert.assertEquals("this'i s\" fh an \"atom",atom.atomValue());
    checkResponse(runner, "\'this\\'i s\" fh an \"atom\'",text);
  }
 
  /** Spaces. */
  @Test
 
View Full Code Here

  @Test
  public void testParse1g()
  {
    String text = " \'  \'   ";
    OtpErlangAtom atom = (OtpErlangAtom)ErlangLabel.parseText(text);
    Assert.assertEquals("  ",atom.atomValue());
    checkResponse(runner, "\'  \'",text);
 
 
  /** Spaces. */
  @Test
 
View Full Code Here

  @Test
  public void testParse1h()
  {
    String text = " \' a \'   ";
    OtpErlangAtom atom = (OtpErlangAtom)ErlangLabel.parseText(text);
    Assert.assertEquals(" a ",atom.atomValue());
    checkResponse(runner, "\' a \'",text);
 

  /** Bar 1. */
  @Test
 
View Full Code Here

  @Test
  public void testParse1i()
  {
    String text = " \' | a \'   ";
    OtpErlangAtom atom = (OtpErlangAtom)ErlangLabel.parseText(text);
    Assert.assertEquals(" | a ",atom.atomValue());
    checkResponse(runner, "\' | a \'",text);
 

  /** Bar 2. */
  @Test
 
View Full Code Here

  @Test
  public void testParse1j()
  {
    String text = " \' a |\'   ";
    OtpErlangAtom atom = (OtpErlangAtom)ErlangLabel.parseText(text);
    Assert.assertEquals(" a |",atom.atomValue());
    checkResponse(runner, "\' a |\'",text);
 

  public static void testParseChokesOnInvalidChars(ErlangRunner runner, final char startStop)
  {
View Full Code Here

  @Test
  public void testParseUnquotedAtom0()
  {
    String text = "atom";
    OtpErlangAtom atom = (OtpErlangAtom)ErlangLabel.parseText(text);
    Assert.assertEquals(text.trim(),atom.atomValue());
  }
 
  @Test
  public void testParseUnquotedAtom1a()
  {
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.