P4ChangelistListener implements ChangeListListener { @Override public void changeListAdded(@NotNull final ChangeList list) { LOG.debug("changeListAdded: " + list.getName() + "; [" + list.getComment() + "]; " + list.getClass().getSimpleName()); } P4ChangelistListener(@NotNull final Project project); @Override void changeListAdded(@NotNull final ChangeList list); @Override void changeListRemoved(@NotNull final ChangeList list); @Override void changesRemoved(@NotNull final Collection<Change> changes, @NotNull final ChangeList fromList); @Override void changesAdded(@NotNull final Collection<Change> changes, @NotNull final ChangeList toList); @Override void changeListChanged(final ChangeList list); @Override void changeListRenamed(final ChangeList list, final String oldName); @Override void changeListCommentChanged(final ChangeList list, final String oldComment); @Override void changesMoved(final Collection<Change> changes, final ChangeList fromList, final ChangeList toList); @Override void defaultListChanged(final ChangeList oldDefaultList, final ChangeList newDefaultList); @Override void unchangedFileStatusChanged(); @Override void changeListUpdateDone();  }
@ExtendWith({ TemporaryFolderExtension.class, ErrorCollectorExtension.class }) @Test void offlineCreateNewIdeChangelist(TemporaryFolder tmp, Errors errors) throws InterruptedException { vcs.idea.useInlineThreading(errors.get()); ClientConfigRoot root = vcs.addClientConfigRoot(tmp, "client"); assertNotNull(root.getClientRootDir()); vcs.goOffline(root); assertFalse(vcs.registry.isOnline(root.getClientConfig().getClientServerRef())); MockLocalChangeList changeList = vcs.addIdeChangelist("Test change", "A test change", false); P4ChangelistListener listener = new P4ChangelistListener(vcs.idea.getMockProject()); listener.changeListAdded(changeList); Pair<IdeChangelistMap, IdeFileMap> cacheState = vcs.cacheComponent.getServerOpenedCache(); assertEmpty(cacheState.first.getP4ChangesFor(changeList)); }