Examples of PlaceOfBirth


Examples of org.springframework.expression.spel.testresources.PlaceOfBirth

    assertEquals(1, parser.parseExpression("counter").getValue(eContext));

    // Now the expression has cached that throwException(int) is the right thing to
    // call. Let's change 'bar' to be a PlaceOfBirth which indicates the cached
    // reference is out of date.
    eContext.setVariable("bar", new PlaceOfBirth("London"));
    o = expr.getValue(eContext);
    assertEquals(0, o);
    // That confirms the logic to mark the cached reference stale and retry is working

    // Now let's cause the method to exit via exception and ensure it doesn't cause
View Full Code Here

Examples of org.springframework.expression.spel.testresources.PlaceOfBirth

   */
  private static void setupRootContextObject(StandardEvaluationContext testContext) {
    GregorianCalendar c = new GregorianCalendar();
    c.set(1856, 7, 9);
    Inventor tesla = new Inventor("Nikola Tesla", c.getTime(), "Serbian");
    tesla.setPlaceOfBirth(new PlaceOfBirth("SmilJan"));
    tesla.setInventions(new String[] { "Telephone repeater", "Rotating magnetic field principle",
        "Polyphase alternating-current system", "Induction motor", "Alternating-current power transmission",
        "Tesla coil transformer", "Wireless communication", "Radio", "Fluorescent lights" });
    testContext.setRootObject(tesla);
  }
View Full Code Here

Examples of org.springframework.expression.spel.testresources.PlaceOfBirth

    assertEquals(1, parser.parseExpression("counter").getValue(eContext));

    // Now the expression has cached that throwException(int) is the right thing to call
    // Let's change 'bar' to be a PlaceOfBirth which indicates the cached reference is
    // out of date.
    eContext.setVariable("bar",new PlaceOfBirth("London"));
    o = expr.getValue(eContext);
    assertEquals("London", o);
    // That confirms the logic to mark the cached reference stale and retry is working

View Full Code Here

Examples of org.springframework.expression.spel.testresources.PlaceOfBirth

    setValue("placesLived[0].city", "Wien");
  }

  @Test
  public void testSetListElementValue() {
    setValue("placesLivedList[0]", new PlaceOfBirth("Wien"));
  }
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.