test_class.declarator: jndiChangeNotifier
test_class.modifier: private
test_class.original_string: private JndiChangeNotifier jndiChangeNotifier;
test_class.type: JndiChangeNotifier
test_class.var_name: jndiChangeNotifier
test_class.declarator: addressChangeListener
test_class.modifier: private
test_class.original_string: private AddressChangeListener addressChangeListener;
test_class.type: AddressChangeListener
test_class.var_name: addressChangeListener
test_class.file: simple-spring-memcached/src/test/java/com/google/code/ssm/util/jndi/JndiChangeNotifierTest.java
test_class.identifier: JndiChangeNotifierTest
test_case.body: @Test
      public void checkNullAdress() {
          JndiChangeNotifier spy = Mockito.spy(jndiChangeNotifier);
          Mockito.when(spy.getAddresses()).thenReturn(null);
  
          spy.check();
          Mockito.verifyZeroInteractions(addressChangeListener);
      }
test_case.class_method_signature: JndiChangeNotifierTest.checkNullAdress()
test_case.full_signature: @Test public void checkNullAdress()
test_case.identifier: checkNullAdress
test_case.invocations: spy thenReturn when getAddresses check verifyZeroInteractions
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void checkNullAdress()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(JndiChangeNotifier.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(JndiChangeNotifier.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: addressChangeListener
focal_class.modifier: @Getter
      @Setter
      private
focal_class.original_string: @Getter
      @Setter
      private AddressChangeListener addressChangeListener;
focal_class.type: AddressChangeListener
focal_class.var_name: addressChangeListener
focal_class.declarator: currentAddrs
focal_class.modifier: private
focal_class.original_string: private List<InetSocketAddress> currentAddrs;
focal_class.type: List<InetSocketAddress>
focal_class.var_name: currentAddrs
focal_class.file: simple-spring-memcached/src/main/java/com/google/code/ssm/util/jndi/JndiChangeNotifier.java
focal_class.identifier: JndiChangeNotifier
focal_class.interfaces: implements AddressChangeNotifier, InitializingBean
focal_class.class_method_signature: JndiChangeNotifier.afterPropertiesSet()
focal_class.full_signature: @Override public void afterPropertiesSet()
focal_class.identifier: afterPropertiesSet
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void afterPropertiesSet()
focal_class.class_method_signature: JndiChangeNotifier.check()
focal_class.full_signature: public void check()
focal_class.identifier: check
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void check()
focal_class.superclass: extends JndiAddressProvider
focal_method.body: public void check() {
          List<InetSocketAddress> newAddrs = getAddresses();
          if (newAddrs != null && !newAddrs.equals(currentAddrs)) {
  
              if (addressChangeListener != null) {
                  currentAddrs = newAddrs;
                  addressChangeListener.changeAddresses(newAddrs);
              } else {
                  LOGGER.error("Address change listener is null for JNDI key {}, cannot notify about new value {}", getJndiKey(), newAddrs);
              }
          }
      }
focal_method.class_method_signature: JndiChangeNotifier.check()
focal_method.full_signature: public void check()
focal_method.identifier: check
focal_method.invocations: getAddresses equals changeAddresses error getJndiKey
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void check()