Examples of AggregateArgumentsMatcher


Examples of org.apache.hivemind.test.AggregateArgumentsMatcher

        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

Examples of org.apache.hivemind.test.AggregateArgumentsMatcher

        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

Examples of org.apache.hivemind.test.AggregateArgumentsMatcher

        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

Examples of org.apache.hivemind.test.AggregateArgumentsMatcher

        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

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

Examples of org.apache.hivemind.test.AggregateArgumentsMatcher

        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

Examples of org.apache.hivemind.test.AggregateArgumentsMatcher

        // We can check that an instance of PageRenderSupport is passed in, but
        // we can't (easily) check thta it's configured the way we want.
        cycle.setAttribute("org.apache.tapestry.PageRenderSupport", new PageRenderSupportImpl(
                newAssetService(), "", null));
        control.setMatcher(new AggregateArgumentsMatcher(new ArgumentMatcher[]
        { null, new TypeMatcher() }));

        return cycle;
    }
View Full Code Here

Examples of org.apache.hivemind.test.AggregateArgumentsMatcher

        Throwable t = new RuntimeException("Failure.");

        prg.store(request, response);
        servicer.service(new PortletWebRequest(request), new PortletWebResponse(response));
        control.setMatcher(new AggregateArgumentsMatcher(new ArgumentMatcher[]
        { new TypeMatcher(), new TypeMatcher() }));
        control.setThrowable(t);

        replayControls();
View Full Code Here

Examples of org.apache.hivemind.test.AggregateArgumentsMatcher

        Throwable t = new RuntimeException("Failure.");

        prg.store(request, response);
        servicer.service(new PortletWebRequest(request), new RenderWebResponse(response));
        control.setMatcher(new AggregateArgumentsMatcher(new ArgumentMatcher[]
        { new TypeMatcher(), new TypeMatcher() }));
        control.setThrowable(t);

        replayControls();
View Full Code Here

Examples of org.apache.hivemind.test.AggregateArgumentsMatcher

        op.getAccessorMethodName("foo");
        opc.setReturnValue("getFoo");

        op.addInjectedField("_$script", new DeferredScriptImpl(scriptResource, source,
                injectSpecLocation));
        opc.setMatcher(new AggregateArgumentsMatcher(new ArgumentMatcher[]
        { null, new ArgumentMatcher()
        {

            public boolean compareArguments(Object expected, Object actual)
            {
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.