test_class.file: dubbo-monitor/dubbo-monitor-default/src/test/java/org/apache/dubbo/monitor/dubbo/StatisticsTest.java
test_class.identifier: StatisticsTest
test_case.body: @Test
      public void testToString() {
          Statistics statistics = new Statistics(new URL("dubbo", "10.20.153.10", 0));
          statistics.setApplication("demo");
          statistics.setMethod("findPerson");
          statistics.setServer("10.20.153.10");
          statistics.setGroup("unit-test");
          statistics.setService("MemberService");
          assertThat(statistics.toString(), is("dubbo://10.20.153.10"));
  
          Statistics statisticsWithDetailInfo = new Statistics(new URLBuilder(DUBBO_PROTOCOL, "10.20.153.10", 0)
                  .addParameter(MonitorService.APPLICATION, "morgan")
                  .addParameter(MonitorService.INTERFACE, "MemberService")
                  .addParameter(MonitorService.METHOD, "findPerson")
                  .addParameter(MonitorService.CONSUMER, "10.20.153.11")
                  .addParameter(MonitorService.GROUP, "unit-test")
                  .addParameter(MonitorService.SUCCESS, 1)
                  .addParameter(MonitorService.FAILURE, 0)
                  .addParameter(MonitorService.ELAPSED, 3)
                  .addParameter(MonitorService.MAX_ELAPSED, 3)
                  .addParameter(MonitorService.CONCURRENT, 1)
                  .addParameter(MonitorService.MAX_CONCURRENT, 1)
                  .build());
  
          MatcherAssert.assertThat(statisticsWithDetailInfo.getServer(), equalTo(statistics.getServer()));
          MatcherAssert.assertThat(statisticsWithDetailInfo.getService(), equalTo(statistics.getService()));
          MatcherAssert.assertThat(statisticsWithDetailInfo.getMethod(), equalTo(statistics.getMethod()));
  
          MatcherAssert.assertThat(statisticsWithDetailInfo.getGroup(), equalTo(statistics.getGroup()));
          MatcherAssert.assertThat(statisticsWithDetailInfo, not(equalTo(statistics)));
      }
test_case.class_method_signature: StatisticsTest.testToString()
test_case.full_signature: @Test public void testToString()
test_case.identifier: testToString
test_case.invocations: setApplication setMethod setServer setGroup setService assertThat toString is build addParameter addParameter addParameter addParameter addParameter addParameter addParameter addParameter addParameter addParameter addParameter assertThat getServer equalTo getServer assertThat getService equalTo getService assertThat getMethod equalTo getMethod assertThat getGroup equalTo getGroup assertThat not equalTo
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testToString()
focal_class.declarator: serialVersionUID = -6921183057683641441L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = -6921183057683641441L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: url
focal_class.modifier: private
focal_class.original_string: private URL url;
focal_class.type: URL
focal_class.var_name: url
focal_class.declarator: application
focal_class.modifier: private
focal_class.original_string: private String application;
focal_class.type: String
focal_class.var_name: application
focal_class.declarator: service
focal_class.modifier: private
focal_class.original_string: private String service;
focal_class.type: String
focal_class.var_name: service
focal_class.declarator: method
focal_class.modifier: private
focal_class.original_string: private String method;
focal_class.type: String
focal_class.var_name: method
focal_class.declarator: group
focal_class.modifier: private
focal_class.original_string: private String group;
focal_class.type: String
focal_class.var_name: group
focal_class.declarator: version
focal_class.modifier: private
focal_class.original_string: private String version;
focal_class.type: String
focal_class.var_name: version
focal_class.declarator: client
focal_class.modifier: private
focal_class.original_string: private String client;
focal_class.type: String
focal_class.var_name: client
focal_class.declarator: server
focal_class.modifier: private
focal_class.original_string: private String server;
focal_class.type: String
focal_class.var_name: server
focal_class.file: dubbo-monitor/dubbo-monitor-default/src/main/java/org/apache/dubbo/monitor/dubbo/Statistics.java
focal_class.identifier: Statistics
focal_class.interfaces: implements Serializable
focal_class.class_method_signature: Statistics.Statistics(URL url)
focal_class.full_signature: public  Statistics(URL url)
focal_class.identifier: Statistics
focal_class.modifiers: public
focal_class.parameters: (URL url)
focal_class.signature:  Statistics(URL url)
focal_class.class_method_signature: Statistics.getUrl()
focal_class.full_signature: public URL getUrl()
focal_class.identifier: getUrl
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: URL
focal_class.signature: URL getUrl()
focal_class.class_method_signature: Statistics.setUrl(URL url)
focal_class.full_signature: public void setUrl(URL url)
focal_class.identifier: setUrl
focal_class.modifiers: public
focal_class.parameters: (URL url)
focal_class.return: void
focal_class.signature: void setUrl(URL url)
focal_class.class_method_signature: Statistics.getApplication()
focal_class.full_signature: public String getApplication()
focal_class.identifier: getApplication
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getApplication()
focal_class.class_method_signature: Statistics.setApplication(String application)
focal_class.full_signature: public Statistics setApplication(String application)
focal_class.identifier: setApplication
focal_class.modifiers: public
focal_class.parameters: (String application)
focal_class.return: Statistics
focal_class.signature: Statistics setApplication(String application)
focal_class.class_method_signature: Statistics.getService()
focal_class.full_signature: public String getService()
focal_class.identifier: getService
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getService()
focal_class.class_method_signature: Statistics.setService(String service)
focal_class.full_signature: public Statistics setService(String service)
focal_class.identifier: setService
focal_class.modifiers: public
focal_class.parameters: (String service)
focal_class.return: Statistics
focal_class.signature: Statistics setService(String service)
focal_class.class_method_signature: Statistics.getGroup()
focal_class.full_signature: public String getGroup()
focal_class.identifier: getGroup
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getGroup()
focal_class.class_method_signature: Statistics.setGroup(String group)
focal_class.full_signature: public void setGroup(String group)
focal_class.identifier: setGroup
focal_class.modifiers: public
focal_class.parameters: (String group)
focal_class.return: void
focal_class.signature: void setGroup(String group)
focal_class.class_method_signature: Statistics.getVersion()
focal_class.full_signature: public String getVersion()
focal_class.identifier: getVersion
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getVersion()
focal_class.class_method_signature: Statistics.setVersion(String version)
focal_class.full_signature: public void setVersion(String version)
focal_class.identifier: setVersion
focal_class.modifiers: public
focal_class.parameters: (String version)
focal_class.return: void
focal_class.signature: void setVersion(String version)
focal_class.class_method_signature: Statistics.getMethod()
focal_class.full_signature: public String getMethod()
focal_class.identifier: getMethod
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getMethod()
focal_class.class_method_signature: Statistics.setMethod(String method)
focal_class.full_signature: public Statistics setMethod(String method)
focal_class.identifier: setMethod
focal_class.modifiers: public
focal_class.parameters: (String method)
focal_class.return: Statistics
focal_class.signature: Statistics setMethod(String method)
focal_class.class_method_signature: Statistics.getClient()
focal_class.full_signature: public String getClient()
focal_class.identifier: getClient
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getClient()
focal_class.class_method_signature: Statistics.setClient(String client)
focal_class.full_signature: public Statistics setClient(String client)
focal_class.identifier: setClient
focal_class.modifiers: public
focal_class.parameters: (String client)
focal_class.return: Statistics
focal_class.signature: Statistics setClient(String client)
focal_class.class_method_signature: Statistics.getServer()
focal_class.full_signature: public String getServer()
focal_class.identifier: getServer
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getServer()
focal_class.class_method_signature: Statistics.setServer(String server)
focal_class.full_signature: public Statistics setServer(String server)
focal_class.identifier: setServer
focal_class.modifiers: public
focal_class.parameters: (String server)
focal_class.return: Statistics
focal_class.signature: Statistics setServer(String server)
focal_class.class_method_signature: Statistics.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: Statistics.equals(Object obj)
focal_class.full_signature: @Override public boolean equals(Object obj)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object obj)
focal_class.return: boolean
focal_class.signature: boolean equals(Object obj)
focal_class.class_method_signature: Statistics.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_method.body: @Override
      public String toString() {
          return url.toString();
      }
focal_method.class_method_signature: Statistics.toString()
focal_method.full_signature: @Override public String toString()
focal_method.identifier: toString
focal_method.invocations: toString
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: String
focal_method.signature: String toString()