package com.deuteriumlabs.dendrite.unittest;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;

import org.junit.Ignore;
import org.junit.Test;

import com.deuteriumlabs.dendrite.model.StoryPage;

public class StoryPageTest {
    final static String IMPLEMENT_ME = "Not implemented yet";
    final static String NOT_WRITTEN = "This page has not been written yet.";

    @Test
    public void testDefaultConstructor() {
        final StoryPage storyPage = new StoryPage();
        assertNull(storyPage.getBeginning());
        assertNull(storyPage.getAncestry());
        assertNull(storyPage.getAuthorId());
        assertNull(storyPage.getAuthorName());
        assertNull(storyPage.getBeginning());
        assertNull(storyPage.getFormerlyLovingUsers());
        assertNull(storyPage.getId());
        assertNull(storyPage.getLovingUsers());
        assertNull(storyPage.getParent());
        assertTrue(storyPage.getTags().isEmpty());
        assertEquals(storyPage.getLongSummary(), NOT_WRITTEN);
    }

    @Ignore(IMPLEMENT_ME)
    @Test
    public void testConstructorWithEntity() {
        fail(IMPLEMENT_ME);
    }

    @Ignore(IMPLEMENT_ME)
    @Test
    public void testCreate() {
        fail(IMPLEMENT_ME);
    }

    @Ignore(IMPLEMENT_ME)
    @Test
    public void testGetAncestry() {
        fail(IMPLEMENT_ME);
    }
}
@@ -1112,32 +1112,103 @@
 RITTEN);%0A    %7D%0A%0A
+    // TODO Set up a test database and construct an existing StoryPage%0A
     @Ignore(IMPL
@@ -1209,32 +1209,32 @@
 e(IMPLEMENT_ME)%0A
-
     @Test%0A    pu
@@ -1300,32 +1300,90 @@
 ENT_ME);%0A    %7D%0A%0A
+    // TODO Set up a test database and create a StoryPage%0A
     @Ignore(IMPL
@@ -1464,24 +1464,89 @@
 ME);%0A    %7D%0A%0A
+    // TODO Set up a test database and query a created StoryPage%0A
     @Ignore(

Add TODO notes