I tried to applided @BasicAuthentication on the test case, but in the method I tried to get the remote user in codes, I got null.
@IntitalPage("/login.faces") @Test @BasicAuthencitaion(userName="user", password="user") public void testLoginPage(JSFClientSession client, JSFServerSession server){ // I use server.getFacesContext().getExternalContext().getRemoteUser(); and got null. }
PS:I am using Arquillian 1.0CR6 and JSFUnit 2.0.0Beta2.