Package com.ericsson.otp.erlang

Examples of com.ericsson.otp.erlang.OtpErlangString.stringValue()


        } else if (resultTuple.elementAt(0).toString().equals("undecidables")) {
            hasUndecidables = true;

        }
        final OtpErlangString errorMsg = (OtpErlangString) wranglerResult;
        setUnsuccessful(errorMsg.stringValue());
        return;

    }

    /**
 
View Full Code Here


                }
                setSuccessful();

            } else {
                final OtpErlangString errorMsg = (OtpErlangString) wranglerResult;
                setUnsuccessful(errorMsg.stringValue());
                return;
            }
        } catch (final Exception e) {
            throw new WranglerRpcParsingException(resultTuple.toString());
        }
View Full Code Here

    }

    @Override
    public void dump(OtpErlangObject arg, StringBuffer resultHolder) {
      OtpErlangString atom = (OtpErlangString) arg;
      dump(atom.stringValue(), resultHolder);
    }

    /** Similar to the above but for normal strings. */
    public void dump(String str, StringBuffer resultHolder) {
      resultHolder.append('\"');
View Full Code Here

    }

    @Override
    public void dump(OtpErlangObject arg, StringBuffer resultHolder) {
      OtpErlangString atom = (OtpErlangString) arg;
      dump(atom.stringValue(), resultHolder);
    }

    /** Similar to the above but for normal strings. */
    public void dump(String str, StringBuffer resultHolder) {
      resultHolder.append('\"');
View Full Code Here

 
  public void testParse2c()
  {
    String text = " \"this \\\"is an 'atom\"   ";
    OtpErlangString string = (OtpErlangString)ErlangLabel.parseText(text);
    Assert.assertEquals("this \"is an 'atom",string.stringValue());
    Assert.assertEquals(text.trim(),ErlangLabel.dumpErlangObject(string));
  }
 
  /** Quoted characters. */
  @Test
 
View Full Code Here

  @Test
  public void testParse2d()
  {
    String text = " \"this \\\"is \\'fh an \'atom\"   ";
    OtpErlangString string = (OtpErlangString)ErlangLabel.parseText(text);
    Assert.assertEquals("this \"is 'fh an 'atom",string.stringValue());
    checkResponse(runner, "\"this \\\"is 'fh an \'atom\"",text);
  }
 
  /** Quoted characters. */
  @Test
 
View Full Code Here

  @Test
  public void testParse2e()
  {
    String text = " \"this \\\" is \\' fh an \'atom\"   ";
    OtpErlangString string = (OtpErlangString)ErlangLabel.parseText(text);
    Assert.assertEquals("this \" is ' fh an 'atom",string.stringValue());
    checkResponse(runner, "\"this \\\" is ' fh an 'atom\"",text);
  }
 
  /** Quoted characters. */
  @Test
 
View Full Code Here

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

  @Test
  public void testParse2g()
  {
    String text = " \"  \"   ";
    OtpErlangString string = (OtpErlangString)ErlangLabel.parseText(text);
    Assert.assertEquals("  ",string.stringValue());
    checkResponse(runner, "\"  \"",text);
 
 
  /** Spaces. */
  @Test
 
View Full Code Here

  @Test
  public void testParse2h()
  {
    String text = " \" a \"   ";
    OtpErlangString string = (OtpErlangString)ErlangLabel.parseText(text);
    Assert.assertEquals(" a ",string.stringValue());
    checkResponse(runner, "\" a \"",text);
 

  /** Bar 1. */
  @Test
 
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.