SbbApplicationTests에서 JUnit Test런을 하면 x표시하며 오류가나요!!!
110
작성한 질문수 14
package com.mysite.sbb;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class SbbApplicationTests {
@Autowired
private QuestionRepository questionRepository;
@Test
void testJpa() {
Question q = this.questionRepository.findBySubjectAndContent(
"sbb가 무엇인가요?", "sbb에 대해서 알고 싶습니다.");
assertEquals(1, q.getId());
}
}
답변 1
0
TaskSchedulingConfigurations.ThreadPoolTaskSchedulerBuilderConfiguration#threadPoolTaskSchedulerBuilder matched:
- @ConditionalOnMissingBean (types: org.springframework.boot.task.ThreadPoolTaskSchedulerBuilder; SearchStrategy: all) did not find any beans (OnBeanCondition)
TransactionAutoConfiguration matched:
- @ConditionalOnClass found required class 'org.springframework.transaction.PlatformTransactionManager' (OnClassCondition)
이런오류가 console에 뜹니다
노션 접근권
0
14
1
@Version 어노테이션이 붙은 필드는 낙관적 락이든 비관적 락이든 업데이트가 됩니다.
0
13
1
형 이번에 낸 책이랑 강의 내용에 차이가 있어?
1
29
1
형 나 몰래 책내면 모를 줄 알고?
1
24
0
OrderServiceTest 상문주문 테스트 시 update 쿼리 문의
0
18
1
멀티스레드
1
19
2
N+1 관련해서 질문있습니다.
0
31
3
성능 오버헤드
1
24
2
다음 강의는 언제 올려주시는지요?
0
29
2
하단 파일이 열리지 않습니다
0
30
1
ssh-keygen -t rsa -P "" 등 ssh 암호화? 는 하둡에서 필수인가요?
0
26
2
LiveReload++ 비활성화
0
29
1
SbbApplicationTests 런오류 tetJpa부분?
0
84
1
쿼리문이 console에서 형성이 안되고 아래와 같은 코드오류걸려요
0
103
1
SbbApplicaitonTest JUnit 테스트 런을 하면 아래와 같은 오류가 Console에 뜹니다
0
107
1
[리포지터리] SbbApplicationTests에서부터 오류
0
102
1
3-9에서 오류 발생
0
107
0
프로젝트 생성오류 (gradle)
0
218
1
프로젝트 생성 오류
0
1604
1
h2 console 뭔짓을 해봐도 안되네요,..
0
519
1
프로젝트 생성 시 gradle 호환
0
337
2
H2 > IO Exception [90028-224] 해결법을 모르겠습니다
0
956
1
sts 버전
0
379
1
<템플릿, 타임리프, 루트 URL, 서비스 URL, 프리픽스 등의 개념과 활용>이 동영상은 전편의 동영상이랑 내용이 같은거 같은데요??
0
515
1





