Examples of UIProviderImpl


Examples of org.jboss.forge.addon.ui.test.impl.UIProviderImpl

   public UIProviderImpl getProvider()
   {
      if (providerImpl == null)
      {
         providerImpl = new UIProviderImpl(true);
      }
      return providerImpl;
   }
View Full Code Here

Examples of org.jboss.forge.addon.ui.test.impl.UIProviderImpl

   public UIProviderImpl getProvider()
   {
      if (providerImpl == null)
      {
         providerImpl = new UIProviderImpl(true);
      }
      return providerImpl;
   }
View Full Code Here

Examples of org.jboss.forge.addon.ui.test.impl.UIProviderImpl

   public UIProviderImpl getProvider()
   {
      if (providerImpl == null)
      {
         providerImpl = new UIProviderImpl(true);
      }
      return providerImpl;
   }
View Full Code Here

Examples of org.jboss.forge.ui.test.impl.UIProviderImpl

   public static WizardTesterImpl<?> create(Class<?> wizardClass, AddonRegistry addonRegistry,
            Resource<?>... initialSelection) throws Exception
   {
      Imported<UIContextListener> listeners = addonRegistry.getServices(UIContextListener.class);
      UISelection<Resource<?>> selection = Selections.from(initialSelection);
      UIContextImpl context = new UIContextImpl(new UIProviderImpl(true), listeners, selection);
      return new WizardTesterImpl(wizardClass, addonRegistry, context);
   }
View Full Code Here

Examples of org.jboss.forge.ui.test.impl.UIProviderImpl

   public static CommandTesterImpl<?> create(Class<?> commandClass, AddonRegistry addonRegistry,
            Resource<?>... initialSelection) throws Exception
   {
      Imported<UIContextListener> listeners = addonRegistry.getServices(UIContextListener.class);
      UISelection<Resource<?>> selection = Selections.from(initialSelection);
      UIContextImpl context = new UIContextImpl(new UIProviderImpl(true), listeners, selection);
      return new CommandTesterImpl(commandClass, addonRegistry, context);
   }
View Full Code Here

Examples of org.jboss.forge.ui.test.impl.UIProviderImpl

   public UIProviderImpl getProvider()
   {
      if (providerImpl == null)
      {
         providerImpl = new UIProviderImpl(true);
      }
      return providerImpl;
   }
View Full Code Here

Examples of org.jboss.forge.ui.test.impl.UIProviderImpl

   public CommandController createCommandController(Class<? extends UICommand> commandClass,
            Resource<?>... initialSelection) throws Exception
   {
      Imported<UIContextListener> listeners = addonRegistry.getServices(UIContextListener.class);
      UISelection<Resource<?>> selection = Selections.from(initialSelection);
      UIContextImpl context = new UIContextImpl(new UIProviderImpl(true), listeners, selection);
      return factory
               .createSingleController(context, addonRegistry.getServices(commandClass).get(), new UIRuntimeImpl());
   }
View Full Code Here

Examples of org.jboss.forge.ui.test.impl.UIProviderImpl

   public WizardCommandController createWizardController(Class<? extends UIWizard> wizardClass,
            Resource<?>... initialSelection) throws Exception
   {
      Imported<UIContextListener> listeners = addonRegistry.getServices(UIContextListener.class);
      UISelection<Resource<?>> selection = Selections.from(initialSelection);
      UIContextImpl context = new UIContextImpl(new UIProviderImpl(true), listeners, selection);
      return factory.createWizardController(context, addonRegistry.getServices(wizardClass).get(),
               new UIRuntimeImpl());
   }
View Full Code Here

Examples of org.jboss.forge.ui.test.impl.UIProviderImpl

   public UIProviderImpl getProvider()
   {
      if (providerImpl == null)
      {
         providerImpl = new UIProviderImpl(true);
      }
      return providerImpl;
   }
View Full Code Here

Examples of org.talend.esb.sam.server.ui.UIProviderImpl

  @SuppressWarnings("unchecked")
  private JsonObject fetchResult(Capture<RowMapper<JsonObject>> mapper,
      Capture<PreparedStatementCreator> creator, Map<String, String[]> parameters) {
    List<Number> countRes = new ArrayList<Number>();
    countRes.add(10);
    UIProviderImpl provider = new UIProviderImpl();
    JdbcTemplate template = EasyMock.createMock(JdbcTemplate.class);
    provider.setJdbcTemplate(template);
    provider.setDialect(new DerbyDialect());

    // Expectations
    EasyMock.expect(template.query(EasyMock.anyObject(PreparedStatementCreator.class), EasyMock.anyObject(RowMapper.class)))
        .andReturn(countRes);
    EasyMock.expect(
        template.query(EasyMock.capture(creator),
            EasyMock.capture(mapper))).andReturn(
        objects);
    // Test
    EasyMock.replay(template);
    JsonObject result = provider.getEvents(0, "base", new CriteriaAdapter(0, 100,
        parameters));
    EasyMock.verify(template);
    return result;
  }
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.