Package com.sun.msv.driver.textui

Source Code of com.sun.msv.driver.textui.ReportErrorHandlerTest

package com.sun.msv.driver.textui;

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import util.Checker;
import util.ResourceChecker;

public class ReportErrorHandlerTest extends TestCase
{
    public ReportErrorHandlerTest( String name ) { super(name); }
   
    public static void main(java.lang.String[] args) {
        junit.textui.TestRunner.run(suite());
    }
   
    public static Test suite() {
        return new TestSuite(ReportErrorHandlerTest.class);
    }
   
    /** tests the existence of all messages */
    public void testMessages() throws Exception {
        ResourceChecker.check(
            ReportErrorHandlerTest.class,
            "",
            new Checker(){
                public void check( String propertyName ) {
                    // if the specified property doesn't exist, this will throw an error
                    System.out.println(
                        Driver.localize(propertyName,new Object[]{"@@@","@@@","@@@","@@@","@@@"}));
                }
            });
    }
}
TOP

Related Classes of com.sun.msv.driver.textui.ReportErrorHandlerTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.