diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/commits/CommitRetrieveResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/commits/CommitRetrieveResponseTest.kt index 765b4703..b7f0de52 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/commits/CommitRetrieveResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/commits/CommitRetrieveResponseTest.kt @@ -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") @@ -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( diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/commits/testresults/TestResultListResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/commits/testresults/TestResultListResponseTest.kt index 16dc4c8f..11c30854 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/commits/testresults/TestResultListResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/commits/testresults/TestResultListResponseTest.kt @@ -10,7 +10,7 @@ import org.junit.jupiter.api.Test internal class TestResultListResponseTest { @Test - fun createTestResultListResponse() { + fun create() { val testResultListResponse = TestResultListResponse.builder() .addItem( @@ -66,7 +66,7 @@ internal class TestResultListResponseTest { .build() ) .build() - assertThat(testResultListResponse).isNotNull + assertThat(testResultListResponse.items()) .containsExactly( TestResultListResponse.Item.builder() diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineRetrieveResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineRetrieveResponseTest.kt index 474d2989..cdfc0ddb 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineRetrieveResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineRetrieveResponseTest.kt @@ -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") @@ -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()) diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineUpdateResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineUpdateResponseTest.kt index e65d844f..ed7a6ec2 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineUpdateResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineUpdateResponseTest.kt @@ -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") @@ -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()) diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/data/DataStreamResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/data/DataStreamResponseTest.kt index 6418f012..c4973097 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/data/DataStreamResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/data/DataStreamResponseTest.kt @@ -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) } } diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/rows/RowUpdateResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/rows/RowUpdateResponseTest.kt index 8d93ea51..28568e08 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/rows/RowUpdateResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/rows/RowUpdateResponseTest.kt @@ -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) } } diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/testresults/TestResultListResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/testresults/TestResultListResponseTest.kt index 2b0c06c7..aaddfb19 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/testresults/TestResultListResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/testresults/TestResultListResponseTest.kt @@ -10,7 +10,7 @@ import org.junit.jupiter.api.Test internal class TestResultListResponseTest { @Test - fun createTestResultListResponse() { + fun create() { val testResultListResponse = TestResultListResponse.builder() .addItem( @@ -66,7 +66,7 @@ internal class TestResultListResponseTest { .build() ) .build() - assertThat(testResultListResponse).isNotNull + assertThat(testResultListResponse.items()) .containsExactly( TestResultListResponse.Item.builder() diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/ProjectCreateResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/ProjectCreateResponseTest.kt index bab6428f..f3ecb620 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/ProjectCreateResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/ProjectCreateResponseTest.kt @@ -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") @@ -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") diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/ProjectListResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/ProjectListResponseTest.kt index 19949a5b..1a8a28c7 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/ProjectListResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/ProjectListResponseTest.kt @@ -9,7 +9,7 @@ import org.junit.jupiter.api.Test internal class ProjectListResponseTest { @Test - fun createProjectListResponse() { + fun create() { val projectListResponse = ProjectListResponse.builder() .addItem( @@ -54,7 +54,7 @@ internal class ProjectListResponseTest { .build() ) .build() - assertThat(projectListResponse).isNotNull + assertThat(projectListResponse.items()) .containsExactly( ProjectListResponse.Item.builder() diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/commits/CommitCreateResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/commits/CommitCreateResponseTest.kt index 190d61f5..b8ec9cd9 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/commits/CommitCreateResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/commits/CommitCreateResponseTest.kt @@ -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") @@ -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( diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/commits/CommitListResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/commits/CommitListResponseTest.kt index eef2969a..a6ef21e7 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/commits/CommitListResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/commits/CommitListResponseTest.kt @@ -9,7 +9,7 @@ import org.junit.jupiter.api.Test internal class CommitListResponseTest { @Test - fun createCommitListResponse() { + fun create() { val commitListResponse = CommitListResponse.builder() .addItem( @@ -54,7 +54,7 @@ internal class CommitListResponseTest { .build() ) .build() - assertThat(commitListResponse).isNotNull + assertThat(commitListResponse.items()) .containsExactly( CommitListResponse.Item.builder() diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/inferencepipelines/InferencePipelineCreateResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/inferencepipelines/InferencePipelineCreateResponseTest.kt index bc1d786f..27e5e421 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/inferencepipelines/InferencePipelineCreateResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/inferencepipelines/InferencePipelineCreateResponseTest.kt @@ -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") @@ -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()) diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/inferencepipelines/InferencePipelineListResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/inferencepipelines/InferencePipelineListResponseTest.kt index e33f2621..54344291 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/inferencepipelines/InferencePipelineListResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/inferencepipelines/InferencePipelineListResponseTest.kt @@ -10,7 +10,7 @@ import org.junit.jupiter.api.Test internal class InferencePipelineListResponseTest { @Test - fun createInferencePipelineListResponse() { + fun create() { val inferencePipelineListResponse = InferencePipelineListResponse.builder() .addItem( @@ -113,7 +113,7 @@ internal class InferencePipelineListResponseTest { .build() ) .build() - assertThat(inferencePipelineListResponse).isNotNull + assertThat(inferencePipelineListResponse.items()) .containsExactly( InferencePipelineListResponse.Item.builder() diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/storage/presignedurl/PresignedUrlCreateResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/storage/presignedurl/PresignedUrlCreateResponseTest.kt index 7de37b91..af5fd427 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/storage/presignedurl/PresignedUrlCreateResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/storage/presignedurl/PresignedUrlCreateResponseTest.kt @@ -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())) .build() - assertThat(presignedUrlCreateResponse).isNotNull + assertThat(presignedUrlCreateResponse.storageUri()).isEqualTo("storageUri") assertThat(presignedUrlCreateResponse.url()).isEqualTo("url") assertThat(presignedUrlCreateResponse._fields())