Code example for FileNotFoundException

Methods: getMessage

0
					+ "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" 
					+ "<config>\n" + "  <group name=\"group\">\n" 
					+ "    <option name=\"name\" value=\"VALUE\"/>\n" 
					+ "  </group>\n" + "</config>"); 
		} catch (FileNotFoundException e) {
			fail(e.getMessage());
		} 
		getConfig().unsetValue("group", "name"); 
	} 
 
	public void test02() { 
		getConfig().setValue("group", "name1", "VALUE1", "category"); 
		getConfig().setValue("group", "name2", "VALUE2", "category"); 
		try { 
			writeConfigAndCheck("category", "" 
					+ "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" 
					+ "<config>\n" + "  <group name=\"group\">\n" 
					+ "    <option name=\"name1\" value=\"VALUE1\"/>\n" 
					+ "    <option name=\"name2\" value=\"VALUE2\"/>\n" 
					+ "  </group>\n" + "</config>"); 
Experience pair programming with AI  Get Codota for Java