@Test public void testPersistPendingCommand_createNewFile() throws Exception { Path path = connectBroker.getPendingFile(); assertThat(path).doesNotExist(); asList("L1", "L2").forEach(connectBroker::persistCommand); assertThat(Files.readAllLines(path)).containsExactly("L1", "L2"); }
public Path getPendingFile() { return pendingFile; }
ConnectBroker { public Path getPendingFile() { return pendingFile; } }
ConnectBroker { public Path getPendingFile() { return pendingFile; } ConnectBroker(Environment env); }
ConnectBroker { public Path getPendingFile() { return pendingFile; } ConnectBroker(Environment env); Path getPendingFile(); void setPendingFile(Path pendingFile); String getCLID(); void setCLID(String file); void saveCLID(); StandaloneUpdateService getUpdateService(); PackageManager getPackageManager(); void refreshCache(); CommandSetInfo getCommandSet(); List<LocalPackage> getPkgList(); void pkgList(); void pkgListAll(); void pkgList(List<? extends DownloadablePackage> packagesList); boolean pkgReset(); boolean pkgPurge(); boolean pkgUninstall(List<String> packageIdsToRemove); LocalPackage pkgUninstall(String pkgId); boolean pkgRemove(List<String> pkgsToRemove); LocalPackage pkgRemove(String pkgId); boolean pkgAdd(List<String> pkgsToAdd, boolean ignoreMissing); LocalPackage pkgAdd(String packageFileName, boolean ignoreMissing); boolean pkgInstall(List<String> packageIdsToInstall, boolean ignoreMissing); LocalPackage pkgInstall(String pkgId, boolean ignoreMissing); boolean listPending(File commandsFile); boolean executePending(File commandsFile, boolean doExecute, boolean useResolver, boolean ignoreMissing); boolean pkgRequest(List<String> pkgsToAdd, List<String> pkgsToInstall, List<String> pkgsToUninstall,
            List<String> pkgsToRemove, boolean keepExisting, boolean ignoreMissing); boolean pkgRequest(List<String> pkgsToAdd, List<String> pkgsToInstall, List<String> pkgsToUninstall,
            List<String> pkgsToRemove, boolean keepExisting, boolean ignoreMissing, boolean upgradeMode); boolean pkgSet(List<String> pkgList, boolean ignoreMissing); static String parseAnswer(String answer); boolean pkgHotfix(); boolean pkgUpgrade(); void setRelax(String relaxValue); void setAccept(String acceptValue); boolean pkgShow(List<String> packages); void setAllowSNAPSHOT(boolean allow); }
ConnectBroker { public Path getPendingFile() { return pendingFile; } ConnectBroker(Environment env); Path getPendingFile(); void setPendingFile(Path pendingFile); String getCLID(); void setCLID(String file); void saveCLID(); StandaloneUpdateService getUpdateService(); PackageManager getPackageManager(); void refreshCache(); CommandSetInfo getCommandSet(); List<LocalPackage> getPkgList(); void pkgList(); void pkgListAll(); void pkgList(List<? extends DownloadablePackage> packagesList); boolean pkgReset(); boolean pkgPurge(); boolean pkgUninstall(List<String> packageIdsToRemove); LocalPackage pkgUninstall(String pkgId); boolean pkgRemove(List<String> pkgsToRemove); LocalPackage pkgRemove(String pkgId); boolean pkgAdd(List<String> pkgsToAdd, boolean ignoreMissing); LocalPackage pkgAdd(String packageFileName, boolean ignoreMissing); boolean pkgInstall(List<String> packageIdsToInstall, boolean ignoreMissing); LocalPackage pkgInstall(String pkgId, boolean ignoreMissing); boolean listPending(File commandsFile); boolean executePending(File commandsFile, boolean doExecute, boolean useResolver, boolean ignoreMissing); boolean pkgRequest(List<String> pkgsToAdd, List<String> pkgsToInstall, List<String> pkgsToUninstall,
            List<String> pkgsToRemove, boolean keepExisting, boolean ignoreMissing); boolean pkgRequest(List<String> pkgsToAdd, List<String> pkgsToInstall, List<String> pkgsToUninstall,
            List<String> pkgsToRemove, boolean keepExisting, boolean ignoreMissing, boolean upgradeMode); boolean pkgSet(List<String> pkgList, boolean ignoreMissing); static String parseAnswer(String answer); boolean pkgHotfix(); boolean pkgUpgrade(); void setRelax(String relaxValue); void setAccept(String acceptValue); boolean pkgShow(List<String> packages); void setAllowSNAPSHOT(boolean allow); static final String[] POSITIVE_ANSWERS; static final String OPTION_RELAX_DEFAULT; static final String OPTION_ACCEPT_DEFAULT; }