aboutsummaryrefslogtreecommitdiff
path: root/src/cz/crcs/ectester/standalone/test/KeyGeneratorTest.java
diff options
context:
space:
mode:
authorJ08nY2018-05-28 20:06:18 +0200
committerJ08nY2018-05-28 20:06:18 +0200
commita4e52b21b1dad5f96df409c44e5b4d611bba01b9 (patch)
tree36f9d21894fc702a4f544bd0145b403ba3930074 /src/cz/crcs/ectester/standalone/test/KeyGeneratorTest.java
parentff6be88e469608a67945a274ec2180aee3f3ccd2 (diff)
downloadECTester-a4e52b21b1dad5f96df409c44e5b4d611bba01b9.tar.gz
ECTester-a4e52b21b1dad5f96df409c44e5b4d611bba01b9.tar.zst
ECTester-a4e52b21b1dad5f96df409c44e5b4d611bba01b9.zip
Implement tracking of stage of execution of standalone testables.
- Output this stage in all the formats.
Diffstat (limited to 'src/cz/crcs/ectester/standalone/test/KeyGeneratorTest.java')
-rw-r--r--src/cz/crcs/ectester/standalone/test/KeyGeneratorTest.java33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/cz/crcs/ectester/standalone/test/KeyGeneratorTest.java b/src/cz/crcs/ectester/standalone/test/KeyGeneratorTest.java
deleted file mode 100644
index 02b81a4..0000000
--- a/src/cz/crcs/ectester/standalone/test/KeyGeneratorTest.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package cz.crcs.ectester.standalone.test;
-
-import cz.crcs.ectester.common.test.Result;
-import cz.crcs.ectester.common.test.SimpleTest;
-import cz.crcs.ectester.common.test.TestCallback;
-
-/**
- * @author Jan Jancar johny@neuromancer.sk
- */
-public class KeyGeneratorTest extends SimpleTest<KeyGeneratorTestable> {
- private KeyGeneratorTest(KeyGeneratorTestable kg, TestCallback<KeyGeneratorTestable> callback) {
- super(kg, callback);
- }
-
- public static KeyGeneratorTest expect(KeyGeneratorTestable kg, Result.ExpectedValue expected) {
- return new KeyGeneratorTest(kg, new TestCallback<KeyGeneratorTestable>() {
- @Override
- public Result apply(KeyGeneratorTestable keyGenerationTestable) {
- Result.Value value = Result.Value.fromExpected(expected, keyGenerationTestable.ok(), keyGenerationTestable.error());
- return new Result(value, value.description());
- }
- });
- }
-
- public static KeyGeneratorTest function(KeyGeneratorTestable ka, TestCallback<KeyGeneratorTestable> callback) {
- return new KeyGeneratorTest(ka, callback);
- }
-
- @Override
- public String getDescription() {
- return "KeyPairGenerator " + testable.getKpg().getAlgorithm();
- }
-}