Examples of MockApplication


Examples of com.sun.faces.mock.MockApplication

    }

    public void setUp() throws Exception {
        super.setUp();
        facesContext = new MockFacesContext();
        facesContext.setApplication(new MockApplication());
    }
View Full Code Here

Examples of juzu.test.protocol.mock.MockApplication

    super(di);
  }

  @Test
  public void testValidation() throws Exception {
    MockApplication app = application("juzu.simple").init();
    MockClient client = app.client();
    MockViewBridge render = client.render();
    ValidationError va = assertInstanceOf(ValidationError.class, render.getResponse());
    Set<ConstraintViolation<Object>> violations = va.getViolations();
    assertEquals(1, violations.size());
    ConstraintViolation<Object> violation = violations.iterator().next();
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.MockApplication

    }
    id = new UidIdentifier();
    messageHandler = new MockMessageHandler();
    props = new SessionProperties();
    props.setLoadSchemasCatalogs(false);
    app = new MockApplication();
    app.getMockSessionManager().setSession(this);
    sqlAlias = new SQLAlias(new UidIdentifier());
    schemaInfo = new SchemaInfo(app);
    schemaInfo.initialLoad(this);
    prefs = app.getSquirrelPreferences();
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.MockApplication

      }
      id = new UidIdentifier();
      messageHandler = new MockMessageHandler();
      props = new SessionProperties();
      props.setLoadSchemasCatalogs(false);
      app = new MockApplication();
      app.getMockSessionManager().setSession(this);
      sqlAlias = new SQLAlias(new UidIdentifier());
      schemaInfo = new SchemaInfo(app);
      schemaInfo.initialLoad(this);
      prefs = app.getSquirrelPreferences();
View Full Code Here

Examples of org.apache.shale.test.mock.MockApplication

        root.setViewId("/viewId");
        root.setRenderKitId(RenderKitFactory.HTML_BASIC_RENDER_KIT);
        facesContext.setViewRoot(root);
        ApplicationFactory applicationFactory = (ApplicationFactory)
        FactoryFinder.getFactory(FactoryFinder.APPLICATION_FACTORY);
        application = new MockApplication();
        applicationFactory.setApplication(application);
        facesContext.setApplication(application);
        RenderKitFactory renderKitFactory = (RenderKitFactory)
        FactoryFinder.getFactory(FactoryFinder.RENDER_KIT_FACTORY);
        renderKit = new MockRenderKit();
View Full Code Here

Examples of org.apache.wicket.mock.MockApplication

public class DefaultExceptionMapperTest extends WicketTestCase
{
  @Override
  protected WebApplication newApplication()
  {
    return new MockApplication()
    {
      @Override
      protected void init()
      {
        getExceptionSettings().setUnexpectedExceptionDisplay(
View Full Code Here

Examples of org.apache.wicket.mock.MockApplication

  public void notModifiedResponseIncludesExpiresHeader() throws IOException, ServletException,
    ParseException
  {
    try
    {
      application = new MockApplication();
      WicketFilter filter = new WicketFilter();
      filter.init(new FilterTestingConfig());
      ThreadContext.setApplication(application);
      DynamicImageResource resource = new DynamicImageResource()
      {
View Full Code Here

Examples of org.apache.wicket.mock.MockApplication

   * @throws Exception
   */
  @Test
  public void ignorePaths() throws Exception
  {
    application = spy(new MockApplication());
    WicketFilter filter = new WicketFilter();
    filter.init(new FilterTestingConfig());

    HttpServletRequest request = mock(HttpServletRequest.class);
    when(request.getLocale()).thenReturn(new Locale("bg", "BG"));
View Full Code Here

Examples of org.apache.wicket.mock.MockApplication

   * Creates <code>WicketTester</code> and automatically create a <code>WebApplication</code>, but
   * the tester will have no home page.
   */
  public BaseWicketTester()
  {
    this(new MockApplication());
  }
View Full Code Here

Examples of org.apache.wicket.mock.MockApplication

   * @param homePage
   *            a home page <code>Class</code>
   */
  public <C extends Page> BaseWicketTester(final Class<C> homePage)
  {
    this(new MockApplication()
    {
      @Override
      public Class<? extends Page> getHomePage()
      {
        return homePage;
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.