inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발

JPA와 DB 설정, 동작확인

JUnit4 library not found in the module

1399

재미사마

작성한 질문수 3

0

추가도 했는데 모듈이 없다고 뜨는데용 ㅜㅜ

spring-boot java spring 웹앱 JPA

답변 3

1

재미사마

plugins {
   id 'org.springframework.boot' version '2.4.1'
   id 'io.spring.dependency-management' version '1.0.10.RELEASE'
   id 'java'
}
group = 'jpabook'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
configurations {
   compileOnly {
      extendsFrom annotationProcessor
   }
}
repositories {
   mavenCentral()
}
dependencies {
   implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
   implementation 'org.springframework.boot:spring-boot-starter-validation'
   implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
   implementation 'org.springframework.boot:spring-boot-starter-web'
   testImplementation 'junit:junit:4.13.1'
   compileOnly 'org.projectlombok:lombok'
   runtimeOnly 'com.h2database:h2'
   annotationProcessor 'org.projectlombok:lombok'
   testImplementation 'org.springframework.boot:spring-boot-starter-test'
//JUnit4 추가
   testImplementation("org.junit.vintage:junit-vintage-engine") {
      exclude group: "org.hamcrest", module: "hamcrest-core"
   }
}
test {
   useJUnitPlatform()
}

0

David

안녕하세요. 재미사마님, 공식 서포터즈 David입니다.

build.gradle에 문법 오류가 있는 것 같습니다.

강의안 또는 강의내용과 동일하게 작성하셨는지 확인 부탁드립니다.

감사합니다.

0

재미사마

testMember는 통과햇는데 initialzationErro가 나요...

0

David

@RunWith을 지우시고 다시 시도해보시겠어요?

0

재미사마

import org.junit.jupiter.api.Test;

밑에 있는걸로 변경하니깐

import org.junit.Test;

성공 했습니다.

감사합니다!!!!!!!David 님!!

 

 

 

0

재미사마

에러 메세지가 납니다 ㅠㅠ

OrderServiceTest 상문주문 테스트 시 update 쿼리 문의

0

24

1

sdk 설정 오류

0

59

2

오탈자 - @Transactional

0

58

1

src/test/resources 테스트 경로 문제

0

54

1

상품 등록후 H2 db 출력 순서 바꿀 수 있나요?

0

67

1

MemberRepositoryTest 실행오류

0

84

1

boot 4.x >>> trasasction rolled back log & p6spy(영한님, 수업 자료 업데이트 해주시면 감사하겠습니다!!)

1

187

2

강의 마지막 QueryDSL 사용 부분 질문있습니다

1

146

2

클라이언트에서 isbn과 author 수정 요청을 한 경우에 대해 질문드립니다.

0

55

1

도메인 모델 패턴 vs 트랜잭션 스크립트 패턴

0

78

1

기본 생성자

0

62

1

h2 DB 연결시 jdbc url 변경 이유가 궁금합니다.

0

104

1

멤버서비스테스트 부분에서 막힙니다.

0

169

4

실무에서도 EntityManager를 이용해서 많이 작업하는 편일까요?

0

120

1

초반에 h2 다운로드 과정 꼭 필요한가요?

0

123

2

자신 필드에도 get으로 접근하는 이유가 있을까요?

0

115

1

24분 27초 연관관계 편의 메서드 위치

0

115

1

단건 주문만 가능하게 한건 의도한 부분이신가요?

0

113

2

빌드 툴, Gradle

0

61

1

h2연결은 된 것 같은데 엔티티 테이블까지 작성 후 확인해보아도 테이블이 안보입니다

0

78

2

Repository에서 EntityManager 주입 방식 차이

0

92

1

롬복과 사용자 정의 setter 메서드

0

74

1

주문 목록 조회 fetch join 질문드립니다

0

86

1

dirty checking 질문드립니다.

0

84

1