test_class.declarator: underTest = new LiquibaseXmlElementClassNotFoundFailureAnalyzer()
test_class.modifier: protected
test_class.original_string: protected FailureAnalyzer underTest = new LiquibaseXmlElementClassNotFoundFailureAnalyzer();
test_class.type: FailureAnalyzer
test_class.var_name: underTest
test_class.file: modules/flowable-spring-boot/flowable-spring-boot-starters/flowable-spring-boot-autoconfigure/src/test/java/org/flowable/spring/boot/liquibase/LiquibaseXmlElementClassNotFoundFailureAnalyzerTest.java
test_class.identifier: LiquibaseXmlElementClassNotFoundFailureAnalyzerTest
test_case.body: @Test
      void noAnalysisWhenStackTraceDoesNotContainLiquibaseProPackage() {
          ClassNotFoundException failure = new ClassNotFoundException("javax.xml.bind.annotation.XmlElement");
          StackTraceElement[] stackTrace = new StackTraceElement[] {
              new StackTraceElement("com.example.test.TestClass", "test()", null, -1),
              new StackTraceElement("com.example.test.TestClass", "testAgain()", null, -1)
          };
          failure.setStackTrace(stackTrace);
  
          assertThat(underTest.analyze(failure))
              .isNull();
      }
test_case.class_method_signature: LiquibaseXmlElementClassNotFoundFailureAnalyzerTest.noAnalysisWhenStackTraceDoesNotContainLiquibaseProPackage()
test_case.full_signature: @Test void noAnalysisWhenStackTraceDoesNotContainLiquibaseProPackage()
test_case.identifier: noAnalysisWhenStackTraceDoesNotContainLiquibaseProPackage
test_case.invocations: setStackTrace isNull assertThat analyze
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void noAnalysisWhenStackTraceDoesNotContainLiquibaseProPackage()
focal_class.file: modules/flowable-spring-boot/flowable-spring-boot-starters/flowable-spring-boot-autoconfigure/src/main/java/org/flowable/spring/boot/liquibase/LiquibaseXmlElementClassNotFoundFailureAnalyzer.java
focal_class.identifier: LiquibaseXmlElementClassNotFoundFailureAnalyzer
focal_class.class_method_signature: LiquibaseXmlElementClassNotFoundFailureAnalyzer.analyze(Throwable rootFailure, ClassNotFoundException cause)
focal_class.full_signature: @Override protected FailureAnalysis analyze(Throwable rootFailure, ClassNotFoundException cause)
focal_class.identifier: analyze
focal_class.modifiers: @Override protected
focal_class.parameters: (Throwable rootFailure, ClassNotFoundException cause)
focal_class.return: FailureAnalysis
focal_class.signature: FailureAnalysis analyze(Throwable rootFailure, ClassNotFoundException cause)
focal_class.superclass: extends AbstractFailureAnalyzer<ClassNotFoundException>
focal_method.body: @Override
      protected FailureAnalysis analyze(Throwable rootFailure, ClassNotFoundException cause) {
          String causeMessage = cause.getMessage();
  
          if (causeMessage != null && causeMessage.contains("javax.xml.bind.annotation.XmlElement")) {
              for (StackTraceElement stackTraceElement : cause.getStackTrace()) {
                  if (stackTraceElement.getClassName().startsWith("liquibase.pro.packaged")) {
                      return new FailureAnalysis(
                          "Liquibase failed to initialize due to javax.xml.bin.annotation.XmlElement not being present."
                              + " Liquibase Versions starting from 3.8.1 have problems on Java 11."
                              + " See https://liquibase.jira.com/browse/CORE-3537 for more information.",
                          "Set the liquibase version to 3.8.0",
                          cause
                      );
                  }
              }
          }
  
          return null;
      }
focal_method.class_method_signature: LiquibaseXmlElementClassNotFoundFailureAnalyzer.analyze(Throwable rootFailure, ClassNotFoundException cause)
focal_method.full_signature: @Override protected FailureAnalysis analyze(Throwable rootFailure, ClassNotFoundException cause)
focal_method.identifier: analyze
focal_method.invocations: getMessage contains getStackTrace startsWith getClassName
focal_method.modifiers: @Override protected
focal_method.parameters: (Throwable rootFailure, ClassNotFoundException cause)
focal_method.return: FailureAnalysis
focal_method.signature: FailureAnalysis analyze(Throwable rootFailure, ClassNotFoundException cause)