Skip to content

Commit

Permalink
Run maven formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
bmiddaugh committed May 28, 2024
1 parent 4ba2dac commit 9b361e5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/test/java/com/jcraft/jsch/OpenSSHConfigTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ void replaceKexAlgorithms() throws IOException {
@Test
void parseFileWithNegations() throws IOException, URISyntaxException {
final String configFile =
Paths.get(ClassLoader.getSystemResource("config_with_negations").toURI()).toFile().getAbsolutePath();
Paths.get(ClassLoader.getSystemResource("config_with_negations").toURI()).toFile()
.getAbsolutePath();
final OpenSSHConfig openSSHConfig = OpenSSHConfig.parseFile(configFile);

assertUserEquals(openSSHConfig, "my.example.com", "u1");
Expand All @@ -105,6 +106,7 @@ private void assertUserEquals(OpenSSHConfig openSSHConfig, String host, String e
final ConfigRepository.Config config = openSSHConfig.getConfig(host);
assertNotNull(config);
String actual = config.getUser();
assertEquals(expected, actual, String.format("Expected user for host %s to be %s, but was %s", host, expected, actual));
assertEquals(expected, actual,
String.format("Expected user for host %s to be %s, but was %s", host, expected, actual));
}
}

0 comments on commit 9b361e5

Please sign in to comment.