Libraryless. Click here for Pure Java version (11086L/62K).
1 | svoid test_BackupThinner() { |
2 | new BackupThinner bt; |
3 | var f2 = newFile("concepts.structure.gz.backup20240518-19"); |
4 | bt.allFiles(ll( |
5 | newFile("concepts.structure.gz.backup20240518-21"), |
6 | f2, |
7 | newFile("concepts.structure.gz.backup20240401-10"))); |
8 | bt.timeZone(germanTimeZone()); |
9 | |
10 | bt.currentTime(timestampFromYMDHM(2024, 5, 18, 22, 0, bt.timeZone())); |
11 | bt.scan(); |
12 | assertEmpty(bt.deletableFiles); |
13 | |
14 | bt.currentTime(timestampFromYMDHM(2025, 5, 18, 22, 0, bt.timeZone())); |
15 | bt.scan(); |
16 | assertListEquals(ll(f2), bt.deletableFiles); |
17 | } |
Began life as a copy of #1038776
download show line numbers debug dex old transpilations
Travelled to 1 computer(s): mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1038777 |
Snippet name: | test_BackupThinner |
Eternal ID of this version: | #1038777/3 |
Text MD5: | 52f129fce5a4f79983667edff86e1067 |
Transpilation MD5: | 3d387373c849dd2c3b0a644158f4a389 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2025-04-20 19:26:41 |
Source code size: | 567 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 21 / 50 |
Version history: | 2 change(s) |
Referenced in: | [show references] |