Examples of TestLogChute


Examples of org.apache.velocity.test.misc.TestLogChute

    public void setUp() throws Exception
    {
        engine = new VelocityEngine();

        //by default, make the engine's log output go to the test-report
        log = new TestLogChute(false, false);
        log.setEnabledLevel(TestLogChute.INFO_ID);
        log.setSystemErrLevel(TestLogChute.WARN_ID);
        engine.setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM, log);

        context = new VelocityContext();
View Full Code Here

Examples of org.apache.velocity.test.misc.TestLogChute

        Velocity.setProperty(RuntimeConstants.FILE_RESOURCE_LOADER_PATH, FILE_RESOURCE_LOADER_PATH );
        Velocity.setProperty(RuntimeConstants.RUNTIME_LOG_REFERENCE_LOG_INVALID,"true");
        Velocity.setProperty(RuntimeConstants.VM_LIBRARY, "macros.vm");

        // actual instance of logger
        logger = new TestLogChute();
        Velocity.setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM,logger);
        Velocity.setProperty("runtime.log.logsystem.test.level", "error");

        Velocity.init();
    }
View Full Code Here

Examples of org.apache.velocity.test.misc.TestLogChute

    protected void setUp() throws Exception
    {
        engine = new VelocityEngine();

        //by default, make the engine's log output go to the test-report
        log = new TestLogChute(false, false);
        log.setEnabledLevel(TestLogChute.INFO_ID);
        log.setSystemErrLevel(TestLogChute.WARN_ID);
        engine.setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM, log);

        // use string resource loader by default, instead of file
View Full Code Here

Examples of org.apache.velocity.test.misc.TestLogChute

        engine.setProperty(RuntimeConstants.RESOURCE_LOADER,"file");
        engine.setProperty(RuntimeConstants.FILE_RESOURCE_LOADER_PATH, FILE_RESOURCE_LOADER_PATH );
        engine.setProperty(RuntimeConstants.RUNTIME_LOG_REFERENCE_LOG_INVALID,"true");

        // actual instance of logger
        logger = new TestLogChute(true, false);
        engine.setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM,logger);
        engine.setProperty(TestLogChute.TEST_LOGGER_LEVEL, "debug");
        engine.init();
    }
View Full Code Here

Examples of org.apache.velocity.test.misc.TestLogChute

    public void setUp() throws Exception
    {
        engine = new VelocityEngine();

        //by default, make the engine's log output go to the test-report
        log = new TestLogChute(false, false);
        log.setEnabledLevel(TestLogChute.INFO_ID);
        log.setSystemErrLevel(TestLogChute.WARN_ID);
        engine.setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM, log);

        context = new VelocityContext();
View Full Code Here

Examples of org.apache.velocity.test.misc.TestLogChute

        Velocity.setProperty(RuntimeConstants.RESOURCE_LOADER,"file");
        Velocity.setProperty(RuntimeConstants.FILE_RESOURCE_LOADER_PATH, FILE_RESOURCE_LOADER_PATH );
        Velocity.setProperty(RuntimeConstants.RUNTIME_LOG_REFERENCE_LOG_INVALID,"true");

        // actual instance of logger
        logger = new TestLogChute();
        logger.off();
        Velocity.setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM,logger);
        Velocity.setProperty(TestLogChute.TEST_LOGGER_LEVEL, "debug");
        Velocity.init();
    }
View Full Code Here

Examples of org.apache.velocity.test.misc.TestLogChute

        Velocity.setProperty(RuntimeConstants.RESOURCE_LOADER,"file");
        Velocity.setProperty(RuntimeConstants.FILE_RESOURCE_LOADER_PATH, FILE_RESOURCE_LOADER_PATH );
        Velocity.setProperty(RuntimeConstants.RUNTIME_LOG_REFERENCE_LOG_INVALID,"true");

        // actual instance of logger
        logger = new TestLogChute();
        logger.off();
        Velocity.setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM,logger);
        Velocity.setProperty("runtime.log.logsystem.test.level", "debug");
        Velocity.init();
    }
View Full Code Here

Examples of org.apache.velocity.test.misc.TestLogChute

    public void setUp() throws Exception
    {
        engine = new VelocityEngine();

        //by default, make the engine's log output go to the test-report
        log = new TestLogChute(false, false);
        log.setEnabledLevel(TestLogChute.INFO_ID);
        log.setSystemErrLevel(TestLogChute.WARN_ID);
        engine.setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM, log);

        context = new VelocityContext();
View Full Code Here
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.