@Test public void testInstall() { terminal.expectCommand( "yum install --assumeyes --setopt skip_missing_names_on_install=False package-1 package-2 2>&1", 0, "installing, installing"); assertTrue(yum .install("package-1", "package-2") .converge(taskContext)); }
public GenericYumCommand install(YumPackageName... packages) { return new GenericYumCommand(terminal, "install", List.of(packages), INSTALL_NOOP_PATTERN); }
Yum { public GenericYumCommand install(YumPackageName... packages) { return new GenericYumCommand(terminal, "install", List.of(packages), INSTALL_NOOP_PATTERN); } }
Yum { public GenericYumCommand install(YumPackageName... packages) { return new GenericYumCommand(terminal, "install", List.of(packages), INSTALL_NOOP_PATTERN); } Yum(Terminal terminal); }
Yum { public GenericYumCommand install(YumPackageName... packages) { return new GenericYumCommand(terminal, "install", List.of(packages), INSTALL_NOOP_PATTERN); } Yum(Terminal terminal); Optional<YumPackageName> queryInstalled(TaskContext context, String packageName); InstallFixedYumCommand installFixedVersion(YumPackageName yumPackage); GenericYumCommand install(YumPackageName... packages); GenericYumCommand install(String package1, String... packages); GenericYumCommand install(List<String> packages); GenericYumCommand upgrade(YumPackageName... packages); GenericYumCommand upgrade(String package1, String... packages); GenericYumCommand upgrade(List<String> packages); GenericYumCommand remove(YumPackageName... packages); GenericYumCommand remove(String package1, String... packages); GenericYumCommand remove(List<String> packages); }
Yum { public GenericYumCommand install(YumPackageName... packages) { return new GenericYumCommand(terminal, "install", List.of(packages), INSTALL_NOOP_PATTERN); } Yum(Terminal terminal); Optional<YumPackageName> queryInstalled(TaskContext context, String packageName); InstallFixedYumCommand installFixedVersion(YumPackageName yumPackage); GenericYumCommand install(YumPackageName... packages); GenericYumCommand install(String package1, String... packages); GenericYumCommand install(List<String> packages); GenericYumCommand upgrade(YumPackageName... packages); GenericYumCommand upgrade(String package1, String... packages); GenericYumCommand upgrade(List<String> packages); GenericYumCommand remove(YumPackageName... packages); GenericYumCommand remove(String package1, String... packages); GenericYumCommand remove(List<String> packages);  }