Package org.apache.hivemind

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


        worker.performEnhancement(op, is);
        expectLastCall().andThrow(t);

        expect(op.getBaseClass()).andReturn(BasePage.class);

        log
                .error(
                        "Error adding property myProperty to class org.apache.tapestry.html.BasePage: Simulated failure.",
                        l,
                        t);
View Full Code Here


        expect(op.getBaseClass()).andReturn(BaseComponent.class);

        ErrorLog log = newMock(ErrorLog.class);

        log
          .error(
            "Error adding property wilma to class org.apache.tapestry.BaseComponent: Simulated error.",
            l,
            ex);
View Full Code Here

        Location location = newMethodLocation(AnnotatedPage.class, m, InjectObject.class);

        methodWorker.performEnhancement(op, spec, m, location);
        expectLastCall().andThrow(t);

        log.error("An error occured processing annotation "
                + "@org.apache.tapestry.annotations.InjectObject(value=barney) of "
                + "public abstract java.lang.Object org.apache.tapestry.annotations.AnnotatedPage.getInjectedObject(): Woops!",
                null,
                t);
View Full Code Here

        DescribedLocation location = newClassLocation(DeprecatedBean.class, Deprecated.class);

        classWorker.performEnhancement(op, spec, DeprecatedBean.class, location);
        expectLastCall().andThrow(t);

        log.error("An error occured processing annotation @java.lang.Deprecated() of "
                + "class org.apache.tapestry.annotations.DeprecatedBean: Simulated failure.",
                null,
                t);

        replay();
View Full Code Here

        RuntimeException cause = new RuntimeException("Forced.");

        expect(secondary.canEnhance(method)).andThrow(cause);
       
        log.error(AnnotationMessages.failureEnhancingMethod(method, cause), null, cause);
       
        replay();
       
        AnnotationEnhancementWorker worker = new AnnotationEnhancementWorker();
        worker.setSecondaryAnnotationWorkers(secWorkers);
View Full Code Here

        opc.setThrowable(ex);

        op.getBaseClass();
        opc.setReturnValue(BaseComponent.class);

        errorLog.error(EnhanceMessages.errorAddingProperty("fred", BaseComponent.class, ex), l, ex);

        replayControls();

        InjectStateWorker w = new InjectStateWorker();
        w.setApplicationStateManager(asm);
View Full Code Here

        control.setThrowable(ex);

        op.getBaseClass();
        control.setReturnValue(BaseComponent.class);

        log.error(EnhanceMessages.errorAddingProperty("barney", BaseComponent.class, ex), l, ex);

        replayControls();

        InjectBeanWorker w = new InjectBeanWorker();
View Full Code Here

        op.getBaseClass();
        opc.setReturnValue(BaseComponent.class);

        ErrorLog log = (ErrorLog) newMock(ErrorLog.class);

        log
                .error(
                        "Error adding property 'wilma' to class org.apache.tapestry.BaseComponent: Simulated error.",
                        l,
                        ex);
View Full Code Here

        op.getBaseClass();
        control.setReturnValue(BaseComponent.class);

        ErrorLog log = (ErrorLog) newMock(ErrorLog.class);

        log.error(
                EnhanceMessages.errorAddingProperty(w.MESSAGES_PROPERTY, BaseComponent.class, ex),
                null,
                ex);

        replayControls();
View Full Code Here

        control.setThrowable(ex);

        op.getBaseClass();
        control.setReturnValue(BaseComponent.class);

        log.error(EnhanceMessages.errorAddingProperty("barney", BaseComponent.class, ex), l, ex);

        replayControls();

        InjectComponentWorker w = new InjectComponentWorker();
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.