test_class.declarator: temporaryFolder = new TemporaryFolder()
test_class.modifier: @Rule
      public
test_class.original_string: @Rule
      public TemporaryFolder temporaryFolder = new TemporaryFolder();
test_class.type: TemporaryFolder
test_class.var_name: temporaryFolder
test_class.file: conjure-core/src/test/java/com/palantir/conjure/parser/ConjureParserTest.java
test_class.identifier: ConjureParserTest
test_case.body: @Test
      public void testConjureUnionTypeDeprecation() {
          ConjureSourceFile conjure = ConjureParser.parse(new File("src/test/resources/example-deprecation.yml"));
          UnionTypeDefinition union = conjure.types()
                  .definitions()
                  .objects()
                  .get(TypeName.of("UnionWithDeprecatedTypes"))
                  .visit(new TypeDefinitionVisitor<UnionTypeDefinition>() {
                      @Override
                      public UnionTypeDefinition visit(AliasTypeDefinition _def) {
                          throw new SafeIllegalArgumentException("Expected EnumTypeDefinition");
                      }
  
                      @Override
                      public UnionTypeDefinition visit(EnumTypeDefinition _def) {
                          throw new SafeIllegalArgumentException("Expected EnumTypeDefinition");
                      }
  
                      @Override
                      public UnionTypeDefinition visit(ObjectTypeDefinition _def) {
                          throw new SafeIllegalArgumentException("Expected EnumTypeDefinition");
                      }
  
                      @Override
                      public UnionTypeDefinition visit(UnionTypeDefinition def) {
                          return def;
                      }
                  });
          assertThat(union.union().get(FieldName.of("first")).deprecated()).isNotPresent();
          assertThat(union.union().get(FieldName.of("second")).deprecated()).hasValue("Use 'first'.");
      }
test_case.class_method_signature: ConjureParserTest.testConjureUnionTypeDeprecation()
test_case.full_signature: @Test public void testConjureUnionTypeDeprecation()
test_case.identifier: testConjureUnionTypeDeprecation
test_case.invocations: parse visit get objects definitions types of isNotPresent assertThat deprecated get union of hasValue assertThat deprecated get union of
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testConjureUnionTypeDeprecation()
focal_class.declarator: MAPPER = createConjureParserObjectMapper()
focal_class.modifier: private static final
focal_class.original_string: private static final ObjectMapper MAPPER = createConjureParserObjectMapper();
focal_class.type: ObjectMapper
focal_class.var_name: MAPPER
focal_class.file: conjure-core/src/main/java/com/palantir/conjure/parser/ConjureParser.java
focal_class.identifier: ConjureParser
focal_class.class_method_signature: ConjureParser.ConjureParser()
focal_class.full_signature: private  ConjureParser()
focal_class.identifier: ConjureParser
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  ConjureParser()
focal_class.class_method_signature: ConjureParser.parse(File file)
focal_class.full_signature: public static ConjureSourceFile parse(File file)
focal_class.identifier: parse
focal_class.modifiers: public static
focal_class.parameters: (File file)
focal_class.return: ConjureSourceFile
focal_class.signature: ConjureSourceFile parse(File file)
focal_class.class_method_signature: ConjureParser.parseAnnotated(File file)
focal_class.full_signature: public static AnnotatedConjureSourceFile parseAnnotated(File file)
focal_class.identifier: parseAnnotated
focal_class.modifiers: public static
focal_class.parameters: (File file)
focal_class.return: AnnotatedConjureSourceFile
focal_class.signature: AnnotatedConjureSourceFile parseAnnotated(File file)
focal_class.class_method_signature: ConjureParser.parseAnnotated(Collection<File> files)
focal_class.full_signature: public static List<AnnotatedConjureSourceFile> parseAnnotated(Collection<File> files)
focal_class.identifier: parseAnnotated
focal_class.modifiers: public static
focal_class.parameters: (Collection<File> files)
focal_class.return: List<AnnotatedConjureSourceFile>
focal_class.signature: List<AnnotatedConjureSourceFile> parseAnnotated(Collection<File> files)
focal_class.class_method_signature: ConjureParser.parseAnnotated(RecursiveParser parser, File file)
focal_class.full_signature: private static AnnotatedConjureSourceFile parseAnnotated(RecursiveParser parser, File file)
focal_class.identifier: parseAnnotated
focal_class.modifiers: private static
focal_class.parameters: (RecursiveParser parser, File file)
focal_class.return: AnnotatedConjureSourceFile
focal_class.signature: AnnotatedConjureSourceFile parseAnnotated(RecursiveParser parser, File file)
focal_class.class_method_signature: ConjureParser.createConjureParserObjectMapper()
focal_class.full_signature: @VisibleForTesting static ObjectMapper createConjureParserObjectMapper()
focal_class.identifier: createConjureParserObjectMapper
focal_class.modifiers: @VisibleForTesting static
focal_class.parameters: ()
focal_class.return: ObjectMapper
focal_class.signature: ObjectMapper createConjureParserObjectMapper()
focal_method.body: public static ConjureSourceFile parse(File file) {
          RecursiveParser parser = new RecursiveParser();
          return parser.parse(file);
      }
focal_method.class_method_signature: ConjureParser.parse(File file)
focal_method.full_signature: public static ConjureSourceFile parse(File file)
focal_method.identifier: parse
focal_method.invocations: parse
focal_method.modifiers: public static
focal_method.parameters: (File file)
focal_method.return: ConjureSourceFile
focal_method.signature: ConjureSourceFile parse(File file)