Package org.jostraca.util

Examples of org.jostraca.util.CommandLineUserMessageHandler



  // test methods

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


    ctps.process( tmlist );
  }


  public void testExternalJavaController() throws Exception {
    CommandLineUserMessageHandler cm = new CommandLineUserMessageHandler();
    cm.setThreshold( UserMessageHandler.DEBUG );

    FormatManager fm = new BasicFormatManager();
   
    Template tm01 = PackageTest.makeTemplate("tm01");
    Template tm02 = PackageTest.makeTemplate("tm02");
View Full Code Here

    ctps.process( tmlist );
  }


  public void testInternalJavaController() 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

      throw new BuildException("template must be specified");
    }

    try {
      // need a UMH for Ant
      UserMessageHandler umh   = new CommandLineUserMessageHandler();

      if( getVerbose() ) {
        umh.setThreshold( UserMessageHandler.DEBUG );
      }
      else {
        umh.setThreshold( UserMessageHandler.INFO );
      }

      if( getQuiet() ) {
        umh.setThreshold( UserMessageHandler.WARN );
      }

      PropertySet cmdps = makeCmdPropertySet();

      // attribute trackFile overrides property jostraca.TrackFile
View Full Code Here


  // test methods

  public void testSaver() 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

    tm02.getPropertySet( Service.CONF_template )
      .set( TemplateHandlerManager.PROPERTY_PREFIX+"Test", "org.jostraca.process.test.TestParser" );

    ArrayList tmlist = ListUtil.make( tm01, tm02 );
    TestProcessStage tps = new TestProcessStage();
    tps.setUserMessageHandler( new CommandLineUserMessageHandler() );
    tps.process( tmlist );

    TemplateHandlerManager thm = tps.getTemplateHandlerManager();
    TemplateHandler th = thm.getTemplateHandler( tm01 );
    assertTrue( th instanceof TestParser );
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.