ko/archetype/src/main/resources/archetype-resources/src/test/java/DataModelTest.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Mon, 09 Sep 2013 17:34:30 +0200
changeset 1273 37ad459579bc
parent 1225 ko/archetype/src/main/resources/archetype-resources/src/test/java/TwitterClientTest.java@73c0973e8e0a
permissions -rw-r--r--
Rewritting the archetype to be simpler and more easily modifiable to one's needs
     1 package ${package};
     2 
     3 import static org.testng.Assert.*;
     4 import org.testng.annotations.Test;
     5 
     6 public class DataModelTest {
     7     @Test public void areHelloWorldTwoWords() {
     8         Data model = new Data();
     9         model.setMessage("Hello World!");
    10         
    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");
    15     }
    16 }