Fixed function tests

This commit is contained in:
David Turanski
2012-10-26 18:18:14 -04:00
parent f993189b73
commit 58452831b2
3 changed files with 6 additions and 2 deletions

View File

@@ -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"

View File

@@ -59,6 +59,7 @@ public class MethodInvokingFunction implements Function {
this.HA = false;
this.hasResult = true;
this.optimizeForWrite = false;
this.id = FUNCTION_ID;
}
//@Override

View File

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