test_class.declarator: converter = new StringToBooleanConverter()
test_class.original_string: StringToBooleanConverter converter = new StringToBooleanConverter();
test_class.type: StringToBooleanConverter
test_class.var_name: converter
test_class.file: beanmother-core/src/test/java/io/beanmother/core/converter/std/StringToBooleanConverterTest.java
test_class.identifier: StringToBooleanConverterTest
test_case.body: @Test
      public void testConvert() {
          assertTrue(converter.convert("yes"));
          assertTrue(converter.convert("t"));
          assertTrue(converter.convert("true"));
  
          assertFalse(converter.convert("false"));
          assertFalse(converter.convert("f"));
          assertFalse(converter.convert("no"));
      }
test_case.class_method_signature: StringToBooleanConverterTest.testConvert()
test_case.full_signature: @Test public void testConvert()
test_case.identifier: testConvert
test_case.invocations: assertTrue convert assertTrue convert assertTrue convert assertFalse convert assertFalse convert assertFalse convert
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testConvert()
focal_class.declarator: TRUE_STRING
focal_class.modifier: private final static
focal_class.original_string: private final static Set<String> TRUE_STRING;
focal_class.type: Set<String>
focal_class.var_name: TRUE_STRING
focal_class.declarator: FALSE_STRING
focal_class.modifier: private final static
focal_class.original_string: private final static Set<String> FALSE_STRING;
focal_class.type: Set<String>
focal_class.var_name: FALSE_STRING
focal_class.file: beanmother-core/src/main/java/io/beanmother/core/converter/std/StringToBooleanConverter.java
focal_class.identifier: StringToBooleanConverter
focal_class.class_method_signature: StringToBooleanConverter.convert(String source)
focal_class.full_signature: @Override public Boolean convert(String source)
focal_class.identifier: convert
focal_class.modifiers: @Override public
focal_class.parameters: (String source)
focal_class.return: Boolean
focal_class.signature: Boolean convert(String source)
focal_class.superclass: extends AbstractGenericConverter<String, Boolean>
focal_method.body: @Override
      public Boolean convert(String source) {
          String normalize = source.trim().toLowerCase();
          if (TRUE_STRING.contains(normalize)) {
              return true;
          } else if (FALSE_STRING.contains(normalize)) {
              return false;
          } else {
              throw new ConverterException(source, getTargetTypeToken().getRawType());
          }
      }
focal_method.class_method_signature: StringToBooleanConverter.convert(String source)
focal_method.full_signature: @Override public Boolean convert(String source)
focal_method.identifier: convert
focal_method.invocations: toLowerCase trim contains contains getRawType getTargetTypeToken
focal_method.modifiers: @Override public
focal_method.parameters: (String source)
focal_method.return: Boolean
focal_method.signature: Boolean convert(String source)