Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > ca3b60f1aaac7e19a36622962773ee2b > files > 12

joni-1.1.3-5.fc15.noarch.rpm

package org.joni.test;

import junit.framework.TestCase;

public class TestJoni extends TestCase {
    
    private Test testa;
    private Test testc;
    private Test testu;
    
    protected void setUp() {
        testa = new TestA();
        testc = new TestC();
        testu = new TestU();
    }
    
    protected void tearDown() {
    }
    
    private void testJoniTest(Test test) {
        test.run();
        assertEquals(test.nerror, 0);
        assertEquals(test.nfail, 0);
    }
    
    public void testAscii() {
        testJoniTest(testa);
    }
    
    public void testEUCJP() {
        testJoniTest(testc);
    }

    public void testUnicode() {
        testJoniTest(testu);
    }
}