use of org.prebid.mobile.rendering.models.openrtb.bidRequests.devices.Geo in project prebid-mobile-android by prebid.
the class UserTest method getJsonObject.
@Test
public void getJsonObject() throws Exception {
User user = new User();
user.yob = 2016;
user.gender = "M";
user.geo = new Geo();
user.geo.accuracy = 1;
user.keywords = "q, a";
JSONObject actualObj = user.getJsonObject();
String expectedString = "{\"geo\":{\"accuracy\":1},\"gender\":\"M\",\"keywords\":\"q, a\",\"yob\":2016}";
assertEquals("got: " + actualObj.toString(), expectedString, actualObj.toString());
user.getJsonObject();
}
Aggregations