System.out.println()的JUnit测试
getResponse(String request)
@BeforeClasspublic static void setUpClass() throws Exception { Properties queries = loadPropertiesFile("requests.properties"); Properties responses = loadPropertiesFile("responses.properties"); instance = new ResponseGenerator(queries, responses);}@Testpublic void testGetResponse() { String request = "<some>request</some>"; String expResult = "<some>response</some>"; String result = instance.getResponse(request); assertEquals(expResult, result);}
null
System.out.println("match found: " + strExpr);System.out.println("xml not well formed: " + e.getMessage());
慕容3067478
侃侃尔雅