Examples of AnnotationProvider


Examples of org.apache.tapestry.ioc.AnnotationProvider

    {
        Log log = mockLog();
        WebApplicationContext webContext = newWebApplicationContext();
        ObjectLocator locator = mockObjectLocator();
        SampleBean bean = newMock(SampleBean.class);
        AnnotationProvider annotationProvider = mockAnnotationProvider();
        SpringBean annotation = newSpringBean(BEAN_NAME.toUpperCase());

        train_getBeanDefinitionNames(webContext, "fred", "barney", BEAN_NAME);

        log.info(STARTUP_MESSAGE + "barney, fred, " + BEAN_NAME);
View Full Code Here

Examples of org.apache.tapestry.ioc.AnnotationProvider

    public void bean_name_outside_of_bean_definitions_supported_with_provided_case()
    {
        Log log = mockLog();
        WebApplicationContext webContext = newWebApplicationContext();
        ObjectLocator locator = mockObjectLocator();
        AnnotationProvider annotationProvider = mockAnnotationProvider();
        SpringBean annotation = newSpringBean(BEAN_NAME);

        SampleBean bean = newMock(SampleBean.class);

        train_getBeanDefinitionNames(webContext, "fred", "barney");
View Full Code Here

Examples of org.apache.tapestry.ioc.AnnotationProvider

    @Test
    public void no_annotation()
    {
        SymbolSource source = mockSymbolSource();
        TypeCoercer coercer = mockTypeCoercer();
        AnnotationProvider annotationProvider = mockAnnotationProvider();
        ObjectLocator locator = mockObjectLocator();

        train_getAnnotation(annotationProvider, Symbol.class, null);

        replay();
View Full Code Here

Examples of org.apache.tapestry.ioc.AnnotationProvider

    @Test
    public void annotation_present()
    {
        SymbolSource source = mockSymbolSource();
        TypeCoercer coercer = mockTypeCoercer();
        AnnotationProvider annotationProvider = mockAnnotationProvider();
        ObjectLocator locator = mockObjectLocator();
        Symbol annotation = newMock(Symbol.class);
        String symbolName = "example-symbol";
        String symbolValue = "symbol-value";
        Long coercedValue = 123l;
View Full Code Here

Examples of org.apache.tapestry.ioc.AnnotationProvider

    @Test
    public void no_value_annotation()
    {
        SymbolSource symbolSource = mockSymbolSource();
        TypeCoercer coercer = mockTypeCoercer();
        AnnotationProvider annotationProvider = mockAnnotationProvider();
        ObjectLocator locator = mockObjectLocator();

        train_getAnnotation(annotationProvider, Value.class, null);

        replay();
View Full Code Here

Examples of org.apache.tapestry.ioc.AnnotationProvider

    @Test
    public void value_annotation_present()
    {
        SymbolSource symbolSource = mockSymbolSource();
        TypeCoercer coercer = mockTypeCoercer();
        AnnotationProvider annotationProvider = mockAnnotationProvider();
        ObjectLocator locator = mockObjectLocator();
        String annotationValue = "${foo}";
        String expanded = "Foo";
        Runnable coerced = mockRunnable();
        Value annotation = newMock(Value.class);
View Full Code Here

Examples of org.apache.tapestry.ioc.AnnotationProvider

    public void found_match_first()
    {
        ObjectProvider prov1 = mockObjectProvider();
        ObjectProvider prov2 = mockObjectProvider();
        Class type = Runnable.class;
        AnnotationProvider ap = mockAnnotationProvider();
        ObjectLocator locator = mockObjectLocator();
        Object expected = mockRunnable();

        train_provide(prov1, type, ap, locator, expected);
View Full Code Here

Examples of org.apache.tapestry.ioc.AnnotationProvider

    public void found_later_match()
    {
        ObjectProvider prov1 = mockObjectProvider();
        ObjectProvider prov2 = mockObjectProvider();
        Class type = Runnable.class;
        AnnotationProvider ap = mockAnnotationProvider();
        ObjectLocator locator = mockObjectLocator();
        Object expected = mockRunnable();

        train_provide(prov1, type, ap, locator, null);
        train_provide(prov2, type, ap, locator, expected);
View Full Code Here

Examples of org.apache.tapestry.ioc.AnnotationProvider

    public void no_match_but_optional()
    {
        ObjectProvider prov1 = mockObjectProvider();
        ObjectProvider prov2 = mockObjectProvider();
        Class type = Runnable.class;
        AnnotationProvider ap = mockAnnotationProvider();
        ObjectLocator locator = mockObjectLocator();

        train_provide(prov1, type, ap, locator, null);
        train_provide(prov2, type, ap, locator, null);
View Full Code Here

Examples of org.apache.tapestry.ioc.AnnotationProvider

    public void no_match_and_required()
    {
        ObjectProvider prov1 = mockObjectProvider();
        ObjectProvider prov2 = mockObjectProvider();
        Class type = Runnable.class;
        AnnotationProvider ap = mockAnnotationProvider();
        ObjectLocator locator = mockObjectLocator();
        Object expected = mockRunnable();

        train_provide(prov1, type, ap, locator, null);
        train_provide(prov2, type, ap, locator, null);
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.