ko/archetype/src/main/resources/archetype-resources/src/test/java/DataModelTest.java
Rewritting the archetype to be simpler and more easily modifiable to one's needs
3 import static org.testng.Assert.*;
4 import org.testng.annotations.Test;
6 public class DataModelTest {
7 @Test public void areHelloWorldTwoWords() {
8 Data model = new Data();
9 model.setMessage("Hello World!");
11 java.util.List<String> arr = model.getWords();
12 assertEquals(arr.size(), 6, "Six words always");
13 assertEquals("Hello", arr.get(0), "Hello is the first word");
14 assertEquals("World!", arr.get(1), "World is the second word");