forked from DavidMatuszek/SentenceGenerator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSingleDefinitionTest.java
More file actions
36 lines (29 loc) · 894 Bytes
/
SingleDefinitionTest.java
File metadata and controls
36 lines (29 loc) · 894 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package sentenceGenerator;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
/**
* @author <Rajveer Parikh>
*/
public class SingleDefinitionTest {
/**
* @throws java.lang.Exception
*/
@Before
public void setUp() throws Exception {
}
/**
* Test method for {@link sentenceGenerator.SingleDefinition#toString()}.
*/
@Test
public final void testToString() {
SingleDefinition testSingleDef = new SingleDefinition();
SingleDefinition testSingleDef2 = new SingleDefinition();
testSingleDef.add("<adjective>");
testSingleDef.add("<adjectives>");
testSingleDef2.add("<noun phrase>");
testSingleDef2.add("<verb phrase>");
assertEquals("<adjective> <adjectives>", testSingleDef.toString());
assertEquals("<noun phrase> <verb phrase>", testSingleDef2.toString());
}
}