Code example for JsonParser

Methods: parse

0
				System.setProperty("external-properties", "portal-test.properties");
			} 
	} 
 
	public void testScreenName(){ 
		JsonParser parser = new JsonParser();
		JsonObject jsonObj = (JsonObject)parser.parse(jsonString);
 
		UserData userData = new Gson().fromJson(jsonObj, UserData.class);
		 
		assertNotNull("Screen Name Should not be null",userData.getUser_id());
		assertEquals("mario.sanchez_dc_slidev_dc_net",WgenSSOUtil.convertScreenName("mario.sanchez@dc=slidev,dc=net"));
	} 
 
 
 
	public void testRoles(){ 
		JsonParser parser = new JsonParser();
		JsonObject jsonObj = (JsonObject)parser.parse(jsonString);
 
Experience pair programming with AI  Get Codota for Java