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:
John Blum
2015-08-06 17:33:34 -07:00
parent b7720cad36
commit 677d46c1df
19 changed files with 245 additions and 210 deletions

View File

@@ -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);

View File

@@ -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);