From 146360796f2ecab979bd1994769b53b03adec5a1 Mon Sep 17 00:00:00 2001 From: Anthony Dahanne Date: Tue, 6 Feb 2024 12:28:26 -0500 Subject: [PATCH 1/2] Revert removal of Test import * make sure that we also compile the integration tests during Github CI --- .github/workflows/ci-java-8-and-11.yml | 2 ++ .../test/java/org/cloudfoundry/client/v2/ApplicationsTest.java | 1 + .../test/java/org/cloudfoundry/client/v2/BlobstoresTest.java | 1 + .../test/java/org/cloudfoundry/client/v2/BuildpacksTest.java | 1 + .../src/test/java/org/cloudfoundry/client/v2/DomainsTest.java | 1 + .../src/test/java/org/cloudfoundry/client/v2/EventsTest.java | 1 + .../test/java/org/cloudfoundry/client/v2/FeatureFlagsTest.java | 1 + .../src/test/java/org/cloudfoundry/client/v2/InfoTest.java | 1 + .../src/test/java/org/cloudfoundry/client/v2/JobsTest.java | 1 + .../client/v2/OrganizationQuotaDefinitionsTest.java | 1 + .../test/java/org/cloudfoundry/client/v2/OrganizationsTest.java | 1 + .../java/org/cloudfoundry/client/v2/PrivateDomainsTest.java | 1 + .../test/java/org/cloudfoundry/client/v2/RouteMappingsTest.java | 1 + .../src/test/java/org/cloudfoundry/client/v2/RoutesTest.java | 1 + .../java/org/cloudfoundry/client/v2/SecurityGroupsTest.java | 1 + .../java/org/cloudfoundry/client/v2/ServiceBindingsTest.java | 1 + .../java/org/cloudfoundry/client/v2/ServiceBrokersTest.java | 1 + .../java/org/cloudfoundry/client/v2/ServiceInstancesTest.java | 1 + .../test/java/org/cloudfoundry/client/v2/ServiceKeysTest.java | 1 + .../org/cloudfoundry/client/v2/ServicePlanVisibilitiesTest.java | 1 + .../test/java/org/cloudfoundry/client/v2/ServicePlansTest.java | 1 + .../java/org/cloudfoundry/client/v2/ServiceUsageEventsTest.java | 1 + .../src/test/java/org/cloudfoundry/client/v2/ServicesTest.java | 1 + .../test/java/org/cloudfoundry/client/v2/SharedDomainsTest.java | 1 + .../org/cloudfoundry/client/v2/SpaceQuotaDefinitionsTest.java | 1 + .../src/test/java/org/cloudfoundry/client/v2/SpacesTest.java | 1 + .../src/test/java/org/cloudfoundry/client/v2/StacksTest.java | 1 + .../org/cloudfoundry/client/v2/UserProvidedServicesTest.java | 1 + .../src/test/java/org/cloudfoundry/client/v2/UsersTest.java | 1 + .../src/test/java/org/cloudfoundry/client/v3/AdminTest.java | 1 + .../test/java/org/cloudfoundry/client/v3/ApplicationsTest.java | 1 + .../test/java/org/cloudfoundry/client/v3/AuditEventsTest.java | 1 + .../test/java/org/cloudfoundry/client/v3/BuildpacksTest.java | 1 + .../test/java/org/cloudfoundry/client/v3/DeploymentsTest.java | 1 + .../src/test/java/org/cloudfoundry/client/v3/DomainsTest.java | 1 + .../java/org/cloudfoundry/client/v3/IsolationSegmentsTest.java | 1 + .../test/java/org/cloudfoundry/client/v3/OrganizationsTest.java | 1 + .../src/test/java/org/cloudfoundry/client/v3/PackagesTest.java | 1 + .../src/test/java/org/cloudfoundry/client/v3/ProcessesTest.java | 1 + .../test/java/org/cloudfoundry/client/v3/ResourceMatchTest.java | 1 + .../src/test/java/org/cloudfoundry/client/v3/RolesTest.java | 1 + .../src/test/java/org/cloudfoundry/client/v3/RoutesTest.java | 1 + .../java/org/cloudfoundry/client/v3/ServiceBindingsTest.java | 1 + .../java/org/cloudfoundry/client/v3/ServiceBrokersTest.java | 1 + .../java/org/cloudfoundry/client/v3/ServiceInstancesTest.java | 1 + .../java/org/cloudfoundry/client/v3/ServiceOfferingsTest.java | 1 + .../test/java/org/cloudfoundry/client/v3/ServicePlansTest.java | 1 + .../src/test/java/org/cloudfoundry/client/v3/SpacesTest.java | 1 + .../src/test/java/org/cloudfoundry/client/v3/StacksTest.java | 1 + .../src/test/java/org/cloudfoundry/client/v3/TasksTest.java | 1 + .../test/java/org/cloudfoundry/logcache/v1/LogCacheTest.java | 1 + .../test/java/org/cloudfoundry/networking/v1/PoliciesTest.java | 1 + .../src/test/java/org/cloudfoundry/networking/v1/TagsTest.java | 1 + .../src/test/java/org/cloudfoundry/operations/AdvancedTest.java | 1 + .../test/java/org/cloudfoundry/operations/ApplicationsTest.java | 1 + .../test/java/org/cloudfoundry/operations/BuildpacksTest.java | 1 + .../src/test/java/org/cloudfoundry/operations/DomainsTest.java | 1 + .../java/org/cloudfoundry/operations/NetworkPoliciesTest.java | 1 + .../java/org/cloudfoundry/operations/OrganizationAdminTest.java | 1 + .../java/org/cloudfoundry/operations/OrganizationsTest.java | 1 + .../src/test/java/org/cloudfoundry/operations/RoutesTest.java | 1 + .../test/java/org/cloudfoundry/operations/ServiceAdminTest.java | 1 + .../src/test/java/org/cloudfoundry/operations/ServicesTest.java | 1 + .../src/test/java/org/cloudfoundry/operations/SpacesTest.java | 1 + .../test/java/org/cloudfoundry/operations/UserAdminTest.java | 1 + .../test/java/org/cloudfoundry/routing/v1/RouterGroupsTest.java | 1 + .../test/java/org/cloudfoundry/routing/v1/TcpRoutesTest.java | 1 + .../src/test/java/org/cloudfoundry/uaa/AuthorizationsTest.java | 1 + .../src/test/java/org/cloudfoundry/uaa/ClientsTest.java | 1 + .../src/test/java/org/cloudfoundry/uaa/GroupsTest.java | 1 + .../test/java/org/cloudfoundry/uaa/IdentityProvidersTest.java | 1 + .../src/test/java/org/cloudfoundry/uaa/IdentityZonesTest.java | 1 + .../test/java/org/cloudfoundry/uaa/ServerInformationTest.java | 1 + .../src/test/java/org/cloudfoundry/uaa/TokensTest.java | 1 + .../src/test/java/org/cloudfoundry/uaa/UsersTest.java | 1 + 75 files changed, 76 insertions(+) diff --git a/.github/workflows/ci-java-8-and-11.yml b/.github/workflows/ci-java-8-and-11.yml index 27082a618a..b0eda0b9b9 100644 --- a/.github/workflows/ci-java-8-and-11.yml +++ b/.github/workflows/ci-java-8-and-11.yml @@ -33,6 +33,8 @@ jobs: restore-keys: ${{ runner.os }}-m2 - name: Build with Maven run: ./mvnw clean package -Dgpg.skip + - name: Compile integration tests + run: ./mvnw -Pintegration-test test-compile compile - if: ${{ matrix.java != 8 }} name: Check style with Spotless run: ./mvnw spotless:check diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v2/ApplicationsTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v2/ApplicationsTest.java index 32e273c10e..ab1b229ab0 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v2/ApplicationsTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v2/ApplicationsTest.java @@ -69,6 +69,7 @@ import org.cloudfoundry.util.OperationUtils; import org.cloudfoundry.util.PaginationUtils; import org.cloudfoundry.util.ResourceUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.io.ClassPathResource; import org.springframework.util.Assert; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v2/BlobstoresTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v2/BlobstoresTest.java index 444433cf9b..6af1ce3452 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v2/BlobstoresTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v2/BlobstoresTest.java @@ -20,6 +20,7 @@ import org.cloudfoundry.client.CloudFoundryClient; import org.cloudfoundry.client.v2.blobstores.DeleteBlobstoreBuildpackCachesRequest; import org.cloudfoundry.util.JobUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.test.StepVerifier; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v2/BuildpacksTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v2/BuildpacksTest.java index 947fa424e8..cd7c650e24 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v2/BuildpacksTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v2/BuildpacksTest.java @@ -30,6 +30,7 @@ import org.cloudfoundry.util.JobUtils; import org.cloudfoundry.util.PaginationUtils; import org.cloudfoundry.util.ResourceUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.io.ClassPathResource; import reactor.core.publisher.Flux; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v2/DomainsTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v2/DomainsTest.java index 9042864216..17a195ccfb 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v2/DomainsTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v2/DomainsTest.java @@ -45,6 +45,7 @@ import org.cloudfoundry.util.JobUtils; import org.cloudfoundry.util.PaginationUtils; import org.cloudfoundry.util.ResourceUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v2/EventsTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v2/EventsTest.java index f354682504..f8d81f70b6 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v2/EventsTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v2/EventsTest.java @@ -22,6 +22,7 @@ import org.cloudfoundry.client.v2.events.GetEventRequest; import org.cloudfoundry.client.v2.events.ListEventsRequest; import org.cloudfoundry.util.ResourceUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v2/FeatureFlagsTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v2/FeatureFlagsTest.java index 4d65910362..0c9d693197 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v2/FeatureFlagsTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v2/FeatureFlagsTest.java @@ -22,6 +22,7 @@ import org.cloudfoundry.client.v2.featureflags.GetFeatureFlagRequest; import org.cloudfoundry.client.v2.featureflags.ListFeatureFlagsRequest; import org.cloudfoundry.client.v2.featureflags.SetFeatureFlagRequest; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v2/InfoTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v2/InfoTest.java index 70b92b6615..d6998b88ad 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v2/InfoTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v2/InfoTest.java @@ -20,6 +20,7 @@ import org.cloudfoundry.AbstractIntegrationTest; import org.cloudfoundry.client.CloudFoundryClient; import org.cloudfoundry.client.v2.info.GetInfoRequest; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.test.StepVerifier; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v2/JobsTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v2/JobsTest.java index 81df89392f..50c21b216d 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v2/JobsTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v2/JobsTest.java @@ -23,6 +23,7 @@ import org.cloudfoundry.client.v2.organizations.DeleteOrganizationRequest; import org.cloudfoundry.util.DelayUtils; import org.cloudfoundry.util.ResourceUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Mono; import reactor.test.StepVerifier; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v2/OrganizationQuotaDefinitionsTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v2/OrganizationQuotaDefinitionsTest.java index b9b1b0c1bf..2d3828ee36 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v2/OrganizationQuotaDefinitionsTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v2/OrganizationQuotaDefinitionsTest.java @@ -29,6 +29,7 @@ import org.cloudfoundry.util.JobUtils; import org.cloudfoundry.util.PaginationUtils; import org.cloudfoundry.util.ResourceUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Mono; import reactor.test.StepVerifier; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v2/OrganizationsTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v2/OrganizationsTest.java index fa18fc1d85..92f3fcff9c 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v2/OrganizationsTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v2/OrganizationsTest.java @@ -87,6 +87,7 @@ import org.cloudfoundry.util.JobUtils; import org.cloudfoundry.util.PaginationUtils; import org.cloudfoundry.util.ResourceUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v2/PrivateDomainsTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v2/PrivateDomainsTest.java index d1fd29709d..052ac2622c 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v2/PrivateDomainsTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v2/PrivateDomainsTest.java @@ -44,6 +44,7 @@ import org.cloudfoundry.util.JobUtils; import org.cloudfoundry.util.PaginationUtils; import org.cloudfoundry.util.ResourceUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v2/RouteMappingsTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v2/RouteMappingsTest.java index d56a526afa..5f8b8549cc 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v2/RouteMappingsTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v2/RouteMappingsTest.java @@ -33,6 +33,7 @@ import org.cloudfoundry.util.JobUtils; import org.cloudfoundry.util.PaginationUtils; import org.cloudfoundry.util.ResourceUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Mono; import reactor.test.StepVerifier; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v2/RoutesTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v2/RoutesTest.java index 7232e7aaab..2a2c63dae6 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v2/RoutesTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v2/RoutesTest.java @@ -41,6 +41,7 @@ import org.cloudfoundry.util.JobUtils; import org.cloudfoundry.util.PaginationUtils; import org.cloudfoundry.util.ResourceUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Mono; import reactor.test.StepVerifier; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v2/SecurityGroupsTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v2/SecurityGroupsTest.java index a3256df3c4..e9c1c0bcec 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v2/SecurityGroupsTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v2/SecurityGroupsTest.java @@ -45,6 +45,7 @@ import org.cloudfoundry.util.JobUtils; import org.cloudfoundry.util.PaginationUtils; import org.cloudfoundry.util.ResourceUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v2/ServiceBindingsTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v2/ServiceBindingsTest.java index f9a482729f..d928390e62 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v2/ServiceBindingsTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v2/ServiceBindingsTest.java @@ -34,6 +34,7 @@ import org.cloudfoundry.util.JobUtils; import org.cloudfoundry.util.PaginationUtils; import org.cloudfoundry.util.ResourceUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v2/ServiceBrokersTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v2/ServiceBrokersTest.java index 96e7fc3118..b902d9139b 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v2/ServiceBrokersTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v2/ServiceBrokersTest.java @@ -29,6 +29,7 @@ import org.cloudfoundry.client.v2.spaces.CreateSpaceResponse; import org.cloudfoundry.util.PaginationUtils; import org.cloudfoundry.util.ResourceUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.io.ClassPathResource; import reactor.core.Exceptions; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v2/ServiceInstancesTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v2/ServiceInstancesTest.java index 021d6e1a03..4c3739f664 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v2/ServiceInstancesTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v2/ServiceInstancesTest.java @@ -53,6 +53,7 @@ import org.cloudfoundry.util.LastOperationUtils; import org.cloudfoundry.util.PaginationUtils; import org.cloudfoundry.util.ResourceUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v2/ServiceKeysTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v2/ServiceKeysTest.java index ae12918d5c..0ac8b893db 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v2/ServiceKeysTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v2/ServiceKeysTest.java @@ -33,6 +33,7 @@ import org.cloudfoundry.client.v2.services.ServiceResource; import org.cloudfoundry.util.PaginationUtils; import org.cloudfoundry.util.ResourceUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v2/ServicePlanVisibilitiesTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v2/ServicePlanVisibilitiesTest.java index 88a2d31b1c..f46b0a8b1d 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v2/ServicePlanVisibilitiesTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v2/ServicePlanVisibilitiesTest.java @@ -35,6 +35,7 @@ import org.cloudfoundry.util.JobUtils; import org.cloudfoundry.util.PaginationUtils; import org.cloudfoundry.util.ResourceUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v2/ServicePlansTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v2/ServicePlansTest.java index 1c60929057..4369daace5 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v2/ServicePlansTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v2/ServicePlansTest.java @@ -42,6 +42,7 @@ import org.cloudfoundry.util.JobUtils; import org.cloudfoundry.util.PaginationUtils; import org.cloudfoundry.util.ResourceUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v2/ServiceUsageEventsTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v2/ServiceUsageEventsTest.java index cdfd9f1f4b..54dc3521a6 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v2/ServiceUsageEventsTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v2/ServiceUsageEventsTest.java @@ -31,6 +31,7 @@ import org.cloudfoundry.client.v2.serviceusageevents.ServiceUsageEventResource; import org.cloudfoundry.util.PaginationUtils; import org.cloudfoundry.util.ResourceUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v2/ServicesTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v2/ServicesTest.java index 1b0b4b9a8d..145cd0a9c6 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v2/ServicesTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v2/ServicesTest.java @@ -35,6 +35,7 @@ import org.cloudfoundry.util.JobUtils; import org.cloudfoundry.util.PaginationUtils; import org.cloudfoundry.util.ResourceUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v2/SharedDomainsTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v2/SharedDomainsTest.java index 94c484f906..6cad4a136f 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v2/SharedDomainsTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v2/SharedDomainsTest.java @@ -29,6 +29,7 @@ import org.cloudfoundry.util.JobUtils; import org.cloudfoundry.util.PaginationUtils; import org.cloudfoundry.util.ResourceUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v2/SpaceQuotaDefinitionsTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v2/SpaceQuotaDefinitionsTest.java index e66fccb24f..b18f76a3d0 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v2/SpaceQuotaDefinitionsTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v2/SpaceQuotaDefinitionsTest.java @@ -38,6 +38,7 @@ import org.cloudfoundry.util.PaginationUtils; import org.cloudfoundry.util.ResourceUtils; import org.junit.Ignore; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v2/SpacesTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v2/SpacesTest.java index fe2cb72c40..36024de5ed 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v2/SpacesTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v2/SpacesTest.java @@ -99,6 +99,7 @@ import org.cloudfoundry.util.PaginationUtils; import org.cloudfoundry.util.ResourceUtils; import org.junit.Ignore; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v2/StacksTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v2/StacksTest.java index cb86a6274e..1da3ec5bd5 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v2/StacksTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v2/StacksTest.java @@ -28,6 +28,7 @@ import org.cloudfoundry.util.JobUtils; import org.cloudfoundry.util.PaginationUtils; import org.cloudfoundry.util.ResourceUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v2/UserProvidedServicesTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v2/UserProvidedServicesTest.java index 3561e835c1..938b74b7c4 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v2/UserProvidedServicesTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v2/UserProvidedServicesTest.java @@ -41,6 +41,7 @@ import org.cloudfoundry.routing.RoutingClient; import org.cloudfoundry.util.PaginationUtils; import org.cloudfoundry.util.ResourceUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v2/UsersTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v2/UsersTest.java index 7b97e0b650..8ce8147687 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v2/UsersTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v2/UsersTest.java @@ -70,6 +70,7 @@ import org.cloudfoundry.util.JobUtils; import org.cloudfoundry.util.PaginationUtils; import org.cloudfoundry.util.ResourceUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v3/AdminTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v3/AdminTest.java index 868ec17ca1..1c384ec256 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v3/AdminTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v3/AdminTest.java @@ -22,6 +22,7 @@ import org.cloudfoundry.client.CloudFoundryClient; import org.cloudfoundry.client.v3.admin.ClearBuildpackCacheRequest; import org.cloudfoundry.util.JobUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.test.StepVerifier; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v3/ApplicationsTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v3/ApplicationsTest.java index 40d937c0c7..12e6860df9 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v3/ApplicationsTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v3/ApplicationsTest.java @@ -88,6 +88,7 @@ import org.cloudfoundry.util.DelayUtils; import org.cloudfoundry.util.JobUtils; import org.cloudfoundry.util.PaginationUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.io.ClassPathResource; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v3/AuditEventsTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v3/AuditEventsTest.java index cb4246afbb..e65b845ca0 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v3/AuditEventsTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v3/AuditEventsTest.java @@ -30,6 +30,7 @@ import org.cloudfoundry.client.v3.spaces.CreateSpaceResponse; import org.cloudfoundry.client.v3.spaces.SpaceRelationships; import org.cloudfoundry.util.PaginationUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v3/BuildpacksTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v3/BuildpacksTest.java index 40c8628f50..a8a8be3ec4 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v3/BuildpacksTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v3/BuildpacksTest.java @@ -29,6 +29,7 @@ import org.cloudfoundry.client.v3.buildpacks.UploadBuildpackRequest; import org.cloudfoundry.util.JobUtils; import org.cloudfoundry.util.PaginationUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.io.ClassPathResource; import reactor.core.publisher.Flux; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v3/DeploymentsTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v3/DeploymentsTest.java index b37ab44927..f600afaf48 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v3/DeploymentsTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v3/DeploymentsTest.java @@ -38,6 +38,7 @@ import org.cloudfoundry.operations.applications.GetApplicationRequest; import org.cloudfoundry.operations.applications.PushApplicationRequest; import org.cloudfoundry.util.PaginationUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.io.ClassPathResource; import reactor.core.publisher.Flux; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v3/DomainsTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v3/DomainsTest.java index 654e3d1fb0..650ad3ee11 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v3/DomainsTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v3/DomainsTest.java @@ -43,6 +43,7 @@ import org.cloudfoundry.client.v3.routes.RouteRelationships; import org.cloudfoundry.util.JobUtils; import org.cloudfoundry.util.PaginationUtils; +import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v3/IsolationSegmentsTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v3/IsolationSegmentsTest.java index 5d6970ef09..0588e9d3f7 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v3/IsolationSegmentsTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v3/IsolationSegmentsTest.java @@ -43,6 +43,7 @@ import org.cloudfoundry.client.v3.spaces.AssignSpaceIsolationSegmentResponse; import org.cloudfoundry.util.PaginationUtils; import org.cloudfoundry.util.ResourceUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v3/OrganizationsTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v3/OrganizationsTest.java index f5a2cdc3f3..9956cdd138 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v3/OrganizationsTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v3/OrganizationsTest.java @@ -45,6 +45,7 @@ import org.cloudfoundry.client.v3.organizations.UpdateOrganizationRequest; import org.cloudfoundry.util.JobUtils; import org.cloudfoundry.util.PaginationUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v3/PackagesTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v3/PackagesTest.java index 689c1fd841..5f2173e849 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v3/PackagesTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v3/PackagesTest.java @@ -27,6 +27,7 @@ import org.cloudfoundry.client.v3.packages.PackageType; import org.cloudfoundry.client.v3.packages.UploadPackageRequest; import org.junit.Ignore; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.io.ClassPathResource; import reactor.core.Exceptions; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v3/ProcessesTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v3/ProcessesTest.java index b6500c7d4b..3e2d1544a1 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v3/ProcessesTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v3/ProcessesTest.java @@ -41,6 +41,7 @@ import org.cloudfoundry.operations.applications.GetApplicationRequest; import org.cloudfoundry.operations.applications.PushApplicationRequest; import org.cloudfoundry.util.PaginationUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.io.ClassPathResource; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v3/ResourceMatchTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v3/ResourceMatchTest.java index 6f847e9b22..81140391d9 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v3/ResourceMatchTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v3/ResourceMatchTest.java @@ -35,6 +35,7 @@ import org.cloudfoundry.util.ExceptionUtils; import org.cloudfoundry.util.ResourceMatchingUtilsV3; import org.junit.Ignore; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.io.ClassPathResource; import reactor.core.Exceptions; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v3/RolesTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v3/RolesTest.java index a04ae0685e..127fef2f4d 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v3/RolesTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v3/RolesTest.java @@ -31,6 +31,7 @@ import org.cloudfoundry.client.v3.roles.RoleResource; import org.cloudfoundry.util.JobUtils; import org.cloudfoundry.util.PaginationUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v3/RoutesTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v3/RoutesTest.java index 5f7545a101..1de8872f24 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v3/RoutesTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v3/RoutesTest.java @@ -48,6 +48,7 @@ import org.cloudfoundry.client.v3.spaces.CreateSpaceResponse; import org.cloudfoundry.client.v3.spaces.SpaceRelationships; import org.cloudfoundry.util.PaginationUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v3/ServiceBindingsTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v3/ServiceBindingsTest.java index 96ee53685d..da467c4889 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v3/ServiceBindingsTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v3/ServiceBindingsTest.java @@ -41,6 +41,7 @@ import org.cloudfoundry.client.v3.serviceplans.ServicePlan; import org.cloudfoundry.util.JobUtils; import org.cloudfoundry.util.PaginationUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v3/ServiceBrokersTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v3/ServiceBrokersTest.java index 2dcb88e463..859e3d22b5 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v3/ServiceBrokersTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v3/ServiceBrokersTest.java @@ -34,6 +34,7 @@ import org.cloudfoundry.client.v3.spaces.SpaceRelationships; import org.cloudfoundry.util.JobUtils; import org.cloudfoundry.util.PaginationUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.io.ClassPathResource; import reactor.core.Exceptions; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v3/ServiceInstancesTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v3/ServiceInstancesTest.java index 27ad2ffe1b..4a6da53251 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v3/ServiceInstancesTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v3/ServiceInstancesTest.java @@ -44,6 +44,7 @@ import org.cloudfoundry.client.v3.spaces.SpaceRelationships; import org.cloudfoundry.util.JobUtils; import org.cloudfoundry.util.PaginationUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v3/ServiceOfferingsTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v3/ServiceOfferingsTest.java index 6b6bba6566..224ea6d9d6 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v3/ServiceOfferingsTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v3/ServiceOfferingsTest.java @@ -31,6 +31,7 @@ import org.cloudfoundry.client.v3.spaces.CreateSpaceResponse; import org.cloudfoundry.client.v3.spaces.SpaceRelationships; import org.cloudfoundry.util.PaginationUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v3/ServicePlansTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v3/ServicePlansTest.java index c828215702..def69abfdb 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v3/ServicePlansTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v3/ServicePlansTest.java @@ -33,6 +33,7 @@ import org.cloudfoundry.client.v3.spaces.CreateSpaceResponse; import org.cloudfoundry.client.v3.spaces.SpaceRelationships; import org.cloudfoundry.util.PaginationUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v3/SpacesTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v3/SpacesTest.java index 5693df0825..0f8ab63d9a 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v3/SpacesTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v3/SpacesTest.java @@ -48,6 +48,7 @@ import org.cloudfoundry.util.JobUtils; import org.cloudfoundry.util.PaginationUtils; import org.junit.Ignore; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.io.ClassPathResource; import org.springframework.util.StreamUtils; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v3/StacksTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v3/StacksTest.java index 287ecf0647..b4d2596ae7 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v3/StacksTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v3/StacksTest.java @@ -27,6 +27,7 @@ import org.cloudfoundry.client.v3.stacks.StackResource; import org.cloudfoundry.client.v3.stacks.Stack; import org.cloudfoundry.util.PaginationUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/client/v3/TasksTest.java b/integration-test/src/test/java/org/cloudfoundry/client/v3/TasksTest.java index db548472d4..241111f590 100644 --- a/integration-test/src/test/java/org/cloudfoundry/client/v3/TasksTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/client/v3/TasksTest.java @@ -37,6 +37,7 @@ import org.cloudfoundry.operations.applications.ApplicationHealthCheck; import org.cloudfoundry.operations.applications.PushApplicationRequest; import org.cloudfoundry.util.PaginationUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.io.ClassPathResource; import reactor.core.publisher.Flux; diff --git a/integration-test/src/test/java/org/cloudfoundry/logcache/v1/LogCacheTest.java b/integration-test/src/test/java/org/cloudfoundry/logcache/v1/LogCacheTest.java index 2d0cedf36c..1d638bef8c 100644 --- a/integration-test/src/test/java/org/cloudfoundry/logcache/v1/LogCacheTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/logcache/v1/LogCacheTest.java @@ -20,6 +20,7 @@ import org.cloudfoundry.ApplicationUtils; import org.cloudfoundry.CloudFoundryVersion; import org.cloudfoundry.IfCloudFoundryVersion; +import org.junit.Test; import org.springframework.beans.factory.InitializingBean; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/networking/v1/PoliciesTest.java b/integration-test/src/test/java/org/cloudfoundry/networking/v1/PoliciesTest.java index fcefb58ced..42d3742a3d 100644 --- a/integration-test/src/test/java/org/cloudfoundry/networking/v1/PoliciesTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/networking/v1/PoliciesTest.java @@ -32,6 +32,7 @@ import org.cloudfoundry.networking.v1.policies.Ports; import org.cloudfoundry.networking.v1.policies.Source; import org.cloudfoundry.util.ResourceUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Mono; import reactor.test.StepVerifier; diff --git a/integration-test/src/test/java/org/cloudfoundry/networking/v1/TagsTest.java b/integration-test/src/test/java/org/cloudfoundry/networking/v1/TagsTest.java index bfb95cf326..cc5fcce465 100644 --- a/integration-test/src/test/java/org/cloudfoundry/networking/v1/TagsTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/networking/v1/TagsTest.java @@ -31,6 +31,7 @@ import org.cloudfoundry.networking.v1.tags.ListTagsRequest; import org.cloudfoundry.networking.v1.tags.ListTagsResponse; import org.cloudfoundry.util.ResourceUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Mono; import reactor.test.StepVerifier; diff --git a/integration-test/src/test/java/org/cloudfoundry/operations/AdvancedTest.java b/integration-test/src/test/java/org/cloudfoundry/operations/AdvancedTest.java index 99d4b842eb..27558f54f8 100644 --- a/integration-test/src/test/java/org/cloudfoundry/operations/AdvancedTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/operations/AdvancedTest.java @@ -17,6 +17,7 @@ package org.cloudfoundry.operations; import org.cloudfoundry.AbstractIntegrationTest; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.test.StepVerifier; diff --git a/integration-test/src/test/java/org/cloudfoundry/operations/ApplicationsTest.java b/integration-test/src/test/java/org/cloudfoundry/operations/ApplicationsTest.java index 62238e0c74..81bcb55afb 100644 --- a/integration-test/src/test/java/org/cloudfoundry/operations/ApplicationsTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/operations/ApplicationsTest.java @@ -68,6 +68,7 @@ import org.cloudfoundry.operations.services.GetServiceInstanceRequest; import org.cloudfoundry.operations.services.ServiceInstance; import org.cloudfoundry.util.FluentMap; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.io.ClassPathResource; import reactor.core.publisher.Flux; diff --git a/integration-test/src/test/java/org/cloudfoundry/operations/BuildpacksTest.java b/integration-test/src/test/java/org/cloudfoundry/operations/BuildpacksTest.java index 869f00a924..8c897549e6 100644 --- a/integration-test/src/test/java/org/cloudfoundry/operations/BuildpacksTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/operations/BuildpacksTest.java @@ -21,6 +21,7 @@ import org.cloudfoundry.operations.buildpacks.CreateBuildpackRequest; import org.cloudfoundry.operations.buildpacks.DeleteBuildpackRequest; import org.cloudfoundry.operations.buildpacks.UpdateBuildpackRequest; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.io.ClassPathResource; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/operations/DomainsTest.java b/integration-test/src/test/java/org/cloudfoundry/operations/DomainsTest.java index f42129db40..4d23eca955 100644 --- a/integration-test/src/test/java/org/cloudfoundry/operations/DomainsTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/operations/DomainsTest.java @@ -24,6 +24,7 @@ import org.cloudfoundry.operations.domains.ShareDomainRequest; import org.cloudfoundry.operations.domains.UnshareDomainRequest; import org.cloudfoundry.operations.organizations.CreateOrganizationRequest; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/operations/NetworkPoliciesTest.java b/integration-test/src/test/java/org/cloudfoundry/operations/NetworkPoliciesTest.java index 1ed827a157..fc5ad4852c 100644 --- a/integration-test/src/test/java/org/cloudfoundry/operations/NetworkPoliciesTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/operations/NetworkPoliciesTest.java @@ -27,6 +27,7 @@ import org.cloudfoundry.operations.networkpolicies.Policy; import org.cloudfoundry.operations.networkpolicies.RemoveNetworkPolicyRequest; import org.cloudfoundry.util.ResourceUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/operations/OrganizationAdminTest.java b/integration-test/src/test/java/org/cloudfoundry/operations/OrganizationAdminTest.java index ee5623b423..154d18baaf 100644 --- a/integration-test/src/test/java/org/cloudfoundry/operations/OrganizationAdminTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/operations/OrganizationAdminTest.java @@ -25,6 +25,7 @@ import org.cloudfoundry.operations.organizationadmin.UpdateQuotaRequest; import org.cloudfoundry.operations.organizations.CreateOrganizationRequest; import org.cloudfoundry.operations.organizations.OrganizationInfoRequest; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Mono; import reactor.test.StepVerifier; diff --git a/integration-test/src/test/java/org/cloudfoundry/operations/OrganizationsTest.java b/integration-test/src/test/java/org/cloudfoundry/operations/OrganizationsTest.java index 0ec28ddf50..00adc94d99 100644 --- a/integration-test/src/test/java/org/cloudfoundry/operations/OrganizationsTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/operations/OrganizationsTest.java @@ -18,6 +18,7 @@ import org.cloudfoundry.AbstractIntegrationTest; import org.cloudfoundry.operations.organizations.CreateOrganizationRequest; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Mono; import reactor.test.StepVerifier; diff --git a/integration-test/src/test/java/org/cloudfoundry/operations/RoutesTest.java b/integration-test/src/test/java/org/cloudfoundry/operations/RoutesTest.java index e5a2c3757c..84fd20c18f 100644 --- a/integration-test/src/test/java/org/cloudfoundry/operations/RoutesTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/operations/RoutesTest.java @@ -31,6 +31,7 @@ import org.cloudfoundry.operations.routes.UnmapRouteRequest; import org.cloudfoundry.operations.services.BindRouteServiceInstanceRequest; import org.cloudfoundry.operations.services.CreateUserProvidedServiceInstanceRequest; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.io.ClassPathResource; import reactor.core.publisher.Flux; diff --git a/integration-test/src/test/java/org/cloudfoundry/operations/ServiceAdminTest.java b/integration-test/src/test/java/org/cloudfoundry/operations/ServiceAdminTest.java index 3fb44a0eeb..c84b1a6242 100644 --- a/integration-test/src/test/java/org/cloudfoundry/operations/ServiceAdminTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/operations/ServiceAdminTest.java @@ -27,6 +27,7 @@ import org.cloudfoundry.operations.serviceadmin.ListServiceAccessSettingsRequest; import org.cloudfoundry.operations.serviceadmin.ServiceAccess; import org.cloudfoundry.util.ResourceUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/operations/ServicesTest.java b/integration-test/src/test/java/org/cloudfoundry/operations/ServicesTest.java index b55a3bd469..a15780145e 100644 --- a/integration-test/src/test/java/org/cloudfoundry/operations/ServicesTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/operations/ServicesTest.java @@ -51,6 +51,7 @@ import org.cloudfoundry.operations.services.UpdateServiceInstanceRequest; import org.cloudfoundry.operations.services.UpdateUserProvidedServiceInstanceRequest; import org.cloudfoundry.util.PaginationUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.io.ClassPathResource; import reactor.core.publisher.Flux; diff --git a/integration-test/src/test/java/org/cloudfoundry/operations/SpacesTest.java b/integration-test/src/test/java/org/cloudfoundry/operations/SpacesTest.java index 73418136a8..2ce72aea7d 100644 --- a/integration-test/src/test/java/org/cloudfoundry/operations/SpacesTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/operations/SpacesTest.java @@ -20,6 +20,7 @@ import org.cloudfoundry.operations.spaces.CreateSpaceRequest; import org.cloudfoundry.operations.spaces.GetSpaceRequest; import org.cloudfoundry.operations.spaces.SpaceDetail; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.test.StepVerifier; diff --git a/integration-test/src/test/java/org/cloudfoundry/operations/UserAdminTest.java b/integration-test/src/test/java/org/cloudfoundry/operations/UserAdminTest.java index 402017b47b..761f82571e 100644 --- a/integration-test/src/test/java/org/cloudfoundry/operations/UserAdminTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/operations/UserAdminTest.java @@ -38,6 +38,7 @@ import org.cloudfoundry.operations.useradmin.UnsetSpaceRoleRequest; import org.cloudfoundry.util.PaginationUtils; import org.cloudfoundry.util.ResourceUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/routing/v1/RouterGroupsTest.java b/integration-test/src/test/java/org/cloudfoundry/routing/v1/RouterGroupsTest.java index b46b38612c..f6ee202f30 100644 --- a/integration-test/src/test/java/org/cloudfoundry/routing/v1/RouterGroupsTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/routing/v1/RouterGroupsTest.java @@ -23,6 +23,7 @@ import org.cloudfoundry.routing.v1.routergroups.RouterGroup; import org.cloudfoundry.routing.v1.routergroups.UpdateRouterGroupRequest; import org.cloudfoundry.routing.v1.routergroups.UpdateRouterGroupResponse; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Mono; import reactor.test.StepVerifier; diff --git a/integration-test/src/test/java/org/cloudfoundry/routing/v1/TcpRoutesTest.java b/integration-test/src/test/java/org/cloudfoundry/routing/v1/TcpRoutesTest.java index 5438c70535..04ffb3d2ec 100644 --- a/integration-test/src/test/java/org/cloudfoundry/routing/v1/TcpRoutesTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/routing/v1/TcpRoutesTest.java @@ -31,6 +31,7 @@ import org.cloudfoundry.routing.v1.tcproutes.TcpRoute; import org.cloudfoundry.routing.v1.tcproutes.TcpRouteConfiguration; import org.cloudfoundry.routing.v1.tcproutes.TcpRouteDeletion; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/uaa/AuthorizationsTest.java b/integration-test/src/test/java/org/cloudfoundry/uaa/AuthorizationsTest.java index 471391d133..88697700c8 100644 --- a/integration-test/src/test/java/org/cloudfoundry/uaa/AuthorizationsTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/uaa/AuthorizationsTest.java @@ -26,6 +26,7 @@ import org.cloudfoundry.uaa.authorizations.AuthorizeByOpenIdWithImplicitGrantRequest; import org.cloudfoundry.uaa.authorizations.GetOpenIdProviderConfigurationRequest; import org.cloudfoundry.uaa.authorizations.GetOpenIdProviderConfigurationResponse; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.test.StepVerifier; diff --git a/integration-test/src/test/java/org/cloudfoundry/uaa/ClientsTest.java b/integration-test/src/test/java/org/cloudfoundry/uaa/ClientsTest.java index 80e2489115..35ac398404 100644 --- a/integration-test/src/test/java/org/cloudfoundry/uaa/ClientsTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/uaa/ClientsTest.java @@ -51,6 +51,7 @@ import org.cloudfoundry.uaa.clients.UpdateSecretAction; import org.cloudfoundry.uaa.clients.UpdateSecretClientAction; import org.cloudfoundry.util.PaginationUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/uaa/GroupsTest.java b/integration-test/src/test/java/org/cloudfoundry/uaa/GroupsTest.java index 6534aa199e..6e103bb25b 100644 --- a/integration-test/src/test/java/org/cloudfoundry/uaa/GroupsTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/uaa/GroupsTest.java @@ -47,6 +47,7 @@ import org.cloudfoundry.uaa.users.Email; import org.cloudfoundry.uaa.users.Name; import org.cloudfoundry.util.PaginationUtils; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/uaa/IdentityProvidersTest.java b/integration-test/src/test/java/org/cloudfoundry/uaa/IdentityProvidersTest.java index 2be3d6cac3..edad9de257 100644 --- a/integration-test/src/test/java/org/cloudfoundry/uaa/IdentityProvidersTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/uaa/IdentityProvidersTest.java @@ -33,6 +33,7 @@ import org.cloudfoundry.uaa.identityproviders.UpdateIdentityProviderRequest; import org.cloudfoundry.uaa.identityzones.CreateIdentityZoneRequest; import org.cloudfoundry.uaa.identityzones.CreateIdentityZoneResponse; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Mono; import reactor.test.StepVerifier; diff --git a/integration-test/src/test/java/org/cloudfoundry/uaa/IdentityZonesTest.java b/integration-test/src/test/java/org/cloudfoundry/uaa/IdentityZonesTest.java index 76a4f9d52f..ff7302a994 100644 --- a/integration-test/src/test/java/org/cloudfoundry/uaa/IdentityZonesTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/uaa/IdentityZonesTest.java @@ -25,6 +25,7 @@ import org.cloudfoundry.uaa.identityzones.ListIdentityZonesRequest; import org.cloudfoundry.uaa.identityzones.ListIdentityZonesResponse; import org.cloudfoundry.uaa.identityzones.UpdateIdentityZoneRequest; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Mono; import reactor.test.StepVerifier; diff --git a/integration-test/src/test/java/org/cloudfoundry/uaa/ServerInformationTest.java b/integration-test/src/test/java/org/cloudfoundry/uaa/ServerInformationTest.java index b0f8b6e61d..f79490619f 100644 --- a/integration-test/src/test/java/org/cloudfoundry/uaa/ServerInformationTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/uaa/ServerInformationTest.java @@ -21,6 +21,7 @@ import org.cloudfoundry.uaa.serverinformation.GetAutoLoginAuthenticationCodeRequest; import org.cloudfoundry.uaa.serverinformation.GetAutoLoginAuthenticationCodeResponse; import org.cloudfoundry.uaa.serverinformation.GetInfoRequest; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Mono; import reactor.test.StepVerifier; diff --git a/integration-test/src/test/java/org/cloudfoundry/uaa/TokensTest.java b/integration-test/src/test/java/org/cloudfoundry/uaa/TokensTest.java index 76fd5e1afd..fcf41458ad 100644 --- a/integration-test/src/test/java/org/cloudfoundry/uaa/TokensTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/uaa/TokensTest.java @@ -39,6 +39,7 @@ import org.cloudfoundry.uaa.tokens.TokenFormat; import org.cloudfoundry.uaa.tokens.TokenKey; import org.junit.Ignore; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; diff --git a/integration-test/src/test/java/org/cloudfoundry/uaa/UsersTest.java b/integration-test/src/test/java/org/cloudfoundry/uaa/UsersTest.java index 1eac301ac8..e7d4f5bb2a 100644 --- a/integration-test/src/test/java/org/cloudfoundry/uaa/UsersTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/uaa/UsersTest.java @@ -43,6 +43,7 @@ import org.cloudfoundry.uaa.users.UserInfoResponse; import org.cloudfoundry.uaa.users.VerifyUserRequest; import org.cloudfoundry.uaa.users.VerifyUserResponse; +import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; From 0c94149a0022102633d44a5e6d222e6ddafcea22 Mon Sep 17 00:00:00 2001 From: Anthony Dahanne Date: Tue, 6 Feb 2024 20:48:23 -0500 Subject: [PATCH 2/2] Junit4 to Junit4 Integration Tests migration * careful, Junit Rules were not supported, and should be migrated to Extensions, see https://junit.org/junit5/docs/snapshot/user-guide/ For now, I just got rid of CloudFoundryVersionConditionalRule, and we ll see if AbstractIntegrationTest and IntegrationTestConfiguration were impacted --- .idea/kotlinc.xml | 7 - .idea/misc.xml | 2 +- integration-test/pom.xml | 17 +- .../cloudfoundry/AbstractIntegrationTest.java | 35 ++-- .../CloudFoundryVersionConditionalRule.java | 84 ---------- .../IntegrationTestConfiguration.java | 5 - .../client/v2/ApplicationsTest.java | 70 ++++---- .../client/v2/BlobstoresTest.java | 6 +- .../client/v2/BuildpacksTest.java | 22 +-- .../cloudfoundry/client/v2/DomainsTest.java | 28 ++-- .../cloudfoundry/client/v2/EventsTest.java | 18 +- .../client/v2/FeatureFlagsTest.java | 10 +- .../org/cloudfoundry/client/v2/InfoTest.java | 6 +- .../org/cloudfoundry/client/v2/JobsTest.java | 6 +- .../v2/OrganizationQuotaDefinitionsTest.java | 14 +- .../client/v2/OrganizationsTest.java | 156 +++++++++--------- .../client/v2/PrivateDomainsTest.java | 30 ++-- .../client/v2/RouteMappingsTest.java | 16 +- .../cloudfoundry/client/v2/RoutesTest.java | 46 +++--- .../client/v2/SecurityGroupsTest.java | 32 ++-- .../client/v2/ServiceBindingsTest.java | 16 +- .../client/v2/ServiceBrokersTest.java | 14 +- .../client/v2/ServiceInstancesTest.java | 60 +++---- .../client/v2/ServiceKeysTest.java | 16 +- .../v2/ServicePlanVisibilitiesTest.java | 20 +-- .../client/v2/ServicePlansTest.java | 32 ++-- .../client/v2/ServiceUsageEventsTest.java | 18 +- .../cloudfoundry/client/v2/ServicesTest.java | 30 ++-- .../client/v2/SharedDomainsTest.java | 16 +- .../client/v2/SpaceQuotaDefinitionsTest.java | 36 ++-- .../cloudfoundry/client/v2/SpacesTest.java | 134 +++++++-------- .../cloudfoundry/client/v2/StacksTest.java | 16 +- .../client/v2/UserProvidedServicesTest.java | 24 +-- .../org/cloudfoundry/client/v2/UsersTest.java | 136 +++++++-------- .../org/cloudfoundry/client/v3/AdminTest.java | 6 +- .../client/v3/ApplicationsTest.java | 56 +++---- .../client/v3/AuditEventsTest.java | 14 +- .../client/v3/BuildpacksTest.java | 20 +-- .../client/v3/DeploymentsTest.java | 16 +- .../cloudfoundry/client/v3/DomainsTest.java | 30 ++-- .../client/v3/IsolationSegmentsTest.java | 32 ++-- .../client/v3/OrganizationsTest.java | 36 ++-- .../cloudfoundry/client/v3/PackagesTest.java | 10 +- .../cloudfoundry/client/v3/ProcessesTest.java | 16 +- .../client/v3/ResourceMatchTest.java | 10 +- .../org/cloudfoundry/client/v3/RolesTest.java | 12 +- .../cloudfoundry/client/v3/RoutesTest.java | 38 ++--- .../client/v3/ServiceBindingsTest.java | 18 +- .../client/v3/ServiceBrokersTest.java | 16 +- .../client/v3/ServiceInstancesTest.java | 20 +-- .../client/v3/ServiceOfferingsTest.java | 14 +- .../client/v3/ServicePlansTest.java | 18 +- .../cloudfoundry/client/v3/SpacesTest.java | 28 ++-- .../cloudfoundry/client/v3/StacksTest.java | 14 +- .../org/cloudfoundry/client/v3/TasksTest.java | 18 +- .../logcache/v1/LogCacheTest.java | 14 +- .../networking/v1/PoliciesTest.java | 12 +- .../cloudfoundry/networking/v1/TagsTest.java | 6 +- .../cloudfoundry/operations/AdvancedTest.java | 6 +- .../operations/ApplicationsTest.java | 120 +++++++------- .../operations/BuildpacksTest.java | 18 +- .../cloudfoundry/operations/DomainsTest.java | 22 +-- .../operations/NetworkPoliciesTest.java | 10 +- .../operations/OrganizationAdminTest.java | 16 +- .../operations/OrganizationsTest.java | 8 +- .../cloudfoundry/operations/RoutesTest.java | 48 +++--- .../operations/ServiceAdminTest.java | 28 ++-- .../cloudfoundry/operations/ServicesTest.java | 36 ++-- .../cloudfoundry/operations/SpacesTest.java | 10 +- .../operations/UserAdminTest.java | 24 +-- .../routing/v1/RouterGroupsTest.java | 8 +- .../routing/v1/TcpRoutesTest.java | 12 +- .../cloudfoundry/uaa/AuthorizationsTest.java | 20 +-- .../org/cloudfoundry/uaa/ClientsTest.java | 34 ++-- .../java/org/cloudfoundry/uaa/GroupsTest.java | 34 ++-- .../uaa/IdentityProvidersTest.java | 18 +- .../cloudfoundry/uaa/IdentityZonesTest.java | 14 +- .../uaa/ServerInformationTest.java | 10 +- .../java/org/cloudfoundry/uaa/TokensTest.java | 26 +-- .../java/org/cloudfoundry/uaa/UsersTest.java | 28 ++-- 80 files changed, 1056 insertions(+), 1146 deletions(-) delete mode 100644 .idea/kotlinc.xml delete mode 100644 integration-test/src/test/java/org/cloudfoundry/CloudFoundryVersionConditionalRule.java diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml deleted file mode 100644 index 1c24f9a8de..0000000000 --- a/.idea/kotlinc.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index a1043f8449..d904ec99c1 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -15,7 +15,7 @@