Skip to content

Commit 9079779

Browse files
author
stlc-bot
committed
Build SDK
Stainless-Generated-From: 87e0102
1 parent e305f6e commit 9079779

5 files changed

Lines changed: 16 additions & 15 deletions

File tree

image-kit-java-core/src/test/kotlin/io/imagekit/models/NamedTransformationTest.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,16 @@ internal class NamedTransformationTest {
1818
.createdAt(OffsetDateTime.parse("2024-01-10T09:00:00.000Z"))
1919
.enabled(true)
2020
.name("small_thumbnail")
21-
.transformation("w-150,h-150,fo-center,cm-resize")
21+
.transformation("w-150,h-150,fo-center,cm-pad_resize")
2222
.build()
2323

2424
assertThat(namedTransformation.id()).contains("6bZ9x2ZUx")
2525
assertThat(namedTransformation.createdAt())
2626
.contains(OffsetDateTime.parse("2024-01-10T09:00:00.000Z"))
2727
assertThat(namedTransformation.enabled()).contains(true)
2828
assertThat(namedTransformation.name()).contains("small_thumbnail")
29-
assertThat(namedTransformation.transformation()).contains("w-150,h-150,fo-center,cm-resize")
29+
assertThat(namedTransformation.transformation())
30+
.contains("w-150,h-150,fo-center,cm-pad_resize")
3031
}
3132

3233
@Test
@@ -38,7 +39,7 @@ internal class NamedTransformationTest {
3839
.createdAt(OffsetDateTime.parse("2024-01-10T09:00:00.000Z"))
3940
.enabled(true)
4041
.name("small_thumbnail")
41-
.transformation("w-150,h-150,fo-center,cm-resize")
42+
.transformation("w-150,h-150,fo-center,cm-pad_resize")
4243
.build()
4344

4445
val roundtrippedNamedTransformation =

image-kit-java-core/src/test/kotlin/io/imagekit/models/namedtransformations/NamedTransformationCreateParamsTest.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ internal class NamedTransformationCreateParamsTest {
1111
fun create() {
1212
NamedTransformationCreateParams.builder()
1313
.name("small_thumbnail")
14-
.transformation("w-150,h-150,fo-center,cm-resize")
14+
.transformation("w-150,h-150,fo-center,cm-pad_resize")
1515
.enabled(true)
1616
.build()
1717
}
@@ -21,14 +21,14 @@ internal class NamedTransformationCreateParamsTest {
2121
val params =
2222
NamedTransformationCreateParams.builder()
2323
.name("small_thumbnail")
24-
.transformation("w-150,h-150,fo-center,cm-resize")
24+
.transformation("w-150,h-150,fo-center,cm-pad_resize")
2525
.enabled(true)
2626
.build()
2727

2828
val body = params._body()
2929

3030
assertThat(body.name()).isEqualTo("small_thumbnail")
31-
assertThat(body.transformation()).isEqualTo("w-150,h-150,fo-center,cm-resize")
31+
assertThat(body.transformation()).isEqualTo("w-150,h-150,fo-center,cm-pad_resize")
3232
assertThat(body.enabled()).contains(true)
3333
}
3434

@@ -37,12 +37,12 @@ internal class NamedTransformationCreateParamsTest {
3737
val params =
3838
NamedTransformationCreateParams.builder()
3939
.name("small_thumbnail")
40-
.transformation("w-150,h-150,fo-center,cm-resize")
40+
.transformation("w-150,h-150,fo-center,cm-pad_resize")
4141
.build()
4242

4343
val body = params._body()
4444

4545
assertThat(body.name()).isEqualTo("small_thumbnail")
46-
assertThat(body.transformation()).isEqualTo("w-150,h-150,fo-center,cm-resize")
46+
assertThat(body.transformation()).isEqualTo("w-150,h-150,fo-center,cm-pad_resize")
4747
}
4848
}

image-kit-java-core/src/test/kotlin/io/imagekit/models/namedtransformations/NamedTransformationUpdateParamsTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ internal class NamedTransformationUpdateParamsTest {
1313
.id("6bZ9x2ZUx")
1414
.enabled(false)
1515
.name("small_thumbnail")
16-
.transformation("w-200,h-200,fo-center,cm-resize")
16+
.transformation("w-200,h-200,fo-center,cm-pad_resize")
1717
.build()
1818
}
1919

@@ -33,14 +33,14 @@ internal class NamedTransformationUpdateParamsTest {
3333
.id("6bZ9x2ZUx")
3434
.enabled(false)
3535
.name("small_thumbnail")
36-
.transformation("w-200,h-200,fo-center,cm-resize")
36+
.transformation("w-200,h-200,fo-center,cm-pad_resize")
3737
.build()
3838

3939
val body = params._body()
4040

4141
assertThat(body.enabled()).contains(false)
4242
assertThat(body.name()).contains("small_thumbnail")
43-
assertThat(body.transformation()).contains("w-200,h-200,fo-center,cm-resize")
43+
assertThat(body.transformation()).contains("w-200,h-200,fo-center,cm-pad_resize")
4444
}
4545

4646
@Test

image-kit-java-core/src/test/kotlin/io/imagekit/services/async/NamedTransformationServiceAsyncTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ internal class NamedTransformationServiceAsyncTest {
2424
namedTransformationServiceAsync.create(
2525
NamedTransformationCreateParams.builder()
2626
.name("small_thumbnail")
27-
.transformation("w-150,h-150,fo-center,cm-resize")
27+
.transformation("w-150,h-150,fo-center,cm-pad_resize")
2828
.enabled(true)
2929
.build()
3030
)
@@ -49,7 +49,7 @@ internal class NamedTransformationServiceAsyncTest {
4949
.id("6bZ9x2ZUx")
5050
.enabled(false)
5151
.name("small_thumbnail")
52-
.transformation("w-200,h-200,fo-center,cm-resize")
52+
.transformation("w-200,h-200,fo-center,cm-pad_resize")
5353
.build()
5454
)
5555

image-kit-java-core/src/test/kotlin/io/imagekit/services/blocking/NamedTransformationServiceTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ internal class NamedTransformationServiceTest {
2424
namedTransformationService.create(
2525
NamedTransformationCreateParams.builder()
2626
.name("small_thumbnail")
27-
.transformation("w-150,h-150,fo-center,cm-resize")
27+
.transformation("w-150,h-150,fo-center,cm-pad_resize")
2828
.enabled(true)
2929
.build()
3030
)
@@ -48,7 +48,7 @@ internal class NamedTransformationServiceTest {
4848
.id("6bZ9x2ZUx")
4949
.enabled(false)
5050
.name("small_thumbnail")
51-
.transformation("w-200,h-200,fo-center,cm-resize")
51+
.transformation("w-200,h-200,fo-center,cm-pad_resize")
5252
.build()
5353
)
5454

0 commit comments

Comments
 (0)