@Test void testDefaultMemoryParsing() { Integer memory = parser.parse(Collections.emptyList()); assertEquals(DEFAULT_MEMORY, memory); }
@Override public Integer parse(List<Map<String, Object>> parametersList) { return parseMemory((String) PropertiesUtil.getPropertyValue(parametersList, parameterName, defaultMemory)); }
MemoryParametersParser implements ParametersParser<Integer> { @Override public Integer parse(List<Map<String, Object>> parametersList) { return parseMemory((String) PropertiesUtil.getPropertyValue(parametersList, parameterName, defaultMemory)); } }
MemoryParametersParser implements ParametersParser<Integer> { @Override public Integer parse(List<Map<String, Object>> parametersList) { return parseMemory((String) PropertiesUtil.getPropertyValue(parametersList, parameterName, defaultMemory)); } MemoryParametersParser(String parameterName, String defaultMemory); }
MemoryParametersParser implements ParametersParser<Integer> { @Override public Integer parse(List<Map<String, Object>> parametersList) { return parseMemory((String) PropertiesUtil.getPropertyValue(parametersList, parameterName, defaultMemory)); } MemoryParametersParser(String parameterName, String defaultMemory); @Override Integer parse(List<Map<String, Object>> parametersList); static Integer parseMemory(String value); }
MemoryParametersParser implements ParametersParser<Integer> { @Override public Integer parse(List<Map<String, Object>> parametersList) { return parseMemory((String) PropertiesUtil.getPropertyValue(parametersList, parameterName, defaultMemory)); } MemoryParametersParser(String parameterName, String defaultMemory); @Override Integer parse(List<Map<String, Object>> parametersList); static Integer parseMemory(String value);  }