Package javax.el

Examples of javax.el.TestContext


    context.putContext(Integer.class, "foo");
    assertEquals("foo", context.getContext(Integer.class));
  }

  public void testLocale() {
    ELContext context = new TestContext();
    assertNull(context.getLocale());
    context.setLocale(Locale.ENGLISH);
    assertEquals(Locale.ENGLISH, context.getLocale());
  }
View Full Code Here


    context.setLocale(Locale.ENGLISH);
    assertEquals(Locale.ENGLISH, context.getLocale());
  }

  public void testPropertyResolved() {
    ELContext context = new TestContext();
    assertFalse(context.isPropertyResolved());
    context.setPropertyResolved(true);
    assertTrue(context.isPropertyResolved());
  }
View Full Code Here

TOP

Related Classes of javax.el.TestContext

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.