File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed
core/src/main/java/com/exonum/binding/core/service
testkit/src/main/java/com/exonum/binding/testkit Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public interface Node {
53
53
HashCode submitTransaction (RawTransaction rawTransaction );
54
54
55
55
/**
56
- * Performs a given function with a snapshot of the current database state.
56
+ * Performs the given function with a snapshot of the current database state.
57
57
*
58
58
* @param snapshotFunction a function to execute
59
59
* @param <ResultT> a type the function returns
@@ -66,8 +66,6 @@ public interface Node {
66
66
* for signing transactions in {@link #submitTransaction(RawTransaction)}.
67
67
*
68
68
* <p>This key is stored under "service_public_key" key in the node configuration file.
69
- *
70
- * @throws IllegalStateException if the node proxy is closed
71
69
*/
72
70
PublicKey getPublicKey ();
73
71
}
Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ private static <T> Stream<T> stream(KeySetIndexProxy<T> setIndex) {
291
291
}
292
292
293
293
/**
294
- * Performs a given function with a snapshot of the current database state (i.e., the one that
294
+ * Performs the given function with a snapshot of the current database state (i.e., the one that
295
295
* corresponds to the latest committed block). In-pool (not yet processed) transactions are also
296
296
* accessible with it in {@linkplain Blockchain#getTxMessages() blockchain}.
297
297
*
@@ -309,7 +309,7 @@ public void withSnapshot(Consumer<Snapshot> snapshotFunction) {
309
309
}
310
310
311
311
/**
312
- * Performs a given function with a snapshot of the current database state (i.e., the one that
312
+ * Performs the given function with a snapshot of the current database state (i.e., the one that
313
313
* corresponds to the latest committed block) and returns a result of its execution. In-pool
314
314
* (not yet processed) transactions are also accessible with it in
315
315
* {@linkplain Blockchain#getTxMessages() blockchain}.
Original file line number Diff line number Diff line change 40
40
* .withService(TestServiceModule.class));
41
41
*
42
42
* @BeforeEach
43
- * void setUp() {
43
+ * void setUp(TestKit testKit ) {
44
44
* // Set up
45
45
* }
46
46
*
73
73
* <p>As different tests might need slightly different TestKit configuration, following
74
74
* parameterization annotations are available:
75
75
* <ul>
76
- * <li>{@link Validator} sets main TestKit validator node type to validator</li>
77
- * <li>{@link Auditor} sets main TestKit validator node type to auditor</li>
76
+ * <li>{@link Validator} sets main TestKit node type to validator</li>
77
+ * <li>{@link Auditor} sets main TestKit node type to auditor</li>
78
78
* <li>{@link ValidatorCount} sets number of validator nodes in the TestKit network</li>
79
79
* </ul>
80
80
* These annotations should be applied on TestKit parameter:
You can’t perform that action at this time.
0 commit comments