Skip to content
Snippets Groups Projects
Commit 06c535af authored by Jawnnypoo's avatar Jawnnypoo
Browse files

Fix tests nullability

parent 94234e3b
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -35,16 +35,16 @@ object TestUtil {
.login(request)
.blockingGet()
assertTrue(loginResponse.isSuccessful)
assertNotNull(loginResponse.body().privateToken)
assertNotNull(loginResponse.body()!!.privateToken)
//attach the newly retrieved private token
account.privateToken = loginResponse.body().privateToken
account.privateToken = loginResponse.body()!!.privateToken
return gitLab
}
 
@Throws(Exception::class)
fun assertRetrofitResponseSuccess(response: Response<*>) {
if (!response.isSuccessful) {
Assert.assertTrue(response.errorBody().string(), response.isSuccessful)
Assert.assertTrue(response.errorBody()!!.string(), response.isSuccessful)
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment