@Test public void execute() { List<PluginDefinition> plugins = sut.execute(new EmptyRequest()); assertEquals(3, plugins.size()); }
@SuppressWarnings("unchecked") @Override public List<PluginDefinition> execute(final EmptyRequest inRequest) { return getEntityManager().createQuery("FROM PluginDefinition where showInGallery=true").getResultList(); }
GetAllPluginsMapper extends ReadMapper<EmptyRequest, List<PluginDefinition>> { @SuppressWarnings("unchecked") @Override public List<PluginDefinition> execute(final EmptyRequest inRequest) { return getEntityManager().createQuery("FROM PluginDefinition where showInGallery=true").getResultList(); } }
GetAllPluginsMapper extends ReadMapper<EmptyRequest, List<PluginDefinition>> { @SuppressWarnings("unchecked") @Override public List<PluginDefinition> execute(final EmptyRequest inRequest) { return getEntityManager().createQuery("FROM PluginDefinition where showInGallery=true").getResultList(); }  }
GetAllPluginsMapper extends ReadMapper<EmptyRequest, List<PluginDefinition>> { @SuppressWarnings("unchecked") @Override public List<PluginDefinition> execute(final EmptyRequest inRequest) { return getEntityManager().createQuery("FROM PluginDefinition where showInGallery=true").getResultList(); }  @SuppressWarnings("unchecked") @Override List<PluginDefinition> execute(final EmptyRequest inRequest); }
GetAllPluginsMapper extends ReadMapper<EmptyRequest, List<PluginDefinition>> { @SuppressWarnings("unchecked") @Override public List<PluginDefinition> execute(final EmptyRequest inRequest) { return getEntityManager().createQuery("FROM PluginDefinition where showInGallery=true").getResultList(); }  @SuppressWarnings("unchecked") @Override List<PluginDefinition> execute(final EmptyRequest inRequest);  }