Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Groovy
Posted by: Jenya Mia
Added: Feb 24, 2020 3:05 PM
Views: 126
Tags: no tags
  1. // Don't mock the logger if running in Debug mode so we can see debug message output
  2.         if (java.lang.management.ManagementFactory.getRuntimeMXBean().getInputArguments().toString().indexOf("jdwp") == -1) {
  3.             mockConsoleLog?.toggleOn();
  4.         }