java/nekurak.net-ejb/test/cz/frantovo/nekurak/ext/TexyTest.java
changeset 142 44ef544460ca
parent 125 1eecc767a610
child 145 0efefbf5f8b6
     1.1 --- a/java/nekurak.net-ejb/test/cz/frantovo/nekurak/ext/TexyTest.java	Tue May 25 17:22:31 2010 +0200
     1.2 +++ b/java/nekurak.net-ejb/test/cz/frantovo/nekurak/ext/TexyTest.java	Sat Jun 19 11:19:27 2010 +0200
     1.3 @@ -1,5 +1,6 @@
     1.4  package cz.frantovo.nekurak.ext;
     1.5  
     1.6 +import cz.frantovo.nekurak.vyjimky.TexyVyjimka;
     1.7  import org.junit.Test;
     1.8  import static org.junit.Assert.*;
     1.9  
    1.10 @@ -15,17 +16,17 @@
    1.11      private static final int CASOVY_LIMIT = 1000;
    1.12  
    1.13      @Test(timeout = CASOVY_LIMIT)
    1.14 -    public void prostyText() {
    1.15 +    public void prostyText() throws TexyVyjimka {
    1.16  	testuj("", "");
    1.17  	testuj("ahoj", "<p>ahoj</p>");
    1.18      }
    1.19  
    1.20      @Test(timeout = CASOVY_LIMIT)
    1.21 -    public void nadpisy() {
    1.22 +    public void nadpisy() throws TexyVyjimka {
    1.23  	testuj("===Nadpis===", "<h1>Nadpis</h1>");
    1.24      }
    1.25  
    1.26 -    private void testuj(String vstup, String pozadovanyVystup) {
    1.27 +    private void testuj(String vstup, String pozadovanyVystup) throws TexyVyjimka {
    1.28  	String vystup = texy.preved(vstup);
    1.29  	assertEquals(pozadovanyVystup, vystup);
    1.30      }