Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-3002

Reduce ordering test default logging output in Util

    Details

      Description

      The logging for Util's ordering tests outputs around 10,000 lines by default. This should be reduced, and the verbose logging should only be included when the logger is set to the finest logging level.

      Example output:

      Running com.liferay.faces.util.xml.OrderingTest
      20:33:01,031 WARN  [FacesConfigDescriptorParserImpl:183] Stray content found when parsing FacesConfig named ICEfacesAce. -> Ordering -> after -> content found: ICEfacesCore ... probably belongs inside of a 'name' tag.
      20:33:01,033 WARN  [FacesConfigDescriptorParserImpl:186] Assuming 'ICEfacesCore' is a name ...
      20:33:01,044 INFO  [OrderingTest:372] test00_3: Passed
       original: [ICEfacesCore, LiferayFacesUtil, LiferayFacesBridge, ICEfacesAce, LiferayFacesAlloy]
       expected: [ICEfacesCore, LiferayFacesUtil, LiferayFacesBridge, LiferayFacesAlloy, ICEfacesAce, ]
             or: [ICEfacesCore, ICEfacesAce, LiferayFacesUtil, LiferayFacesBridge, LiferayFacesAlloy, ]
       actually: [ICEfacesCore, LiferayFacesUtil, LiferayFacesBridge, LiferayFacesAlloy, ICEfacesAce, ]
      
      20:33:01,058 WARN  [FacesConfigDescriptorParserImpl:183] Stray content found when parsing FacesConfig named ICEfacesAce. -> Ordering -> after -> content found: ICEfacesCore ... probably belongs inside of a 'name' tag.
      20:33:01,058 WARN  [FacesConfigDescriptorParserImpl:186] Assuming 'ICEfacesCore' is a name ...
      20:33:01,061 INFO  [OrderingTest:245] test00_1: Passed
       original: [ICEfacesCore, LiferayFacesAlloy, LiferayFacesBridge, ICEfacesAce, LiferayFacesUtil]
       expected: [ICEfacesCore, LiferayFacesUtil, LiferayFacesBridge, LiferayFacesAlloy, ICEfacesAce, ]
             or: [ICEfacesCore, ICEfacesAce, LiferayFacesUtil, LiferayFacesBridge, LiferayFacesAlloy, ]
       actually: [ICEfacesCore, LiferayFacesUtil, LiferayFacesBridge, LiferayFacesAlloy, ICEfacesAce, ]
      
      20:33:01,077 INFO  [OrderingTest:311] test00_2: Passed
       original: [richfaces_core, ICEfacesAce, LiferayFacesUtil, LiferayFacesBridge, ICEfacesCore, LiferayFacesAlloy]
       expected: [ICEfacesCore, LiferayFacesUtil, LiferayFacesBridge, LiferayFacesAlloy, richfaces_core, ICEfacesAce, ]
             or: [ICEfacesCore, LiferayFacesUtil, LiferayFacesBridge, LiferayFacesAlloy, ICEfacesAce, richfaces_core, ]
             or: [ICEfacesCore, LiferayFacesUtil, LiferayFacesBridge, richfaces_core, LiferayFacesAlloy, ICEfacesAce, ]
       actually: [ICEfacesCore, LiferayFacesUtil, LiferayFacesBridge, LiferayFacesAlloy, richfaces_core, ICEfacesAce, ]
      
      20:33:01,090 INFO  [OrderingTest:183] test00_0: Passed
       original: [prettyfaces, LiferayFacesAlloy, LiferayFacesBridge, LiferayFacesUtil]
       expected: [LiferayFacesUtil, LiferayFacesBridge, prettyfaces, LiferayFacesAlloy, ]
       actually: [LiferayFacesUtil, LiferayFacesBridge, prettyfaces, LiferayFacesAlloy, ]
      
      20:33:01,095 INFO  [OrderingTest:415] test01_fromSpec: Passed
       original: [B, C, A]
       expected: [C, B, A, my]
       actually: [C, B, A, my]
      
      20:33:01,101 INFO  [OrderingTest:458] test02_fromSpec: Passed
       original: [A, C, B]
       expected: [C, A, my]
       actually: [C, A, my]
      
      20:33:01,103 INFO  [OrderingTest:482] test03_getAbsoluteOrdering: 
       expected: [a, b, c]
       actually: [a, b, c]
      
      20:33:01,106 INFO  [OrderingTest:498] test03_getAbsoluteOrdering: 
       expected: [a, b, com.liferay.faces.util.config.internal.Ordering.OTHERS, c]
       actually: [a, b, com.liferay.faces.util.config.internal.Ordering.OTHERS, c]
      
      20:33:01,108 INFO  [OrderingTest:509] test03_getAbsoluteOrdering: Passed
      
      20:33:01,112 INFO  [OrderingTest:549] test04_absoluteOrdering: 
       original: [a, d, e, f, b, c]
       expected: [a, b, c]
       actually: [a, b, c]
      
      20:33:01,114 INFO  [OrderingTest:565] test04_absoluteOrdering: absoluteOrdering = [a, b, com.liferay.faces.util.config.internal.Ordering.OTHERS, c]
      20:33:01,115 INFO  [OrderingTest:596] test04_absoluteOrdering: Passed
       original: [a, d, e, f, b, c]
       expected: [a, b, e, d, f, c]
             or: [a, b, f, e, d, c]
             or: [a, b, f, d, e, c]
             or: [a, b, d, e, f, c]
             or: [a, b, d, f, e, c]
             or: [a, b, e, f, d, c]
       actually: [a, b, f, e, d, c]
      
      20:33:01,119 INFO  [OrderingTest:634] test05_AafterCOthers_BbeforeOthers_CafterOthers_FbeforeCOthers: Passed
       original: [e, f, c, a, d, b]
       expected: [f, b, e, d, c, a]
             or: [f, b, d, e, c, a]
             or: [b, f, d, e, c, a]
             or: [b, f, e, d, c, a]
       actually: [f, b, e, d, c, a]
      
      20:33:01,123 INFO  [OrderingTest:665] test06_CafterDbeforeOthers: Passed
       original: [b, c, a, d]
       expected: [d, c, a, b]
             or: [d, c, b, a]
       actually: [d, c, b, a]
      
      20:33:01,126 INFO  [OrderingTest:689] test07_eachAfterTheNext: Passed
       original: [c, d, b, a]
       expected: [d, c, b, a]
       actually: [d, c, b, a]
      
      20:33:01,130 INFO  [OrderingTest:714] test08_eachBeforeThePrevious: Passed
       original: [d, a, b, c]
       expected: [d, c, b, a]
       actually: [d, c, b, a]
      
      20:33:01,134 INFO  [OrderingTest:735] test10_AafterBbeforeB_CbeforeOthers: Passed
       Expected exception thrown: e.getMessage() = a cannot be both before and after b
      
      20:33:01,140 INFO  [OrderingTest:773] test11_CafterOthersbeforeB: Passed
       original: [a, c, d, b]
       expected: [a, d, c, b]
             or: [d, a, c, b]
       actually: [a, d, c, b]
      
      20:33:01,143 INFO  [OrderingTest:793] test12_BafterC_CafterB: Passed
       Expected exception thrown: e.getMessage() = Circular dependencies detected when traversing 'AFTER' declarations: c AFTER: [b]
       b AFTER: [c]
      
      20:33:01,146 INFO  [OrderingTest:828] test13_circularFollowingAfterIds: Passed
       Expected exception thrown: e.getMessage() = Circular dependencies detected when traversing 'AFTER' declarations: b AFTER: [a, c]
       c AFTER: [a, b]
       a AFTER: [b]
      
      20:33:01,149 INFO  [OrderingTest:871] test14_circularFollowingBeforeIds: Passed
       Expected exception thrown: e.getMessage() = Circular dependencies detected when traversing 'BEFORE' declarations: c BEFORE: [a, b]
       b BEFORE: [a, c]
       a BEFORE: [c]
      
      20:33:01,152 INFO  [OrderingTest:919] test15_BafterC_CbeforeB: Passed
       original: [b, d, a, c]
       expected: [a, c, d, b]
             or: [c, d, a, b]
             or: [c, a, d, b]
       actually: [c, d, a, b]
      
      20:33:01,156 INFO  [OrderingTest:951] test16_AafterB_CbeforeOthers: Passed
       original: [a, b, d, c]
       expected: [c, b, d, a]
             or: [c, d, b, a]
       actually: [c, b, d, a]
      
      20:33:01,161 INFO  [OrderingTest:991] test18_AafterC_BafterCbeforeOthers_CafterDbeforeB_EafterD: Passed
       original: [e, d, b, c, f, a]
       expected: [d, c, b, f, a, e]
       actually: [d, c, b, f, a, e]
      
      20:33:01,165 INFO  [OrderingTest:1038] test19_FbeforeD_EbeforeDafterOthers_DbeforeCafterE_BbeforeC: Passed
       original: [e, a, f, b, d, c]
       expected: [f, e, d, b, a, c]
             or: [f, e, d, b, c, a]
             or: [a, b, f, e, d, c]
       actually: [f, e, d, b, a, c]
      
      20:33:01,171 INFO  [OrderingTest:1095] test20_beforeCafterOthers_BbeforeOthers_DafterOthers_EbeforeOthers_permute: Passed
       original: [, b, c, d, e, f]
       expected: [b, e, f, , c, d]
             or: [b, e, f, d, , c]
             or: [e, b, f, , c, d]
       actually: [b, e, f, , c, d]
      
      ...SNIPPED about 10000 lines...
      
      20:33:01,761 INFO  [OrderingTest:1159] test21_AafterOthers_BbeforeOthers_DafterOthers_EafterCbeforeOthers_permute: Passed
       original: [f, e, b, a, c, d]
       expected: [b, c, e, f, a, d]
             or: [b, c, e, f, d, a]
             or: [c, e, b, f, a, d]
             or: [c, e, b, f, d, a]
       actually: [b, c, e, f, a, d]
      
      20:33:01,776 INFO  [OrderingTest:1195] test_JAVASERVERFACES_3757_AafterD_BafterCbeforeOthers_CafterDbeforeB_startWithABCD: Passed
       original: [a, b, c, d]
       expected: [d, c, b, a]
       actually: [d, c, b, a]
      
      20:33:01,778 INFO  [OrderingTest:1230] test_JAVASERVERFACES_3757_AafterD_BafterCbeforeOthers_CafterDbeforeB_startWithADBC: Passed
       original: [a, d, b, c]
       expected: [d, c, b, a]
       actually: [d, c, b, a]
      
      20:33:01,780 INFO  [OrderingTest:1267] test_JAVASERVERFACES_3757_Caftera_startWithCab: Passed
       original: [C, a, ]
       expected: [a, , C]
       actually: [a, , C]
      
      20:33:01,782 INFO  [OrderingTest:1304] test_JAVASERVERFACES_3757_noOrdering_startWithCab: Passed
       original: [C, a, ]
       expected: [C, a, ]
       actually: [C, a, ]
      
      Tests run: 27, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.786 sec
      

        Attachments

          Activity

            People

            • Assignee:
              kyle.stiemann Kyle Stiemann (Inactive)
              Reporter:
              kyle.stiemann Kyle Stiemann (Inactive)
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                util-1.1.0
                util-2.1.0
                util-3.1.0