test_class.file: fabric-manager/src/test/java/com/olacabs/fabric/manager/converter/JsonSetConverterTest.java
test_class.identifier: JsonSetConverterTest
test_case.body: @Test
      public void shouldConvertStringToDatabaseColumn() {
          JsonSetConverter converter = new JsonSetConverter();
          Set<String> set = Sets.newHashSet();
          set.add("element_1");
          set.add("element_2");
          String json = converter.convertToDatabaseColumn(set);
          boolean valid = (json.equalsIgnoreCase("[\"element_1\",\"element_2\"]")
                  || json.equalsIgnoreCase("[\"element_2\",\"element_1\"]"));
          assertTrue(valid);
      }
test_case.class_method_signature: JsonSetConverterTest.shouldConvertStringToDatabaseColumn()
test_case.full_signature: @Test public void shouldConvertStringToDatabaseColumn()
test_case.identifier: shouldConvertStringToDatabaseColumn
test_case.invocations: newHashSet add add convertToDatabaseColumn equalsIgnoreCase equalsIgnoreCase assertTrue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldConvertStringToDatabaseColumn()
focal_class.declarator: serializer
focal_class.modifier: private final
focal_class.original_string: private final ObjectMapper serializer;
focal_class.type: ObjectMapper
focal_class.var_name: serializer
focal_class.file: fabric-manager/src/main/java/com/olacabs/fabric/manager/converter/JsonSetConverter.java
focal_class.identifier: JsonSetConverter
focal_class.interfaces: implements AttributeConverter<Set, String>
focal_class.class_method_signature: JsonSetConverter.JsonSetConverter()
focal_class.full_signature: public  JsonSetConverter()
focal_class.identifier: JsonSetConverter
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  JsonSetConverter()
focal_class.class_method_signature: JsonSetConverter.JsonSetConverter(final ObjectMapper serializer)
focal_class.full_signature: public  JsonSetConverter(final ObjectMapper serializer)
focal_class.identifier: JsonSetConverter
focal_class.modifiers: public
focal_class.parameters: (final ObjectMapper serializer)
focal_class.signature:  JsonSetConverter(final ObjectMapper serializer)
focal_class.class_method_signature: JsonSetConverter.convertToDatabaseColumn(final Set value)
focal_class.full_signature: @Override public String convertToDatabaseColumn(final Set value)
focal_class.identifier: convertToDatabaseColumn
focal_class.modifiers: @Override public
focal_class.parameters: (final Set value)
focal_class.return: String
focal_class.signature: String convertToDatabaseColumn(final Set value)
focal_class.class_method_signature: JsonSetConverter.convertToEntityAttribute(final String value)
focal_class.full_signature: @Override public Set convertToEntityAttribute(final String value)
focal_class.identifier: convertToEntityAttribute
focal_class.modifiers: @Override public
focal_class.parameters: (final String value)
focal_class.return: Set
focal_class.signature: Set convertToEntityAttribute(final String value)
focal_method.body: @Override
      public String convertToDatabaseColumn(final Set value) {
          try {
              return serializer.writeValueAsString(value);
          } catch (final JsonProcessingException e) {
              log.error("Unable to parse Set - {}. Error - {}", value, e.getMessage(), e);
              throw new FabricManagerException(e);
          }
      }
focal_method.class_method_signature: JsonSetConverter.convertToDatabaseColumn(final Set value)
focal_method.full_signature: @Override public String convertToDatabaseColumn(final Set value)
focal_method.identifier: convertToDatabaseColumn
focal_method.invocations: writeValueAsString error getMessage
focal_method.modifiers: @Override public
focal_method.parameters: (final Set value)
focal_method.return: String
focal_method.signature: String convertToDatabaseColumn(final Set value)