Examples of TagImpl


Examples of org.apache.rave.portal.model.impl.TagImpl

    }

    @Test
    public void delete(){
        String id ="id";
        Tag tag = new TagImpl(id, "keyword");
        tagTemplate.remove(Query.query(Criteria.where("_id").is(id)));
        expectLastCall();
        replay(tagTemplate);

        repo.delete(tag);
View Full Code Here

Examples of org.apache.rave.portal.model.impl.TagImpl

    }

    private Tag getTag(String keyword) {
        Tag tag = tagService.getTagByKeyword(keyword);
        if (tag == null) {
            tag = new TagImpl(keyword);
            tag = tagService.save(tag);
        }
        return tag;
    }
View Full Code Here

Examples of org.apache.rave.portal.model.impl.TagImpl

        verify(repository);
    }

    @Test
    public void getLimitedList() {
        Tag tag1 = new TagImpl("1", "tag");
        Tag tag2 = new TagImpl("2", "fakeTag");
        List<Tag> tags = new ArrayList<Tag>();
        tags.add(tag1);
        tags.add(tag2);
        final int pageSize = 10;
        expect(repository.getCountAll()).andReturn(2);
View Full Code Here

Examples of org.apache.rave.portal.model.impl.TagImpl

        verify(repository);
    }


    private static Tag createTag(String keyword) {
        TagImpl tag = new TagImpl(keyword);
        return tag;
    }
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.