Package fi.jumi.actors

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

TOP

Related Classes of fi.jumi.actors.DummyException

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.