test_class.file: dubbo-common/src/test/java/org/apache/dubbo/common/utils/LogUtilTest.java
test_class.identifier: LogUtilTest
test_case.body: @Test
      public void testFindMessage1() throws Exception {
          Log log = mock(Log.class);
          DubboAppender.logList.add(log);
          when(log.getLogMessage()).thenReturn("message");
          assertThat(LogUtil.findMessage("message"), equalTo(1));
      }
test_case.class_method_signature: LogUtilTest.testFindMessage1()
test_case.full_signature: @Test public void testFindMessage1()
test_case.identifier: testFindMessage1
test_case.invocations: mock add thenReturn when getLogMessage assertThat findMessage equalTo
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFindMessage1()
focal_class.declarator: Log = LoggerFactory.getLogger(LogUtil.class)
focal_class.modifier: private static
focal_class.original_string: private static Logger Log = LoggerFactory.getLogger(LogUtil.class);
focal_class.type: Logger
focal_class.var_name: Log
focal_class.file: dubbo-common/src/main/java/org/apache/dubbo/common/utils/LogUtil.java
focal_class.identifier: LogUtil
focal_class.class_method_signature: LogUtil.start()
focal_class.full_signature: public static void start()
focal_class.identifier: start
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void start()
focal_class.class_method_signature: LogUtil.stop()
focal_class.full_signature: public static void stop()
focal_class.identifier: stop
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void stop()
focal_class.class_method_signature: LogUtil.checkNoError()
focal_class.full_signature: public static boolean checkNoError()
focal_class.identifier: checkNoError
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean checkNoError()
focal_class.class_method_signature: LogUtil.findName(String expectedLogName)
focal_class.full_signature: public static int findName(String expectedLogName)
focal_class.identifier: findName
focal_class.modifiers: public static
focal_class.parameters: (String expectedLogName)
focal_class.return: int
focal_class.signature: int findName(String expectedLogName)
focal_class.class_method_signature: LogUtil.findLevel(Level expectedLevel)
focal_class.full_signature: public static int findLevel(Level expectedLevel)
focal_class.identifier: findLevel
focal_class.modifiers: public static
focal_class.parameters: (Level expectedLevel)
focal_class.return: int
focal_class.signature: int findLevel(Level expectedLevel)
focal_class.class_method_signature: LogUtil.findLevelWithThreadName(Level expectedLevel, String threadName)
focal_class.full_signature: public static int findLevelWithThreadName(Level expectedLevel, String threadName)
focal_class.identifier: findLevelWithThreadName
focal_class.modifiers: public static
focal_class.parameters: (Level expectedLevel, String threadName)
focal_class.return: int
focal_class.signature: int findLevelWithThreadName(Level expectedLevel, String threadName)
focal_class.class_method_signature: LogUtil.findThread(String expectedThread)
focal_class.full_signature: public static int findThread(String expectedThread)
focal_class.identifier: findThread
focal_class.modifiers: public static
focal_class.parameters: (String expectedThread)
focal_class.return: int
focal_class.signature: int findThread(String expectedThread)
focal_class.class_method_signature: LogUtil.findMessage(String expectedMessage)
focal_class.full_signature: public static int findMessage(String expectedMessage)
focal_class.identifier: findMessage
focal_class.modifiers: public static
focal_class.parameters: (String expectedMessage)
focal_class.return: int
focal_class.signature: int findMessage(String expectedMessage)
focal_class.class_method_signature: LogUtil.findMessage(Level expectedLevel, String expectedMessage)
focal_class.full_signature: public static int findMessage(Level expectedLevel, String expectedMessage)
focal_class.identifier: findMessage
focal_class.modifiers: public static
focal_class.parameters: (Level expectedLevel, String expectedMessage)
focal_class.return: int
focal_class.signature: int findMessage(Level expectedLevel, String expectedMessage)
focal_class.class_method_signature: LogUtil.printList(List<T> list)
focal_class.full_signature: public static void printList(List<T> list)
focal_class.identifier: printList
focal_class.modifiers: public static
focal_class.parameters: (List<T> list)
focal_class.return: void
focal_class.signature: void printList(List<T> list)
focal_method.body: public static int findMessage(String expectedMessage) {
          int count = 0;
          List<Log> logList = DubboAppender.logList;
          for (int i = 0; i < logList.size(); i++) {
              String logMessage = logList.get(i).getLogMessage();
              if (logMessage.contains(expectedMessage)) {
                  count++;
              }
          }
          return count;
      }
focal_method.class_method_signature: LogUtil.findMessage(String expectedMessage)
focal_method.full_signature: public static int findMessage(String expectedMessage)
focal_method.identifier: findMessage
focal_method.invocations: size getLogMessage get contains
focal_method.modifiers: public static
focal_method.parameters: (String expectedMessage)
focal_method.return: int
focal_method.signature: int findMessage(String expectedMessage)