当我尝试执行我的JUNIT测试用例时,我收到以下错误。如果有人可以帮助我,这将是非常有帮助的。
org.junit.ComparisonFailure:Line:0:当前输出与预期输出不匹配
expected result[0]: <?xml version="1.0" encoding="iso-8859-1"?><ROOT>
current result[0]: <?xml version="1.0" encoding="iso-8859-1"?>
expected:<...oding="iso-8859-1"?>[<ROOT>]> but was:<...oding="iso-8859-1"?>[]>
at org.junit.Assert.assertEquals(Assert.java:123)
at xslt_test.utils.AssertUtil.assertLinesEquals(AssertUtil.java:14)
at xslt_test.Test_IngestRequest.testRun_BaselineFileCompare_Schedule(Test_XXXRequest.java:47)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)