Package org.apache.hivemind

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


        Registry r = createRegistryForContribution(tc);

        ErrorHandler eh = (ErrorHandler) newMock(ErrorHandler.class);

        eh.error(
            TranslatorManager.LOG,
            "Translator contribution 'invalid' must specify either the service-id or class attribute.",
            null,
            null);
View Full Code Here


        moduleControl.setReturnValue(eh);

        String message =
            ImplMessages.wrongNumberOfParameters("foo.bar.Baz", 0, Occurances.REQUIRED);

        eh.error(LOG, message, null, null);

        point.getExtensionPointId();
        pointControl.setReturnValue("bleep.Bloop");

        point.getServiceInterface();
View Full Code Here

        ot.setLog(log);
        ot.setErrorHandler(eh);
        ot.setContributions(l);

        eh.error(
            log,
            "Object provider prefix 'dupe' duplicates a previous prefix at " + l1 + ".",
            l2,
            null);
View Full Code Here

        ot.setErrorHandler(eh);
        ot.setContributions(Collections.EMPTY_LIST);

        ot.initializeService();

        eh.error(
            log,
            "Object provider selector 'badprefix' is not properly formatted.",
            null,
            null);
View Full Code Here

        ot.setErrorHandler(eh);
        ot.setContributions(Collections.EMPTY_LIST);

        ot.initializeService();

        eh.error(log, "No object provider exists for prefix 'zap'.", null, null);

        replayControls();

        Object result = ot.translate(module, Object.class, "zap:foo", null);
View Full Code Here

        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 ExceptionAwareArgumentsMatcher());
View Full Code Here

    public void testUnknownPrereq() throws Exception
    {
        ErrorHandler eh = (ErrorHandler) newMock(ErrorHandler.class);

        eh.error(LOG, "Unknown cartoon character dependency 'charlie' (for 'fred').", null, null);

        replayControls();

        Orderer o = new Orderer(LOG, eh, "cartoon character");
View Full Code Here

    public void testUnknownPostreq() throws Exception
    {
        ErrorHandler eh = (ErrorHandler) newMock(ErrorHandler.class);

        eh.error(LOG, "Unknown cartoon character dependency 'dino' (for 'betty').", null, null);

        replayControls();

        Orderer o = new Orderer(LOG, eh, "cartoon character");
View Full Code Here

    public void testCyclePre() throws Exception
    {
        MockControl c = newControl(ErrorHandler.class);
        ErrorHandler eh = (ErrorHandler) c.getMock();

        eh.error(
            LOG,
            "Unable to order cartoon character 'wilma' due to dependency cycle:"
                + " A cycle has been detected from the initial object [wilma]",
            null,
            new ApplicationRuntimeException(""));
View Full Code Here

    public void testCyclePost() throws Exception
    {
        MockControl c = newControl(ErrorHandler.class);
        ErrorHandler eh = (ErrorHandler) c.getMock();

        eh.error(
            LOG,
            "Unable to order cartoon character 'betty' due to dependency cycle: A cycle has been detected from the initial object [fred]",
            null,
            new ApplicationRuntimeException(""));
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.