Examples of PluginDescription


Examples of honeycrm.client.misc.PluginDescription

      @Override
      public void onFailure(Throwable caught) {
      }
    });
    pluginService.request(new PluginRequest(new PluginDescription("foo", ""), "getSomething"), new AsyncCallback<PluginResponse>() {
      @Override
      public void onSuccess(PluginResponse result) {
        view.setResponse(result);
      }
     
View Full Code Here

Examples of honeycrm.client.misc.PluginDescription

      @Override
      public void onFailure(Throwable caught) {
      }
    });
    pluginService.request(new PluginRequest(new PluginDescription("foo", ""), "getSomething"), new AsyncCallback<PluginResponse>() {
      @Override
      public void onSuccess(PluginResponse result) {
        view.setResponse(result);
      }
     
View Full Code Here

Examples of honeycrm.client.misc.PluginDescription

  public void testGetPluginsAfterAddingNewPlugin() throws FileNotFoundException, IOException {
    final int pluginCount = pluginService.getPluginDescriptions().length;

    final PluginStore store = new PluginStore();
    store.createPlugin(new PluginDescription("foo", "new one"), new FileInputStream(FILE2));

    assertEquals(1 + pluginCount, pluginService.getPluginDescriptions().length);
  }
View Full Code Here

Examples of honeycrm.client.misc.PluginDescription

    super.setUp();
    store = new PluginStore();
  }

  public void testGetPluginDescription() {
    assertNotNull(store.getPluginDescriptionEntity(new PluginDescription("foo", "bar")));
  }
View Full Code Here

Examples of honeycrm.client.misc.PluginDescription

  public void testGetPluginDescription() {
    assertNotNull(store.getPluginDescriptionEntity(new PluginDescription("foo", "bar")));
  }

  public void testCreatePluginAddsPluginDescriptionEntity() throws FileNotFoundException, IOException {
    store.createPlugin(new PluginDescription("foo", "wohoo"), new FileInputStream(FILE2));
    final PreparedQuery pq = db.prepare(new Query(PluginDescription.class.getSimpleName()));
    assertEquals(1, pq.countEntities());
  }
View Full Code Here

Examples of honeycrm.client.misc.PluginDescription

    final PreparedQuery pq = db.prepare(new Query(PluginDescription.class.getSimpleName()));
    assertEquals(1, pq.countEntities());
  }

  public void testCreatePluginAddsTwoBytecodeEntities() throws FileNotFoundException, IOException {
    store.createPlugin(new PluginDescription("foo", "wohoo"), new FileInputStream(FILE2));
    final PreparedQuery pq = db.prepare(new Query(PluginClassBytecode.class.getSimpleName()));
    assertEquals(2, pq.countEntities());
  }
View Full Code Here

Examples of honeycrm.client.misc.PluginDescription

    assertEquals(2, pq.countEntities());
  }

  public void testCreatePluginCallInLessThanTenMilliseconds() throws IOException {
    final double count = 1000;
    final PluginDescription d = new PluginDescription("foo", "bar");
    final InputStream is = new FileInputStream(FILE2);

    final long time = Timer.getTime(new Command() {
      @Override
      public void execute() {
View Full Code Here

Examples of honeycrm.client.misc.PluginDescription

  public void testLoadPluginWithoutInstalledPlugins() {
    store.loadPlugin(null);
  }
 
  public void testLoadPluginWithTwoInstalledPlugins() throws FileNotFoundException, IOException {
    store.createPlugin(new PluginDescription("foo1", "wohoo"), new FileInputStream(FILE));
    store.createPlugin(new PluginDescription("foo2", "wohoo"), new FileInputStream(FILE2));
    store.loadPlugin("foo1");
  }
View Full Code Here

Examples of honeycrm.client.misc.PluginDescription

    store.createPlugin(new PluginDescription("foo2", "wohoo"), new FileInputStream(FILE2));
    store.loadPlugin("foo1");
  }
 
  public void testLoadNewlyCreatedPlugin() throws FileNotFoundException, IOException {
    store.createPlugin(new PluginDescription("foo1", "wohoo"), new FileInputStream(new File("AAA.jar")));
    store.loadPlugin("foo1");
  }
View Full Code Here

Examples of honeycrm.client.misc.PluginDescription

          log.warning("Got a form field: " + item.getFieldName());
        } else {
          log.warning("Got an uploaded file: " + item.getFieldName() + ", name = " + item.getName());

          // System.out.println("got " + item.getContentType() + " " + item.getName());
          store.createPlugin(new PluginDescription(item.getName(), ""), item.openStream());
        }
      }
    } catch (Exception ex) {
      throw new ServletException(ex);
    }
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.