Skip to content

Commit 1344975

Browse files
committed
Rename reveal path impl classes
1 parent 6b11567 commit 1344975

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

src/main/java/org/cryptomator/linux/revealpath/DBusFileMangerRevealPath.java renamed to src/main/java/org/cryptomator/linux/revealpath/DBusSendRevealPathService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import java.util.concurrent.TimeUnit;
1818
import java.util.stream.Collectors;
1919

20-
public class DBusFileMangerRevealPath implements RevealPathService {
20+
public class DBusSendRevealPathService implements RevealPathService {
2121

2222
private static final String[] FILEMANAGER_OBJECT_PATHS = {"/org/gnome/Nautilus", "/org/kde/dolphin", "/org/xfce/Thunar"};
2323
private static final String FOR_FOLDERS = "org.freedesktop.FileManager1.ShowFolders";
@@ -62,7 +62,7 @@ public boolean isSupported() {
6262
CountDownLatch waitBarrier = new CountDownLatch(FILEMANAGER_OBJECT_PATHS.length + 1);
6363
ProcessBuilder dbusSendExistBuilder = new ProcessBuilder().command("test", " `command -v dbus-send`");
6464
List<ProcessBuilder> fileManagerExistBuilders = Arrays.stream(FILEMANAGER_OBJECT_PATHS)
65-
.map(DBusFileMangerRevealPath::createDbusObjectCheck).toList();
65+
.map(DBusSendRevealPathService::createDbusObjectCheck).toList();
6666

6767
try {
6868
var existsDbusSend = dbusSendExistBuilder.start();
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
org.cryptomator.linux.revealpath.DBusFileMangerRevealPath
1+
org.cryptomator.linux.revealpath.DBusSendRevealPathService

src/test/java/org/cryptomator/linux/revealpath/DbusFileManagerRevealPathTest.java renamed to src/test/java/org/cryptomator/linux/revealpath/DBusSendRevealPathServiceTest.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package org.cryptomator.linux.revealpath;
22

33
import org.cryptomator.integrations.revealpath.RevealFailedException;
4-
import org.cryptomator.linux.revealpath.DBusFileMangerRevealPath;
54
import org.junit.jupiter.api.Assertions;
65
import org.junit.jupiter.api.Assumptions;
76
import org.junit.jupiter.api.Disabled;
@@ -14,10 +13,10 @@
1413

1514
@EnabledOnOs(OS.LINUX)
1615
@Disabled
17-
public class DbusFileManagerRevealPathTest {
16+
public class DBusSendRevealPathServiceTest {
1817

1918
@TempDir Path tmpDir;
20-
DBusFileMangerRevealPath inTest = new DBusFileMangerRevealPath();
19+
DBusSendRevealPathService inTest = new DBusSendRevealPathService();
2120

2221
@Test
2322
public void testIsSupported() {
@@ -26,15 +25,15 @@ public void testIsSupported() {
2625

2726
@Test
2827
public void testRevealSuccess() {
29-
DBusFileMangerRevealPath revealPathService = new DBusFileMangerRevealPath();
28+
DBusSendRevealPathService revealPathService = new DBusSendRevealPathService();
3029
Assumptions.assumeTrue(revealPathService.isSupported());
3130

3231
Assertions.assertDoesNotThrow(() -> revealPathService.reveal(tmpDir));
3332
}
3433

3534
@Test
3635
public void testRevealFail() {
37-
DBusFileMangerRevealPath revealPathService = new DBusFileMangerRevealPath();
36+
DBusSendRevealPathService revealPathService = new DBusSendRevealPathService();
3837
Assumptions.assumeTrue(revealPathService.isSupported());
3938

4039
Assertions.assertThrows(RevealFailedException.class, () -> revealPathService.reveal(tmpDir.resolve("foobar")));

0 commit comments

Comments
 (0)