0 Replies Latest reply: Jan 11, 2012 4:06 AM by hantsy bai RSS

Applied @BasicAuthentication on the test case method,but can not find user.

hantsy bai Master

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.