@@ -685,83 +685,83 @@ private StringBuilder prettyAppend(StringBuilder builder, String name, Boolean v
685
685
}
686
686
687
687
private StringBuilder prettyAppendGreenOnSuccess (StringBuilder builder , String name , Boolean value ) {
688
- return builder .append (addIndentations (name )).append (": " ).append (value == null ? "Unknown" : (value == Boolean .TRUE ? (report .isNoColour () == false ? AnsiColors .ANSI_GREEN : AnsiColors . ANSI_RESET ) + value + AnsiColors .ANSI_RESET : value )).append ("\n " );
688
+ return builder .append (addIndentations (name )).append (": " ).append (value == null ? "Unknown" : (value == Boolean .TRUE ? (report .isNoColor () == false ? AnsiColors .ANSI_GREEN + value + AnsiColors .ANSI_RESET : value ) : value )).append ("\n " );
689
689
}
690
690
691
691
private StringBuilder prettyAppendGreenOnFailure (StringBuilder builder , String name , Boolean value ) {
692
- return builder .append (addIndentations (name )).append (": " ).append (value == null ? "Unknown" : (value == Boolean .TRUE ? value : (report .isNoColour () == false ? AnsiColors .ANSI_GREEN : AnsiColors . ANSI_RESET ) + value + AnsiColors .ANSI_RESET )).append ("\n " );
692
+ return builder .append (addIndentations (name )).append (": " ).append (value == null ? "Unknown" : (value == Boolean .TRUE ? value : (report .isNoColor () == false ? AnsiColors .ANSI_GREEN + value + AnsiColors .ANSI_RESET : value ) )).append ("\n " );
693
693
}
694
694
695
695
private StringBuilder prettyAppendRedOnSuccess (StringBuilder builder , String name , Boolean value ) {
696
- return builder .append (addIndentations (name )).append (": " ).append (value == null ? "Unknown" : (value == Boolean .TRUE ? (report .isNoColour () == false ? AnsiColors .ANSI_RED : AnsiColors . ANSI_RESET ) + value + AnsiColors .ANSI_RESET : value )).append ("\n " );
696
+ return builder .append (addIndentations (name )).append (": " ).append (value == null ? "Unknown" : (value == Boolean .TRUE ? (report .isNoColor () == false ? AnsiColors .ANSI_RED + value + AnsiColors .ANSI_RESET : value ) : value )).append ("\n " );
697
697
}
698
698
699
699
private StringBuilder prettyAppendRedOnFailure (StringBuilder builder , String name , Boolean value ) {
700
- return builder .append (addIndentations (name )).append (": " ).append (value == null ? "Unknown" : (value == Boolean .TRUE ? value : (report .isNoColour () == false ? AnsiColors .ANSI_RED : AnsiColors . ANSI_RESET ) + value + AnsiColors .ANSI_RESET )).append ("\n " );
700
+ return builder .append (addIndentations (name )).append (": " ).append (value == null ? "Unknown" : (value == Boolean .TRUE ? value : (report .isNoColor () == false ? AnsiColors .ANSI_RED + value + AnsiColors .ANSI_RESET : value ) )).append ("\n " );
701
701
}
702
702
703
703
private StringBuilder prettyAppendYellowOnFailure (StringBuilder builder , String name , Boolean value ) {
704
- return builder .append (addIndentations (name )).append (": " ).append (value == null ? "Unknown" : (value == Boolean .TRUE ? value : (report .isNoColour () == false ? AnsiColors .ANSI_YELLOW : AnsiColors . ANSI_RESET ) + value + AnsiColors .ANSI_RESET )).append ("\n " );
704
+ return builder .append (addIndentations (name )).append (": " ).append (value == null ? "Unknown" : (value == Boolean .TRUE ? value : (report .isNoColor () == false ? AnsiColors .ANSI_YELLOW + value + AnsiColors .ANSI_RESET : value ) )).append ("\n " );
705
705
}
706
706
707
707
private StringBuilder prettyAppendYellowOnSuccess (StringBuilder builder , String name , Boolean value ) {
708
- return builder .append (addIndentations (name )).append (": " ).append (value == null ? "Unknown" : (value == Boolean .TRUE ? (report .isNoColour () == false ? AnsiColors .ANSI_YELLOW : AnsiColors . ANSI_RESET ) + value + AnsiColors .ANSI_RESET : value )).append ("\n " );
708
+ return builder .append (addIndentations (name )).append (": " ).append (value == null ? "Unknown" : (value == Boolean .TRUE ? (report .isNoColor () == false ? AnsiColors .ANSI_YELLOW + value + AnsiColors .ANSI_RESET : value ) : value )).append ("\n " );
709
709
}
710
710
711
711
private StringBuilder prettyAppendGreenRed (StringBuilder builder , String name , Boolean value ) {
712
- return builder .append (addIndentations (name )).append (": " ).append (value == null ? "Unknown" : (value == Boolean .TRUE ? (report .isNoColour () == false ? AnsiColors .ANSI_GREEN : AnsiColors . ANSI_RESET ) + value + AnsiColors .ANSI_RESET : (report .isNoColour () == false ? AnsiColors .ANSI_RED : AnsiColors . ANSI_RESET ) + value + AnsiColors .ANSI_RESET )).append ("\n " );
712
+ return builder .append (addIndentations (name )).append (": " ).append (value == null ? "Unknown" : (value == Boolean .TRUE ? (report .isNoColor () == false ? AnsiColors .ANSI_GREEN + value + AnsiColors .ANSI_RESET : value ) : (report .isNoColor () == false ? AnsiColors .ANSI_RED + value + AnsiColors .ANSI_RESET : value ) )).append ("\n " );
713
713
}
714
714
715
715
private StringBuilder prettyAppendRedGreen (StringBuilder builder , String name , Boolean value ) {
716
- return builder .append (addIndentations (name )).append (": " ).append (value == null ? "Unknown" : (value == Boolean .TRUE ? (report .isNoColour () == false ? AnsiColors .ANSI_RED : AnsiColors . ANSI_RESET ) + value + AnsiColors .ANSI_RESET : (report .isNoColour () == false ? AnsiColors .ANSI_GREEN : AnsiColors . ANSI_RESET ) + value + AnsiColors .ANSI_RESET )).append ("\n " );
716
+ return builder .append (addIndentations (name )).append (": " ).append (value == null ? "Unknown" : (value == Boolean .TRUE ? (report .isNoColor () == false ? AnsiColors .ANSI_RED + value + AnsiColors .ANSI_RESET : value ) : (report .isNoColor () == false ? AnsiColors .ANSI_GREEN + value + AnsiColors .ANSI_RESET : value ) )).append ("\n " );
717
717
}
718
718
719
719
private StringBuilder prettyAppendGreenYellow (StringBuilder builder , String name , Boolean value ) {
720
- return builder .append (addIndentations (name )).append (": " ).append (value == null ? "Unknown" : (value == Boolean .TRUE ? (report .isNoColour () == false ? AnsiColors .ANSI_GREEN : AnsiColors . ANSI_RESET ) + value + AnsiColors .ANSI_RESET : (report .isNoColour () == false ? AnsiColors .ANSI_YELLOW : AnsiColors . ANSI_RESET ) + value + AnsiColors .ANSI_RESET )).append ("\n " );
720
+ return builder .append (addIndentations (name )).append (": " ).append (value == null ? "Unknown" : (value == Boolean .TRUE ? (report .isNoColor () == false ? AnsiColors .ANSI_GREEN + value + AnsiColors .ANSI_RESET : value ) : (report .isNoColor () == false ? AnsiColors .ANSI_YELLOW + value + AnsiColors .ANSI_RESET : value ) )).append ("\n " );
721
721
}
722
722
723
723
private StringBuilder prettyAppendYellowGreen (StringBuilder builder , String name , Boolean value ) {
724
- return builder .append (addIndentations (name )).append (": " ).append (value == null ? "Unknown" : (value == Boolean .TRUE ? (report .isNoColour () == false ? AnsiColors .ANSI_YELLOW : AnsiColors . ANSI_RESET ) + value + AnsiColors .ANSI_RESET : (report .isNoColour () == false ? AnsiColors .ANSI_GREEN : AnsiColors . ANSI_RESET ) + value + AnsiColors .ANSI_RESET )).append ("\n " );
724
+ return builder .append (addIndentations (name )).append (": " ).append (value == null ? "Unknown" : (value == Boolean .TRUE ? (report .isNoColor () == false ? AnsiColors .ANSI_YELLOW + value + AnsiColors .ANSI_RESET : value ) : (report .isNoColor () == false ? AnsiColors .ANSI_GREEN + value + AnsiColors .ANSI_RESET : value ) )).append ("\n " );
725
725
}
726
726
727
727
private StringBuilder prettyAppendYellow (StringBuilder builder , String value ) {
728
- return builder .append ((report .isNoColour () == false ? AnsiColors .ANSI_YELLOW : AnsiColors . ANSI_RESET ) + value + AnsiColors .ANSI_RESET ).append ("\n " );
728
+ return builder .append ((report .isNoColor () == false ? AnsiColors .ANSI_YELLOW + value + AnsiColors .ANSI_RESET : value ) ).append ("\n " );
729
729
}
730
730
731
731
private StringBuilder prettyAppendRed (StringBuilder builder , String value ) {
732
- return builder .append ((report .isNoColour () == false ? AnsiColors .ANSI_RED : AnsiColors . ANSI_RESET ) + value + AnsiColors .ANSI_RESET ).append ("\n " );
732
+ return builder .append ((report .isNoColor () == false ? AnsiColors .ANSI_RED + value + AnsiColors .ANSI_RESET : value ) ).append ("\n " );
733
733
}
734
734
735
735
private StringBuilder prettyAppendRed (StringBuilder builder , String name , String value ) {
736
- return builder .append (addIndentations (name )).append (": " ).append ((report .isNoColour () == false ? AnsiColors .ANSI_RED : AnsiColors . ANSI_RESET ) + value + AnsiColors .ANSI_RESET ).append ("\n " );
736
+ return builder .append (addIndentations (name )).append (": " ).append ((report .isNoColor () == false ? AnsiColors .ANSI_RED + value + AnsiColors .ANSI_RESET : value ) ).append ("\n " );
737
737
}
738
738
739
739
private StringBuilder prettyAppendGreen (StringBuilder builder , String value ) {
740
- return builder .append ((report .isNoColour () == false ? AnsiColors .ANSI_GREEN : AnsiColors . ANSI_RESET ) + value + AnsiColors .ANSI_RESET ).append ("\n " );
740
+ return builder .append ((report .isNoColor () == false ? AnsiColors .ANSI_GREEN + value + AnsiColors .ANSI_RESET : value ) ).append ("\n " );
741
741
}
742
742
743
743
private StringBuilder prettyAppendGreen (StringBuilder builder , String name , String value ) {
744
- return builder .append (addIndentations (name )).append (": " ).append ((report .isNoColour () == false ? AnsiColors .ANSI_GREEN : AnsiColors . ANSI_RESET ) + value + AnsiColors .ANSI_RESET ).append ("\n " );
744
+ return builder .append (addIndentations (name )).append (": " ).append ((report .isNoColor () == false ? AnsiColors .ANSI_GREEN + value + AnsiColors .ANSI_RESET : value ) ).append ("\n " );
745
745
}
746
746
747
747
private StringBuilder prettyAppendYellow (StringBuilder builder , String name , String value ) {
748
- return builder .append (addIndentations (name )).append (": " ).append ((report .isNoColour () == false ? AnsiColors .ANSI_YELLOW : AnsiColors . ANSI_RESET ) + value + AnsiColors .ANSI_RESET ).append ("\n " );
748
+ return builder .append (addIndentations (name )).append (": " ).append ((report .isNoColor () == false ? AnsiColors .ANSI_YELLOW + value + AnsiColors .ANSI_RESET : value ) ).append ("\n " );
749
749
}
750
750
751
751
private StringBuilder prettyAppendHeading (StringBuilder builder , String value ) {
752
- return builder .append ((report .isNoColour () == false ? AnsiColors .ANSI_BOLD + AnsiColors .ANSI_BLUE : AnsiColors . ANSI_RESET ) + "\n --------------------------------------------------------\n " + value + "\n \n " + AnsiColors .ANSI_RESET );
752
+ return builder .append ((report .isNoColor () == false ? AnsiColors .ANSI_BOLD + AnsiColors .ANSI_BLUE + "\n --------------------------------------------------------\n " + value + "\n \n " + AnsiColors .ANSI_RESET : " \n -------------------------------------------------------- \n " + value + " \n \n " ) );
753
753
}
754
754
755
755
private StringBuilder prettyAppendUnderlined (StringBuilder builder , String name , String value ) {
756
- return builder .append (addIndentations (name )).append (": " ).append (AnsiColors .ANSI_UNDERLINE + value + AnsiColors .ANSI_RESET ).append ("\n " );
756
+ return builder .append (addIndentations (name )).append (": " ).append (( report . isNoColor () == false ? AnsiColors .ANSI_UNDERLINE + value + AnsiColors .ANSI_RESET : value ) ).append ("\n " );
757
757
}
758
758
759
759
private StringBuilder prettyAppendUnderlined (StringBuilder builder , String name , boolean value ) {
760
- return builder .append (addIndentations (name )).append (": " ).append (AnsiColors .ANSI_UNDERLINE + value + AnsiColors .ANSI_RESET ).append ("\n " );
760
+ return builder .append (addIndentations (name )).append (": " ).append (( report . isNoColor () == false ? AnsiColors .ANSI_UNDERLINE + value + AnsiColors .ANSI_RESET : value ) ).append ("\n " );
761
761
}
762
762
763
763
private StringBuilder prettyAppendUnderlined (StringBuilder builder , String name , long value ) {
764
- return builder .append (addIndentations (name )).append (": " ).append (AnsiColors .ANSI_UNDERLINE + value + AnsiColors .ANSI_RESET ).append ("\n " );
764
+ return builder .append (addIndentations (name )).append (": " ).append (( report . isNoColor () == false ? AnsiColors .ANSI_UNDERLINE + value + AnsiColors .ANSI_RESET : value ) ).append ("\n " );
765
765
}
766
766
767
767
private void prettyAppendDrown (StringBuilder builder , String testName , DrownVulnerabilityType drownVulnerable ) {
0 commit comments