1- package net . servicestack . client . tests ;
1+ package test ;
22
33import junit .framework .TestCase ;
44
55import net .servicestack .client .JsonServiceClient ;
66import net .servicestack .client .ServiceClient ;
77import net .servicestack .client .WebServiceException ;
88
9- import net .servicestack .client .tests .testdtos .*;
10-
119/**
1210 * Created by mythz on 1/3/2016.
1311 */
@@ -20,7 +18,7 @@ public JsonServiceClient CreateClient(){
2018 public void test_AuthRequired_returns_401 (){
2119 try {
2220 ServiceClient client = CreateClient ();
23- client .get (new TestAuth ());
21+ client .get (new testdtos . TestAuth ());
2422 fail ("should throw" );
2523 } catch (WebServiceException ex ){
2624 assertEquals (401 , ex .getStatusCode ());
@@ -33,7 +31,7 @@ public void test_does_send_BasicAuthHeaders(){
3331 client .setCredentials ("test" , "test" );
3432 client .setAlwaysSendBasicAuthHeaders (true );
3533
36- TestAuthResponse response = client .get (new TestAuth ());
34+ testdtos . TestAuthResponse response = client .get (new testdtos . TestAuth ());
3735
3836 assertEquals ("1" , response .getUserId ());
3937 assertEquals ("test" , response .getUserName ());
@@ -45,7 +43,7 @@ public void test_does_transparently_send_BasicAuthHeader_on_401_response(){
4543 ServiceClient client = CreateClient ();
4644 client .setCredentials ("test" , "test" );
4745
48- TestAuthResponse response = client .get (new TestAuth ());
46+ testdtos . TestAuthResponse response = client .get (new testdtos . TestAuth ());
4947
5048 assertEquals ("1" , response .getUserId ());
5149 assertEquals ("test" , response .getUserName ());
@@ -56,7 +54,7 @@ public void test_does_transparently_send_BasicAuthHeader_on_401_response(){
5654 public void test_can_authenticate_with_CredentialsAuth (){
5755 ServiceClient client = CreateClient ();
5856
59- AuthenticateResponse authResponse = client .post (new Authenticate ()
57+ testdtos . AuthenticateResponse authResponse = client .post (new testdtos . Authenticate ()
6058 .setProvider ("credentials" )
6159 .setUserName ("test" )
6260 .setPassword ("test" ));
@@ -65,7 +63,7 @@ public void test_can_authenticate_with_CredentialsAuth(){
6563 assertEquals ("test" , authResponse .getUserName ());
6664 assertNotNull (authResponse .getSessionId ());
6765
68- TestAuthResponse response = client .get (new TestAuth ());
66+ testdtos . TestAuthResponse response = client .get (new testdtos . TestAuth ());
6967
7068 assertEquals ("1" , response .getUserId ());
7169 assertEquals ("test" , response .getUserName ());
0 commit comments