Package org.encuestame.utils.enums

Examples of org.encuestame.utils.enums.TypeSearch


    /**
     * Test type search options enum.
     */
    @Test
    public void testTypeSearchOptions(){
        final TypeSearch keywordOpt = TypeSearch.getSearchString("KEYWORD");
        assertEquals("Should be equals", "KEYWORD", keywordOpt.toString());

        final TypeSearch lastDayOpt = TypeSearch.getSearchString("LASTDAY");
        assertEquals("Should be equals", "LASTDAY", lastDayOpt.toString());

        final TypeSearch lastWeekOpt = TypeSearch.getSearchString("LASTWEEK");
        assertEquals("Should be equals", "LASTWEEK", lastWeekOpt.toString());

        final TypeSearch thisMonthOpt = TypeSearch.getSearchString("THISMONTH");
        assertEquals("Should be equals", "THISMONTH", thisMonthOpt.toString());

        final TypeSearch last30DaysOpt = TypeSearch.getSearchString("LAST30DAYS");
        assertEquals("Should be equals", "LAST30DAYS", last30DaysOpt.toString());

        final TypeSearch last365DaysOpt = TypeSearch.getSearchString("LAST365DAYS");
        assertEquals("Should be equals", "LAST365DAYS", last365DaysOpt.toString());

        final TypeSearch favoritesOpt = TypeSearch.getSearchString("FAVOURITES");
        assertEquals("Should be equals", "FAVOURITES", favoritesOpt.toString());

        final TypeSearch scheduledOpt = TypeSearch.getSearchString("SCHEDULED");
        assertEquals("Should be equals", "SCHEDULED", scheduledOpt.toString());

        final TypeSearch allOpt = TypeSearch.getSearchString("ALL");
        assertEquals("Should be equals", "ALL", allOpt.toString());

        final TypeSearch byOwnerOpt = TypeSearch.getSearchString("BYOWNER");
        assertEquals("Should be equals", "BYOWNER", byOwnerOpt.toString());

        final TypeSearch folderOpt = TypeSearch.getSearchString("FOLDER");
        assertEquals("Should be equals", "FOLDER", folderOpt.toString());

        final TypeSearch dateOpt = TypeSearch.getSearchString("date");
        assertEquals("Should be equals", "DATE", dateOpt.toString());

    }
View Full Code Here

TOP

Related Classes of org.encuestame.utils.enums.TypeSearch

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.