Refactor the CR plugin to a Lifecycle one

This commit is contained in:
Sébastien Deleuze
2024-06-14 18:29:28 +02:00
parent b3612bd36c
commit e4ff6fc20c
110 changed files with 264 additions and 261 deletions

View File

@@ -1,7 +1,7 @@
plugins {
id "java"
id "org.springframework.boot"
id "org.springframework.cr.smoke-test"
id "org.springframework.lifecycle.smoke-test"
}
dependencies {
@@ -10,11 +10,11 @@ dependencies {
implementation("org.springframework.integration:spring-integration-file")
implementation("org.crac:crac")
implementation(project(":cr-listener"))
implementation(project(":lifecycle-listener"))
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.springframework.integration:spring-integration-test")
appTestImplementation(project(":cr-smoke-test-support"))
appTestImplementation(project(":lifecycle-smoke-test-support"))
appTestImplementation("org.awaitility:awaitility:4.2.0")
}

View File

@@ -25,8 +25,8 @@ import java.util.UUID;
import org.awaitility.Awaitility;
import org.junit.jupiter.api.Test;
import org.springframework.cr.smoketest.support.assertj.AssertableOutput;
import org.springframework.cr.smoketest.support.junit.ApplicationTest;
import org.springframework.lifecycle.smoketest.support.assertj.AssertableOutput;
import org.springframework.lifecycle.smoketest.support.junit.ApplicationTest;
import org.springframework.util.StreamUtils;
import static org.assertj.core.api.Assertions.assertThat;

View File

@@ -1,7 +1,7 @@
plugins {
id "java"
id "org.springframework.boot"
id "org.springframework.cr.smoke-test"
id "org.springframework.lifecycle.smoke-test"
}
dependencies {
@@ -24,16 +24,16 @@ dependencies {
implementation("com.jayway.jsonpath:json-path")
implementation("org.crac:crac")
implementation(project(":cr-listener"))
implementation(project(":lifecycle-listener"))
runtimeOnly("com.h2database:h2")
testImplementation("org.springframework.boot:spring-boot-starter-test")
appTestImplementation(project(":cr-smoke-test-support"))
appTestImplementation(project(":lifecycle-smoke-test-support"))
appTestImplementation("org.awaitility:awaitility:4.2.0")
}
crSmokeTest {
lifecycleSmokeTest {
webApplication = true
}

View File

@@ -22,8 +22,8 @@ import java.time.Duration;
import org.awaitility.Awaitility;
import org.junit.jupiter.api.Test;
import org.springframework.cr.smoketest.support.assertj.AssertableOutput;
import org.springframework.cr.smoketest.support.junit.ApplicationTest;
import org.springframework.lifecycle.smoketest.support.assertj.AssertableOutput;
import org.springframework.lifecycle.smoketest.support.junit.ApplicationTest;
import org.springframework.http.MediaType;
import org.springframework.test.web.reactive.server.WebTestClient;

View File

@@ -1,7 +1,7 @@
plugins {
id "java"
id "org.springframework.boot"
id "org.springframework.cr.smoke-test"
id "org.springframework.lifecycle.smoke-test"
}
dependencies {
@@ -11,10 +11,10 @@ dependencies {
implementation("org.springframework.amqp:spring-rabbit:3.0.8")
implementation("org.crac:crac")
implementation(project(":cr-listener"))
implementation(project(":lifecycle-listener"))
testImplementation("org.springframework.boot:spring-boot-starter-test")
appTestImplementation(project(":cr-smoke-test-support"))
appTestImplementation(project(":lifecycle-smoke-test-support"))
appTestImplementation("org.awaitility:awaitility:4.2.0")
}

View File

@@ -20,8 +20,8 @@ import java.time.Duration;
import org.awaitility.Awaitility;
import org.junit.jupiter.api.Test;
import org.springframework.cr.smoketest.support.assertj.AssertableOutput;
import org.springframework.cr.smoketest.support.junit.ApplicationTest;
import org.springframework.lifecycle.smoketest.support.assertj.AssertableOutput;
import org.springframework.lifecycle.smoketest.support.junit.ApplicationTest;
import static org.assertj.core.api.Assertions.assertThat;

View File

@@ -1,7 +1,7 @@
plugins {
id "java"
id "org.springframework.boot"
id "org.springframework.cr.smoke-test"
id "org.springframework.lifecycle.smoke-test"
id "com.github.davidmc24.gradle.plugin.avro" version "1.3.0"
}
@@ -17,11 +17,11 @@ dependencies {
implementation("org.apache.avro:avro:1.11.0")
implementation("org.crac:crac")
implementation(project(":cr-listener"))
implementation(project(":lifecycle-listener"))
testImplementation("org.springframework.boot:spring-boot-starter-test")
appTestImplementation(project(":cr-smoke-test-support"))
appTestImplementation(project(":lifecycle-smoke-test-support"))
appTestImplementation("org.awaitility:awaitility:4.2.0")
}

View File

@@ -21,8 +21,8 @@ import java.time.Duration;
import org.awaitility.Awaitility;
import org.junit.jupiter.api.Test;
import org.springframework.cr.smoketest.support.assertj.AssertableOutput;
import org.springframework.cr.smoketest.support.junit.ApplicationTest;
import org.springframework.lifecycle.smoketest.support.assertj.AssertableOutput;
import org.springframework.lifecycle.smoketest.support.junit.ApplicationTest;
import static org.assertj.core.api.Assertions.assertThat;

View File

@@ -1,7 +1,7 @@
plugins {
id "java"
id "org.springframework.boot"
id "org.springframework.cr.smoke-test"
id "org.springframework.lifecycle.smoke-test"
}
dependencies {
@@ -12,10 +12,10 @@ dependencies {
implementation("com.fasterxml.jackson.core:jackson-databind")
implementation("org.crac:crac")
implementation(project(":cr-listener"))
implementation(project(":lifecycle-listener"))
testImplementation("org.springframework.boot:spring-boot-starter-test")
appTestImplementation(project(":cr-smoke-test-support"))
appTestImplementation(project(":lifecycle-smoke-test-support"))
appTestImplementation("org.awaitility:awaitility:4.2.0")
}

View File

@@ -20,8 +20,8 @@ import java.time.Duration;
import org.awaitility.Awaitility;
import org.junit.jupiter.api.Test;
import org.springframework.cr.smoketest.support.assertj.AssertableOutput;
import org.springframework.cr.smoketest.support.junit.ApplicationTest;
import org.springframework.lifecycle.smoketest.support.assertj.AssertableOutput;
import org.springframework.lifecycle.smoketest.support.junit.ApplicationTest;
import static org.assertj.core.api.Assertions.assertThat;

View File

@@ -1,7 +1,7 @@
plugins {
id "java"
id "org.springframework.boot"
id "org.springframework.cr.smoke-test"
id "org.springframework.lifecycle.smoke-test"
}
dependencies {
@@ -15,10 +15,10 @@ dependencies {
implementation("com.fasterxml.jackson.core:jackson-databind")
implementation("org.crac:crac")
implementation(project(":cr-listener"))
implementation(project(":lifecycle-listener"))
testImplementation("org.springframework.boot:spring-boot-starter-test")
appTestImplementation(project(":cr-smoke-test-support"))
appTestImplementation(project(":lifecycle-smoke-test-support"))
appTestImplementation("org.awaitility:awaitility:4.2.0")
}

View File

@@ -21,8 +21,8 @@ import java.time.Duration;
import org.awaitility.Awaitility;
import org.junit.jupiter.api.Test;
import org.springframework.cr.smoketest.support.assertj.AssertableOutput;
import org.springframework.cr.smoketest.support.junit.ApplicationTest;
import org.springframework.lifecycle.smoketest.support.assertj.AssertableOutput;
import org.springframework.lifecycle.smoketest.support.junit.ApplicationTest;
import static org.assertj.core.api.Assertions.assertThat;

View File

@@ -1,7 +1,7 @@
plugins {
id "java"
id "org.springframework.boot"
id "org.springframework.cr.smoke-test"
id "org.springframework.lifecycle.smoke-test"
}
dependencies {
@@ -14,10 +14,10 @@ dependencies {
}
implementation("org.crac:crac")
implementation(project(":cr-listener"))
implementation(project(":lifecycle-listener"))
testImplementation("org.springframework.boot:spring-boot-starter-test")
appTestImplementation(project(":cr-smoke-test-support"))
appTestImplementation(project(":lifecycle-smoke-test-support"))
appTestImplementation("org.awaitility:awaitility:4.2.0")
}

View File

@@ -5,8 +5,8 @@ import java.time.Duration;
import org.awaitility.Awaitility;
import org.junit.jupiter.api.Test;
import org.springframework.cr.smoketest.support.assertj.AssertableOutput;
import org.springframework.cr.smoketest.support.junit.ApplicationTest;
import org.springframework.lifecycle.smoketest.support.assertj.AssertableOutput;
import org.springframework.lifecycle.smoketest.support.junit.ApplicationTest;
import static org.assertj.core.api.Assertions.assertThat;

View File

@@ -1,7 +1,7 @@
plugins {
id "java"
id "org.springframework.boot"
id "org.springframework.cr.smoke-test"
id "org.springframework.lifecycle.smoke-test"
}
dependencies {
@@ -13,10 +13,10 @@ dependencies {
}
implementation("org.crac:crac")
implementation(project(":cr-listener"))
implementation(project(":lifecycle-listener"))
testImplementation("org.springframework.boot:spring-boot-starter-test")
appTestImplementation(project(":cr-smoke-test-support"))
appTestImplementation(project(":lifecycle-smoke-test-support"))
appTestImplementation("org.awaitility:awaitility:4.2.0")
}

View File

@@ -5,8 +5,8 @@ import java.time.Duration;
import org.awaitility.Awaitility;
import org.junit.jupiter.api.Test;
import org.springframework.cr.smoketest.support.assertj.AssertableOutput;
import org.springframework.cr.smoketest.support.junit.ApplicationTest;
import org.springframework.lifecycle.smoketest.support.assertj.AssertableOutput;
import org.springframework.lifecycle.smoketest.support.junit.ApplicationTest;
import static org.assertj.core.api.Assertions.assertThat;