inflearn logo
강의

Course

Instructor

Essential Course for Backend Development - Spring Boot 3

Concepts and usage of Repository, Junit, Dependency Injection (DI), Package classification, etc.

SbbApplicationTests에서 JUnit Test런을 하면 x표시하며 오류가나요!!!

121

sonjinju12229978

14 asked

0

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());

}

}

 

java aws spring-boot

Answer 1

0

sonjinju12229978

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

9

1

안녕하세요 치킨 디도스 이벤트 보고 흉내내보려 들어왔습니다..

0

12

1

47번 리턴 관련 질문

0

20

1

Nat Gateway

0

28

2

실무 내용 문의드려요

0

24

2

IO활용-회원관리예제1 샘플코드 문의

0

19

1

aws 로드 밸런서가 생성되지 않습니다.

0

21

2

join에대해 질문드립니다.

0

19

1

SSM접속에 대해

0

27

2

보안그룹 아웃바운드 규칙

0

13

1

pg사가 있다고 가정하면

0

25

1

LiveReload++ 비활성화

0

41

1

SbbApplicationTests 런오류 tetJpa부분?

0

89

1

쿼리문이 console에서 형성이 안되고 아래와 같은 코드오류걸려요

0

113

1

SbbApplicaitonTest JUnit 테스트 런을 하면 아래와 같은 오류가 Console에 뜹니다

0

117

1

[리포지터리] SbbApplicationTests에서부터 오류

0

108

1

3-9에서 오류 발생

0

113

0

프로젝트 생성오류 (gradle)

0

228

1

프로젝트 생성 오류

0

1619

1

h2 console 뭔짓을 해봐도 안되네요,..

0

540

1

프로젝트 생성 시 gradle 호환

0

343

2

H2 > IO Exception [90028-224] 해결법을 모르겠습니다

0

970

1

sts 버전

0

389

1

<템플릿, 타임리프, 루트 URL, 서비스 URL, 프리픽스 등의 개념과 활용>이 동영상은 전편의 동영상이랑 내용이 같은거 같은데요??

0

531

1