Package org.apache.hivemind

Examples of org.apache.hivemind.ErrorHandler.error()


        mc.setThrowable(new ApplicationRuntimeException("Simulated failure."));

        module.getErrorHandler();
        mc.setReturnValue(eh);

        eh.error(
                log,
                "Unable to autowire property stringHolder of service foo.bar: Simulated failure.",
                null,
                new ApplicationRuntimeException(""));
        ehc.setMatcher(new AggregateArgumentsMatcher(new ArgumentMatcher[]
View Full Code Here


        assembly.performPostProcessing();

        // Training

        errorHandler
                .error(
                        LOG,
                        "Service point hivemind.test.privates.PrivateService is not visible to module hivemind.test.contribprivates.",
                        id.getInstanceBuilder().getLocation(),
                        null);
View Full Code Here

                        LOG,
                        "Service point hivemind.test.privates.PrivateService is not visible to module hivemind.test.contribprivates.",
                        id.getInstanceBuilder().getLocation(),
                        null);

        errorHandler
                .error(
                        LOG,
                        "Service point hivemind.test.privates.PrivateService is not visible to module hivemind.test.contribprivates.",
                        itd.getLocation(),
                        null);
View Full Code Here

                        LOG,
                        "Service point hivemind.test.privates.PrivateService is not visible to module hivemind.test.contribprivates.",
                        itd.getLocation(),
                        null);

        errorHandler
                .error(
                        LOG,
                        "Configuration point hivemind.test.privates.PrivateConfig is not visible to module hivemind.test.contribprivates.",
                        cd.getLocation(),
                        null);
View Full Code Here

                        LOG,
                        "Configuration point hivemind.test.privates.PrivateConfig is not visible to module hivemind.test.contribprivates.",
                        cd.getLocation(),
                        null);

        errorHandler
                .error(
                        LOG,
                        "No module has contributed a service constructor for service point hivemind.test.privates.PrivateService.",
                        null,
                        null);
View Full Code Here

        // Training

        source.valueForSymbol("symbol");
        control.setReturnValue(null);

        eh.error(
            LogFactory.getLog(SymbolExpander.class),
            ImplMessages.noSuchSymbol("symbol"),
            l,
            null);
View Full Code Here

        replayControls();

        ErrorHandler eh = new DefaultErrorHandler();

        eh.error(log, "Bad frob value.", l, ex);

        verifyControls();
    }

    public void testDefaultErrorHandlerWithNoLocation()
View Full Code Here

        replayControls();

        ErrorHandler eh = new DefaultErrorHandler();

        eh.error(log, "Bad frob value.", null, ex);

        verifyControls();
    }

    public void testStrictErrorHandler()
View Full Code Here

        ErrorHandler eh = new StrictErrorHandler();
        Throwable cause = new NullPointerException();

        try
        {
            eh.error(null, "An error message.", null, cause);
            unreachable();
        }
        catch (ApplicationRuntimeException ex)
        {
            assertEquals("Error: An error message.", ex.getMessage());
View Full Code Here

        Throwable cause = new NullPointerException();
        Location l = fabricateLocation(21);

        try
        {
            eh.error(null, "An error message.", l, cause);
            unreachable();
        }
        catch (ApplicationRuntimeException ex)
        {
            assertEquals("Error at " + l + ": An error message.", ex.getMessage());
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.