* Evaluation article: Different Types of Bean Injection in Spring * added tests & changed configuration to Java-based config * removed xml config files * rename unit tests * BAEL-972 - Apache Commons Text * remove code from evaluation article * remove code from evaluation article * BAEL-972 - Apache Commons Text - added another example * BAEL-972 - Apache Commons Text - just indentation * BAEL-994 - TemporalAdjuster in Java * BAEL-994 - TemporalAdjuster in Java * BAEL-994 - TemporalAdjuster in Java * BAEL-994 - TemporalAdjuster in Java * BAEL-994 - TemporalAdjuster in Java - fix problems * BAEL-1033 Introduction to StreamUtils * BAEL-1033 Introduction to StreamUtils * BAEL-1033 Introduction to StreamUtils * fix formatting * BAEL-1033 minor refactor * BAEL-1035 Introduction to Eclipse Collections * format * BAEL-1035 Introduction to Eclipse Collections * BAEL-1035 Introduction to Eclipse Collections * BAEL-1035 Introduction to Eclipse Collections * cleanup * cleanup
27 lines
672 B
Java
27 lines
672 B
Java
package com.baeldung.eclipsecollections;
|
|
|
|
import static org.junit.Assert.assertTrue;
|
|
|
|
import org.eclipse.collections.api.list.MutableList;
|
|
import org.eclipse.collections.impl.block.factory.Predicates;
|
|
import org.eclipse.collections.impl.list.mutable.FastList;
|
|
import org.junit.Before;
|
|
import org.junit.Test;
|
|
|
|
public class AnySatisfyPatternTest {
|
|
|
|
MutableList<Integer> list;
|
|
|
|
@Before
|
|
public void getList() {
|
|
this.list = FastList.newListWith(1, 8, 5, 41, 31, 17, 23, 38);
|
|
}
|
|
|
|
@Test
|
|
public void whenAnySatisfiesCondition_thenCorrect() {
|
|
boolean result = list.anySatisfy(Predicates.greaterThan(30));
|
|
|
|
assertTrue(result);
|
|
}
|
|
}
|