From 6e4375301b5bb2b712978b62a0d9aa27a19e69e3 Mon Sep 17 00:00:00 2001 From: Jago de Vreede Date: Wed, 10 Jul 2024 08:32:07 +0200 Subject: [PATCH] build: force code style --- code-style/eclipse-formatter-config.xml | 380 ++++++++++++++++++ pom.xml | 18 + .../jagodevreede/sdkman/api/SdkManApi.java | 23 +- .../sdkman/api/SdkManUiPreferences.java | 2 +- .../sdkman/api/files/ArchiveType.java | 4 +- .../sdkman/api/files/FileUtil.java | 21 +- .../sdkman/api/http/CachedHttpClient.java | 3 +- .../sdkman/api/http/DownloadTask.java | 6 +- .../api/parser/CandidateListParserTest.java | 4 +- .../api/parser/VersionListParserTest.java | 12 +- .../sdkmanui/ApplicationVersion.java | 3 +- .../sdkmanui/ConfigurationUtil.java | 3 +- .../io/github/jagodevreede/sdkmanui/Main.java | 6 +- .../controller/MainScreenController.java | 38 +- .../sdkmanui/service/TaskRunner.java | 1 + .../sdkmanui/updater/GitHubRelease.java | 3 +- .../sdkmanui/view/VersionView.java | 4 +- .../sdkmanui/updater/GitHubReleaseTest.java | 1 - 18 files changed, 444 insertions(+), 88 deletions(-) create mode 100644 code-style/eclipse-formatter-config.xml diff --git a/code-style/eclipse-formatter-config.xml b/code-style/eclipse-formatter-config.xml new file mode 100644 index 0000000..243e184 --- /dev/null +++ b/code-style/eclipse-formatter-config.xml @@ -0,0 +1,380 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml index 62e000f..0df0a19 100644 --- a/pom.xml +++ b/pom.xml @@ -19,6 +19,7 @@ 17 17 17 + ../code-style/eclipse-formatter-config.xml 5.10.3 3.26.0 @@ -68,6 +69,23 @@ + + net.revelc.code.formatter + formatter-maven-plugin + 2.24.1 + + ${code-style.configFile} + + + + format-code + validate + + format + + + + diff --git a/sdkman-api/src/main/java/io/github/jagodevreede/sdkman/api/SdkManApi.java b/sdkman-api/src/main/java/io/github/jagodevreede/sdkman/api/SdkManApi.java index fd4d451..5345a5b 100644 --- a/sdkman-api/src/main/java/io/github/jagodevreede/sdkman/api/SdkManApi.java +++ b/sdkman-api/src/main/java/io/github/jagodevreede/sdkman/api/SdkManApi.java @@ -80,8 +80,7 @@ public List getCandidates() throws IOException, InterruptedException //return CandidateListParser.parse(response); // Use hard coded list for now as we don't support everything yet return List.of( - new Candidate("java", "Java", "Java Development Kit"), - new Candidate("maven", "Maven", "Maven") + new Candidate("java", "Java", "Java Development Kit"), new Candidate("maven", "Maven", "Maven") ); } @@ -104,11 +103,7 @@ public List getVersions(String candidate) throws IOException, var available = localAvailable.remove(identifier); if (matcher.matches()) { var dist = matcher.group(2); - var name = vendors.stream() - .filter(v -> Objects.equals(v.dist(), dist)) - .findFirst() - .map(Vendor::vendor) - .orElse("Unclassified"); + var name = vendors.stream().filter(v -> Objects.equals(v.dist(), dist)).findFirst().map(Vendor::vendor).orElse("Unclassified"); result.add(new CandidateVersion(name, matcher.group(1), dist, identifier, true, available)); } else { result.add(new CandidateVersion("Unclassified", "", "none", identifier, true, available)); @@ -119,11 +114,7 @@ public List getVersions(String candidate) throws IOException, Matcher matcher = IDENTIFIER_PATTERN.matcher(identifier); if (matcher.matches()) { var dist = matcher.group(2); - var name = vendors.stream() - .filter(v -> Objects.equals(v.dist(), dist)) - .findFirst() - .map(Vendor::vendor) - .orElse("Unclassified"); + var name = vendors.stream().filter(v -> Objects.equals(v.dist(), dist)).findFirst().map(Vendor::vendor).orElse("Unclassified"); result.add(new CandidateVersion(name, matcher.group(1), dist, identifier, false, true)); } else { result.add(new CandidateVersion("Unclassified", "", "none", identifier, false, true)); @@ -172,8 +163,7 @@ public List getLocalInstalledVersions(String candidate) { if (!candidatesFolder.exists()) { return List.of(); } - return List.of(Objects.requireNonNull(candidatesFolder.list((dir, name) -> - new File(dir, name).isDirectory() && !"current".equals(name)))); + return List.of(Objects.requireNonNull(candidatesFolder.list((dir, name) -> new File(dir, name).isDirectory() && !"current".equals(name)))); } private List getLocalAvailableVersions(String candidate) { @@ -181,10 +171,7 @@ private List getLocalAvailableVersions(String candidate) { if (!archiveFolder.exists()) { return List.of(); } - return Stream.of(Objects.requireNonNull(archiveFolder.list((dir, name) -> - new File(dir, name).isFile() && name.startsWith(candidate) && name.endsWith(".zip")))) - .map(name -> name.substring(candidate.length() + 1, name.length() - 4)) - .toList(); + return Stream.of(Objects.requireNonNull(archiveFolder.list((dir, name) -> new File(dir, name).isFile() && name.startsWith(candidate) && name.endsWith(".zip")))).map(name -> name.substring(candidate.length() + 1, name.length() - 4)).toList(); } public String getCurrentCandidateFromPath(String candidate) { diff --git a/sdkman-api/src/main/java/io/github/jagodevreede/sdkman/api/SdkManUiPreferences.java b/sdkman-api/src/main/java/io/github/jagodevreede/sdkman/api/SdkManUiPreferences.java index e8e9ec8..549a533 100644 --- a/sdkman-api/src/main/java/io/github/jagodevreede/sdkman/api/SdkManUiPreferences.java +++ b/sdkman-api/src/main/java/io/github/jagodevreede/sdkman/api/SdkManUiPreferences.java @@ -37,7 +37,7 @@ private static SdkManUiPreferences load() throws IOException { return uiPreferences; } - public static SdkManUiPreferences getInstance() { + public static SdkManUiPreferences getInstance() { if (INSTACE == null) { try { INSTACE = load(); diff --git a/sdkman-api/src/main/java/io/github/jagodevreede/sdkman/api/files/ArchiveType.java b/sdkman-api/src/main/java/io/github/jagodevreede/sdkman/api/files/ArchiveType.java index fe9e7aa..003ac74 100644 --- a/sdkman-api/src/main/java/io/github/jagodevreede/sdkman/api/files/ArchiveType.java +++ b/sdkman-api/src/main/java/io/github/jagodevreede/sdkman/api/files/ArchiveType.java @@ -10,9 +10,7 @@ import java.io.IOException; public enum ArchiveType { - ZIP, - TAR_GZ, - TAR; + ZIP, TAR_GZ, TAR; public ArchiveInputStream getInputStream(File file) throws IOException { return switch (this) { diff --git a/sdkman-api/src/main/java/io/github/jagodevreede/sdkman/api/files/FileUtil.java b/sdkman-api/src/main/java/io/github/jagodevreede/sdkman/api/files/FileUtil.java index 2527ee3..d84ccf4 100644 --- a/sdkman-api/src/main/java/io/github/jagodevreede/sdkman/api/files/FileUtil.java +++ b/sdkman-api/src/main/java/io/github/jagodevreede/sdkman/api/files/FileUtil.java @@ -36,18 +36,15 @@ public static File findRoot(File folderToSearchIn, String folderName) { return null; } - public static void copyDirectory(String sourceDirectoryLocation, String destinationDirectoryLocation) - throws IOException { - Files.walk(Paths.get(sourceDirectoryLocation)) - .forEach(source -> { - Path destination = Paths.get(destinationDirectoryLocation, source.toString() - .substring(sourceDirectoryLocation.length())); - try { - Files.copy(source, destination); - } catch (IOException e) { - e.printStackTrace(); - } - }); + public static void copyDirectory(String sourceDirectoryLocation, String destinationDirectoryLocation) throws IOException { + Files.walk(Paths.get(sourceDirectoryLocation)).forEach(source -> { + Path destination = Paths.get(destinationDirectoryLocation, source.toString().substring(sourceDirectoryLocation.length())); + try { + Files.copy(source, destination); + } catch (IOException e) { + e.printStackTrace(); + } + }); } public static void makeAccessible(final File f) { diff --git a/sdkman-api/src/main/java/io/github/jagodevreede/sdkman/api/http/CachedHttpClient.java b/sdkman-api/src/main/java/io/github/jagodevreede/sdkman/api/http/CachedHttpClient.java index 53a48b3..b21d9a2 100644 --- a/sdkman-api/src/main/java/io/github/jagodevreede/sdkman/api/http/CachedHttpClient.java +++ b/sdkman-api/src/main/java/io/github/jagodevreede/sdkman/api/http/CachedHttpClient.java @@ -42,8 +42,7 @@ public String get(String url, boolean offline, Map headers) thro throw new IllegalStateException(message); } try { - var httpBuilder = HttpRequest.newBuilder() - .uri(java.net.URI.create(url)); + var httpBuilder = HttpRequest.newBuilder().uri(java.net.URI.create(url)); headers.forEach((k, v) -> httpBuilder.setHeader(k, v)); var getRequest = httpBuilder.build(); var response = httpClient.send(getRequest, java.net.http.HttpResponse.BodyHandlers.ofString()); diff --git a/sdkman-api/src/main/java/io/github/jagodevreede/sdkman/api/http/DownloadTask.java b/sdkman-api/src/main/java/io/github/jagodevreede/sdkman/api/http/DownloadTask.java index 9b4b72a..97da330 100644 --- a/sdkman-api/src/main/java/io/github/jagodevreede/sdkman/api/http/DownloadTask.java +++ b/sdkman-api/src/main/java/io/github/jagodevreede/sdkman/api/http/DownloadTask.java @@ -51,15 +51,13 @@ public void download() { connection.connect(); if (connection.getResponseCode() != HttpURLConnection.HTTP_OK) { - throw new IllegalStateException("Server returned HTTP " + connection.getResponseCode() - + " " + connection.getResponseMessage()); + throw new IllegalStateException("Server returned HTTP " + connection.getResponseCode() + " " + connection.getResponseMessage()); } // this will be useful to display download percentage // might be -1: server did not report the length int fileLength = connection.getContentLength(); - try (InputStream input = connection.getInputStream(); - OutputStream output = new FileOutputStream(tempFile)) { + try (InputStream input = connection.getInputStream(); OutputStream output = new FileOutputStream(tempFile)) { byte[] data = new byte[4096]; long total = 0; diff --git a/sdkman-api/src/test/java/io/github/jagodevreede/sdkman/api/parser/CandidateListParserTest.java b/sdkman-api/src/test/java/io/github/jagodevreede/sdkman/api/parser/CandidateListParserTest.java index 3ce1626..3acd0bc 100644 --- a/sdkman-api/src/test/java/io/github/jagodevreede/sdkman/api/parser/CandidateListParserTest.java +++ b/sdkman-api/src/test/java/io/github/jagodevreede/sdkman/api/parser/CandidateListParserTest.java @@ -11,9 +11,7 @@ class CandidateListParserTest { void parse() throws Exception { String resource = loadFileFromResource("api_examples/candidates/list/out.txt"); var candidates = CandidateListParser.parse(resource); - assertThat(candidates) - .isNotNull() - .hasSize(72); + assertThat(candidates).isNotNull().hasSize(72); assertThat(candidates.get(0).id()).isEqualTo("activemq"); assertThat(candidates.get(0).name()).isEqualTo("Apache ActiveMQ"); diff --git a/sdkman-api/src/test/java/io/github/jagodevreede/sdkman/api/parser/VersionListParserTest.java b/sdkman-api/src/test/java/io/github/jagodevreede/sdkman/api/parser/VersionListParserTest.java index 5e99188..f49272b 100644 --- a/sdkman-api/src/test/java/io/github/jagodevreede/sdkman/api/parser/VersionListParserTest.java +++ b/sdkman-api/src/test/java/io/github/jagodevreede/sdkman/api/parser/VersionListParserTest.java @@ -11,9 +11,7 @@ class VersionListParserTest { void parseJava_small() throws Exception { String resource = loadFileFromResource("api_examples/candidates/java/linux/versions/list/small.txt"); var javaVersions = VersionListParser.parse(resource); - assertThat(javaVersions) - .isNotNull() - .hasSize(5); + assertThat(javaVersions).isNotNull().hasSize(5); assertThat(javaVersions.get(0).vendor()).isEqualTo("Corretto"); assertThat(javaVersions.get(0).version()).isEqualTo("22"); @@ -25,17 +23,13 @@ void parseJava_small() throws Exception { void parseJava() throws Exception { String resource = loadFileFromResource("api_examples/candidates/java/linux/versions/list/out.txt"); var javaVersions = VersionListParser.parse(resource); - assertThat(javaVersions) - .isNotNull() - .hasSize(165); + assertThat(javaVersions).isNotNull().hasSize(165); } @Test void parseOther() throws Exception { String resource = loadFileFromResource("api_examples/candidates/maven/versions/list/out.txt"); var javaVersions = VersionListParser.parse(resource); - assertThat(javaVersions) - .isNotNull() - .hasSize(42); + assertThat(javaVersions).isNotNull().hasSize(42); } } \ No newline at end of file diff --git a/sdkman-ui/src/main/java/io/github/jagodevreede/sdkmanui/ApplicationVersion.java b/sdkman-ui/src/main/java/io/github/jagodevreede/sdkmanui/ApplicationVersion.java index bedc838..4a31ef9 100644 --- a/sdkman-ui/src/main/java/io/github/jagodevreede/sdkmanui/ApplicationVersion.java +++ b/sdkman-ui/src/main/java/io/github/jagodevreede/sdkmanui/ApplicationVersion.java @@ -14,8 +14,7 @@ private ApplicationVersion() { // hidden constructor as it is a static instance. try { - InputStream resourceAsStream = ApplicationVersion.class.getClassLoader() - .getResourceAsStream("version.txt"); + InputStream resourceAsStream = ApplicationVersion.class.getClassLoader().getResourceAsStream("version.txt"); version = new String(resourceAsStream.readAllBytes(), StandardCharsets.UTF_8); } catch (IOException e) { version = "unknown"; diff --git a/sdkman-ui/src/main/java/io/github/jagodevreede/sdkmanui/ConfigurationUtil.java b/sdkman-ui/src/main/java/io/github/jagodevreede/sdkmanui/ConfigurationUtil.java index 8ebc990..148cae7 100644 --- a/sdkman-ui/src/main/java/io/github/jagodevreede/sdkmanui/ConfigurationUtil.java +++ b/sdkman-ui/src/main/java/io/github/jagodevreede/sdkmanui/ConfigurationUtil.java @@ -83,8 +83,7 @@ static String testExecutable(String command, Stage stage) { logger.debug("Testing for {}", command); if (!ProcessStarter.testIfAvailable(command)) { logger.info("{} is not on path", command); - ServiceRegistry.INSTANCE.getPopupView().showInformation(command + " is not available,\n" + - "Please install it or in the next dialog point to where it is."); + ServiceRegistry.INSTANCE.getPopupView().showInformation(command + " is not available,\n" + "Please install it or in the next dialog point to where it is."); FileChooser fileChooser = new FileChooser(); if (isWindows()) { fileChooser.setInitialDirectory(new File("./")); diff --git a/sdkman-ui/src/main/java/io/github/jagodevreede/sdkmanui/Main.java b/sdkman-ui/src/main/java/io/github/jagodevreede/sdkmanui/Main.java index 798770d..6245032 100644 --- a/sdkman-ui/src/main/java/io/github/jagodevreede/sdkmanui/Main.java +++ b/sdkman-ui/src/main/java/io/github/jagodevreede/sdkmanui/Main.java @@ -119,10 +119,8 @@ private static void install() { boolean configured = SERVICE_REGISTRY.getApi().configureEnvironmentPath(); try { Files.copy(currentExecutable.toPath(), new File(installFolder, currentExecutable.getName()).toPath(), StandardCopyOption.REPLACE_EXISTING); - Files.copy(ApplicationVersion.class.getClassLoader().getResourceAsStream("sdkui.cmd"), new File(installFolder, "sdkui.cmd").toPath(), - StandardCopyOption.REPLACE_EXISTING); - Files.copy(ApplicationVersion.class.getClassLoader().getResourceAsStream("version.txt"), new File(installFolder, "version.txt").toPath(), - StandardCopyOption.REPLACE_EXISTING); + Files.copy(ApplicationVersion.class.getClassLoader().getResourceAsStream("sdkui.cmd"), new File(installFolder, "sdkui.cmd").toPath(), StandardCopyOption.REPLACE_EXISTING); + Files.copy(ApplicationVersion.class.getClassLoader().getResourceAsStream("version.txt"), new File(installFolder, "version.txt").toPath(), StandardCopyOption.REPLACE_EXISTING); } catch (IOException e) { throw new RuntimeException(e); } diff --git a/sdkman-ui/src/main/java/io/github/jagodevreede/sdkmanui/controller/MainScreenController.java b/sdkman-ui/src/main/java/io/github/jagodevreede/sdkmanui/controller/MainScreenController.java index 6176800..d70654b 100644 --- a/sdkman-ui/src/main/java/io/github/jagodevreede/sdkmanui/controller/MainScreenController.java +++ b/sdkman-ui/src/main/java/io/github/jagodevreede/sdkmanui/controller/MainScreenController.java @@ -113,25 +113,18 @@ public void loadData(Runnable onLoaded) { String pathVersionInUse = api.getCurrentCandidateFromPath(selectedCandidate); setGlobalVersionLabel(globalVersionInUse); setPathVersionLabel(pathVersionInUse); - List updatedVersions = api.getVersions(selectedCandidate).stream() - .filter(j -> !showInstalledOnly.isSelected() || j.installed()) - .filter(j -> !showAvailableOnly.isSelected() || j.available()) - .filter(j -> { - if (searchField == null || searchField.getText() == null || searchField.getText().isBlank()) { - return true; - } else { - final boolean vendorMatchesSearch = Pattern.compile(Pattern.quote(searchField.getText()), Pattern.CASE_INSENSITIVE).matcher(j.vendor()).find(); - final boolean identifierMatchesSearch = Pattern.compile(Pattern.quote(searchField.getText()), Pattern.CASE_INSENSITIVE).matcher(j.identifier()).find(); - return vendorMatchesSearch || identifierMatchesSearch; - } - }) - .toList(); + List updatedVersions = api.getVersions(selectedCandidate).stream().filter(j -> !showInstalledOnly.isSelected() || j.installed()).filter(j -> !showAvailableOnly.isSelected() || j.available()).filter(j -> { + if (searchField == null || searchField.getText() == null || searchField.getText().isBlank()) { + return true; + } else { + final boolean vendorMatchesSearch = Pattern.compile(Pattern.quote(searchField.getText()), Pattern.CASE_INSENSITIVE).matcher(j.vendor()).find(); + final boolean identifierMatchesSearch = Pattern.compile(Pattern.quote(searchField.getText()), Pattern.CASE_INSENSITIVE).matcher(j.identifier()).find(); + return vendorMatchesSearch || identifierMatchesSearch; + } + }).toList(); Platform.runLater(() -> { if (tableData == null || tableData.size() != updatedVersions.size()) { - tableData = FXCollections.observableArrayList( - updatedVersions.stream() - .map(j -> new VersionView(j, globalVersionInUse, pathVersionInUse, thiz)).toList() - ); + tableData = FXCollections.observableArrayList(updatedVersions.stream().map(j -> new VersionView(j, globalVersionInUse, pathVersionInUse, thiz)).toList()); table.setItems(tableData); } else { tableData.forEach(oldData -> { @@ -201,9 +194,7 @@ private void setGlobalVersionLabel(String globalVersionInUse) { private static TableColumn getTableColumn(String title, String property) { TableColumn vendorCol = new TableColumn<>(title); - vendorCol.setCellValueFactory( - new PropertyValueFactory<>(property) - ); + vendorCol.setCellValueFactory(new PropertyValueFactory<>(property)); return vendorCol; } @@ -242,10 +233,9 @@ private void switchCandidate(String candidate) { private void checkIfEnvironmentIsConfigured(String candidate) { // Only on windows, check if the environment is configured if (OsHelper.isWindows() && hasInstalledVersion() && !api.hasCandidateEnvironmentPathConfigured(candidate)) { - Platform.runLater(() -> popupView.showConfirmation("Configure environment for " + candidate, - candidate + " is not in the environment (path variable) yet, do you want to add it?", () -> { - api.configureWindowsEnvironment(candidate); - })); + Platform.runLater(() -> popupView.showConfirmation("Configure environment for " + candidate, candidate + " is not in the environment (path variable) yet, do you want to add it?", () -> { + api.configureWindowsEnvironment(candidate); + })); } } diff --git a/sdkman-ui/src/main/java/io/github/jagodevreede/sdkmanui/service/TaskRunner.java b/sdkman-ui/src/main/java/io/github/jagodevreede/sdkmanui/service/TaskRunner.java index ed56d9a..ce2e377 100644 --- a/sdkman-ui/src/main/java/io/github/jagodevreede/sdkmanui/service/TaskRunner.java +++ b/sdkman-ui/src/main/java/io/github/jagodevreede/sdkmanui/service/TaskRunner.java @@ -17,6 +17,7 @@ public static void run(Task task) { t.setUncaughtExceptionHandler(new GlobalExceptionHandler()); t.start(); } + public static void run(Runnable task) { run(new Task() { @Override diff --git a/sdkman-ui/src/main/java/io/github/jagodevreede/sdkmanui/updater/GitHubRelease.java b/sdkman-ui/src/main/java/io/github/jagodevreede/sdkmanui/updater/GitHubRelease.java index 62e4bc2..5023d52 100644 --- a/sdkman-ui/src/main/java/io/github/jagodevreede/sdkmanui/updater/GitHubRelease.java +++ b/sdkman-ui/src/main/java/io/github/jagodevreede/sdkmanui/updater/GitHubRelease.java @@ -15,8 +15,7 @@ public class GitHubRelease { private final CachedHttpClient cachedHttpClient; private final ServiceRegistry serviceRegistry = ServiceRegistry.INSTANCE; private final static Map HEADERS = Map.of( - "Accept", "application/vnd.github+json", - "X-GitHub-Api-Version", "2022-11-28" + "Accept", "application/vnd.github+json", "X-GitHub-Api-Version", "2022-11-28" ); public GitHubRelease(String cacheFolder, HttpClient httpClient) { diff --git a/sdkman-ui/src/main/java/io/github/jagodevreede/sdkmanui/view/VersionView.java b/sdkman-ui/src/main/java/io/github/jagodevreede/sdkmanui/view/VersionView.java index 840eded..736fd5b 100644 --- a/sdkman-ui/src/main/java/io/github/jagodevreede/sdkmanui/view/VersionView.java +++ b/sdkman-ui/src/main/java/io/github/jagodevreede/sdkmanui/view/VersionView.java @@ -224,7 +224,9 @@ public String getIdentifier() { return identifier.get(); } - public HBox getInstalled() { return installed; } + public HBox getInstalled() { + return installed; + } public boolean isInstalled() { return isInstalled; diff --git a/sdkman-ui/src/test/java/io/github/jagodevreede/sdkmanui/updater/GitHubReleaseTest.java b/sdkman-ui/src/test/java/io/github/jagodevreede/sdkmanui/updater/GitHubReleaseTest.java index 21561e0..158a588 100644 --- a/sdkman-ui/src/test/java/io/github/jagodevreede/sdkmanui/updater/GitHubReleaseTest.java +++ b/sdkman-ui/src/test/java/io/github/jagodevreede/sdkmanui/updater/GitHubReleaseTest.java @@ -29,7 +29,6 @@ void injectMocks() { subject = new GitHubRelease(cachedHttpClient); } - @Test void getLatestRelease() throws IOException, InterruptedException { String httpResponse = loadFileFromResource("github_api_examples/releases/latest.json");