Code example for Criteria

0
public class CriteriaTest { 
    private Criteria criteria;
 
    @Before 
    public void setUp() { 
        criteria = new Criteria();
    } 
 
    @Test 
    public void shouldReturnAccuracy() { 
        criteria.setAccuracy(Criteria.ACCURACY_COARSE);
        assertThat(criteria.getAccuracy()).isEqualTo(Criteria.ACCURACY_COARSE);
    } 
 
    @Test 
    public void shouldReturnPowerRequirement() { 
        criteria.setPowerRequirement(Criteria.POWER_HIGH);
        assertThat(criteria.getPowerRequirement()).isEqualTo(Criteria.POWER_HIGH);
    } 
 
Contextual code suggestions in your IDE  Get Codota for Java