dependencies {
implementation 'com.google.guava:guava:30.1-jre'
implementation 'org.easytesting:fest-util:1.2.5'
}
import static org.assertj.core.api.Assertions.assertThat;
import com.google.common.collect.ImmutableList;
public class MyGuavaClassTest {
@Test
public void testImmutableList() {
ImmutableList<String> list = ImmutableList.of("foo", "bar");
assertThat(list).isNotEmpty()
.contains("foo")
.doesNotContain("baz");
}
}