Package org.netbeans.server.uihandler.bugs

Examples of org.netbeans.server.uihandler.bugs.AuthenticatorImpl


    }

    @Test
    public void testAuthenticate() {
        AuthenticatorImpl.AUTHENTICATE_URL = "https://testnetbeans.org/api/login/authenticate.json";
        AuthenticatorImpl impl = new AuthenticatorImpl();
        Authenticator.AuthToken token = impl.authenticate("jindrich.sedek@sun.com", "vsdsvsds");
        assertNotNull(token);
        assertEquals("exceptions_reporter", token.getUserName());

        token = impl.authenticate("petr.blaha@sun.com", "vsdsvsds");
        assertNotNull(token);
        assertEquals("qarobot", token.getUserName());

        token = impl.authenticate("kenaiadmin", "kenaiadmin");
        assertNotNull(token);
        assertEquals("kenaiadmin", token.getUserName());

        token = impl.authenticate("jaromir.uhrik@sun.com", "vsdsvsds");
        assertNotNull(token);
        assertEquals("juhrik", token.getUserName());

    }
View Full Code Here

TOP

Related Classes of org.netbeans.server.uihandler.bugs.AuthenticatorImpl

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.