Package org.apache.hivemind.test

Examples of org.apache.hivemind.test.TypeMatcher


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

        return cycle;
    }
View Full Code Here

        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();

        ActionRequestServicerToWebRequestServicerBridge bridge = new ActionRequestServicerToWebRequestServicerBridge();
View Full Code Here

        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();

        RenderRequestServicerToWebRequestServicerBridge bridge = new RenderRequestServicerToWebRequestServicerBridge();
View Full Code Here

                BaseComponent.class,
                inner);

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

                _writer,
                cycle,
                new FormComponentContributorContextImpl(),
                _component);
        _translatorControl.setMatcher(new AggregateArgumentsMatcher(new ArgumentMatcher[]
        { null, null, new TypeMatcher(), null }));

        _component.getValidators();
        _componentControl.setReturnValue(null);

        _valueConverter.coerceValue(null, Iterator.class);
View Full Code Here

                _writer,
                cycle,
                new FormComponentContributorContextImpl(),
                _component);
        _translatorControl.setMatcher(new AggregateArgumentsMatcher(new ArgumentMatcher[]
        { null, null, new TypeMatcher(), null }));

        _component.getValidators();
        _componentControl.setReturnValue(_validator);

        _valueConverter.coerceValue(_validator, Iterator.class);
        _valueConverterControl.setReturnValue(Collections.singletonList(_validator).iterator());

        _validator.renderContribution(
                _writer,
                cycle,
                new FormComponentContributorContextImpl(),
                _component);
        _validatorControl.setMatcher(new AggregateArgumentsMatcher(new ArgumentMatcher[]
        { null, null, new TypeMatcher(), null }));
        replay();

        _support.renderContributions(_component, _writer, cycle);

        verify();
View Full Code Here

        _valueConverter.coerceValue(_validator, Iterator.class);
        _valueConverterControl.setReturnValue(Collections.singletonList(_validator).iterator());

        _validator.validate(_component, new ValidationMessagesImpl(Locale.ENGLISH), object);
        _validatorControl.setMatcher(new AggregateArgumentsMatcher(new ArgumentMatcher[]
        { null, new TypeMatcher(), null }));

        _component.writeValue(object);

        replay();
View Full Code Here

        _validator.getAcceptsNull();
        _validatorControl.setReturnValue(true);

        _validator.validate(_component, new ValidationMessagesImpl(Locale.ENGLISH), null);
        _validatorControl.setMatcher(new AggregateArgumentsMatcher(new ArgumentMatcher[]
        { null, new TypeMatcher(), null }));

        _component.writeValue(null);

        replay();
View Full Code Here

        _valueConverter.coerceValue(_validator, Iterator.class);
        _valueConverterControl.setReturnValue(Collections.singletonList(_validator).iterator());

        _validator.validate(_component, new ValidationMessagesImpl(Locale.ENGLISH), object);
        _validatorControl.setMatcher(new AggregateArgumentsMatcher(new ArgumentMatcher[]
        { null, new TypeMatcher(), null }));
        _validatorControl.setThrowable(ex);

        _delegate.record(ex);

        replay();
View Full Code Here

TOP

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

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.