Package org.eurekastreams.server.domain.stream

Examples of org.eurekastreams.server.domain.stream.HashTag


        final List<String> hashTagContents = new ArrayList<String>();
        hashTagContents.add("#there");
        hashTagContents.add("#potato");

        final List<HashTag> hashTags = new ArrayList<HashTag>();
        hashTags.add(new HashTag("#there"));
        hashTags.add(new HashTag("#potato"));

        context.checking(new Expectations()
        {
            {
                allowing(activity).getId();
View Full Code Here


        final List<String> hashTagContents = new ArrayList<String>();
        hashTagContents.add("#there");
        hashTagContents.add("#potato");

        final List<HashTag> hashTags = new ArrayList<HashTag>();
        hashTags.add(new HashTag("#there"));
        hashTags.add(new HashTag("#potato"));

        context.checking(new Expectations()
        {
            {
                allowing(activity).getId();
View Full Code Here

        List<String> existingHashTagContents = new ArrayList<String>();
        existingHashTagContents.add("potato");
        existingHashTagContents.add("#rice");

        List<HashTag> existingHashTags = new ArrayList<HashTag>();
        existingHashTags.add(new HashTag("potato"));
        existingHashTags.add(new HashTag("#rice"));

        sut.refresh(existingHashTagContents, existingHashTags);

        // make sure all of the hashtags were replaced with database entities
        assertAllHashTagsHaveIds(existingHashTags);
View Full Code Here

        existingHashTagContents.add("#bar");
        existingHashTagContents.add("potato");
        existingHashTagContents.add("#rice");

        List<HashTag> existingHashTags = new ArrayList<HashTag>();
        existingHashTags.add(new HashTag("potato"));
        existingHashTags.add(new HashTag("#rice"));
        existingHashTags.addAll(getEntityManager().createQuery("FROM HashTag WHERE id IN(1,2)").getResultList());

        sut.refresh(existingHashTagContents, existingHashTags);

        // make sure all of the hashtags were replaced with database entities
View Full Code Here

            {
                log.trace("Inserting hashtag " + content + " in the database.");
            }

            // INSERT the hastag
            HashTag ht = new HashTag(content);
            getEntityManager().persist(ht);
            inHashTags.add(ht);
        }
    }
View Full Code Here

        }

        List<HashTag> results = new ArrayList<HashTag>();
        for (String htContent : hashTagContents)
        {
            results.add(new HashTag(htContent));
        }
        return results;
    }
View Full Code Here

TOP

Related Classes of org.eurekastreams.server.domain.stream.HashTag

Copyright © 2018 www.massapicom. 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.