Package org.auraframework.test.mock

Examples of org.auraframework.test.mock.Invocation


     * @return a Stub object
     * @throws QuickFixException
     */
    protected Stub<?> getStub(Object object) throws QuickFixException {
        if (object instanceof Map) {
            Invocation invocation = getInvocation(((Map<?, ?>) object).get("method"));
            @SuppressWarnings("rawtypes")
            Class retType = invocation.getReturnType();
            @SuppressWarnings("unchecked")
            List<Answer<Object>> answers = getAnswers(((Map<?, ?>) object).get("answers"), retType);
            return new Stub<>(invocation, answers);
        }
        return null;
View Full Code Here


                try {
                    type = classForSimpleName(typeStr);
                } catch (ClassNotFoundException e) {
                }
            }
            return new Invocation(name, params, type);
        }
        return null;
    }
View Full Code Here

        return getTargetDescriptor().getDef().getModelDef();
    }

    @Override
    protected Invocation getDefaultInvocation() throws QuickFixException {
        return new Invocation("newInstance", null, Model.class);
    }
View Full Code Here

        return getTargetDescriptor().getDef().getLocalProviderDef();
    }

    @Override
    protected Invocation getDefaultInvocation() throws QuickFixException {
        return new Invocation("provide", null, ComponentConfig.class);
    }
View Full Code Here

TOP

Related Classes of org.auraframework.test.mock.Invocation

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.