package com.tyleryates.util;

import org.junit.Before;
import org.junit.Test;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

@SuppressWarnings("JavaDoc")
public class WordTest {
    private Word word;

    @Before
    public void setUp() throws Exception {
        word = new Word("lottery");
    }

    @Test
    public void testCanMake() throws Exception {
        assertTrue(word.canMake(word));
        assertTrue(word.canMake("lot"));
        assertTrue(word.canMake("try"));
        assertTrue(word.canMake("let"));
        assertTrue(word.canMake(""));

        assertFalse(word.canMake("lotteries"));
        assertFalse(word.canMake("caring"));
    }
}
@@ -69,14 +69,124 @@
 nit.
-Test;%0A
+Rule;%0Aimport org.junit.Test;%0Aimport org.junit.rules.ExpectedException;%0A%0Aimport static org.junit.Assert.assertEquals;
 %0Aimp
@@ -331,116 +331,537 @@
     
-private Word word;%0A%0A    @Before%0A    public void setUp() throws Exception %7B%0A        word = new Word(%22lottery%22
+@Rule%0A    public final ExpectedException exception = ExpectedException.none();%0A%0A    private Word word;%0A    private static final String STRING = %22lottery%22;%0A%0A    @Before%0A    public void setUp() throws Exception %7B%0A        word = new Word(STRING);%0A    %7D%0A%0A    @Test%0A    public void testWordConstructor() %7B%0A        exception.expect(IllegalArgumentException.class);%0A        new Word(null);%0A    %7D%0A%0A    @Test%0A    public void testGetWord() %7B%0A        assertEquals(STRING, word.getString());%0A        assertEquals(%22%22, new Word(%22%22).getString()
 );%0A 

Add tests for Word class.