Package org.apache.hivemind.test

Examples of org.apache.hivemind.test.AggregateArgumentsMatcher


            String text, Object result) throws ValidatorException
    {
        ValidationMessages messages = new ValidationMessagesImpl(field, Locale.ENGLISH);

        translator.parse(field, messages, text);
        control.setMatcher(new AggregateArgumentsMatcher(new ArgumentMatcher[]
        { null, new TypeMatcher() }));
        control.setReturnValue(result);
    }
View Full Code Here


        converterControl.setReturnValue(Collections.singleton(validator).iterator());
       
        FormComponentContributorContext context = new FormComponentContributorContextImpl(field);
       
        validator.renderContribution(writer, cycle, context, field);
        validatorControl.setMatcher(new AggregateArgumentsMatcher(new ArgumentMatcher[]
        { new EqualsMatcher(), new EqualsMatcher(), new TypeMatcher(), new EqualsMatcher() }));       
       
        replayControls();

        support.renderContributions(field, writer, cycle);
View Full Code Here

        ValidationMessages messages = new ValidationMessagesImpl(field, Locale.ENGLISH);
       
        try
        {
            validator.validate(field, messages, object);
            validatorControl.setMatcher(new AggregateArgumentsMatcher(new ArgumentMatcher[]
            { new EqualsMatcher(), new TypeMatcher(), new EqualsMatcher() }));
           
            replayControls();
   
            support.validate(field, writer, cycle, object);
View Full Code Here

        ValidatorException expected = new ValidatorException("test");
       
        try
        {
            validator.validate(field, messages, object);
            validatorControl.setMatcher(new AggregateArgumentsMatcher(new ArgumentMatcher[]
            { new EqualsMatcher(), new TypeMatcher(), new EqualsMatcher() }));
            validatorControl.setThrowable(expected);
           
            replayControls();
   
View Full Code Here

        ValidationMessages messages = new ValidationMessagesImpl(field, Locale.ENGLISH);
       
        try
        {
            validator.validate(field, messages, null);
            validatorControl.setMatcher(new AggregateArgumentsMatcher(new ArgumentMatcher[]
            { new EqualsMatcher(), new TypeMatcher(), new EqualsMatcher() }));
           
            replayControls();
   
            support.validate(field, writer, cycle, null);
View Full Code Here

    }

    private void trainRender(FormSupport support, ILink link, IRender render, String scheme)
    {
        support.render("post", render, link, scheme);
        getControl(support).setMatcher(new AggregateArgumentsMatcher(new ArgumentMatcher[]
        { null, new IgnoreMatcher(), null, null }));
    }
View Full Code Here

    }

    private void trainRender(FormSupport support, ILink link, IRender render, String scheme, Integer port)
    {
        support.render("post", render, link, scheme, port);
        getControl(support).setMatcher(new AggregateArgumentsMatcher(new ArgumentMatcher[]
        { null, new IgnoreMatcher(), null, null }));
    }
View Full Code Here

    {
        service.getLink(post, parameter);

        ArgumentMatcher ignore = new IgnoreMatcher();

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

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

        // 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(
                newAssetFactory(), "", null));
        control.setMatcher(new AggregateArgumentsMatcher(new ArgumentMatcher[]
        { null, new TypeMatcher() }));

        return cycle;
    }
View Full Code Here

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

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

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