### Question:
Parser { void parseAndPopulate() { E(); } Parser(Reader r, Map<String, String> map);   }### Answer:
@Test public void smoke() throws IOException { FileReader fr = new FileReader(Cal10nTestConstants.TEST_CLASSES+"/parser/smoke.properties"); Parser parser = new Parser(fr, map); parser.parseAndPopulate(); witness.put("K0", "V0"); witness.put("K1", "V1"); assertEquals(witness, map); }
@Test public void medium() throws IOException { FileReader fr = new FileReader(Cal10nTestConstants.TEST_CLASSES+"/parser/medium.properties"); Parser parser = new Parser(fr, map); parser.parseAndPopulate(); witness.put("K0", "V0 X"); witness.put("K1", "V1"); assertEquals(witness, map); }
@Test public void full() throws IOException { FileReader fr = new FileReader(Cal10nTestConstants.TEST_CLASSES+"/parser/full.properties"); Parser parser = new Parser(fr, map); parser.parseAndPopulate(); witness.put("K0", "V0 X"); witness.put("K1", "V1"); witness.put("K2", "V2 l1l2 l3"); witness.put("K3", "V3 \\t a"); assertEquals(witness, map); }
@Test public void smoke() throws IOException { FileReader fr = new FileReader(CAL10NTestConstants.TEST_CLASSES+"/parser/smoke.properties"); Parser parser = new Parser(fr, map); parser.parseAndPopulate(); witness.put("K0", "V0"); witness.put("K1", "V1"); assertEquals(witness, map); }
@Test public void medium() throws IOException { FileReader fr = new FileReader(CAL10NTestConstants.TEST_CLASSES+"/parser/medium.properties"); Parser parser = new Parser(fr, map); parser.parseAndPopulate(); witness.put("K0", "V0 X"); witness.put("K1", "V1"); assertEquals(witness, map); }
@Test public void full() throws IOException { FileReader fr = new FileReader(CAL10NTestConstants.TEST_CLASSES+"/parser/full.properties"); Parser parser = new Parser(fr, map); parser.parseAndPopulate(); witness.put("K0", "V0 X"); witness.put("K1", "V1"); witness.put("K2", "V2 l1l2 l3"); witness.put("K3", "V3 \t a"); assertEquals(witness, map); }