SGF-423 - Handle improper ClassCastException thrown from SDG's Function Execution interface and annotation-based support when a GemFire Function throws an Exception.
Initial refactoring and code cleanup. (cherry picked from commit bb8ce682c6cc97abb149b74c58b2124b445e1bd2) Signed-off-by: John Blum <jblum@pivotal.io>
This commit is contained in:
@@ -45,7 +45,7 @@ public class FunctionExecutionIntegrationTests {
|
||||
public void testProxyFactoryBeanCreated() throws Exception {
|
||||
OnRegionFunctionProxyFactoryBean factoryBean = (OnRegionFunctionProxyFactoryBean) context
|
||||
.getBean("&testFunction");
|
||||
Class<?> serviceInterface = TestUtils.readField("serviceInterface", factoryBean);
|
||||
Class<?> serviceInterface = TestUtils.readField("functionExecutionInterface", factoryBean);
|
||||
assertEquals(serviceInterface, TestOnRegionFunction.class);
|
||||
|
||||
Region<?, ?> r1 = context.getBean("r1", Region.class);
|
||||
|
||||
@@ -43,7 +43,7 @@ public class XmlConfiguredFunctionExecutionIntegrationTests {
|
||||
public void testProxyFactoryBeanCreated() throws Exception {
|
||||
OnRegionFunctionProxyFactoryBean factoryBean = (OnRegionFunctionProxyFactoryBean) context
|
||||
.getBean("&testFunction");
|
||||
Class<?> serviceInterface = TestUtils.readField("serviceInterface", factoryBean);
|
||||
Class<?> serviceInterface = TestUtils.readField("functionExecutionInterface", factoryBean);
|
||||
assertEquals(serviceInterface, TestOnRegionFunction.class);
|
||||
|
||||
Region<?, ?> r1 = context.getBean("r1", Region.class);
|
||||
|
||||
Reference in New Issue
Block a user