Examples of InvocationImpl


Examples of org.apache.cocoon.sitemap.InvocationImpl

            this.version += buildNumber;
        }
    }

    private void invoke(String requestURI, Map<String, Object> parameters, OutputStream outputStream) {
        InvocationImpl invocation = (InvocationImpl) this.beanFactory.getBean(Invocation.class.getName());

        invocation.setBaseURL(this.getBaseURL());
        invocation.setRequestURI(requestURI);
        invocation.setParameters(parameters);
        invocation.setOutputStream(outputStream);
        invocation.setObjectModel(ObjectModelProvider.provide(parameters));

        this.sitemapNode.invoke(invocation);
    }
View Full Code Here

Examples of org.apache.cocoon.sitemap.InvocationImpl

        return response;
    }

    Invocation buildInvocation(String request, Map<String, Object> params) {
        InvocationImpl invocation = new InvocationImpl(this.output);

        invocation.setBaseURL(this.getClass().getResource("/COB-INF/"));
        invocation.setRequestURI(request);
        invocation.setComponentProvider(componentProvider);
        invocation.setObjectModel(new ObjectModel(params));

        return invocation;
    }
View Full Code Here

Examples of org.apache.cocoon.sitemap.InvocationImpl

        this.initVersionNumber();
    }

    public void invoke(String requestURI, Map<String, Object> parameters, OutputStream outputStream)
            throws ServletException {
        InvocationImpl invocation = (InvocationImpl) this.beanFactory.getBean(Invocation.class.getName());

        invocation.setBaseURL(this.getBaseURL());
        invocation.setRequestURI(requestURI);
        invocation.setParameters(parameters);
        invocation.setOutputStream(outputStream);
        invocation.setObjectModel(ObjectModelProvider.provide(parameters));

        this.sitemap.invoke(invocation);
    }
View Full Code Here

Examples of org.mockito.internal.invocation.InvocationImpl

        } else if (objectMethodsGuru.isHashCodeMethod(method)) {
            return System.identityHashCode(proxy);
        }

        ProxiedMethod proxiedMethod = new ProxiedMethod(method);
        return handler.handle(new InvocationImpl(proxy, proxiedMethod, args, SequenceNumber.next(),
                proxiedMethod));
    }
View Full Code Here

Examples of org.mockito.internal.invocation.InvocationImpl

    protected static Invocation invocationOf(Class<?> type, String methodName, Object ... args) throws NoSuchMethodException {
        Class[] types = new Class[args.length];
        for (int i = 0; i < args.length; i++) {
            types[i] = args[i].getClass();
        }
        return new InvocationImpl(mock(type), new SerializableMethod(type.getMethod(methodName,
                types)), args, 1, null);
    }
View Full Code Here

Examples of org.mockito.internal.invocation.InvocationImpl

        return new InvocationImpl(mock(type), new SerializableMethod(type.getMethod(methodName,
                types)), args, 1, null);
    }

    protected static Invocation invocationOf(Class<?> type, String methodName, RealMethod realMethod) throws NoSuchMethodException {
        return new InvocationImpl(new Object(), new SerializableMethod(type.getMethod(methodName,
                new Class[0])), new Object[0], 1, realMethod);
    }
View Full Code Here

Examples of org.mockito.internal.invocation.InvocationImpl

        new CGLIBHacker().setMockitoNamingPolicy(methodProxy);
       
        MockitoMethod mockitoMethod = createMockitoMethod(method);
       
        CleanTraceRealMethod realMethod = new CleanTraceRealMethod(mockitoMethodProxy);
        Invocation invocation = new InvocationImpl(proxy, mockitoMethod, args, SequenceNumber.next(), realMethod);
        return handler.handle(invocation);
    }
View Full Code Here

Examples of org.mockito.internal.invocation.InvocationImpl

                }
                return null;
            }
        });

        Invocation invocation = new InvocationImpl(interceptionObject, new DelegatingMethod(method), arguments,
                SequenceNumber.next(), cglibProxyRealMethod) {
            private static final long serialVersionUID = -3679957412502758558L;

            public String toString() {
                return new ToStringGenerator().generate(getMock(), getMethod(), getArguments());
            }
        };

        try {
            return replaceMatchersBinderIfNeeded(mockHandler).handle(invocation);
        } catch (NotAMockException e) {
            if(invocation.getMock().getClass().getName().startsWith("java.") &&  MockRepository.getInstanceMethodInvocationControl(invocation.getMock()) != null) {
                return invocation.callRealMethod();
            } else {
                throw e;
            }
        } catch (MockitoAssertionError e) {
            InvocationControlAssertionError.updateErrorMessageForMethodInvocation(e);
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.