Package org.encuestame.utils.enums

Examples of org.encuestame.utils.enums.Profile


    /**
     * Test profile enum.
     */
    @Test
    public void testProfile(){
        final Profile emailOpt = Profile.findProfile("EMAIL");
        assertEquals("Should be equals", "email", emailOpt.toString());

        final Profile usernameOpt = Profile.findProfile("USERNAME");
        assertEquals("Should be equals", "username", usernameOpt.toString());

        final Profile languageOpt = Profile.findProfile("LANGUAGE");
        assertEquals("Should be equals", "language", languageOpt.toString());

        final Profile pictureOpt = Profile.findProfile("PICTURE");
        assertEquals("Should be equals", "picture", pictureOpt.toString());

        final Profile privateOpt = Profile.findProfile("PRIVATE");
        assertEquals("Should be equals", "private", privateOpt.toString());

        final Profile realNameOpt = Profile.findProfile("REAL_NAME");
        assertEquals("Should be equals", "completeName", realNameOpt.toString());
    }
View Full Code Here

TOP

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

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.