Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-5473

Replace printStackTrace with logging in the test suite

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 8.0.0.Alpha1
    • 7.2.1.Final
    • Test Suite
    • None

      Other logging issues in the test suite:

      • Some tests use System.out for output
      • ClusteredSecureCacheTest.clearContent() writes a stack trace on System.err:
        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)
        

              dberinde@redhat.com Dan Berindei (Inactive)
              dberinde@redhat.com Dan Berindei (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: