File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
package mediathek.tool
2
2
3
- import mediathek.mac.MacFileUtils
4
3
import mediathek.windows.WindowsFileUtils
5
4
import org.apache.commons.lang3.SystemUtils
6
5
import java.io.File
@@ -20,7 +19,8 @@ object FileUtils {
20
19
@JvmStatic
21
20
fun moveToTrash (filePath : Path ) {
22
21
if (SystemUtils .IS_OS_MAC_OSX ) {
23
- MacFileUtils .moveToTrash(filePath.toFile())
22
+ // MacFileUtils.moveToTrash(filePath.toFile())
23
+ Files .deleteIfExists(filePath)
24
24
}
25
25
else if (SystemUtils .IS_OS_WINDOWS ) {
26
26
WindowsFileUtils .moveToTrash(filePath.toFile())
Original file line number Diff line number Diff line change @@ -74,15 +74,15 @@ void testDbContent() throws SQLException {
74
74
rs .next ();
75
75
var count = rs .getInt (1 );
76
76
//we must have one return
77
- assertEquals (count , 1 );
77
+ assertEquals (1 , count );
78
78
rs .close ();
79
79
80
80
testSql = "SELECT COUNT(*) as total FROM seen_history" ;
81
81
rs = statement .executeQuery (testSql );
82
82
rs .next ();
83
83
count = rs .getInt (1 );
84
84
// there must be 8 entries in db
85
- assertEquals (count , 8 );
85
+ assertEquals (8 , count );
86
86
rs .close ();
87
87
}
88
88
}
You can’t perform that action at this time.
0 commit comments