Home Cannot resolve symbol 'assertthat' gradle project
Post
Cancel

Cannot resolve symbol 'assertthat' gradle project

What is AssertJ

AssertJ is opensource library used for JAVA testing

What is the Unit

Unit is an automated test framework

What is the difference between Junit and AssertJ

Junit: Test Frame work for JAVA Test
Assert:

  1. Open Source Library for JAVA testing
  2. more fluent and rich

When `cannot resolve symbol ‘assertthat’ gradle project’ is happened


You should put this code

1
import static org.assertj.core.api.Assertions.assertThat;

ref:
https://stackoverflow.com/questions/69021564/assertj-assertions-assertthat-is-not-resolved

This post is licensed under CC BY 4.0 by the author.