public final class JunitUtils extends Object
Modifier and Type | Method and Description |
---|---|
static InputStream |
getFileInputStream(String fileName)
Open a file from JAR or disk, depending on what is available
|
static BufferedReader |
getFileReader(String fileName)
Open a file from JAR or disk, depending on what is available
|
public static InputStream getFileInputStream(String fileName) throws FileNotFoundException
fileName
- filename to loadBufferedReader
instance for the given filenameFileNotFoundException
public static BufferedReader getFileReader(String fileName) throws FileNotFoundException
fileName
- filename to loadBufferedReader
instance for the given filenameFileNotFoundException
Copyright © 2011–2022 Stiftung SIC. All rights reserved.