testCase.setParentId(getInteger(map, TestLinkResponseParams.PARENT_ID.toString()));
testCase.setOrder(getInteger(map, TestLinkResponseParams.ORDER.toString()));
testCase.setExecutionOrder(getInteger(map, TestLinkResponseParams.EXECUTION_ORDER.toString()));
testCase.setName(getString(map, TestLinkResponseParams.NAME.toString()));
Platform platform = null;
String platformName = getString(map, TestLinkResponseParams.PLATFORM_NAME.toString());
Integer platformId = getInteger(map, TestLinkResponseParams.PLATFORM_ID.toString());
if (platformName != null || platformId != null) { // sometimes TL may return only one or the other
platform = new Platform();
platform.setId(platformId);
platform.setName(platformName);
}
testCase.setPlatform(platform);
testCase.setFeatureId(getInteger(map, TestLinkResponseParams.FEATURE_ID.toString()));