package com.deuteriumlabs.dendrite.unittest;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
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.PageId;
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);
    }

    @Test
    public void testGetAncestry() {
        final StoryPage storyPage = new StoryPage();
        assertNull(storyPage.getAncestry());
    }
}
@@ -88,54 +88,8 @@
 ls;%0A
-import static org.junit.Assert.assertNotNull;%0A
 impo
@@ -261,56 +261,8 @@
 t;%0A%0A
-import com.deuteriumlabs.dendrite.model.PageId;%0A
 impo
@@ -1335,24 +1335,50 @@
 ME);%0A    %7D%0A%0A
+    @Ignore(IMPLEMENT_ME)%0A
     @Test%0A  
@@ -1424,94 +1424,24 @@
    f
-inal StoryPage storyPage = new StoryPage();%0A        assertNull(storyPage.getAncestry()
+ail(IMPLEMENT_ME
 );%0A 

Remove test for null result