suyeoniii
수바리의 코딩일기
suyeoniii
전체 방문자
오늘
어제
  • 분류 전체보기
    • 🪓 삽질일기
    • 🔙 Backend
      • 🟢 Node.js
      • 🐈‍⬛ NestJS
      • 🌿 Springboot
      • 🗄️ Database
    • 🌸 Frontend
      • 🌐 React.js
      • 💚 Vue.js
      • 🤖 Android
    • 🕹️ 알고리즘
      • 💯 코딩테스트
    • 🔠 프로그래밍 언어
      • 💛 Javascript
      • 💙 Typescript
    • 🚀 배포
    • 🐱 Git
    • etc.
      • 개발환경
      • 오픈 API
      • 개념정리
      • 커뮤니티
    • AI
      • 생성형 AI
    • 회고

블로그 메뉴

  • 홈
  • 태그
  • 방명록

공지사항

인기 글

태그

  • 백준
  • springboot
  • MAC
  • html
  • AWS
  • node.js
  • ec2
  • C++
  • android
  • 회고
  • vue
  • javascript
  • ubuntu
  • Git
  • 알고리즘
  • node
  • MySQL
  • java
  • Spring Boot
  • nodejs

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
suyeoniii

수바리의 코딩일기

🔙 Backend/🌿 Springboot

[JUnit] assertThat deprecated

2021. 9. 12. 21:04
반응형

Test코드를 작성하던 중에, assertThat에 빨간줄이 떠서, 아래와 같이 import했더니 assertThat은 deprecated되었다고 뜬다.

import org.junit.Assert.*;

 

 

 

해결

import static org.assertj.core.api.AssertionsForClassTypes.assertThat;

assertj를 import한 뒤, assertThat을 사용할 수 있다!

반응형
저작자표시 (새창열림)

'🔙 Backend > 🌿 Springboot' 카테고리의 다른 글

[JUnit5][SpringBoot][Kotlin] Exception테스트하기 (assertThrows)  (0) 2022.12.10
[Spring Boot] 오류: Cannot construct instance of (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator)  (1) 2022.04.05
[Spring Boot] 카카오 로그인 API 구현 (2) - Access token으로 사용자 정보 가져오기  (1) 2021.08.15
[Spring Boot] 카카오 로그인 API 구현 (1) - Access token 발급받기  (3) 2021.08.15
[Springboot][EC2] 로컬에서 빌드하고 빌드파일만 업로드하기  (0) 2021.07.05
    '🔙 Backend/🌿 Springboot' 카테고리의 다른 글
    • [JUnit5][SpringBoot][Kotlin] Exception테스트하기 (assertThrows)
    • [Spring Boot] 오류: Cannot construct instance of (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator)
    • [Spring Boot] 카카오 로그인 API 구현 (2) - Access token으로 사용자 정보 가져오기
    • [Spring Boot] 카카오 로그인 API 구현 (1) - Access token 발급받기
    suyeoniii
    suyeoniii
    개발관련 문제 해결, 공부한 내용 등을 업로드합니다.

    티스토리툴바