]
Galder Zamarreño resolved ISPN-5473.
------------------------------------
Resolution: Done
Replace printStackTrace with logging in the test suite
------------------------------------------------------
Key: ISPN-5473
URL:
https://issues.jboss.org/browse/ISPN-5473
Project: Infinispan
Issue Type: Task
Components: Test Suite - Core
Affects Versions: 7.2.1.Final
Reporter: Dan Berindei
Assignee: Dan Berindei
Fix For: 8.0.0.Alpha1
Other logging issues in the test suite:
* Some tests use System.out for output
* ClusteredSecureCacheTest.clearContent() writes a stack trace on System.err:
{noformat}
java.lang.NoSuchFieldException: componentRegistry
at java.lang.Class.getDeclaredField(Class.java:2070)
at org.infinispan.test.TestingUtil.extractField(TestingUtil.java:186)
at org.infinispan.test.TestingUtil.extractField(TestingUtil.java:166)
at org.infinispan.test.TestingUtil.extractComponentRegistry(TestingUtil.java:857)
at org.infinispan.test.TestingUtil.extractComponent(TestingUtil.java:1022)
at org.infinispan.test.TestingUtil.getTransactionManager(TestingUtil.java:1035)
at org.infinispan.test.TestingUtil.clearRunningTx(TestingUtil.java:720)
at org.infinispan.test.TestingUtil.clearContent(TestingUtil.java:677)
at org.infinispan.test.TestingUtil.clearContent(TestingUtil.java:666)
at
org.infinispan.test.MultipleCacheManagersTest.clearContent(MultipleCacheManagersTest.java:98)
at
org.infinispan.security.ClusteredSecureCacheTest.access$301(ClusteredSecureCacheTest.java:22)
at
org.infinispan.security.ClusteredSecureCacheTest$3.run(ClusteredSecureCacheTest.java:61)
at
org.infinispan.security.ClusteredSecureCacheTest$3.run(ClusteredSecureCacheTest.java:57)
at org.infinispan.security.Security.doAs(Security.java:143)
at
org.infinispan.security.ClusteredSecureCacheTest.clearContent(ClusteredSecureCacheTest.java:57)
{noformat}