Examples of GalleryItemCategory


Examples of org.eurekastreams.server.domain.GalleryItemCategory

        // this simulates a successful callback
        final PagedSet<GadgetDefinition> pagedSet = new PagedSet<GadgetDefinition>();
        for (int i = 0; i < 8; i++)
        {
            GadgetDefinition gadgetDef = new GadgetDefinition("http://www.example.com", UUID.randomUUID().toString(),
                    new GalleryItemCategory("somecategory"));
            pagedSet.getPagedSet().add(gadgetDef);
        }

        context.checking(new Expectations()
        {
View Full Code Here

Examples of org.eurekastreams.server.domain.GalleryItemCategory

     */
    @Test
    public void sutinitionConstructor()
    {
        String gadgetUrl = "http://www.example.com";
        GalleryItemCategory gic = new GalleryItemCategory("face");
        Person person = new Person();

        sut = new PluginDefinition();

        sut.setUrl(gadgetUrl);
View Full Code Here

Examples of org.eurekastreams.server.domain.GalleryItemCategory

     */
    private List<Gadget> makeGadgets()
    {
        List<Gadget> gadgetList = new ArrayList<Gadget>();
        gadgetList.add(new Gadget(new GadgetDefinition("gadget0", UUID.randomUUID().toString(),
                 new GalleryItemCategory("somecategory")), 0, 0, new Person(), ""));
        gadgetList.add(new Gadget(new GadgetDefinition("gadget1", UUID.randomUUID().toString(),
                 new GalleryItemCategory("somecategory")), 0, 1, new Person(), ""));
        gadgetList.add(new Gadget(new GadgetDefinition("gadget2", UUID.randomUUID().toString(),
                 new GalleryItemCategory("somecategory")), 1, 0, new Person(), ""));
        gadgetList.add(new Gadget(new GadgetDefinition("gadget3", UUID.randomUUID().toString(),
                 new GalleryItemCategory("somecategory")), 1, 1, new Person(), ""));
        gadgetList.add(new Gadget(new GadgetDefinition("gadget4", UUID.randomUUID().toString(),
                 new GalleryItemCategory("somecategory")), 1, 2, new Person(), ""));
        gadgetList.add(new Gadget(new GadgetDefinition("gadget5", UUID.randomUUID().toString(),
                 new GalleryItemCategory("somecategory")), 2, 0, new Person(), ""));
        gadgetList.add(new Gadget(new GadgetDefinition("gadget6", UUID.randomUUID().toString(),
                 new GalleryItemCategory("somecategory")), 2, 1, new Person(), ""));

        return gadgetList;
    }
View Full Code Here

Examples of org.eurekastreams.server.domain.GalleryItemCategory

        sut.shrink(AVAILABLE_ZONES, gadgets);

        assertEquals("Gadgets changed size.", gadgetCount, gadgets.size());

        verifyGadget(gadgets.get(0), new GadgetDefinition("gadget0", UUID.randomUUID().toString(),
                 new GalleryItemCategory("somecategory")), 0, 0);
        verifyGadget(gadgets.get(1), new GadgetDefinition("gadget1", UUID.randomUUID().toString(),
                 new GalleryItemCategory("somecategory")), 0, 1);
        verifyGadget(gadgets.get(2), new GadgetDefinition("gadget2", UUID.randomUUID().toString(),
                 new GalleryItemCategory("somecategory")), 1, 0);
        verifyGadget(gadgets.get(3), new GadgetDefinition("gadget3", UUID.randomUUID().toString(),
                 new GalleryItemCategory("somecategory")), 1, 1);
        verifyGadget(gadgets.get(4), new GadgetDefinition("gadget4", UUID.randomUUID().toString(),
                 new GalleryItemCategory("somecategory")), 1, 2);
        verifyGadget(gadgets.get(5), new GadgetDefinition("gadget5", UUID.randomUUID().toString(),
                 new GalleryItemCategory("somecategory")), 1, 3);
        verifyGadget(gadgets.get(6), new GadgetDefinition("gadget6", UUID.randomUUID().toString(),
                 new GalleryItemCategory("somecategory")), 1, 4);

    }
View Full Code Here

Examples of org.eurekastreams.server.domain.GalleryItemCategory

        final Theme theme = new Theme(themeUrl, themeName, themeDesc, null, null, null, personName, personEmail);

        final HashMap<String, Serializable> formData = new HashMap<String, Serializable>();
        formData.put("url", themeUrl);
        formData.put("category", themeCategory);
        final GalleryItemCategory galleryItemCategory = new GalleryItemCategory(themeCategory);

        final String url = themeUrl;
        final String category = themeCategory;

        final Map<String, Serializable> fields = new HashMap<String, Serializable>();
View Full Code Here

Examples of org.eurekastreams.server.domain.GalleryItemCategory

     */
    @Test
    public final void testExecuteWithPlugin() throws Exception
    {

        final GalleryItemCategory galleryItemCategory = new GalleryItemCategory("CITY");

        final String urlPath = "src/main/webapp/plugin/plugin.xml";

        final PluginDefinition pluginDef = new PluginDefinition();
        pluginDef.setUpdateFrequency(9L);
View Full Code Here

Examples of org.eurekastreams.server.domain.GalleryItemCategory

        String message = "mapper should return correct list of gadget definitions";

        final ArrayList<GalleryItemCategory> list = new ArrayList<GalleryItemCategory>();
        for (int i = 0; i < 8; i++)
        {
            GalleryItemCategory gadgetCategory = new GalleryItemCategory("somecategory");
            list.add(gadgetCategory);
        }

        context.checking(new Expectations()
        {
View Full Code Here

Examples of org.eurekastreams.server.domain.GalleryItemCategory

        // set the url
        galleryItem.setUrl(galleryItemUrl);

        // get the category
        GalleryItemCategory galleryItemCategory = galleryItemCategoryMapper.findByName(galleryItemType, category);

        log.debug("Search for gallery item using galleryItemType: " + galleryItemType + "and category: " + category
                + " returned: " + galleryItemCategory);

        // set the category
View Full Code Here

Examples of org.eurekastreams.server.domain.GalleryItemCategory

            gtt.setTabTemplate(newTabTemplate);
            gtt.setTitle(newTabTemplate.getTabName());
        }

        // get/create the category and set it.
        GalleryItemCategory galleryItemCategory = galleryItemCategoryMapper.findByName(GalleryItemType.TAB, category);
        gtt.setCategory(galleryItemCategory);

        // set the description
        gtt.setDescription(description);
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.