Java Code Examples for net.lingala.zip4j.model.ZipParameters#setUnixMode()
The following examples show how to use
net.lingala.zip4j.model.ZipParameters#setUnixMode() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FileHeaderFactoryTest.java From zip4j with Apache License 2.0 | 5 votes |
@Test public void testVersionMadeByWindowsWithUnixModeOn() throws ZipException { changeOsSystemPropertyToWindows(); ZipParameters zipParameters = generateZipParameters(); zipParameters.setUnixMode(true); testVersionMadeBy(zipParameters, 819); }
Example 2
Source File: ZipVersionUtilsTest.java From zip4j with Apache License 2.0 | 4 votes |
@Test public void testDetermineVersionMadeByWindowsAndUnixModeOn() { ZipParameters zipParameters = new ZipParameters(); zipParameters.setUnixMode(true); assertThat(ZipVersionUtils.determineVersionMadeBy(zipParameters, rawIO)).isEqualTo(819); }