Fixed function tests
This commit is contained in:
@@ -50,7 +50,7 @@ dependencies {
|
||||
// GemFire
|
||||
compile("com.gemstone.gemfire:gemfire:$gemfireVersion")
|
||||
runtime("antlr:antlr:2.7.7")
|
||||
runtime("commons-modeler:ßcommons-modeler:2.0.1")
|
||||
runtime("commons-modeler:commons-modeler:2.0.1")
|
||||
|
||||
// Testing
|
||||
testCompile "junit:junit-dep:$junitVersion"
|
||||
|
||||
@@ -59,6 +59,7 @@ public class MethodInvokingFunction implements Function {
|
||||
this.HA = false;
|
||||
this.hasResult = true;
|
||||
this.optimizeForWrite = false;
|
||||
this.id = FUNCTION_ID;
|
||||
}
|
||||
|
||||
//@Override
|
||||
|
||||
@@ -69,10 +69,13 @@ public class FunctionCacheServerProcess {
|
||||
testRegion.put("one", 1);
|
||||
testRegion.put("two", 2);
|
||||
testRegion.put("three", 3);
|
||||
|
||||
|
||||
System.out.println("Registering ServerFunction");
|
||||
FunctionService.registerFunction(new ServerFunction());
|
||||
System.out.println("Registered ServerFunction");
|
||||
|
||||
FunctionService.registerFunction(new MethodInvokingFunction());
|
||||
System.out.println("Registered MethodInvokingFunction");
|
||||
|
||||
ForkUtil.createControlFile(FunctionCacheServerProcess.class.getName());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user