java - jsonwebtoken causes unit tests to fail -
i have interesting problem regarding json web token. moment add dependency maven pom, unit tests spring rest controller throw gibberish, like
resultactions results = mockmvc.perform(post("/customers/" + customerid + "/orders") .contenttype(mediatype.application_json).content(new gson().tojson(order)));
is expected give 200, gives 400. i've noticed upon investigating issue problem happens tests test post/put (transactional http requests guess call them). i've tried excluding dependency testing using information in this link, no avail. i'm not sure other information provide, because don't have faintest idea causing issue.
i've solved issue. problem dependency conflict. jjwt depends on jackson , i've been using gson jsons. 2 conflicted in weird way. i've solved issue changing jjwt jwt lib.
Comments
Post a Comment