@Test public void basicTest() throws Exception { final Lock lock = mock(Lock.class); final PathArgument pathArgument = mock(PathArgument.class); final RegistrationTreeNode<?> registrationTreeNode = new RegistrationTreeNode<>(null, pathArgument); final RegistrationTreeSnapshot<?> registrationTreeSnapshot = new RegistrationTreeSnapshot<>(lock, registrationTreeNode); assertNotNull(registrationTreeSnapshot.getRootNode()); assertEquals(registrationTreeNode, registrationTreeSnapshot.getRootNode()); doNothing().when(lock).unlock(); registrationTreeSnapshot.close(); verify(lock).unlock(); }
public RegistrationTreeNode<T> getRootNode() { return node; }
RegistrationTreeSnapshot extends AbstractRegistration { public RegistrationTreeNode<T> getRootNode() { return node; } }
RegistrationTreeSnapshot extends AbstractRegistration { public RegistrationTreeNode<T> getRootNode() { return node; } RegistrationTreeSnapshot(final Lock lock, final RegistrationTreeNode<T> node); }
RegistrationTreeSnapshot extends AbstractRegistration { public RegistrationTreeNode<T> getRootNode() { return node; } RegistrationTreeSnapshot(final Lock lock, final RegistrationTreeNode<T> node); RegistrationTreeNode<T> getRootNode(); }
RegistrationTreeSnapshot extends AbstractRegistration { public RegistrationTreeNode<T> getRootNode() { return node; } RegistrationTreeSnapshot(final Lock lock, final RegistrationTreeNode<T> node); RegistrationTreeNode<T> getRootNode();  }