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:
@@ -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");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
3
cloud-task/src/main/resources/application.properties
Normal file
3
cloud-task/src/main/resources/application.properties
Normal file
@@ -0,0 +1,3 @@
|
||||
logging.level.org.springframework.cloud.task=DEBUG
|
||||
spring.application.name=cloudtask
|
||||
spring.aop.proxy-target-class=false
|
||||
Reference in New Issue
Block a user