Code example for Path

Methods: toFile

0
 
		Path path = writeLinesToTempFileAndReturnPath(lines);
 
		ILogParser parser = new HotSpotLogParser(UnitTestUtil.getNoOpJITListener());
 
		parser.processLogFile(path.toFile(), UnitTestUtil.getNoOpParseErrorListener());
 
		SplitLog log = parser.getSplitLog();
 
		assertEquals(15, log.getAssemblyLines().size());
		assertEquals(2, log.getLogCompilationLines().size());
	} 
 
	private Path writeLinesToTempFileAndReturnPath(String[] lines) throws IOExceptionStringBuilder builder = new StringBuilder();
 
		for (String line : lines)
		{ 
			builder.append(line).append(JITWatchConstants.S_NEWLINE);