Package org.apache.hivemind

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


    {
        List l = Collections.singletonList(build(name, objectClass));

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

        el.error(message, null, null);

        replayControls();

        BeanFactoryImpl f = new BeanFactoryImpl(el, Object.class, l, true);
View Full Code Here


    {
        List l = Collections.singletonList(build("array-list", ArrayList.class));

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

        el
                .error(
                        "Contribution 'array-list' (class java.util.ArrayList) is not assignable to interface java.util.Map and has been ignored.",
                        null,
                        null);
View Full Code Here

    public void testExtraServiceMethod()
    {
        ErrorLog log = (ErrorLog) newMock(ErrorLog.class);

        log
                .error(
                        "Service interface method void extraServiceMethod() has no match in filter interface java.io.Serializable.",
                        null,
                        null);
View Full Code Here

    public void testExtraFilterMethod()
    {
        ErrorLog log = (ErrorLog) newMock(ErrorLog.class);

        log
                .error(
                        "Method void extraFilterMethod() of filter interface "
                                + "org.apache.hivemind.lib.pipeline.ExtraFilterMethod does not have a matching service "
                                + "interface method (in interface java.io.Serializable, service foo.bar).",
                        null,
View Full Code Here

        factoryPointControl.setReturnValue(module);

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

        log.error(message, location, null);

        factory.createCoreServiceImplementation(new ServiceImplementationFactoryParametersImpl(
                point, module, Collections.EMPTY_LIST));
        factoryControl.setReturnValue("THE SERVICE");
View Full Code Here

    {
        List l = Collections.singletonList(build(name, objectClass));

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

        el.error(message, null, null);

        replayControls();

        BeanFactoryImpl f = new BeanFactoryImpl(el, Object.class, l, true);
View Full Code Here

    {
        List l = Collections.singletonList(build("array-list", ArrayList.class));

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

        el
                .error(
                        "Contribution 'array-list' (class java.util.ArrayList) is not assignable to interface java.util.Map and has been ignored.",
                        null,
                        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

        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

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.