use of com.tvd12.properties.file.exception.PropertiesFileException in project properties-file by tvd12.
the class PropertiesFileWriterTest method writeToOuputStreamInvalidCase.
@Test(expectedExceptions = { PropertiesFileException.class })
public void writeToOuputStreamInvalidCase() throws PropertiesFileException, IOException {
Properties properties = mock(Properties.class);
doThrow(IOException.class).when(properties).store(any(OutputStream.class), any(String.class));
new BaseFileWriter().write(properties);
}
Aggregations