Package org.lightadmin.api.config.unit

Examples of org.lightadmin.api.config.unit.FiltersConfigurationUnit


public class DefaultFiltersConfigurationUnitBuilderTest {

    @Test
    public void defaultConfigurationUnitCreatedForDomainType() throws Exception {
        final FiltersConfigurationUnit configurationUnit = defaultFiltersBuilder().build();

        assertEquals(DomainConfigurationUnitType.FILTERS, configurationUnit.getDomainConfigurationUnitType());
        assertEquals(DomainType.class, configurationUnit.getDomainType());
    }
View Full Code Here


        assertEquals(DomainType.class, configurationUnit.getDomainType());
    }

    @Test
    public void simpleFieldFilterDefined() throws Exception {
        final FiltersConfigurationUnit configurationUnit = defaultFiltersBuilder()
                .filter("Name field filter", "name")
                .build();

        assertFiltersDefined(configurationUnit, filter("Name field filter", "name"));
    }
View Full Code Here

        assertFiltersDefined(configurationUnit, filter("Name field filter", "name"));
    }

    @Test
    public void fewFieldFiltersDefined() throws Exception {
        final FiltersConfigurationUnit configurationUnit = defaultFiltersBuilder()
                .filter("Name field filter", "name")
                .filter("Surname field filter", "surname")
                .build();

        assertFiltersDefined(configurationUnit,
View Full Code Here

TOP

Related Classes of org.lightadmin.api.config.unit.FiltersConfigurationUnit

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.