Package org.jostraca.util

Examples of org.jostraca.util.CommandLineUserMessageHandler


  }



  public void testMessages() {
    UserMessageHandler umh = new CommandLineUserMessageHandler();
    umh.add( UserMessageHandler.DEBUG, "debug01" );
    umh.debug( "debug02" );

    umh.setThreshold( UserMessageHandler.INFO );
    umh.add( UserMessageHandler.DEBUG, "debug03 FAIL" );

    umh.debug( "debug04 FAIL" );
    umh.info"info01" );
    umh.warn"warn01" );
    umh.error( "error01" );
    umh.fatal( "fatal01" );

    umh.info( "foo:", "bar" );
    umh.info( "foofoo:", "bar" );
  }
View Full Code Here



  // test methods

  public void testGenericCompiler() throws Exception {
    CommandLineUserMessageHandler cm = new CommandLineUserMessageHandler();
    FormatManager fm = new BasicFormatManager();
   
    List tmlist = makeTMList();

    for( Iterator tmT = tmlist.iterator(); tmT.hasNext(); ) {
View Full Code Here

    cps.process( tmlist );
  }


  public void testJavaCompiler() throws Exception {
    CommandLineUserMessageHandler cm = new CommandLineUserMessageHandler();
    FormatManager fm = new BasicFormatManager();
   
    List tmlist = makeTMList();

    for( Iterator tmT = tmlist.iterator(); tmT.hasNext(); ) {
View Full Code Here

    cps.process( tmlist );
  }


  public void testInternalCompiler() throws Exception {
    CommandLineUserMessageHandler cm = new CommandLineUserMessageHandler();
    FormatManager fm = new BasicFormatManager();
   
    List tmlist = makeTMList();

    for( Iterator tmT = tmlist.iterator(); tmT.hasNext(); ) {
View Full Code Here

  }


 
  public void testExternalCompiler() throws Exception {
    CommandLineUserMessageHandler cm = new CommandLineUserMessageHandler();
    FormatManager fm = new BasicFormatManager();
   
    List tmlist = makeTMList();

    for( Iterator tmT = tmlist.iterator(); tmT.hasNext(); ) {
View Full Code Here


  // test methods

  public void testMerger() throws Exception {
    CommandLineUserMessageHandler cm = new CommandLineUserMessageHandler();
    FormatManager fm = new BasicFormatManager();
   
    Template tm01 = PackageTest.makeTemplate("tm01");
    tm01.getPropertySet( Service.CONF_template )
      .set( TemplateHandlerManager.PROPERTY_PREFIX+"Preparer", "org.jostraca.process.GenericPreparer" );
View Full Code Here


  // test methods

  public void testParser() throws Exception {
    CommandLineUserMessageHandler cm = new CommandLineUserMessageHandler();

    Template tm01 = PackageTest.makeTemplate("tm01");
    tm01.getPropertySet( Service.CONF_template )
      .set( TemplateHandlerManager.PROPERTY_PREFIX+"Preparer", "org.jostraca.process.GenericPreparer" );
    tm01.getPropertySet( Service.CONF_template )
View Full Code Here


  // test methods

  public void testProcessManager() throws Exception {
    CommandLineUserMessageHandler cm = new CommandLineUserMessageHandler();
    FormatManager fm = new BasicFormatManager();
   
    Template tm01 = PackageTest.makeTemplate("tm01");
    Template tm02 = PackageTest.makeTemplate("tm02");
    ArrayList tmlist = ListUtil.make( tm01, tm02 );
View Full Code Here


  // test methods

  public void testPreparer() throws Exception {
    CommandLineUserMessageHandler cm = new CommandLineUserMessageHandler();

    Template tm01 = PackageTest.makeTemplate("tm01");
    tm01.getPropertySet( Service.CONF_template )
      .set( TemplateHandlerManager.PROPERTY_PREFIX+"Preparer", "org.jostraca.process.GenericPreparer" );
View Full Code Here

    props.set( Property.main_OutputFolder,      iDependsFolder );
    props.set( Property.main_WorkFolder,        iDependsFolder );
    props.set( Property.main_CodeWriterOptions, pOptions );
    s.addPropertySet( Service.CONF_cmdline, props );

    UserMessageHandler umh = new CommandLineUserMessageHandler();
    umh.setThreshold( umh.DEBUG );
    s.setUserMessageHandler( umh );
    s.build();
  }
View Full Code Here

TOP

Related Classes of org.jostraca.util.CommandLineUserMessageHandler

Copyright © 2018 www.massapicom. 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.