리눅스 끄적끄적

jenkins contextLoads() 오류

winwin-k9 2024. 1. 8. 02:05

jenkins contextLoads() FAILED

java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:142
        Caused by: org.springframework.beans.factory.BeanCreationException at AutowiredAnnotationBeanPostProcessor.java:488
            Caused by: java.lang.IllegalArgumentException at PropertyPlaceholderHelper.java:180

TakeItEasyApplicationTests > contextLoads() FAILED
    java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:142
        Caused by: org.springframework.beans.factory.BeanCreationException at AutowiredAnnotationBeanPostProcessor.java:488
            Caused by: java.lang.IllegalArgumentException at PropertyPlaceholderHelper.java:180

12 tests completed, 1 failed

젠킨스에 빌드중

contextLoads() 메서드가 실패가 떳다.

현재 프로젝트에선 실패없이 빌드가 잘 됏다.


@SpringBootTest(classes = AtchaApplicationTests.class)
class TakeItEasyApplicationTests {
    @Test
    void contextLoads() {
    }
}

어노테이션 옆에 classes 속성을 넣어주어서 해결했다

728x90