Skip to content

Commit d3a7e44

Browse files
authored
Merge pull request #1467 from digital-preservation/fix-typo-in-help-pages-call
Fix typo in help pages listener.
2 parents be4a88b + b72384b commit d3a7e44

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

cli-tests/test/cli-test.bats

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,24 +54,26 @@ setup() {
5454

5555
@test "check for signature updates" {
5656
run $DROID_BIN -c
57-
assert_output 'No signature updates are available'
57+
assert_output -p 'Container signature update Version 20250925 is available'
58+
assert_output -p 'Binary signature update Version 121 is available'
5859
}
5960

6061
@test "download signature updates" {
6162
run $DROID_BIN -d
62-
assert_output 'No signature updates are available'
63+
assert_output -p 'Signature update version 20,250,925 has been downloaded'
64+
assert_output -p 'Signature update version 121 has been downloaded'
6365
}
6466

6567
@test "list signature files" {
6668
run $DROID_BIN -X
67-
assert_output -p "Type: Binary Version: 120 File name: DROID_SignatureFile_V120.xml"
68-
assert_output -p "Type: Container Version: 20240715 File name: container-signature-20240715.xml"
69+
assert_output -p "Type: Binary Version: 121 File name: DROID_SignatureFile_V121.xml"
70+
assert_output -p "Type: Container Version: 20250925 File name: container-signature-20250925.xml"
6971
}
7072

7173
@test "display signature file" {
7274
run $DROID_BIN -x
73-
assert_output -p "Type: Container Version: 20240715 File name: container-signature-20240715.xml"
74-
assert_output -p "Type: Binary Version: 120 File name: DROID_SignatureFile_V120.xml"
75+
assert_output -p "Type: Container Version: 20250925 File name: container-signature-20250925.xml"
76+
assert_output -p "Type: Binary Version: 121 File name: DROID_SignatureFile_V121.xml"
7577
}
7678

7779
@test "set signature file" {

droid-swing-ui/src/main/java/uk/gov/nationalarchives/droid/gui/DroidMainFrame.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ public void windowClosing(WindowEvent e) {
298298

299299
helpMenuItem.addActionListener(evt -> {
300300
try {
301-
URI uri = globalContext.getGlobalConfig().getHelpPagesDir().resolve("indexs.html").toUri();
301+
URI uri = globalContext.getGlobalConfig().getHelpPagesDir().resolve("index.html").toUri();
302302
Desktop.getDesktop().browse(uri);
303303
} catch (IOException e) {
304304
throw new RuntimeException(e);

0 commit comments

Comments
 (0)