Skip to content

Commit 2c2b949

Browse files
chore(internal): reformat some tests (#350)
chore(internal): generate more tests
1 parent c925d2f commit 2c2b949

54 files changed

Lines changed: 108 additions & 108 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

orb-java-core/src/test/kotlin/com/withorb/api/models/AlertTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import org.junit.jupiter.api.Test
1010
internal class AlertTest {
1111

1212
@Test
13-
fun createAlert() {
13+
fun create() {
1414
val alert =
1515
Alert.builder()
1616
.id("XuxCbt7x9L82yyeF")
@@ -36,7 +36,7 @@ internal class AlertTest {
3636
.addThreshold(Alert.Threshold.builder().value(0.0).build())
3737
.type(Alert.Type.CREDIT_BALANCE_DEPLETED)
3838
.build()
39-
assertThat(alert).isNotNull
39+
4040
assertThat(alert.id()).isEqualTo("XuxCbt7x9L82yyeF")
4141
assertThat(alert.createdAt()).isEqualTo(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
4242
assertThat(alert.currency()).contains("currency")

orb-java-core/src/test/kotlin/com/withorb/api/models/AmountDiscountTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import org.junit.jupiter.api.Test
88
internal class AmountDiscountTest {
99

1010
@Test
11-
fun createAmountDiscount() {
11+
fun create() {
1212
val amountDiscount =
1313
AmountDiscount.builder()
1414
.amountDiscount("amount_discount")
@@ -17,7 +17,7 @@ internal class AmountDiscountTest {
1717
.discountType(AmountDiscount.DiscountType.AMOUNT)
1818
.reason("reason")
1919
.build()
20-
assertThat(amountDiscount).isNotNull
20+
2121
assertThat(amountDiscount.amountDiscount()).isEqualTo("amount_discount")
2222
assertThat(amountDiscount.appliesToPriceIds())
2323
.containsExactly("h74gfhdjvn7ujokd", "7hfgtgjnbvc3ujkl")

orb-java-core/src/test/kotlin/com/withorb/api/models/BillableMetricTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import org.junit.jupiter.api.Test
1010
internal class BillableMetricTest {
1111

1212
@Test
13-
fun createBillableMetric() {
13+
fun create() {
1414
val billableMetric =
1515
BillableMetric.builder()
1616
.id("id")
@@ -38,7 +38,7 @@ internal class BillableMetricTest {
3838
.name("name")
3939
.status(BillableMetric.Status.ACTIVE)
4040
.build()
41-
assertThat(billableMetric).isNotNull
41+
4242
assertThat(billableMetric.id()).isEqualTo("id")
4343
assertThat(billableMetric.description()).contains("description")
4444
assertThat(billableMetric.item())

orb-java-core/src/test/kotlin/com/withorb/api/models/CouponTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import org.junit.jupiter.api.Test
99
internal class CouponTest {
1010

1111
@Test
12-
fun createCoupon() {
12+
fun create() {
1313
val coupon =
1414
Coupon.builder()
1515
.id("7iz2yanVjQoBZhyH")
@@ -28,7 +28,7 @@ internal class CouponTest {
2828
.redemptionCode("HALFOFF")
2929
.timesRedeemed(0L)
3030
.build()
31-
assertThat(coupon).isNotNull
31+
3232
assertThat(coupon.id()).isEqualTo("7iz2yanVjQoBZhyH")
3333
assertThat(coupon.archivedAt()).contains(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
3434
assertThat(coupon.discount())

orb-java-core/src/test/kotlin/com/withorb/api/models/CreditNoteTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import org.junit.jupiter.api.Test
1010
internal class CreditNoteTest {
1111

1212
@Test
13-
fun createCreditNote() {
13+
fun create() {
1414
val creditNote =
1515
CreditNote.builder()
1616
.id("id")
@@ -88,7 +88,7 @@ internal class CreditNoteTest {
8888
.build()
8989
)
9090
.build()
91-
assertThat(creditNote).isNotNull
91+
9292
assertThat(creditNote.id()).isEqualTo("id")
9393
assertThat(creditNote.createdAt())
9494
.isEqualTo(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))

orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerBalanceTransactionCreateResponseTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import org.junit.jupiter.api.Test
99
internal class CustomerBalanceTransactionCreateResponseTest {
1010

1111
@Test
12-
fun createCustomerBalanceTransactionCreateResponse() {
12+
fun create() {
1313
val customerBalanceTransactionCreateResponse =
1414
CustomerBalanceTransactionCreateResponse.builder()
1515
.id("cgZa3SXcsPTVyC4Y")
@@ -29,7 +29,7 @@ internal class CustomerBalanceTransactionCreateResponseTest {
2929
.startingBalance("33.00")
3030
.type(CustomerBalanceTransactionCreateResponse.Type.INCREMENT)
3131
.build()
32-
assertThat(customerBalanceTransactionCreateResponse).isNotNull
32+
3333
assertThat(customerBalanceTransactionCreateResponse.id()).isEqualTo("cgZa3SXcsPTVyC4Y")
3434
assertThat(customerBalanceTransactionCreateResponse.action())
3535
.isEqualTo(CustomerBalanceTransactionCreateResponse.Action.APPLIED_TO_INVOICE)

orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerBalanceTransactionListResponseTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import org.junit.jupiter.api.Test
99
internal class CustomerBalanceTransactionListResponseTest {
1010

1111
@Test
12-
fun createCustomerBalanceTransactionListResponse() {
12+
fun create() {
1313
val customerBalanceTransactionListResponse =
1414
CustomerBalanceTransactionListResponse.builder()
1515
.id("cgZa3SXcsPTVyC4Y")
@@ -29,7 +29,7 @@ internal class CustomerBalanceTransactionListResponseTest {
2929
.startingBalance("33.00")
3030
.type(CustomerBalanceTransactionListResponse.Type.INCREMENT)
3131
.build()
32-
assertThat(customerBalanceTransactionListResponse).isNotNull
32+
3333
assertThat(customerBalanceTransactionListResponse.id()).isEqualTo("cgZa3SXcsPTVyC4Y")
3434
assertThat(customerBalanceTransactionListResponse.action())
3535
.isEqualTo(CustomerBalanceTransactionListResponse.Action.APPLIED_TO_INVOICE)

orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCostListByExternalIdResponseTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import org.junit.jupiter.api.Test
1010
internal class CustomerCostListByExternalIdResponseTest {
1111

1212
@Test
13-
fun createCustomerCostListByExternalIdResponse() {
13+
fun create() {
1414
val customerCostListByExternalIdResponse =
1515
CustomerCostListByExternalIdResponse.builder()
1616
.addData(
@@ -128,7 +128,7 @@ internal class CustomerCostListByExternalIdResponseTest {
128128
.build()
129129
)
130130
.build()
131-
assertThat(customerCostListByExternalIdResponse).isNotNull
131+
132132
assertThat(customerCostListByExternalIdResponse.data())
133133
.containsExactly(
134134
CustomerCostListByExternalIdResponse.Data.builder()

orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCostListResponseTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import org.junit.jupiter.api.Test
1010
internal class CustomerCostListResponseTest {
1111

1212
@Test
13-
fun createCustomerCostListResponse() {
13+
fun create() {
1414
val customerCostListResponse =
1515
CustomerCostListResponse.builder()
1616
.addData(
@@ -128,7 +128,7 @@ internal class CustomerCostListResponseTest {
128128
.build()
129129
)
130130
.build()
131-
assertThat(customerCostListResponse).isNotNull
131+
132132
assertThat(customerCostListResponse.data())
133133
.containsExactly(
134134
CustomerCostListResponse.Data.builder()

orb-java-core/src/test/kotlin/com/withorb/api/models/CustomerCreditListByExternalIdResponseTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import org.junit.jupiter.api.Test
99
internal class CustomerCreditListByExternalIdResponseTest {
1010

1111
@Test
12-
fun createCustomerCreditListByExternalIdResponse() {
12+
fun create() {
1313
val customerCreditListByExternalIdResponse =
1414
CustomerCreditListByExternalIdResponse.builder()
1515
.id("id")
@@ -20,7 +20,7 @@ internal class CustomerCreditListByExternalIdResponseTest {
2020
.perUnitCostBasis("per_unit_cost_basis")
2121
.status(CustomerCreditListByExternalIdResponse.Status.ACTIVE)
2222
.build()
23-
assertThat(customerCreditListByExternalIdResponse).isNotNull
23+
2424
assertThat(customerCreditListByExternalIdResponse.id()).isEqualTo("id")
2525
assertThat(customerCreditListByExternalIdResponse.balance()).isEqualTo(0.0)
2626
assertThat(customerCreditListByExternalIdResponse.effectiveDate())

0 commit comments

Comments
 (0)