You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by gg...@apache.org on 2024/05/30 20:49:39 UTC
(mina-sshd) 02/09: Remove unused exception from test signature
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mina-sshd.git
commit c505ebc60db832cef39e3c4fdc5bc13df67d0eca
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu May 30 14:17:41 2024 -0400
Remove unused exception from test signature
---
.../common/file/root/RootedFileSystemProviderTest.java | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/sshd-common/src/test/java/org/apache/sshd/common/file/root/RootedFileSystemProviderTest.java b/sshd-common/src/test/java/org/apache/sshd/common/file/root/RootedFileSystemProviderTest.java
index d6ceedfb5..ee38b2c33 100644
--- a/sshd-common/src/test/java/org/apache/sshd/common/file/root/RootedFileSystemProviderTest.java
+++ b/sshd-common/src/test/java/org/apache/sshd/common/file/root/RootedFileSystemProviderTest.java
@@ -157,7 +157,7 @@ public class RootedFileSystemProviderTest extends AssertableFile {
}
@Test
- public void testWriteFileInvalid() throws IOException {
+ public void testWriteFileInvalid() {
Assume.assumeFalse(SKIP_ON_WINDOWS, OsUtils.isWin32());
String written = DOESNT_EXIST + getCurrentTestName();
@@ -252,42 +252,42 @@ public class RootedFileSystemProviderTest extends AssertableFile {
}
@Test
- public void testJailbreakLink() throws IOException {
+ public void testJailbreakLink() {
testJailbreakLink("../");
}
@Test
- public void testJailbreakLink2() throws IOException {
+ public void testJailbreakLink2() {
testJailbreakLink("../test/");
}
@Test
- public void testJailbreakLink3() throws IOException {
+ public void testJailbreakLink3() {
testJailbreakLink("/..");
}
@Test
- public void testJailbreakLink4() throws IOException {
+ public void testJailbreakLink4() {
testJailbreakLink("/./..");
}
@Test
- public void testJailbreakLink5() throws IOException {
+ public void testJailbreakLink5() {
testJailbreakLink("/./../");
}
@Test
- public void testJailbreakLink6() throws IOException {
+ public void testJailbreakLink6() {
testJailbreakLink("./../");
}
@Test
- public void testJailbreakLink7() throws IOException {
+ public void testJailbreakLink7() {
String fileName = "/testdir/testdir2/../../..";
testJailbreakLink(fileName);
}
- private void testJailbreakLink(String jailbrokenTarget) throws IOException {
+ private void testJailbreakLink(String jailbrokenTarget) {
Path target = fileSystem.getPath(jailbrokenTarget);
Path linkPath = fileSystem.getPath("/testLink");
Assert.assertThrows(InvalidPathException.class, () -> fileSystem.provider().createSymbolicLink(linkPath, target));