Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

chore(internal): reformat some tests #89

Merged
merged 1 commit into from
Mar 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import org.junit.jupiter.api.Test
internal class CommitRetrieveResponseTest {

@Test
fun createCommitRetrieveResponse() {
fun create() {
val commitRetrieveResponse =
CommitRetrieveResponse.builder()
.id("3fa85f64-5717-4562-b3fc-2c963f66afa6")
Expand Down Expand Up @@ -50,7 +50,7 @@ internal class CommitRetrieveResponseTest {
.build()
)
.build()
assertThat(commitRetrieveResponse).isNotNull

assertThat(commitRetrieveResponse.id()).isEqualTo("3fa85f64-5717-4562-b3fc-2c963f66afa6")
assertThat(commitRetrieveResponse.commit())
.isEqualTo(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import org.junit.jupiter.api.Test
internal class TestResultListResponseTest {

@Test
fun createTestResultListResponse() {
fun create() {
val testResultListResponse =
TestResultListResponse.builder()
.addItem(
Expand Down Expand Up @@ -66,7 +66,7 @@ internal class TestResultListResponseTest {
.build()
)
.build()
assertThat(testResultListResponse).isNotNull

assertThat(testResultListResponse.items())
.containsExactly(
TestResultListResponse.Item.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import org.junit.jupiter.api.Test
internal class InferencePipelineRetrieveResponseTest {

@Test
fun createInferencePipelineRetrieveResponse() {
fun create() {
val inferencePipelineRetrieveResponse =
InferencePipelineRetrieveResponse.builder()
.id("3fa85f64-5717-4562-b3fc-2c963f66afa6")
Expand Down Expand Up @@ -102,7 +102,7 @@ internal class InferencePipelineRetrieveResponseTest {
)
.workspaceId("055fddb1-261f-4654-8598-f6347ee46a09")
.build()
assertThat(inferencePipelineRetrieveResponse).isNotNull

assertThat(inferencePipelineRetrieveResponse.id())
.isEqualTo("3fa85f64-5717-4562-b3fc-2c963f66afa6")
assertThat(inferencePipelineRetrieveResponse.dateCreated())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import org.junit.jupiter.api.Test
internal class InferencePipelineUpdateResponseTest {

@Test
fun createInferencePipelineUpdateResponse() {
fun create() {
val inferencePipelineUpdateResponse =
InferencePipelineUpdateResponse.builder()
.id("3fa85f64-5717-4562-b3fc-2c963f66afa6")
Expand Down Expand Up @@ -102,7 +102,7 @@ internal class InferencePipelineUpdateResponseTest {
)
.workspaceId("055fddb1-261f-4654-8598-f6347ee46a09")
.build()
assertThat(inferencePipelineUpdateResponse).isNotNull

assertThat(inferencePipelineUpdateResponse.id())
.isEqualTo("3fa85f64-5717-4562-b3fc-2c963f66afa6")
assertThat(inferencePipelineUpdateResponse.dateCreated())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import org.junit.jupiter.api.Test
internal class DataStreamResponseTest {

@Test
fun createDataStreamResponse() {
fun create() {
val dataStreamResponse =
DataStreamResponse.builder().success(DataStreamResponse.Success.TRUE).build()
assertThat(dataStreamResponse).isNotNull

assertThat(dataStreamResponse.success()).isEqualTo(DataStreamResponse.Success.TRUE)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import org.junit.jupiter.api.Test
internal class RowUpdateResponseTest {

@Test
fun createRowUpdateResponse() {
fun create() {
val rowUpdateResponse =
RowUpdateResponse.builder().success(RowUpdateResponse.Success.TRUE).build()
assertThat(rowUpdateResponse).isNotNull

assertThat(rowUpdateResponse.success()).isEqualTo(RowUpdateResponse.Success.TRUE)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import org.junit.jupiter.api.Test
internal class TestResultListResponseTest {

@Test
fun createTestResultListResponse() {
fun create() {
val testResultListResponse =
TestResultListResponse.builder()
.addItem(
Expand Down Expand Up @@ -66,7 +66,7 @@ internal class TestResultListResponseTest {
.build()
)
.build()
assertThat(testResultListResponse).isNotNull

assertThat(testResultListResponse.items())
.containsExactly(
TestResultListResponse.Item.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import org.junit.jupiter.api.Test
internal class ProjectCreateResponseTest {

@Test
fun createProjectCreateResponse() {
fun create() {
val projectCreateResponse =
ProjectCreateResponse.builder()
.id("3fa85f64-5717-4562-b3fc-2c963f66afa6")
Expand Down Expand Up @@ -50,7 +50,7 @@ internal class ProjectCreateResponseTest {
.build()
)
.build()
assertThat(projectCreateResponse).isNotNull

assertThat(projectCreateResponse.id()).isEqualTo("3fa85f64-5717-4562-b3fc-2c963f66afa6")
assertThat(projectCreateResponse.creatorId())
.contains("589ece63-49a2-41b4-98e1-10547761d4b0")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import org.junit.jupiter.api.Test
internal class ProjectListResponseTest {

@Test
fun createProjectListResponse() {
fun create() {
val projectListResponse =
ProjectListResponse.builder()
.addItem(
Expand Down Expand Up @@ -54,7 +54,7 @@ internal class ProjectListResponseTest {
.build()
)
.build()
assertThat(projectListResponse).isNotNull

assertThat(projectListResponse.items())
.containsExactly(
ProjectListResponse.Item.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import org.junit.jupiter.api.Test
internal class CommitCreateResponseTest {

@Test
fun createCommitCreateResponse() {
fun create() {
val commitCreateResponse =
CommitCreateResponse.builder()
.id("3fa85f64-5717-4562-b3fc-2c963f66afa6")
Expand Down Expand Up @@ -50,7 +50,7 @@ internal class CommitCreateResponseTest {
.build()
)
.build()
assertThat(commitCreateResponse).isNotNull

assertThat(commitCreateResponse.id()).isEqualTo("3fa85f64-5717-4562-b3fc-2c963f66afa6")
assertThat(commitCreateResponse.commit())
.isEqualTo(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import org.junit.jupiter.api.Test
internal class CommitListResponseTest {

@Test
fun createCommitListResponse() {
fun create() {
val commitListResponse =
CommitListResponse.builder()
.addItem(
Expand Down Expand Up @@ -54,7 +54,7 @@ internal class CommitListResponseTest {
.build()
)
.build()
assertThat(commitListResponse).isNotNull

assertThat(commitListResponse.items())
.containsExactly(
CommitListResponse.Item.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import org.junit.jupiter.api.Test
internal class InferencePipelineCreateResponseTest {

@Test
fun createInferencePipelineCreateResponse() {
fun create() {
val inferencePipelineCreateResponse =
InferencePipelineCreateResponse.builder()
.id("3fa85f64-5717-4562-b3fc-2c963f66afa6")
Expand Down Expand Up @@ -102,7 +102,7 @@ internal class InferencePipelineCreateResponseTest {
)
.workspaceId("055fddb1-261f-4654-8598-f6347ee46a09")
.build()
assertThat(inferencePipelineCreateResponse).isNotNull

assertThat(inferencePipelineCreateResponse.id())
.isEqualTo("3fa85f64-5717-4562-b3fc-2c963f66afa6")
assertThat(inferencePipelineCreateResponse.dateCreated())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import org.junit.jupiter.api.Test
internal class InferencePipelineListResponseTest {

@Test
fun createInferencePipelineListResponse() {
fun create() {
val inferencePipelineListResponse =
InferencePipelineListResponse.builder()
.addItem(
Expand Down Expand Up @@ -113,7 +113,7 @@ internal class InferencePipelineListResponseTest {
.build()
)
.build()
assertThat(inferencePipelineListResponse).isNotNull

assertThat(inferencePipelineListResponse.items())
.containsExactly(
InferencePipelineListResponse.Item.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import org.junit.jupiter.api.Test
internal class PresignedUrlCreateResponseTest {

@Test
fun createPresignedUrlCreateResponse() {
fun create() {
val presignedUrlCreateResponse =
PresignedUrlCreateResponse.builder()
.storageUri("storageUri")
.url("url")
.fields(JsonValue.from(mapOf<String, Any>()))
.build()
assertThat(presignedUrlCreateResponse).isNotNull

assertThat(presignedUrlCreateResponse.storageUri()).isEqualTo("storageUri")
assertThat(presignedUrlCreateResponse.url()).isEqualTo("url")
assertThat(presignedUrlCreateResponse._fields())
Expand Down