1

我收到此错误

XQTest.lambda$null$0:51 » NoClassDefFound Could not initialize class weblogic....
java.lang.NoClassDefFoundError: Could not initialize class weblogic.xml.query.parsers.StAXFactoryHelper

这是我的测试:

@TestFactory
public Stream<DynamicTest> XQueryDynamicTestsFromStream() throws IOException {
    ArrayList<Tuple4> tuple4 = buildTest.buildTestFromResources();

    System.out.println("TEST");


    return tuple4.stream()
                 .map(phrs ->
                      DynamicTest.dynamicTest(
                          "Test XQuery: (" + phrs.a.substring(phrs.a.lastIndexOf("\\") + 1) + ")"
                          , () -> {
                              int idx = tuple4.indexOf(phrs);
                              String transformer = tuple4.get(idx).a;
                              String testPath = tuple4.get(idx).b;
                              String inpFile = tuple4.get(idx).c;
                              String expFile = tuple4.get(idx).d;

                              XQueryTester tester = new XQueryTester(transformer, testPath);

                              if (inpFile.contains("HDR")) {
                                  assertTrue(tester.testHeader(inpFile, expFile));
                              } else if (inpFile.contains("PAY")) {
                                  causing error->assertTrue(tester.testBody(inpFile, expFile));
                              }


                          }
                      )
                 );
}

供您参考:我正在测试 XQueries 并因此编写了我自己的引擎XQueryTester,我将其实例化为"tester".

根据我搜索的文件,XQueryTest (buildTest)我正在运行标头或有效负载测试。

4

0 回答 0