Skip to content

Commit a6e4d5b

Browse files
Renamed vault query tests.
1 parent 230fd01 commit a6e4d5b

File tree

9 files changed

+87
-86
lines changed

9 files changed

+87
-86
lines changed
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import net.corda.core.node.services.Vault
2828
import org.junit.jupiter.api.Test
2929
import kotlin.test.assertEquals
3030

31-
class FindAttestationFlowTests : FlowTest() {
31+
class VaultServiceAttestationQueryTests : FlowTest() {
3232

3333
private lateinit var claim: StateAndRef<CordaClaim<String>>
3434
private lateinit var attestation: StateAndRef<Attestation<CordaClaim<String>>>
@@ -53,7 +53,7 @@ class FindAttestationFlowTests : FlowTest() {
5353
}
5454

5555
@Test
56-
fun `FindAttestationFlow should find the expected claim by linear ID`() {
56+
fun `VaultService should find the expected claim by linear ID`() {
5757
listOf(nodeA, nodeB, nodeC).forEach {
5858
val result = it.services.vaultServiceFor<Attestation<CordaClaim<String>>>().singleOrNull {
5959
stateStatus(Vault.StateStatus.UNCONSUMED)
@@ -65,7 +65,7 @@ class FindAttestationFlowTests : FlowTest() {
6565
}
6666

6767
@Test
68-
fun `FindAttestationFlow should find the expected claim by external ID`() {
68+
fun `VaultService isNull should find the expected claim by external ID`() {
6969
listOf(nodeA, nodeB, nodeC).forEach {
7070
val result = it.services.vaultServiceFor<Attestation<CordaClaim<String>>>().singleOrNull {
7171
stateStatus(Vault.StateStatus.UNCONSUMED)
@@ -77,7 +77,7 @@ class FindAttestationFlowTests : FlowTest() {
7777
}
7878

7979
@Test
80-
fun `FindAttestationFlow should find the expected claim by attestor`() {
80+
fun `VaultService equalTo should find the expected claim by attestor`() {
8181
listOf(nodeA, nodeB, nodeC).forEach {
8282
val result = it.services.vaultServiceFor<Attestation<CordaClaim<String>>>().singleOrNull {
8383
stateStatus(Vault.StateStatus.UNCONSUMED)
@@ -89,7 +89,7 @@ class FindAttestationFlowTests : FlowTest() {
8989
}
9090

9191
@Test
92-
fun `FindAttestationFlow should find the expected claim by pointerStateRef`() {
92+
fun `VaultService equalTo should find the expected claim by pointerStateRef`() {
9393
listOf(nodeA, nodeB, nodeC).forEach {
9494
val result = it.services.vaultServiceFor<Attestation<CordaClaim<String>>>().singleOrNull {
9595
stateStatus(Vault.StateStatus.UNCONSUMED)
@@ -101,7 +101,7 @@ class FindAttestationFlowTests : FlowTest() {
101101
}
102102

103103
@Test
104-
fun `FindAttestationFlow should find the expected claim by pointerStateLinearId`() {
104+
fun `VaultService equalTo should find the expected claim by pointerStateLinearId`() {
105105
listOf(nodeA, nodeB, nodeC).forEach {
106106
val result = it.services.vaultServiceFor<Attestation<CordaClaim<String>>>().singleOrNull {
107107
stateStatus(Vault.StateStatus.UNCONSUMED)
@@ -113,7 +113,7 @@ class FindAttestationFlowTests : FlowTest() {
113113
}
114114

115115
@Test
116-
fun `FindAttestationFlow should find the expected claim by pointerHash`() {
116+
fun `VaultService equalTo should find the expected claim by pointerHash`() {
117117
listOf(nodeA, nodeB, nodeC).forEach {
118118
val result = it.services.vaultServiceFor<Attestation<CordaClaim<String>>>().singleOrNull {
119119
stateStatus(Vault.StateStatus.UNCONSUMED)
@@ -125,7 +125,7 @@ class FindAttestationFlowTests : FlowTest() {
125125
}
126126

127127
@Test
128-
fun `FindAttestationFlow should find the expected claim by status`() {
128+
fun `VaultService equalTo should find the expected claim by status`() {
129129
listOf(nodeA, nodeB, nodeC).forEach {
130130
val result = it.services.vaultServiceFor<Attestation<CordaClaim<String>>>().singleOrNull {
131131
stateStatus(Vault.StateStatus.UNCONSUMED)
@@ -137,7 +137,7 @@ class FindAttestationFlowTests : FlowTest() {
137137
}
138138

139139
@Test
140-
fun `FindAttestationFlow should find the expected claim by previousStateRef`() {
140+
fun `VaultService equalTo should find the expected claim by previousStateRef`() {
141141
listOf(nodeA, nodeB, nodeC).forEach {
142142
val result = it.services.vaultServiceFor<Attestation<CordaClaim<String>>>().singleOrNull {
143143
stateStatus(Vault.StateStatus.UNCONSUMED)
@@ -149,7 +149,7 @@ class FindAttestationFlowTests : FlowTest() {
149149
}
150150

151151
@Test
152-
fun `FindAttestationFlow should find the expected claim by hash`() {
152+
fun `VaultService equalTo should find the expected claim by hash`() {
153153
listOf(nodeA, nodeB, nodeC).forEach {
154154
val result = it.services.vaultServiceFor<Attestation<CordaClaim<String>>>().singleOrNull {
155155
stateStatus(Vault.StateStatus.UNCONSUMED)
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import net.corda.core.node.services.vault.builder
3333
import org.junit.jupiter.api.Test
3434
import kotlin.test.assertEquals
3535

36-
class FindAttestationsFlowTests : FlowTest() {
36+
class VaultServiceAttestationsQueryTests : FlowTest() {
3737

3838
private lateinit var claim: StateAndRef<CordaClaim<String>>
3939
private lateinit var attestation: StateAndRef<Attestation<CordaClaim<String>>>
@@ -63,7 +63,7 @@ class FindAttestationsFlowTests : FlowTest() {
6363
}
6464

6565
@Test
66-
fun `FindAttestationsFlow should find the expected claim by linear ID`() {
66+
fun `VaultService should find the expected claim by linear ID`() {
6767
listOf(nodeA, nodeB, nodeC).forEach {
6868
val results = it.services.vaultServiceFor<Attestation<CordaClaim<String>>>().filter {
6969
stateStatus(Vault.StateStatus.ALL)
@@ -75,7 +75,7 @@ class FindAttestationsFlowTests : FlowTest() {
7575
}
7676

7777
@Test
78-
fun `FindAttestationsFlow should find the expected claim by external ID`() {
78+
fun `VaultService equalTo should find the expected claim by external ID`() {
7979
listOf(nodeA, nodeB, nodeC).forEach {
8080
val results = it.services.vaultServiceFor<Attestation<CordaClaim<String>>>().filter {
8181
stateStatus(Vault.StateStatus.ALL)
@@ -87,7 +87,7 @@ class FindAttestationsFlowTests : FlowTest() {
8787
}
8888

8989
@Test
90-
fun `FindAttestationsFlow should find the expected claim by attestor`() {
90+
fun `VaultService equalTo should find the expected claim by attestor`() {
9191
listOf(nodeA, nodeB, nodeC).forEach {
9292
val results = it.services.vaultServiceFor<Attestation<CordaClaim<String>>>().filter {
9393
stateStatus(Vault.StateStatus.ALL)
@@ -99,7 +99,7 @@ class FindAttestationsFlowTests : FlowTest() {
9999
}
100100

101101
@Test
102-
fun `FindAttestationsFlow should find the expected claim by pointerStateRef`() {
102+
fun `VaultService equalTo should find the expected claim by pointerStateRef`() {
103103
listOf(nodeA, nodeB, nodeC).forEach {
104104
val results = it.services.vaultServiceFor<Attestation<CordaClaim<String>>>().filter {
105105
stateStatus(Vault.StateStatus.ALL)
@@ -111,7 +111,7 @@ class FindAttestationsFlowTests : FlowTest() {
111111
}
112112

113113
@Test
114-
fun `FindAttestationsFlow should find the expected claim by pointerStateLinearId`() {
114+
fun `VaultService equalTo should find the expected claim by pointerStateLinearId`() {
115115
listOf(nodeA, nodeB, nodeC).forEach {
116116
val results = it.services.vaultServiceFor<Attestation<CordaClaim<String>>>().filter {
117117
stateStatus(Vault.StateStatus.ALL)
@@ -123,7 +123,7 @@ class FindAttestationsFlowTests : FlowTest() {
123123
}
124124

125125
@Test
126-
fun `FindAttestationsFlow should find the expected claim by pointerHash`() {
126+
fun `VaultService equalTo should find the expected claim by pointerHash`() {
127127
listOf(nodeA, nodeB, nodeC).forEach {
128128
val results = it.services.vaultServiceFor<Attestation<CordaClaim<String>>>().filter {
129129
stateStatus(Vault.StateStatus.ALL)
@@ -135,7 +135,7 @@ class FindAttestationsFlowTests : FlowTest() {
135135
}
136136

137137
@Test
138-
fun `FindAttestationsFlow should find the expected claim by status (ACCEPTED)`() {
138+
fun `VaultService equalTo should find the expected claim by status (ACCEPTED)`() {
139139
listOf(nodeA, nodeB, nodeC).forEach {
140140
val results = it.services.vaultServiceFor<Attestation<CordaClaim<String>>>().filter {
141141
stateStatus(Vault.StateStatus.ALL)
@@ -147,7 +147,7 @@ class FindAttestationsFlowTests : FlowTest() {
147147
}
148148

149149
@Test
150-
fun `FindAttestationsFlow should find the expected claim by status (REJECTED)`() {
150+
fun `VaultService equalTo should find the expected claim by status (REJECTED)`() {
151151
listOf(nodeA, nodeB, nodeC).forEach {
152152
val results = it.services.vaultServiceFor<Attestation<CordaClaim<String>>>().filter {
153153
stateStatus(Vault.StateStatus.ALL)
@@ -159,7 +159,7 @@ class FindAttestationsFlowTests : FlowTest() {
159159
}
160160

161161
@Test
162-
fun `FindAttestationsFlow should find the expected claim by previousStateRef`() {
162+
fun `VaultService equalTo should find the expected claim by previousStateRef`() {
163163
listOf(nodeA, nodeB, nodeC).forEach {
164164
val results = it.services.vaultServiceFor<Attestation<CordaClaim<String>>>().filter {
165165
stateStatus(Vault.StateStatus.ALL)
@@ -171,7 +171,7 @@ class FindAttestationsFlowTests : FlowTest() {
171171
}
172172

173173
@Test
174-
fun `FindAttestationsFlow should find the expected claim by hash`() {
174+
fun `VaultService equalTo should find the expected claim by hash`() {
175175
listOf(nodeA, nodeB, nodeC).forEach {
176176
val results = it.services.vaultServiceFor<Attestation<CordaClaim<String>>>().filter {
177177
stateStatus(Vault.StateStatus.ALL)
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import net.corda.core.node.services.Vault
3232
import org.junit.jupiter.api.Test
3333
import kotlin.test.assertEquals
3434

35-
class FindClaimFlowTests : FlowTest() {
35+
class VaultServiceClaimQueryTests : FlowTest() {
3636

3737
private lateinit var claim: StateAndRef<CordaClaim<String>>
3838

@@ -51,7 +51,7 @@ class FindClaimFlowTests : FlowTest() {
5151
}
5252

5353
@Test
54-
fun `FindClaimFlow should find the expected claim by linear ID`() {
54+
fun `VaultService should find the expected claim by linear ID`() {
5555
listOf(nodeA, nodeB, nodeC).forEach {
5656
val result = it.services.vaultServiceFor<CordaClaim<String>>().singleOrNull {
5757
stateStatus(Vault.StateStatus.UNCONSUMED)
@@ -63,7 +63,7 @@ class FindClaimFlowTests : FlowTest() {
6363
}
6464

6565
@Test
66-
fun `FindClaimFlow should find the expected claim by external ID`() {
66+
fun `VaultService equalTo should find the expected claim by external ID`() {
6767
listOf(nodeA, nodeB, nodeC).forEach {
6868
val result = it.services.vaultServiceFor<CordaClaim<String>>().singleOrNull {
6969
stateStatus(Vault.StateStatus.UNCONSUMED)
@@ -75,7 +75,7 @@ class FindClaimFlowTests : FlowTest() {
7575
}
7676

7777
@Test
78-
fun `FindClaimFlow should find the expected claim by issuer`() {
78+
fun `VaultService equalTo should find the expected claim by issuer`() {
7979
listOf(nodeA, nodeB, nodeC).forEach {
8080
val result = it.services.vaultServiceFor<CordaClaim<String>>().singleOrNull {
8181
stateStatus(Vault.StateStatus.UNCONSUMED)
@@ -87,7 +87,7 @@ class FindClaimFlowTests : FlowTest() {
8787
}
8888

8989
@Test
90-
fun `FindClaimFlow should find the expected claim by holder`() {
90+
fun `VaultService equalTo should find the expected claim by holder`() {
9191
listOf(nodeA, nodeB, nodeC).forEach {
9292
val result = it.services.vaultServiceFor<CordaClaim<String>>().singleOrNull {
9393
stateStatus(Vault.StateStatus.UNCONSUMED)
@@ -99,7 +99,7 @@ class FindClaimFlowTests : FlowTest() {
9999
}
100100

101101
@Test
102-
fun `FindClaimFlow should find the expected claim by property`() {
102+
fun `VaultService equalTo should find the expected claim by property`() {
103103
listOf(nodeA, nodeB, nodeC).forEach {
104104
val result = it.services.vaultServiceFor<CordaClaim<String>>().singleOrNull {
105105
stateStatus(Vault.StateStatus.UNCONSUMED)
@@ -111,7 +111,7 @@ class FindClaimFlowTests : FlowTest() {
111111
}
112112

113113
@Test
114-
fun `FindClaimFlow should find the expected claim by value`() {
114+
fun `VaultService equalTo should find the expected claim by value`() {
115115
listOf(nodeA, nodeB, nodeC).forEach {
116116
val result = it.services.vaultServiceFor<CordaClaim<String>>().singleOrNull {
117117
stateStatus(Vault.StateStatus.UNCONSUMED)
@@ -123,7 +123,7 @@ class FindClaimFlowTests : FlowTest() {
123123
}
124124

125125
@Test
126-
fun `FindClaimFlow should find the expected claim by previousStateRef`() {
126+
fun `VaultService equalTo should find the expected claim by previousStateRef`() {
127127
listOf(nodeA, nodeB, nodeC).forEach {
128128
val result = it.services.vaultServiceFor<CordaClaim<String>>().singleOrNull {
129129
stateStatus(Vault.StateStatus.UNCONSUMED)
@@ -135,7 +135,7 @@ class FindClaimFlowTests : FlowTest() {
135135
}
136136

137137
@Test
138-
fun `FindClaimFlow should find the expected claim by isSelfIssued`() {
138+
fun `VaultService equalTo should find the expected claim by isSelfIssued`() {
139139
listOf(nodeA, nodeB, nodeC).forEach {
140140
val result = it.services.vaultServiceFor<CordaClaim<String>>().singleOrNull {
141141
stateStatus(Vault.StateStatus.UNCONSUMED)
@@ -147,7 +147,7 @@ class FindClaimFlowTests : FlowTest() {
147147
}
148148

149149
@Test
150-
fun `FindClaimFlow should find the expected claim by hash`() {
150+
fun `VaultService equalTo should find the expected claim by hash`() {
151151
listOf(nodeA, nodeB, nodeC).forEach {
152152
val result = it.services.vaultServiceFor<CordaClaim<String>>().singleOrNull {
153153
stateStatus(Vault.StateStatus.UNCONSUMED)
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import org.junit.jupiter.api.Test
3232
import java.time.Instant
3333
import kotlin.test.assertEquals
3434

35-
class FindClaimsFlowTests : FlowTest() {
35+
class VaultServiceClaimsQueryTests : FlowTest() {
3636

3737
private var previousStateRef: StateRef? = null
3838

@@ -86,7 +86,7 @@ class FindClaimsFlowTests : FlowTest() {
8686
}
8787

8888
@Test
89-
fun `FindClaimsFlow should find the expected claim by linear ID`() {
89+
fun `VaultService should find the expected claim by linear ID`() {
9090
listOf(nodeA, nodeB, nodeC).forEach {
9191
val results = it.services.vaultServiceFor<CordaClaim<Instant>>().filter {
9292
stateStatus(Vault.StateStatus.ALL)
@@ -98,7 +98,7 @@ class FindClaimsFlowTests : FlowTest() {
9898
}
9999

100100
@Test
101-
fun `FindClaimsFlow should find the expected claim by external ID`() {
101+
fun `VaultService equalTo should find the expected claim by external ID`() {
102102
listOf(nodeA, nodeB, nodeC).forEach {
103103
val results = it.services.vaultServiceFor<CordaClaim<Instant>>().filter {
104104
stateStatus(Vault.StateStatus.ALL)
@@ -110,7 +110,7 @@ class FindClaimsFlowTests : FlowTest() {
110110
}
111111

112112
@Test
113-
fun `FindClaimsFlow should find the expected claim by issuer`() {
113+
fun `VaultService equalTo should find the expected claim by issuer`() {
114114
listOf(nodeA, nodeB, nodeC).forEach {
115115
val results = it.services.vaultServiceFor<CordaClaim<Instant>>().filter {
116116
stateStatus(Vault.StateStatus.ALL)
@@ -122,7 +122,7 @@ class FindClaimsFlowTests : FlowTest() {
122122
}
123123

124124
@Test
125-
fun `FindClaimsFlow should find the expected claim by holder`() {
125+
fun `VaultService equalTo should find the expected claim by holder`() {
126126
listOf(nodeA, nodeB, nodeC).forEach {
127127
val results = it.services.vaultServiceFor<CordaClaim<Instant>>().filter {
128128
stateStatus(Vault.StateStatus.ALL)
@@ -134,7 +134,7 @@ class FindClaimsFlowTests : FlowTest() {
134134
}
135135

136136
@Test
137-
fun `FindClaimsFlow should find the expected claim by property`() {
137+
fun `VaultService equalTo should find the expected claim by property`() {
138138
listOf(nodeA, nodeB, nodeC).forEach {
139139
val results = it.services.vaultServiceFor<CordaClaim<Instant>>().filter {
140140
stateStatus(Vault.StateStatus.ALL)
@@ -146,7 +146,7 @@ class FindClaimsFlowTests : FlowTest() {
146146
}
147147

148148
@Test
149-
fun `FindClaimsFlow should find the expected claim by value`() {
149+
fun `VaultService equalTo should find the expected claim by value`() {
150150
listOf(nodeA, nodeB, nodeC).forEach {
151151
val results = it.services.vaultServiceFor<CordaClaim<Instant>>().filter {
152152
stateStatus(Vault.StateStatus.ALL)
@@ -158,7 +158,7 @@ class FindClaimsFlowTests : FlowTest() {
158158
}
159159

160160
@Test
161-
fun `FindClaimsFlow should find the expected claim by previousStateRef`() {
161+
fun `VaultService equalTo should find the expected claim by previousStateRef`() {
162162
listOf(nodeA, nodeB, nodeC).forEach {
163163
val results = it.services.vaultServiceFor<CordaClaim<Instant>>().filter {
164164
stateStatus(Vault.StateStatus.ALL)
@@ -170,7 +170,7 @@ class FindClaimsFlowTests : FlowTest() {
170170
}
171171

172172
@Test
173-
fun `FindClaimsFlow should find the expected claim by isSelfIssued`() {
173+
fun `VaultService equalTo should find the expected claim by isSelfIssued`() {
174174
listOf(nodeA, nodeB, nodeC).forEach {
175175
val results = it.services.vaultServiceFor<CordaClaim<Instant>>().filter {
176176
stateStatus(Vault.StateStatus.ALL)
@@ -182,7 +182,7 @@ class FindClaimsFlowTests : FlowTest() {
182182
}
183183

184184
@Test
185-
fun `FindClaimsFlow should find the expected claim by hash`() {
185+
fun `VaultService equalTo should find the expected claim by hash`() {
186186
listOf(nodeA, nodeB, nodeC).forEach {
187187
val results = it.services.vaultServiceFor<CordaClaim<Instant>>().filter {
188188
stateStatus(Vault.StateStatus.ALL)

0 commit comments

Comments
 (0)