Examples of author()


Examples of com.godshawk.lib.annotations.modularity.Plugin.author()

    public PluginMetadata generateMetadata(Class<? extends IPlugin> plugin) {
        if (!plugin.isAnnotationPresent(Plugin.class)) {
            throw new IllegalArgumentException(String.format("Plugin %s is not annotated!", plugin.getSimpleName()));
        }
        Plugin pl = plugin.getDeclaredAnnotation(Plugin.class);
        return new PluginMetadata(pl.name(), pl.id(), pl.author(), pl.type());
    }

    public void internalPluginLoad(Class<? extends IPlugin> pluginClass) {
        try {
            PluginMetadata metadata = generateMetadata(pluginClass);
View Full Code Here

Examples of com.saasovation.collaboration.domain.model.forum.Discussion.author()

        assertNotNull(discussionData);
        assertEquals(discussion.discussionId().id(), discussionData.getDiscussionId());
        assertEquals(discussion.forumId().id(), discussionData.getForumId());
        assertEquals(discussion.tenant().id(), discussionData.getTenantId());
        assertEquals(discussion.author().emailAddress(), discussionData.getAuthorEmailAddress());
        assertEquals(discussion.author().identity(), discussionData.getAuthorIdentity());
        assertEquals(discussion.author().name(), discussionData.getAuthorName());
        assertEquals(discussion.subject(), discussionData.getSubject());
        assertEquals(discussion.exclusiveOwner(), discussionData.getExclusiveOwner());
        assertEquals(discussion.isClosed(), discussionData.isClosed());
View Full Code Here

Examples of com.saasovation.collaboration.domain.model.forum.Discussion.author()

        assertNotNull(discussionData);
        assertEquals(discussion.discussionId().id(), discussionData.getDiscussionId());
        assertEquals(discussion.forumId().id(), discussionData.getForumId());
        assertEquals(discussion.tenant().id(), discussionData.getTenantId());
        assertEquals(discussion.author().emailAddress(), discussionData.getAuthorEmailAddress());
        assertEquals(discussion.author().identity(), discussionData.getAuthorIdentity());
        assertEquals(discussion.author().name(), discussionData.getAuthorName());
        assertEquals(discussion.subject(), discussionData.getSubject());
        assertEquals(discussion.exclusiveOwner(), discussionData.getExclusiveOwner());
        assertEquals(discussion.isClosed(), discussionData.isClosed());
    }
View Full Code Here

Examples of com.saasovation.collaboration.domain.model.forum.Discussion.author()

        assertEquals(discussion.discussionId().id(), discussionData.getDiscussionId());
        assertEquals(discussion.forumId().id(), discussionData.getForumId());
        assertEquals(discussion.tenant().id(), discussionData.getTenantId());
        assertEquals(discussion.author().emailAddress(), discussionData.getAuthorEmailAddress());
        assertEquals(discussion.author().identity(), discussionData.getAuthorIdentity());
        assertEquals(discussion.author().name(), discussionData.getAuthorName());
        assertEquals(discussion.subject(), discussionData.getSubject());
        assertEquals(discussion.exclusiveOwner(), discussionData.getExclusiveOwner());
        assertEquals(discussion.isClosed(), discussionData.isClosed());
    }
View Full Code Here

Examples of com.saasovation.collaboration.domain.model.forum.Discussion.author()

        assertNotNull(discussionPostsData);
        assertEquals(discussion.discussionId().id(), discussionPostsData.getDiscussionId());
        assertEquals(discussion.forumId().id(), discussionPostsData.getForumId());
        assertEquals(discussion.tenant().id(), discussionPostsData.getTenantId());
        assertEquals(discussion.author().emailAddress(), discussionPostsData.getAuthorEmailAddress());
        assertEquals(discussion.author().identity(), discussionPostsData.getAuthorIdentity());
        assertEquals(discussion.author().name(), discussionPostsData.getAuthorName());
        assertEquals(discussion.subject(), discussionPostsData.getSubject());
        assertEquals(discussion.exclusiveOwner(), discussionPostsData.getExclusiveOwner());
        assertEquals(discussion.isClosed(), discussionPostsData.isClosed());
View Full Code Here

Examples of com.saasovation.collaboration.domain.model.forum.Discussion.author()

        assertNotNull(discussionPostsData);
        assertEquals(discussion.discussionId().id(), discussionPostsData.getDiscussionId());
        assertEquals(discussion.forumId().id(), discussionPostsData.getForumId());
        assertEquals(discussion.tenant().id(), discussionPostsData.getTenantId());
        assertEquals(discussion.author().emailAddress(), discussionPostsData.getAuthorEmailAddress());
        assertEquals(discussion.author().identity(), discussionPostsData.getAuthorIdentity());
        assertEquals(discussion.author().name(), discussionPostsData.getAuthorName());
        assertEquals(discussion.subject(), discussionPostsData.getSubject());
        assertEquals(discussion.exclusiveOwner(), discussionPostsData.getExclusiveOwner());
        assertEquals(discussion.isClosed(), discussionPostsData.isClosed());
View Full Code Here

Examples of com.saasovation.collaboration.domain.model.forum.Discussion.author()

        assertEquals(discussion.discussionId().id(), discussionPostsData.getDiscussionId());
        assertEquals(discussion.forumId().id(), discussionPostsData.getForumId());
        assertEquals(discussion.tenant().id(), discussionPostsData.getTenantId());
        assertEquals(discussion.author().emailAddress(), discussionPostsData.getAuthorEmailAddress());
        assertEquals(discussion.author().identity(), discussionPostsData.getAuthorIdentity());
        assertEquals(discussion.author().name(), discussionPostsData.getAuthorName());
        assertEquals(discussion.subject(), discussionPostsData.getSubject());
        assertEquals(discussion.exclusiveOwner(), discussionPostsData.getExclusiveOwner());
        assertEquals(discussion.isClosed(), discussionPostsData.isClosed());

        assertNotNull(discussionPostsData.getPosts());
View Full Code Here

Examples of com.saasovation.collaboration.domain.model.forum.Discussion.author()

                DomainRegistry
                    .discussionRepository()
                    .discussionOfId(forum.tenant(), new DiscussionId(this.discussionId));

        assertNotNull(newlyStartedDiscussion);
        assertEquals("authorId1", newlyStartedDiscussion.author().identity());
        assertEquals("Discussion Subject", newlyStartedDiscussion.subject());
    }
}
View Full Code Here

Examples of com.saasovation.collaboration.domain.model.forum.Post.author()

                            discussion.tenant(),
                            new PostId(postId));

        assertNotNull(discussionId);
        assertNotNull(post);
        assertEquals("authorId1", post.author().identity());
        assertEquals("Post Test", post.subject());
        assertEquals("Post test text...", post.bodyText());
    }

    public void testPostToDiscussionInReplyTo() throws Exception {
View Full Code Here

Examples of com.saasovation.collaboration.domain.model.forum.Post.author()

                            new PostId(postId));

        assertNotNull(discussionId);
        assertNotNull(inReplyToPostId);
        assertNotNull(postedInReplyTo);
        assertEquals("authorId2", postedInReplyTo.author().identity());
        assertEquals("Post In Reply To Test", postedInReplyTo.subject());
        assertEquals("Post test text in reply to...", postedInReplyTo.bodyText());
    }

    public void testReopenDiscussion() throws Exception {
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.