SecurityTools.keytool("-version -erropt")
.shouldContain("Illegal option: -erropt")
.shouldContain("Prints the program version")
.shouldContain("Use \"keytool -?, -h, or --help\" for this help message")
.shouldHaveExitValue(1);
SecurityTools.keytool("-genkeypair -erropt")
.shouldContain("Illegal option: -erropt")
.shouldContain("Generates a key pair")
.shouldContain("Use \"keytool -?, -h, or --help\" for this help message")
.shouldHaveExitValue(1);
SecurityTools.keytool("-version --help")
.shouldContain("Prints the program version")
.shouldContain("Use \"keytool -?, -h, or --help\" for this help message")
.shouldHaveExitValue(0);
SecurityTools.keytool("--help -version")
.shouldContain("Prints the program version")
.shouldContain("Use \"keytool -?, -h, or --help\" for this help message")
.shouldHaveExitValue(0);
SecurityTools.keytool("-genkeypair --help")
.shouldContain("Generates a key pair")
.shouldContain("Use \"keytool -?, -h, or --help\" for this help message")
.shouldHaveExitValue(0);
SecurityTools.keytool("--help")
.shouldContain("-genkeypair Generates a key pair")
.shouldContain("-version Prints the program version")
.shouldHaveExitValue(0);
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.15 Sekunden
(vorverarbeitet am 2026-06-10)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.