test_class.file: gemfire-utils/gemfire-mock/src/test/java/io/pivotal/bds/gemfire/mock/MockFunctionServiceHelperTest.java
test_class.identifier: MockFunctionServiceHelperTest
test_case.body: @Test
      public void test() {
          TestFunction function = new TestFunction();
          MockRegion<Object, Object> mockRegion = new MockRegion<>("mock");
          MockFunctionServiceHelper helper = new MockFunctionServiceHelper(function);
  
          Object result = helper.onRegion(mockRegion).withArgs("args").withFilter(Collections.singleton("filter")).execute(function
                  .getId()).getResult();
  
          assertNotNull(result);
          assertTrue(result instanceof List);
  
          List<Object> list = (List<Object>)result;
  
          assertFalse(list.isEmpty());
  
          assertEquals("args", list.get(0));
          assertEquals(function.getId(), list.get(1));
          assertTrue(list.get(2) == mockRegion);
          assertTrue(list.get(3) instanceof Set);
  
          Set<Object> filter = (Set<Object>) list.get(3);
          assertNotNull(filter);
          assertEquals(1,filter.size());
          assertEquals("filter",filter.iterator().next());
  
          assertTrue(list.get(4) instanceof Exception);
      }
test_case.class_method_signature: MockFunctionServiceHelperTest.test()
test_case.full_signature: @Test public void test()
test_case.identifier: test
test_case.invocations: getResult execute withFilter withArgs onRegion singleton getId assertNotNull assertTrue assertFalse isEmpty assertEquals get assertEquals getId get assertTrue get assertTrue get get assertNotNull assertEquals size assertEquals next iterator assertTrue get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void test()
focal_class.declarator: functions = new HashMap<>()
focal_class.modifier: private
focal_class.original_string: private Map<String,Function> functions = new HashMap<>();
focal_class.type: Map<String,Function>
focal_class.var_name: functions
focal_class.file: gemfire-utils/gemfire-mock/src/main/java/io/pivotal/bds/gemfire/mock/MockFunctionServiceHelper.java
focal_class.identifier: MockFunctionServiceHelper
focal_class.interfaces: implements FunctionServiceHelper
focal_class.class_method_signature: MockFunctionServiceHelper.MockFunctionServiceHelper()
focal_class.full_signature: public  MockFunctionServiceHelper()
focal_class.identifier: MockFunctionServiceHelper
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  MockFunctionServiceHelper()
focal_class.class_method_signature: MockFunctionServiceHelper.MockFunctionServiceHelper(Function function)
focal_class.full_signature: public  MockFunctionServiceHelper(Function function)
focal_class.identifier: MockFunctionServiceHelper
focal_class.modifiers: public
focal_class.parameters: (Function function)
focal_class.signature:  MockFunctionServiceHelper(Function function)
focal_class.class_method_signature: MockFunctionServiceHelper.onRegion(Region region)
focal_class.full_signature: @Override public Execution onRegion(Region region)
focal_class.identifier: onRegion
focal_class.modifiers: @Override public
focal_class.parameters: (Region region)
focal_class.return: Execution
focal_class.signature: Execution onRegion(Region region)
focal_class.class_method_signature: MockFunctionServiceHelper.onServer(Pool pool)
focal_class.full_signature: @Override public Execution onServer(Pool pool)
focal_class.identifier: onServer
focal_class.modifiers: @Override public
focal_class.parameters: (Pool pool)
focal_class.return: Execution
focal_class.signature: Execution onServer(Pool pool)
focal_class.class_method_signature: MockFunctionServiceHelper.onServers(Pool pool)
focal_class.full_signature: @Override public Execution onServers(Pool pool)
focal_class.identifier: onServers
focal_class.modifiers: @Override public
focal_class.parameters: (Pool pool)
focal_class.return: Execution
focal_class.signature: Execution onServers(Pool pool)
focal_class.class_method_signature: MockFunctionServiceHelper.onServer(RegionService regionService)
focal_class.full_signature: @Override public Execution onServer(RegionService regionService)
focal_class.identifier: onServer
focal_class.modifiers: @Override public
focal_class.parameters: (RegionService regionService)
focal_class.return: Execution
focal_class.signature: Execution onServer(RegionService regionService)
focal_class.class_method_signature: MockFunctionServiceHelper.onServers(RegionService regionService)
focal_class.full_signature: @Override public Execution onServers(RegionService regionService)
focal_class.identifier: onServers
focal_class.modifiers: @Override public
focal_class.parameters: (RegionService regionService)
focal_class.return: Execution
focal_class.signature: Execution onServers(RegionService regionService)
focal_class.class_method_signature: MockFunctionServiceHelper.onMember(DistributedMember distributedMember)
focal_class.full_signature: @Override public Execution onMember(DistributedMember distributedMember)
focal_class.identifier: onMember
focal_class.modifiers: @Override public
focal_class.parameters: (DistributedMember distributedMember)
focal_class.return: Execution
focal_class.signature: Execution onMember(DistributedMember distributedMember)
focal_class.class_method_signature: MockFunctionServiceHelper.onMembers(String... groups)
focal_class.full_signature: @Override public Execution onMembers(String... groups)
focal_class.identifier: onMembers
focal_class.modifiers: @Override public
focal_class.parameters: (String... groups)
focal_class.return: Execution
focal_class.signature: Execution onMembers(String... groups)
focal_class.class_method_signature: MockFunctionServiceHelper.onMembers(Set<DistributedMember> distributedMembers)
focal_class.full_signature: @Override public Execution onMembers(Set<DistributedMember> distributedMembers)
focal_class.identifier: onMembers
focal_class.modifiers: @Override public
focal_class.parameters: (Set<DistributedMember> distributedMembers)
focal_class.return: Execution
focal_class.signature: Execution onMembers(Set<DistributedMember> distributedMembers)
focal_class.class_method_signature: MockFunctionServiceHelper.onMember(String... groups)
focal_class.full_signature: @Override public Execution onMember(String... groups)
focal_class.identifier: onMember
focal_class.modifiers: @Override public
focal_class.parameters: (String... groups)
focal_class.return: Execution
focal_class.signature: Execution onMember(String... groups)
focal_class.class_method_signature: MockFunctionServiceHelper.getFunction(String functionId)
focal_class.full_signature: @Override public Function getFunction(String functionId)
focal_class.identifier: getFunction
focal_class.modifiers: @Override public
focal_class.parameters: (String functionId)
focal_class.return: Function
focal_class.signature: Function getFunction(String functionId)
focal_class.class_method_signature: MockFunctionServiceHelper.registerFunction(Function function)
focal_class.full_signature: @Override public void registerFunction(Function function)
focal_class.identifier: registerFunction
focal_class.modifiers: @Override public
focal_class.parameters: (Function function)
focal_class.return: void
focal_class.signature: void registerFunction(Function function)
focal_class.class_method_signature: MockFunctionServiceHelper.unregisterFunction(String functionId)
focal_class.full_signature: @Override public void unregisterFunction(String functionId)
focal_class.identifier: unregisterFunction
focal_class.modifiers: @Override public
focal_class.parameters: (String functionId)
focal_class.return: void
focal_class.signature: void unregisterFunction(String functionId)
focal_class.class_method_signature: MockFunctionServiceHelper.isRegistered(String functionId)
focal_class.full_signature: @Override public boolean isRegistered(String functionId)
focal_class.identifier: isRegistered
focal_class.modifiers: @Override public
focal_class.parameters: (String functionId)
focal_class.return: boolean
focal_class.signature: boolean isRegistered(String functionId)
focal_class.class_method_signature: MockFunctionServiceHelper.getRegisteredFunctions()
focal_class.full_signature: @Override public Map<String, Function> getRegisteredFunctions()
focal_class.identifier: getRegisteredFunctions
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Map<String, Function>
focal_class.signature: Map<String, Function> getRegisteredFunctions()
focal_method.body: @Override
      public Execution onRegion(Region region) {
          MockExecution mockExecution = new MockExecution(this);
          mockExecution.setRegion(region);
          return mockExecution;
      }
focal_method.class_method_signature: MockFunctionServiceHelper.onRegion(Region region)
focal_method.full_signature: @Override public Execution onRegion(Region region)
focal_method.identifier: onRegion
focal_method.invocations: setRegion
focal_method.modifiers: @Override public
focal_method.parameters: (Region region)
focal_method.return: Execution
focal_method.signature: Execution onRegion(Region region)