Package org.auraframework.test.mock

Examples of org.auraframework.test.mock.MockAction


            Map<?, ?> map = (Map<?, ?>) object;
            T value = getValue(map.get("value"), retClass);
            String error = (String) map.get("error");
            if (value != null) {
                if (error == null) {
                    return new Returns<>((T) new MockAction(
                            actionDef.getDescriptor(), State.SUCCESS, value));
                }
            } else {
                if (error != null) {
                    try {
                        new ThrowsExceptionClass<T>(error).answer();
                    } catch (Throwable e) {
                        return new Returns<>((T) new MockAction(
                                actionDef.getDescriptor(), State.ERROR, null,
                                null, null, ImmutableList.<Object> of(e)));
                    }
                }
            }
View Full Code Here

TOP

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

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.