Examples of ObjectLocator


Examples of org.apache.tapestry.ioc.ObjectLocator

    @Test
    public void no_path_annotation()
    {
        SymbolSource symbolSource = mockSymbolSource();
        AssetSource assetSource = mockAssetSource();
        ObjectLocator locator = mockObjectLocator();
        ClassTransformation ct = mockClassTransformation();
        MutableComponentModel model = mockMutableComponentModel();

        String fieldName = "myField";
View Full Code Here

Examples of org.apache.tapestry.ioc.ObjectLocator

    @Test
    public void path_annotation_present()
    {
        SymbolSource symbolSource = mockSymbolSource();
        AssetSource assetSource = mockAssetSource();
        ObjectLocator locator = mockObjectLocator();
        ClassTransformation ct = mockClassTransformation();
        MutableComponentModel model = mockMutableComponentModel();
        Path annotation = mockPath();

        String fieldName = "myField";
View Full Code Here

Examples of org.apache.tapestry.ioc.ObjectLocator

    private static final String WEBREQUEST_CLASS_NAME = Request.class.getName();

    @Test
    public void anonymous_injection()
    {
        ObjectLocator locator = mockObjectLocator();
        InjectionProvider ip = newMock(InjectionProvider.class);
        Inject annotation = newMock(Inject.class);
        ClassTransformation ct = mockClassTransformation();
        MutableComponentModel model = mockMutableComponentModel();
View Full Code Here

Examples of org.apache.tapestry.ioc.ObjectLocator

    }

    @Test
    public void anonymous_injection_not_provided()
    {
        ObjectLocator locator = mockObjectLocator();
        InjectionProvider ip = newMock(InjectionProvider.class);
        Inject annotation = newMock(Inject.class);
        ClassTransformation ct = mockClassTransformation();
        MutableComponentModel model = mockMutableComponentModel();
View Full Code Here

Examples of org.apache.tapestry.ioc.ObjectLocator

    @Test
    public void failure_getting_bean_from_context()
    {
        Log log = mockLog();
        WebApplicationContext webContext = newWebApplicationContext();
        ObjectLocator locator = mockObjectLocator();
        Throwable t = new RuntimeException("Simulated failure.");
        AnnotationProvider annotationProvider = mockAnnotationProvider();
        SpringBean annotation = newSpringBean(BEAN_NAME);

        train_getBeanDefinitionNames(webContext, BEAN_NAME);
View Full Code Here

Examples of org.apache.tapestry.ioc.ObjectLocator

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

        SampleBean bean = newMock(SampleBean.class);
View Full Code Here

Examples of org.apache.tapestry.ioc.ObjectLocator

    @Test
    public void bean_name_is_case_insensitive_if_in_bean_definitions()
    {
        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);
View Full Code Here

Examples of org.apache.tapestry.ioc.ObjectLocator

    @Test
    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);
View Full Code Here

Examples of org.apache.tapestry.ioc.ObjectLocator

    @Test
    public void unordered_contribution()
    {
        _toContribute = new Object();
        Configuration configuration = mockConfiguration();
        ObjectLocator locator = mockObjectLocator();

        configuration.add(_toContribute);

        replay();
View Full Code Here

Examples of org.apache.tapestry.ioc.ObjectLocator

    @SuppressWarnings("unchecked")
    @Test
    public void unordered_collection_with_service_lookup()
    {
        Configuration configuration = mockConfiguration();
        ObjectLocator locator = mockObjectLocator();
        UpcaseService service = mockUpcaseService();

        train_getService(locator, "zip.Zap", UpcaseService.class, service);

        configuration.add(service);
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.