package jp.toastkid.article.search;

import static org.junit.Assert.assertNotNull;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;

import org.junit.Test;

/**
 * Test of {@link SearchResult}.
 * @author Toast kid
 *
 */
public class SearchResultTest {

    /**
     * Test of {@link SearchResult} constructor.
     * @throws IOException
     */
    @Test
    public void testSearchResult() throws IOException {
        final Path path = Files.createTempFile("temp", ".txt");
        final SearchResult searchResult = new SearchResult(path.toString());
        assertNotNull(searchResult.toString());
    }

    /**
     * Test of {@link SearchResult#makeSimple(String)}.
     *
     * @throws IOException
     */
    @Test
    public void testMakeSimple() throws IOException {
        final Path path = Files.createTempFile("temp", ".txt");
        final SearchResult simple = SearchResult.makeSimple(path.toString());
        assertNotNull(simple);
    }

}

@@ -34,55 +34,8 @@
 h;%0A%0A
-import static org.junit.Assert.assertNotNull;%0A%0A
 impo
@@ -138,16 +138,51 @@
 .Test;%0A%0A
+import static org.junit.Assert.*;%0A%0A
 /**%0A * T
@@ -614,24 +614,317 @@
 oString());%0A
+        assertNotNull(searchResult.filePath());%0A        assertTrue(searchResult.getOrEmpty(%22%22).isEmpty());%0A        assertTrue(0 %3C searchResult.lastModified());%0A        assertTrue(searchResult.mapIsEmpty());%0A        assertSame(0, searchResult.size());%0A        assertNull(searchResult.title());%0A
     %7D%0A%0A    /

Modify unit test of search result.