test_class.declarator: converter = new StringToDateConverter()
test_class.original_string: StringToDateConverter converter = new StringToDateConverter();
test_class.type: StringToDateConverter
test_class.var_name: converter
test_class.file: beanmother-core/src/test/java/io/beanmother/core/converter/std/StringToDateConverterTest.java
test_class.identifier: StringToDateConverterTest
test_case.body: @Test
      public void testSimpleDateFormat() {
          Date date = (Date) converter.convert("2017-01-02");
          assertEquals(2017, getCalFiled(date, Calendar.YEAR));
          assertEquals(Calendar.JANUARY, getCalFiled(date, Calendar.MONTH));
          assertEquals(2, getCalFiled(date, Calendar.DAY_OF_MONTH));
  
          date = (Date) converter.convert("01/02/2017");
          assertEquals(2017, getCalFiled(date, Calendar.YEAR));
          assertEquals(Calendar.JANUARY, getCalFiled(date, Calendar.MONTH));
          assertEquals(2, getCalFiled(date, Calendar.DAY_OF_MONTH));
      }
test_case.class_method_signature: StringToDateConverterTest.testSimpleDateFormat()
test_case.full_signature: @Test public void testSimpleDateFormat()
test_case.identifier: testSimpleDateFormat
test_case.invocations: convert assertEquals getCalFiled assertEquals getCalFiled assertEquals getCalFiled convert assertEquals getCalFiled assertEquals getCalFiled assertEquals getCalFiled
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSimpleDateFormat()
focal_class.declarator: dateParser = new Parser()
focal_class.modifier: private final static
focal_class.original_string: private final static Parser dateParser = new Parser();
focal_class.type: Parser
focal_class.var_name: dateParser
focal_class.file: beanmother-core/src/main/java/io/beanmother/core/converter/std/StringToDateConverter.java
focal_class.identifier: StringToDateConverter
focal_class.class_method_signature: StringToDateConverter.convert(String source)
focal_class.full_signature: @Override public Date convert(String source)
focal_class.identifier: convert
focal_class.modifiers: @Override public
focal_class.parameters: (String source)
focal_class.return: Date
focal_class.signature: Date convert(String source)
focal_class.superclass: extends AbstractGenericConverter<String, Date>
focal_method.body: @Override
      public Date convert(String source) {
          List<DateGroup> groups = dateParser.parse(source);
          if (groups.size() > 0 && groups.get(0).getDates().size() > 0) {
              return groups.get(0).getDates().get(0);
          }
          throw new ConverterException("can not convert '" + source + "' to java.util.Date");
      }
focal_method.class_method_signature: StringToDateConverter.convert(String source)
focal_method.full_signature: @Override public Date convert(String source)
focal_method.identifier: convert
focal_method.invocations: parse size size getDates get get getDates get
focal_method.modifiers: @Override public
focal_method.parameters: (String source)
focal_method.return: Date
focal_method.signature: Date convert(String source)