]
ehsavoie Hugonnet commented on WFCORE-849:
------------------------------------------
Since the test doesn't keep a strong reference on the logger it gets garbage collected
during it.
XmlCompletionScannerTest fails with IBM JDK 8
---------------------------------------------
Key: WFCORE-849
URL:
https://issues.jboss.org/browse/WFCORE-849
Project: WildFly Core
Issue Type: Bug
Components: Test Suite
Affects Versions: 2.0.0.Alpha11
Reporter: Marek Kopecký
Assignee: ehsavoie Hugonnet
*Description of problem:*
org.jboss.as.server.deployment.scanner.XmlCompletionScannerTest#testIncompleteDocument
fails on IBM JDK 8
*How reproducible:*
100% on RHEL7 && IBM JDK 8
60% on RHEL6 && 64-bit && IBM JDK 8
*Steps to Reproduce:*
# get fresh wildfly-core
# cd deployment-scanner
# mvn test -fae -Dmaven.test.failure.ignore=true -Dnode0=$MYTESTIP_1
-DfailIfNoTests=false -Dtest=XmlCompletionScannerTest
*Actual results:*
{noformat}
Running org.jboss.as.server.deployment.scanner.XmlCompletionScannerTest
Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.254 sec <<<
FAILURE! - in org.jboss.as.server.deployment.scanner.XmlCompletionScannerTest
testIncompleteDocument(org.jboss.as.server.deployment.scanner.XmlCompletionScannerTest)
Time elapsed: 0.214 sec <<< FAILURE!
java.lang.AssertionError:
Expected: is <1>
but: was <0>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.junit.Assert.assertThat(Assert.java:865)
at org.junit.Assert.assertThat(Assert.java:832)
at
org.jboss.as.server.deployment.scanner.XmlCompletionScannerTest.testIncompleteDocument(XmlCompletionScannerTest.java:65)
{noformat}
*Expected results:*
No errors in output