Skip navigation links
A B C D E F G M R S T V W 

A

addTime(TemporalAmount) - Method in class com.exonum.binding.testkit.FakeTimeProvider
Increases stored time by given amount.
applySnapshot(Function<Snapshot, ResultT>) - Method in class com.exonum.binding.testkit.TestKit
Performs the given function with a snapshot of the current database state (i.e., the one that corresponds to the latest committed block) and returns a result of its execution.
Auditor - Annotation Type in com.exonum.binding.testkit
Changes main TestKit node type to auditor for injected TestKit.

B

build() - Method in class com.exonum.binding.testkit.TestKit.Builder
Creates the TestKit instance.
builder() - Static method in class com.exonum.binding.testkit.TestKit
Creates a new builder for the TestKit.

C

com.exonum.binding.testkit - package com.exonum.binding.testkit
 
copy() - Method in class com.exonum.binding.testkit.TestKit.Builder
Returns a copy of this TestKit builder.
create(ZonedDateTime) - Static method in class com.exonum.binding.testkit.FakeTimeProvider
Creates a fake time provider with given time.
createBlock() - Method in class com.exonum.binding.testkit.TestKit
Creates a block with all in-pool transactions.
createBlockWithTransactions(TransactionMessage...) - Method in class com.exonum.binding.testkit.TestKit
Creates a block with the given transaction(s).
createBlockWithTransactions(Iterable<TransactionMessage>) - Method in class com.exonum.binding.testkit.TestKit
Creates a block with the given transactions.

D

disposeInternal() - Method in class com.exonum.binding.testkit.TestKit
 

E

EmulatedNode - Class in com.exonum.binding.testkit
Context of the TestKit emulated node, i.e., on which it instantiates and executes services.
EmulatedNode(int, KeyPair) - Constructor for class com.exonum.binding.testkit.EmulatedNode
Creates a context of an emulated node.
EmulatedNodeType - Enum in com.exonum.binding.testkit
Type of the TestKit emulated node.

F

FakeTimeProvider - Class in com.exonum.binding.testkit
Fake time provider for service testing.
findTransactionsInPool(Predicate<TransactionMessage>) - Method in class com.exonum.binding.testkit.TestKit
Returns a list of in-pool transactions that match the given predicate.
forService(Class<? extends ServiceModule>) - Static method in class com.exonum.binding.testkit.TestKit
Creates a TestKit network with a single validator node for a single service.

G

getEmulatedNode() - Method in class com.exonum.binding.testkit.TestKit
Returns the context of the node that the TestKit emulates (i.e., on which it instantiates and executes services).
getNodeType() - Method in class com.exonum.binding.testkit.EmulatedNode
Returns a node type - either EmulatedNodeType.VALIDATOR or EmulatedNodeType.AUDITOR.
getService(short, Class<T>) - Method in class com.exonum.binding.testkit.TestKit
Returns an instance of a service with the given service id and service class.
getServiceKeyPair() - Method in class com.exonum.binding.testkit.EmulatedNode
Returns a service key pair of this node.
getSnapshot() - Method in class com.exonum.binding.testkit.TestKit
Returns a snapshot of the current database state (i.e., the one that corresponds to the latest committed block).
getTime() - Method in class com.exonum.binding.testkit.FakeTimeProvider
 
getTime() - Method in interface com.exonum.binding.testkit.TimeProvider
Returns the current time of this time provider in UTC time zone.
getTransactionPool() - Method in class com.exonum.binding.testkit.TestKit
Returns a list of in-pool transactions.
getValidatorId() - Method in class com.exonum.binding.testkit.EmulatedNode
Returns a validator id if this node is a validator or OptionalInt.empty() if this is an auditor node.

M

MAX_VALIDATOR_COUNT_WITH_ENABLED_TIME_SERVICE - Static variable in class com.exonum.binding.testkit.TestKit
The maximum number of validators supported by TestKit when a time oracle is enabled.

R

resolveParameter(ParameterContext, ExtensionContext) - Method in class com.exonum.binding.testkit.TestKitExtension
 

S

setTime(ZonedDateTime) - Method in class com.exonum.binding.testkit.FakeTimeProvider
Sets new time for this time provider.
supportsParameter(ParameterContext, ExtensionContext) - Method in class com.exonum.binding.testkit.TestKitExtension
 

T

TestKit - Class in com.exonum.binding.testkit
TestKit for testing blockchain services.
TestKit.Builder - Class in com.exonum.binding.testkit
Builder for the TestKit.
TestKitExtension - Class in com.exonum.binding.testkit
Extension that injects TestKit into service tests and destroys afterwards.
TestKitExtension(TestKit.Builder) - Constructor for class com.exonum.binding.testkit.TestKitExtension
 
TimeProvider - Interface in com.exonum.binding.testkit
Time provider for service testing.

V

Validator - Annotation Type in com.exonum.binding.testkit
Changes main TestKit node type to validator for injected TestKit.
ValidatorCount - Annotation Type in com.exonum.binding.testkit
Number of validator nodes in the TestKit network, should be positive.
valueOf(String) - Static method in enum com.exonum.binding.testkit.EmulatedNodeType
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.exonum.binding.testkit.EmulatedNodeType
Returns an array containing the constants of this enum type, in the order they are declared.

W

withNodeType(EmulatedNodeType) - Method in class com.exonum.binding.testkit.TestKit.Builder
Sets the type of the main TestKit node - either validator or auditor.
withService(Class<? extends ServiceModule>) - Method in class com.exonum.binding.testkit.TestKit.Builder
Adds a service with which the TestKit would be instantiated.
withServices(Class<? extends ServiceModule>, Class<? extends ServiceModule>...) - Method in class com.exonum.binding.testkit.TestKit.Builder
Adds services with which the TestKit would be instantiated.
withServices(Iterable<Class<? extends ServiceModule>>) - Method in class com.exonum.binding.testkit.TestKit.Builder
Adds services with which the TestKit would be instantiated.
withSnapshot(Consumer<Snapshot>) - Method in class com.exonum.binding.testkit.TestKit
Performs the given function with a snapshot of the current database state (i.e., the one that corresponds to the latest committed block).
withTimeService(TimeProvider) - Method in class com.exonum.binding.testkit.TestKit.Builder
If called, will create a TestKit with time service enabled.
withValidators(short) - Method in class com.exonum.binding.testkit.TestKit.Builder
Sets number of validator nodes in the TestKit network, should be positive.
A B C D E F G M R S T V W 
Skip navigation links

Copyright © 2019 Exonum. All rights reserved.