You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Jacob S. Barrett (JIRA)" <ji...@apache.org> on 2017/08/31 01:37:02 UTC
[jira] [Closed] (GEODE-3453) Fix native client function tests to
use updated API
[ https://issues.apache.org/jira/browse/GEODE-3453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacob S. Barrett closed GEODE-3453.
-----------------------------------
> Fix native client function tests to use updated API
> ---------------------------------------------------
>
> Key: GEODE-3453
> URL: https://issues.apache.org/jira/browse/GEODE-3453
> Project: Geode
> Issue Type: Bug
> Components: native client
> Reporter: David Kimura
>
> Remove deprecated API call in order to build and test against latest server.
> This change broke test code calling into deprecated function: https://issues.apache.org/jira/browse/GEODE-254
> Following diff should be sufficient to fix this issue.
> {noformat}
> diff --git a/src/tests/javaobject/GetFunctionExeHA.java b/src/tests/javaobject/GetFunctionExeHA.java
> index 62216c07..ece5f337 100644
> --- a/src/tests/javaobject/GetFunctionExeHA.java
> +++ b/src/tests/javaobject/GetFunctionExeHA.java
> @@ -35,7 +35,7 @@ public class GetFunctionExeHA extends FunctionAdapter implements Declarable{
> RegionFunctionContext context = (RegionFunctionContext)fc;
> System.out.println("Data set :: " + context.getDataSet());
> Region region = PartitionRegionHelper.getLocalDataForContext(context);
> - Set keys = region.keys();
> + Set keys = region.keySet();
> Iterator itr = keys.iterator();
> ResultSender sender = context.getResultSender();
> Object k = null;
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)