Skip to content

Commit 775392d

Browse files
chore(tests): improve enum examples (#532)
1 parent ecf62d0 commit 775392d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

finch-java-core/src/test/kotlin/com/tryfinch/api/models/SandboxConnectionAccountUpdateParamsTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@ internal class SandboxConnectionAccountUpdateParamsTest {
1010
@Test
1111
fun create() {
1212
SandboxConnectionAccountUpdateParams.builder()
13-
.connectionStatus(ConnectionStatusType.PENDING)
13+
.connectionStatus(ConnectionStatusType.REAUTH)
1414
.build()
1515
}
1616

1717
@Test
1818
fun body() {
1919
val params =
2020
SandboxConnectionAccountUpdateParams.builder()
21-
.connectionStatus(ConnectionStatusType.PENDING)
21+
.connectionStatus(ConnectionStatusType.REAUTH)
2222
.build()
2323

2424
val body = params._body()
2525

26-
assertThat(body.connectionStatus()).contains(ConnectionStatusType.PENDING)
26+
assertThat(body.connectionStatus()).contains(ConnectionStatusType.REAUTH)
2727
}
2828

2929
@Test

finch-java-core/src/test/kotlin/com/tryfinch/api/services/async/sandbox/connections/AccountServiceAsyncTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ internal class AccountServiceAsyncTest {
5050
val accountFuture =
5151
accountServiceAsync.update(
5252
SandboxConnectionAccountUpdateParams.builder()
53-
.connectionStatus(ConnectionStatusType.PENDING)
53+
.connectionStatus(ConnectionStatusType.REAUTH)
5454
.build()
5555
)
5656

finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/sandbox/connections/AccountServiceTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ internal class AccountServiceTest {
4949
val account =
5050
accountService.update(
5151
SandboxConnectionAccountUpdateParams.builder()
52-
.connectionStatus(ConnectionStatusType.PENDING)
52+
.connectionStatus(ConnectionStatusType.REAUTH)
5353
.build()
5454
)
5555

0 commit comments

Comments
 (0)