Enhanced tests and set the application name

Also set the spring.aop.proxy-target-class to false until feature is ready in Spring framework
This commit is contained in:
Glenn Renfro
2022-08-04 12:34:11 -04:00
parent 6ed7910b0a
commit b16384983e
2 changed files with 5 additions and 2 deletions

View File

@@ -16,8 +16,8 @@ class CloudTaskApplicationAotTests {
@Test
void expectedLoggingIsProduced(AssertableOutput output) {
Awaitility.await().atMost(Duration.ofSeconds(10)).untilAsserted(() -> {
assertThat(output).hasSingleLineContaining("Before task: application").hasSingleLineContaining("Task ran!")
.hasSingleLineContaining("After task: application");
assertThat(output).hasSingleLineContaining("Before task: cloudtask").hasSingleLineContaining("Task ran!")
.hasSingleLineContaining("After task: cloudtask");
});
}

View File

@@ -0,0 +1,3 @@
logging.level.org.springframework.cloud.task=DEBUG
spring.application.name=cloudtask
spring.aop.proxy-target-class=false