File tree Expand file tree Collapse file tree 7 files changed +8
-8
lines changed
samples/client/petstore/java
jersey1/src/test/java/io/swagger/client/api
jersey2/src/test/java/io/swagger/client
okhttp-gson/src/test/java/io/swagger/client/api
resttemplate/src/test/java/io/swagger/client/api
retrofit2/src/test/java/io/swagger/client/api
retrofit/src/test/java/io/swagger/client/api Expand file tree Collapse file tree 7 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ before_install:
45
45
# set python 3.6.3 as default
46
46
- source ~/virtualenv/python3.6/bin/activate
47
47
# to run petstore server locally via docker
48
- - docker pull swaggerapi/petstore
49
- - docker run -d -e SWAGGER_HOST=http://petstore.swagger.io -e SWAGGER_BASE_PATH=/v2 -p 80:8080 swaggerapi/petstore
48
+ - docker pull swaggerapi/petstore:unstable
49
+ - docker run -d -e SWAGGER_HOST=http://petstore.swagger.io -e SWAGGER_BASE_PATH=/v2 -p 80:8080 swaggerapi/petstore:unstable
50
50
- docker ps -a
51
51
# Add bats test framework and cURL for Bash script integration tests
52
52
- sudo add-apt-repository ppa:duggan/bats --yes
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ public void testLoginUser() throws Exception {
64
64
api .createUser (user );
65
65
66
66
String token = api .loginUser (user .getUsername (), user .getPassword ());
67
- assertTrue (token .startsWith ("logged in user session:" ));
67
+ assertTrue (token .contains ("logged in user session:" ));
68
68
}
69
69
70
70
@ Test
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public void testCustomDate() throws Exception {
45
45
@ Test
46
46
public void testSqlDateSerialization () throws Exception {
47
47
String str = json .getContext (null ).writeValueAsString (new java .sql .Date (10 ));
48
- assertEquals ("\" 1970-01-01 \" " , str );
48
+ assertEquals ("\" 1969-12-31 \" " , str );
49
49
}
50
50
51
51
@ Test
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ public void testLoginUser() throws Exception {
63
63
api .createUser (user );
64
64
65
65
String token = api .loginUser (user .getUsername (), user .getPassword ());
66
- assertTrue (token .startsWith ("logged in user session:" ));
66
+ assertTrue (token .constains ("logged in user session:" ));
67
67
}
68
68
69
69
@ Test
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ public void testLoginUser() throws Exception {
64
64
api .createUser (user );
65
65
66
66
String token = api .loginUser (user .getUsername (), user .getPassword ());
67
- assertTrue (token .startsWith ("logged in user session:" ));
67
+ assertTrue (token .contains ("logged in user session:" ));
68
68
}
69
69
70
70
@ Test
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ public void testLoginUser() throws Exception {
61
61
api .createUser (user );
62
62
63
63
String token = api .loginUser (user .getUsername (), user .getPassword ());
64
- assertTrue (token .startsWith ("logged in user session:" ));
64
+ assertTrue (token .contains ("logged in user session:" ));
65
65
}
66
66
67
67
@ Test
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ public void testLoginUser() throws Exception {
62
62
api .createUser (user ).execute ();
63
63
64
64
String token = api .loginUser (user .getUsername (), user .getPassword ()).execute ().body ();
65
- assertTrue (token .startsWith ("logged in user session:" ));
65
+ assertTrue (token .contains ("logged in user session:" ));
66
66
}
67
67
68
68
@ Test
You can’t perform that action at this time.
0 commit comments