Package org.apache.hivemind

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


    public void testTerminatorConflict()
    {
        ErrorLog log = newErrorLog();

        log.error(
                "Terminator ss2 for pipeline service foo.bar conflicts with "
                        + "previous terminator (ss1, at unknown location) and has been ignored.",
                null,
                null);
View Full Code Here


    public void testIncorrectTerminatorType()
    {
        ErrorLog log = newErrorLog();

        log.error("-String- is not an instance of interface "
                + "org.apache.hivemind.lib.pipeline.StandardService suitable for "
                + "use as part of the pipeline for service foo.bar.", null, null);

        replayControls();
View Full Code Here

    public void testIncorrectFilterType()
    {
        ErrorLog log = newErrorLog();

        log.error("-String- is not an instance of interface "
                + "org.apache.hivemind.lib.pipeline.StandardFilter suitable for "
                + "use as part of the pipeline for service foo.bar.", null, null);

        replayControls();
View Full Code Here

        fpc.setReturnValue(p);

        fp.getErrorLog();
        fpc.setReturnValue(log);

        log.error(
                StrategyMessages.strategyWrongInterface(adapter, Number.class, Runnable.class),
                l,
                new ClassCastException());
        logc.setMatcher(new AggregateArgumentsMatcher(new ArgumentMatcher[]
        { null, null, new TypeMatcher() }));
View Full Code Here

        fp.getFirstParameter();
        // Slight fudge: we return the location itself when we should return
        // an object with this location.
        fpc.setReturnValue(l);

        log.error(StrategyMessages.improperServiceMethod(sig), l, null);

        fp.getServiceId();
        fpc.setReturnValue("foo.Bar");

        ClassFabUtils.addToStringMethod(cf, StrategyMessages.toString("foo.Bar", Runnable.class));
View Full Code Here

        EventProducer p = new EventProducer();
        Object c = "NeverwinterNights";

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

        el
                .error(
                        "NeverwinterNights does not implement any listener interfaces compatible with EventProducer.",
                        location,
                        null);
View Full Code Here

        EventProducer p = new EventProducer();
        Object c = "SoulCailiburII";

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

        el.error("EventProducer does not implement an event set named 'fred'.", location, null);

        replayControls();

        EventLinker l = new EventLinkerImpl(el);
View Full Code Here

        EventProducer p = new EventProducer();
        Object c = "SplinterCell";

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

        el
                .error(
                        "SplinterCell does not implement the java.beans.PropertyChangeListener listener interface (for event set 'propertyChange' of EventProducer).",
                        location,
                        null);
View Full Code Here

        Object p = "DanceDanceRevolution";
        Object c = "SplinterCell";

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

        el
                .error(
                        "SplinterCell does not implement any listener interfaces compatible with DanceDanceRevolution.",
                        location,
                        null);
View Full Code Here

                "foo.Bar",
                "initializeService",
                InitializerErrorRunnable.class,
                cause);

        errorLog.error(message, l, new ApplicationRuntimeException(""));
        errorLogc.setMatcher(new AggregateArgumentsMatcher(new ArgumentMatcher[]
        { null, null, new TypeMatcher() }));

        BuilderParameter p = new BuilderParameter();
        p.setClassName(InitializerErrorRunnable.class.getName());
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.