Examples of DummyException


Examples of fi.jumi.actors.DummyException

    private final ByteArrayOutputStream output = new ByteArrayOutputStream();
    private final PrintStreamFailureLogger failureHandler = new PrintStreamFailureLogger(new PrintStream(output));

    @Test
    public void logs_uncaught_exceptions() {
        failureHandler.uncaughtException("the actor", "the message", new DummyException());

        String output = this.output.toString();
        assertThat(output, containsString("uncaught exception"));
        assertThat(output, containsString("the actor"));
        assertThat(output, containsString("the message"));
View Full Code Here

Examples of org.apache.commons.logging.DummyException

    }


    // Log the messages with exceptions
    protected void logExceptionMessages() {
        Throwable t = new DummyException();
        log.trace("trace", t); // Should not actually get logged
        log.debug("debug", t);
        log.info("info", t);
        log.warn("warn", t);
        log.error("error", t);
View Full Code Here

Examples of org.apache.commons.logging.DummyException

    // Log the messages with exceptions
    protected void logExceptionMessages() {

        // Generate log records
        Throwable t = new DummyException();
        log.trace("trace", t); // Should not actually get logged
        log.debug("debug", t);
        log.info("info", t);
        log.warn("warn", t);
        log.error("error", t);
View Full Code Here

Examples of org.apache.commons.logging.DummyException

    /**
     * Log messages with exceptions
     */
    private void logExceptionMessages(Log log) {
        Throwable t = new DummyException();
        log.trace("trace", t); // Should not actually get logged
        log.debug("debug", t); // Should not actually get logged
        log.info("info", t);
        log.warn("warn", t);
        log.error("error", t);
View Full Code Here

Examples of org.apache.commons.logging.DummyException

    }


    // Log the messages with exceptions
    protected void logExceptionMessages() {
        Throwable t = new DummyException();
        log.trace("trace", t); // Should not actually get logged
        log.debug("debug", t);
        log.info("info", t);
        log.warn("warn", t);
        log.error("error", t);
View Full Code Here

Examples of org.apache.commons.logging.DummyException

    // Log the messages with exceptions
    protected void logExceptionMessages() {

        // Generate log records
        Throwable t = new DummyException();
        log.trace("trace", t); // Should not actually get logged
        log.debug("debug", t);
        log.info("info", t);
        log.warn("warn", t);
        log.error("error", t);
View Full Code Here

Examples of org.apache.commons.logging.DummyException

    }


    // Log the messages with exceptions
    protected void logExceptionMessages() {
        Throwable t = new DummyException();
        log.trace("trace", t); // Should not actually get logged
        log.debug("debug", t);
        log.info("info", t);
        log.warn("warn", t);
        log.error("error", t);
View Full Code Here

Examples of org.apache.commons.logging.DummyException

    /**
     * Log messages with exceptions
     */
    private void logExceptionMessages(Log log) {
        Throwable t = new DummyException();
        log.trace("trace", t); // Should not actually get logged
        log.debug("debug", t); // Should not actually get logged
        log.info("info", t);
        log.warn("warn", t);
        log.error("error", t);
View Full Code Here

Examples of org.apache.commons.logging.DummyException

    // Log the messages with exceptions
    protected void logExceptionMessages() {

        // Generate log records
        Throwable t = new DummyException();
        log.trace("trace", t); // Should not actually get logged
        log.debug("debug", t);
        log.info("info", t);
        log.warn("warn", t);
        log.error("error", t);
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.