Package org.springframework.expression

Examples of org.springframework.expression.ExpressionException


    assertEquals("[LITERAL_STRING:abc](0,3)", token.toString());
  }

  @Test
  public void exceptions() {
    ExpressionException exprEx = new ExpressionException("test");
    assertEquals("test", exprEx.getSimpleMessage());
    assertEquals("test", exprEx.toDetailedString());
    assertEquals("test", exprEx.getMessage());

    exprEx = new ExpressionException("wibble", "test");
    assertEquals("test", exprEx.getSimpleMessage());
    assertEquals("Expression 'wibble': test", exprEx.toDetailedString());
    assertEquals("Expression 'wibble': test", exprEx.getMessage());

    exprEx = new ExpressionException("wibble", 3, "test");
    assertEquals("test", exprEx.getSimpleMessage());
    assertEquals("Expression 'wibble' @ 3: test", exprEx.toDetailedString());
    assertEquals("Expression 'wibble' @ 3: test", exprEx.getMessage());
  }
View Full Code Here

TOP

Related Classes of org.springframework.expression.ExpressionException

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.