Package org.apache.hivemind.test

Examples of org.apache.hivemind.test.AggregateArgumentsMatcher


                "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());
        p.setLocation(l);
View Full Code Here


    {
        service.getLink(cycle, post, parameter);

        ArgumentMatcher ignore = new IgnoreMatcher();

        getControl(service).setMatcher(new AggregateArgumentsMatcher(new ArgumentMatcher[]
        { null, null, ignore, null }));

        setReturnValue(service, link);
    }
View Full Code Here

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

        replayControls();

        new StrategyFactory().buildRegistry(fp, ar);
View Full Code Here

        cf.addInterface(ToStringStrategy.class);
        cf.addField("_registry", StrategyRegistry.class);

        cf.addConstructor(new Class[]
        { StrategyRegistry.class }, null, "_registry = $1;");
        cfc.setMatcher(new AggregateArgumentsMatcher(new ArrayMatcher()));

        cf
                .addMethod(
                        Modifier.PRIVATE,
                        new MethodSignature(ToStringStrategy.class, "_getStrategy", new Class[]
View Full Code Here

        cf.addInterface(Runnable.class);
        cf.addField("_registry", StrategyRegistry.class);

        cf.addConstructor(new Class[]
        { StrategyRegistry.class }, null, "_registry = $1;");
        cfc.setMatcher(new AggregateArgumentsMatcher(new ArrayMatcher()));

        cf.addMethod(
                Modifier.PRIVATE,
                new MethodSignature(Runnable.class, "_getStrategy", new Class[]
                { Object.class }, null),
View Full Code Here

        errorLog.error(
                "Exception while executing task Failure: Failure!",
                null,
                new ApplicationRuntimeException(""));
        errorLogControl.setMatcher(new AggregateArgumentsMatcher(new ArgumentMatcher[]
        { null, null, new TypeMatcher() }));

        log.info("Executed one task with one failure \\(in \\d+ milliseconds\\)\\.");
        logControl.setMatcher(new AggregateArgumentsMatcher(new RegexpMatcher()));

        replayControls();

        TaskExecutor e = new TaskExecutor();
View Full Code Here

                propertyName,
                BaseComponent.class,
                inner);

        log.error(outerMessage, l, inner);
        control.setMatcher(new AggregateArgumentsMatcher(new ArgumentMatcher[]
        { null, null, new TypeMatcher() }));
    }
View Full Code Here

        log.error(
                AdapterMessages.adapterWrongInterface(adapter, Number.class, Runnable.class),
                l,
                new ClassCastException());
        logc.setMatcher(new AggregateArgumentsMatcher(new ArgumentMatcher[]
        { null, null, new TypeMatcher() }));

        replayControls();

        new AdapterRegistryFactory().buildAdapterRegistry(fp, ar);
View Full Code Here

        cf.addInterface(ToStringAdapter.class);
        cf.addField("_adapterRegistry", AdapterRegistry.class);

        cf.addConstructor(new Class[]
        { AdapterRegistry.class }, null, "_adapterRegistry = $1;");
        cfc.setMatcher(new AggregateArgumentsMatcher(new ArrayMatcher()));

        cf
                .addMethod(
                        Modifier.PRIVATE,
                        new MethodSignature(ToStringAdapter.class, "_getAdapter", new Class[]
View Full Code Here

        cf.addInterface(Runnable.class);
        cf.addField("_adapterRegistry", AdapterRegistry.class);

        cf.addConstructor(new Class[]
        { AdapterRegistry.class }, null, "_adapterRegistry = $1;");
        cfc.setMatcher(new AggregateArgumentsMatcher(new ArrayMatcher()));

        cf.addMethod(
                Modifier.PRIVATE,
                new MethodSignature(Runnable.class, "_getAdapter", new Class[]
                { Object.class }, null),
View Full Code Here

TOP

Related Classes of org.apache.hivemind.test.AggregateArgumentsMatcher

Copyright © 2018 www.massapicom. 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.