test_class.file: dubbo-plugin/dubbo-auth/src/test/java/org/apache/dubbo/auth/filter/ConsumerSignFilterTest.java
test_class.identifier: ConsumerSignFilterTest
test_case.body: @Test
      void testAuthDisabled() {
          URL url = mock(URL.class);
          Invoker invoker = mock(Invoker.class);
          Invocation invocation = mock(Invocation.class);
          when(invoker.getUrl()).thenReturn(url);
          ConsumerSignFilter consumerSignFilter = new ConsumerSignFilter();
          consumerSignFilter.invoke(invoker, invocation);
          verify(invocation, never()).setAttachment(eq(Constants.REQUEST_SIGNATURE_KEY), anyString());
      }
test_case.class_method_signature: ConsumerSignFilterTest.testAuthDisabled()
test_case.full_signature: @Test void testAuthDisabled()
test_case.identifier: testAuthDisabled
test_case.invocations: mock mock mock thenReturn when getUrl invoke setAttachment verify never eq anyString
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void testAuthDisabled()
focal_class.file: dubbo-plugin/dubbo-auth/src/main/java/org/apache/dubbo/auth/filter/ConsumerSignFilter.java
focal_class.identifier: ConsumerSignFilter
focal_class.interfaces: implements Filter
focal_class.class_method_signature: ConsumerSignFilter.invoke(Invoker<?> invoker, Invocation invocation)
focal_class.full_signature: @Override public Result invoke(Invoker<?> invoker, Invocation invocation)
focal_class.identifier: invoke
focal_class.modifiers: @Override public
focal_class.parameters: (Invoker<?> invoker, Invocation invocation)
focal_class.return: Result
focal_class.signature: Result invoke(Invoker<?> invoker, Invocation invocation)
focal_method.body: @Override
      public Result invoke(Invoker<?> invoker, Invocation invocation) throws RpcException {
          URL url = invoker.getUrl();
          boolean shouldAuth = url.getParameter(Constants.SERVICE_AUTH, false);
          if (shouldAuth) {
              Authenticator authenticator = ExtensionLoader.getExtensionLoader(Authenticator.class)
                      .getExtension(url.getParameter(Constants.AUTHENTICATOR, Constants.DEFAULT_AUTHENTICATOR));
              authenticator.sign(invocation, url);
          }
          return invoker.invoke(invocation);
      }
focal_method.class_method_signature: ConsumerSignFilter.invoke(Invoker<?> invoker, Invocation invocation)
focal_method.full_signature: @Override public Result invoke(Invoker<?> invoker, Invocation invocation)
focal_method.identifier: invoke
focal_method.invocations: getUrl getParameter getExtension getExtensionLoader getParameter sign invoke
focal_method.modifiers: @Override public
focal_method.parameters: (Invoker<?> invoker, Invocation invocation)
focal_method.return: Result
focal_method.signature: Result invoke(Invoker<?> invoker, Invocation invocation)