test_class.declarator: LONG_TEST_VALUE = Long.toString(Long.MAX_VALUE)
test_class.modifier: private static final
test_class.original_string: private static final String LONG_TEST_VALUE = Long.toString(Long.MAX_VALUE);
test_class.type: String
test_class.var_name: LONG_TEST_VALUE
test_class.declarator: INT_TEST_VALUE = Integer.toString(Integer.MAX_VALUE)
test_class.modifier: private static final
test_class.original_string: private static final String INT_TEST_VALUE = Integer.toString(Integer.MAX_VALUE);
test_class.type: String
test_class.var_name: INT_TEST_VALUE
test_class.declarator: STRING_TEST_VALUE = "String"
test_class.modifier: private static final
test_class.original_string: private static final String STRING_TEST_VALUE = "String";
test_class.type: String
test_class.var_name: STRING_TEST_VALUE
test_class.declarator: BOOLEAN_TEST_VALUE = "true"
test_class.modifier: private static final
test_class.original_string: private static final String BOOLEAN_TEST_VALUE = "true";
test_class.type: String
test_class.var_name: BOOLEAN_TEST_VALUE
test_class.file: ingester/src/test/java/com/amazonaws/services/dynamodbv2/json/demo/mars/util/ConfigParserTest.java
test_class.identifier: ConfigParserTest
test_case.body: @Test
      public void testParseLong() {
          Properties properties;
          final String param = "param";
          final long defaultValue = Long.MAX_VALUE - 10;
          // Test valid required param
          try {
              properties = new Properties();
              properties.put(param, Long.toString(defaultValue));
              final long l = ConfigParser.parseLong(properties, param);
              assertEquals(defaultValue, l);
          } catch (final ExitException e) {
              fail("value is valid");
          }
          // Test invalid required param
          try {
              properties = new Properties();
              properties.put(param, "invalid long");
              ConfigParser.parseLong(properties, param);
          } catch (final ExitException e) {
              ; // Correct behavior
          }
          // Test valid not required param
          try {
              properties = new Properties();
              properties.put(param, Long.toString(defaultValue + 1));
              final long l = ConfigParser.parseLong(properties, param, defaultValue);
              assertEquals(defaultValue, l - 1);
          } catch (final ExitException e) {
              fail("value is valid");
          }
          // Test invalid not required param
          try {
              properties = new Properties();
              properties.put(param, "invalid long");
              final long l = ConfigParser.parseLong(properties, param, defaultValue);
              assertEquals(defaultValue, l);
          } catch (final ExitException e) {
              fail("default value is provided");
          }
      }
test_case.class_method_signature: ConfigParserTest.testParseLong()
test_case.full_signature: @Test public void testParseLong()
test_case.identifier: testParseLong
test_case.invocations: put toString parseLong assertEquals fail put parseLong put toString parseLong assertEquals fail put parseLong assertEquals fail
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testParseLong()
focal_class.declarator: LOGGER = Logger.getLogger(ConfigParser.class.getName())
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = Logger.getLogger(ConfigParser.class.getName());
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.file: ingester/src/main/java/com/amazonaws/services/dynamodbv2/json/demo/mars/util/ConfigParser.java
focal_class.identifier: ConfigParser
focal_class.class_method_signature: ConfigParser.checkParamExists(final Properties properties, final String param)
focal_class.full_signature: public static void checkParamExists(final Properties properties, final String param)
focal_class.identifier: checkParamExists
focal_class.modifiers: public static
focal_class.parameters: (final Properties properties, final String param)
focal_class.return: void
focal_class.signature: void checkParamExists(final Properties properties, final String param)
focal_class.class_method_signature: ConfigParser.parseBoolean(final Properties properties, final String param)
focal_class.full_signature: public static boolean parseBoolean(final Properties properties, final String param)
focal_class.identifier: parseBoolean
focal_class.modifiers: public static
focal_class.parameters: (final Properties properties, final String param)
focal_class.return: boolean
focal_class.signature: boolean parseBoolean(final Properties properties, final String param)
focal_class.class_method_signature: ConfigParser.parseBoolean(final Properties properties, final String param, final Boolean defaultValue)
focal_class.full_signature: public static boolean parseBoolean(final Properties properties, final String param, final Boolean defaultValue)
focal_class.identifier: parseBoolean
focal_class.modifiers: public static
focal_class.parameters: (final Properties properties, final String param, final Boolean defaultValue)
focal_class.return: boolean
focal_class.signature: boolean parseBoolean(final Properties properties, final String param, final Boolean defaultValue)
focal_class.class_method_signature: ConfigParser.parseInteger(final Properties properties, final String param)
focal_class.full_signature: public static int parseInteger(final Properties properties, final String param)
focal_class.identifier: parseInteger
focal_class.modifiers: public static
focal_class.parameters: (final Properties properties, final String param)
focal_class.return: int
focal_class.signature: int parseInteger(final Properties properties, final String param)
focal_class.class_method_signature: ConfigParser.parseInteger(final Properties properties, final String param, final Integer defaultValue)
focal_class.full_signature: public static int parseInteger(final Properties properties, final String param, final Integer defaultValue)
focal_class.identifier: parseInteger
focal_class.modifiers: public static
focal_class.parameters: (final Properties properties, final String param, final Integer defaultValue)
focal_class.return: int
focal_class.signature: int parseInteger(final Properties properties, final String param, final Integer defaultValue)
focal_class.class_method_signature: ConfigParser.parseLong(final Properties properties, final String param)
focal_class.full_signature: public static long parseLong(final Properties properties, final String param)
focal_class.identifier: parseLong
focal_class.modifiers: public static
focal_class.parameters: (final Properties properties, final String param)
focal_class.return: long
focal_class.signature: long parseLong(final Properties properties, final String param)
focal_class.class_method_signature: ConfigParser.parseLong(final Properties properties, final String param, final Long defaultValue)
focal_class.full_signature: public static long parseLong(final Properties properties, final String param, final Long defaultValue)
focal_class.identifier: parseLong
focal_class.modifiers: public static
focal_class.parameters: (final Properties properties, final String param, final Long defaultValue)
focal_class.return: long
focal_class.signature: long parseLong(final Properties properties, final String param, final Long defaultValue)
focal_class.class_method_signature: ConfigParser.parseString(final Properties properties, final String param)
focal_class.full_signature: public static String parseString(final Properties properties, final String param)
focal_class.identifier: parseString
focal_class.modifiers: public static
focal_class.parameters: (final Properties properties, final String param)
focal_class.return: String
focal_class.signature: String parseString(final Properties properties, final String param)
focal_class.class_method_signature: ConfigParser.parseString(final Properties properties, final String param, final String defaultValue)
focal_class.full_signature: public static String parseString(final Properties properties, final String param, final String defaultValue)
focal_class.identifier: parseString
focal_class.modifiers: public static
focal_class.parameters: (final Properties properties, final String param, final String defaultValue)
focal_class.return: String
focal_class.signature: String parseString(final Properties properties, final String param, final String defaultValue)
focal_class.class_method_signature: ConfigParser.validateBooleanParam(final String val)
focal_class.full_signature: public static void validateBooleanParam(final String val)
focal_class.identifier: validateBooleanParam
focal_class.modifiers: public static
focal_class.parameters: (final String val)
focal_class.return: void
focal_class.signature: void validateBooleanParam(final String val)
focal_class.class_method_signature: ConfigParser.validateConfig(final Properties config, final String[] requiredStrings,
          final String[] requiredBooleans, final String[] requiredIntegers, final String[] requiredLongs)
focal_class.full_signature: public static void validateConfig(final Properties config, final String[] requiredStrings,
          final String[] requiredBooleans, final String[] requiredIntegers, final String[] requiredLongs)
focal_class.identifier: validateConfig
focal_class.modifiers: public static
focal_class.parameters: (final Properties config, final String[] requiredStrings,
          final String[] requiredBooleans, final String[] requiredIntegers, final String[] requiredLongs)
focal_class.return: void
focal_class.signature: void validateConfig(final Properties config, final String[] requiredStrings,
          final String[] requiredBooleans, final String[] requiredIntegers, final String[] requiredLongs)
focal_class.class_method_signature: ConfigParser.validateIntegerParam(final String val)
focal_class.full_signature: public static void validateIntegerParam(final String val)
focal_class.identifier: validateIntegerParam
focal_class.modifiers: public static
focal_class.parameters: (final String val)
focal_class.return: void
focal_class.signature: void validateIntegerParam(final String val)
focal_class.class_method_signature: ConfigParser.validateLongParam(final String val)
focal_class.full_signature: public static void validateLongParam(final String val)
focal_class.identifier: validateLongParam
focal_class.modifiers: public static
focal_class.parameters: (final String val)
focal_class.return: void
focal_class.signature: void validateLongParam(final String val)
focal_class.class_method_signature: ConfigParser.ConfigParser()
focal_class.full_signature: private  ConfigParser()
focal_class.identifier: ConfigParser
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  ConfigParser()
focal_method.body: public static long parseLong(final Properties properties, final String param) throws ExitException {
          return parseLong(properties, param, null);
      }
focal_method.class_method_signature: ConfigParser.parseLong(final Properties properties, final String param)
focal_method.full_signature: public static long parseLong(final Properties properties, final String param)
focal_method.identifier: parseLong
focal_method.invocations: parseLong
focal_method.modifiers: public static
focal_method.parameters: (final Properties properties, final String param)
focal_method.return: long
focal_method.signature: long parseLong(final Properties properties, final String param)