Package com.saasovation.collaboration.domain.model.forum

Examples of com.saasovation.collaboration.domain.model.forum.Forum.description()


    public void testChangeForumDescription() throws Exception {

        Forum forum = this.forumAggregate();

        assertFalse("A changed description.".equals(forum.description()));

        DomainRegistry.forumRepository().save(forum);

        forumApplicationService
            .changeForumDescription(
View Full Code Here


                    .forumOfId(
                            forum.tenant(),
                            forum.forumId());

        assertNotNull(forum);
        assertEquals("A changed description.", forum.description());
    }

    public void testChangeForumSubject() throws Exception {

        Forum forum = this.forumAggregate();
View Full Code Here

        assertEquals(forum.forumId().id(), forumData.getForumId());
        assertEquals(forum.tenant().id(), forumData.getTenantId());
        assertEquals(forum.creator().emailAddress(), forumData.getCreatorEmailAddress());
        assertEquals(forum.creator().identity(), forumData.getCreatorIdentity());
        assertEquals(forum.creator().name(), forumData.getCreatorName());
        assertEquals(forum.description(), forumData.getDescription());
        assertEquals(forum.exclusiveOwner(), forumData.getExclusiveOwner());
        assertEquals(forum.isClosed(), forumData.isClosed());
        assertEquals(forum.subject(), forumData.getSubject());
        assertEquals(forum.moderator().emailAddress(), forumData.getModeratorEmailAddress());
        assertEquals(forum.moderator().identity(), forumData.getModeratorIdentity());
View Full Code Here

        assertEquals(forum.forumId().id(), forumDiscussionsData.getForumId());
        assertEquals(forum.tenant().id(), forumDiscussionsData.getTenantId());
        assertEquals(forum.creator().emailAddress(), forumDiscussionsData.getCreatorEmailAddress());
        assertEquals(forum.creator().identity(), forumDiscussionsData.getCreatorIdentity());
        assertEquals(forum.creator().name(), forumDiscussionsData.getCreatorName());
        assertEquals(forum.description(), forumDiscussionsData.getDescription());
        assertEquals(forum.exclusiveOwner(), forumDiscussionsData.getExclusiveOwner());
        assertEquals(forum.isClosed(), forumDiscussionsData.isClosed());
        assertEquals(forum.subject(), forumDiscussionsData.getSubject());
        assertEquals(forum.moderator().emailAddress(), forumDiscussionsData.getModeratorEmailAddress());
        assertEquals(forum.moderator().identity(), forumDiscussionsData.getModeratorIdentity());
View Full Code Here

        forumApplicationService.startForum(
                forum.tenant().id(),
                forum.creator().identity(),
                forum.moderator().identity(),
                forum.subject(),
                forum.description(),
                result);

        assertNotNull(this.forumId);

        Forum newlyStartedForum =
View Full Code Here

        assertEquals(forum.tenant(), newlyStartedForum.tenant());
        assertEquals(this.forumId, newlyStartedForum.forumId().id());
        assertEquals(forum.creator().identity(), newlyStartedForum.creator().identity());
        assertEquals(forum.moderator().identity(), newlyStartedForum.moderator().identity());
        assertEquals(forum.subject(), newlyStartedForum.subject());
        assertEquals(forum.description(), newlyStartedForum.description());
    }

    public void testStartExclusiveForum() throws Exception {

        Forum forum = this.forumAggregate();
View Full Code Here

                forum.tenant().id(),
                exclusiveOwner,
                forum.creator().identity(),
                forum.moderator().identity(),
                forum.subject(),
                forum.description(),
                result);

        assertNotNull(this.forumId);

        Forum newlyStartedForum =
View Full Code Here

        assertEquals(forum.tenant(), newlyStartedForum.tenant());
        assertEquals(this.forumId, newlyStartedForum.forumId().id());
        assertEquals(forum.creator().identity(), newlyStartedForum.creator().identity());
        assertEquals(forum.moderator().identity(), newlyStartedForum.moderator().identity());
        assertEquals(forum.subject(), newlyStartedForum.subject());
        assertEquals(forum.description(), newlyStartedForum.description());
        assertEquals(exclusiveOwner, newlyStartedForum.exclusiveOwner());
    }

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

                exclusiveOwner,
                forum.creator().identity(),
                forum.moderator().identity(),
                "authorId1",
                forum.subject(),
                forum.description(),
                "Discussion Subject",
                result);

        assertNotNull(this.forumId);
        assertNotNull(this.discussionId);
View Full Code Here

        assertEquals(forum.tenant(), newlyStartedForum.tenant());
        assertEquals(this.forumId, newlyStartedForum.forumId().id());
        assertEquals(forum.creator().identity(), newlyStartedForum.creator().identity());
        assertEquals(forum.moderator().identity(), newlyStartedForum.moderator().identity());
        assertEquals(forum.subject(), newlyStartedForum.subject());
        assertEquals(forum.description(), newlyStartedForum.description());
        assertEquals(exclusiveOwner, newlyStartedForum.exclusiveOwner());

        Discussion newlyStartedDiscussion =
                DomainRegistry
                    .discussionRepository()
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.