Code example for WebRowSet

Methods: readXml

0
		final InputStream dataStream = getClass().getResourceAsStream(TEST_FILE);
		if (dataStream == null) {
			throw new RuntimeException("Could not load " + TEST_FILE);
		} 
		Reader r = new InputStreamReader(dataStream);
		testData.readXml(r);
	} 
	 
	@Ignore("Missing XML data file contents!!") @Test
	public  void test1() throws Exception {
		testData.absolute(1);
		assertEquals("get data", "Ian", testData.getString("first_name"));
	} 
} 
Contextual code suggestions in your IDE  Get Codota for Java