File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed
samples/client/petstore/retrofit/src/test/java/io/swagger/petstore/test Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
1
package io .swagger .petstore .test ;
2
2
3
3
import io .swagger .client .ServiceGenerator ;
4
+ import io .swagger .client .api .*;
5
+ import io .swagger .client .model .*;
6
+
4
7
import retrofit .RetrofitError ;
5
8
import retrofit .mime .TypedFile ;
6
9
11
14
import java .util .Arrays ;
12
15
import java .util .List ;
13
16
17
+ import org .junit .*;
14
18
import static org .junit .Assert .*;
15
19
16
20
public class PetApiTest {
@@ -107,7 +111,7 @@ public void testUpdatePetWithForm() throws Exception {
107
111
api .updatePetWithForm (String .valueOf (fetched .getId ()), "furt" , null );
108
112
Pet updated = api .getPetById (fetched .getId ());
109
113
110
- assertEquals (updated .getName (), fetched . getName () );
114
+ assertEquals (updated .getName (), "furt" );
111
115
}
112
116
113
117
@ Test
Original file line number Diff line number Diff line change 1
1
package io .swagger .petstore .test ;
2
2
3
3
import io .swagger .client .ServiceGenerator ;
4
+ import io .swagger .client .api .*;
5
+ import io .swagger .client .model .*;
6
+
4
7
import retrofit .RetrofitError ;
5
8
6
9
import java .util .Map ;
7
10
11
+ import org .junit .*;
8
12
import static org .junit .Assert .*;
9
13
10
14
public class StoreApiTest {
Original file line number Diff line number Diff line change 1
1
package io .swagger .petstore .test ;
2
2
3
3
import io .swagger .client .ServiceGenerator ;
4
+ import io .swagger .client .api .*;
5
+ import io .swagger .client .model .*;
6
+
4
7
5
8
import java .util .Arrays ;
6
9
10
+ import org .junit .*;
7
11
import static org .junit .Assert .*;
8
12
9
13
public class UserApiTest {
You can’t perform that action at this time.
0 commit comments