Skip to content
Permalink
Browse files
Fix broken tests in SevenZMethodConfigurationTest.
  • Loading branch information
garydgregory committed May 5, 2022
1 parent 1cc5ca1 commit 8775f01173191303b2ad968291fc95cdf4e6f87e
Showing 1 changed file with 4 additions and 2 deletions.
@@ -17,6 +17,8 @@
*/
package org.apache.commons.compress.archivers.sevenz;

import static org.junit.Assert.assertThrows;

import org.junit.Assert;
import org.junit.jupiter.api.Test;
import org.tukaani.xz.LZMA2Options;
@@ -69,12 +71,12 @@ public void shouldAllowNumberForDeflate() {

@Test
public void shouldNotAllowStringOptionsForLZMA() {
new SevenZMethodConfiguration(SevenZMethod.LZMA, "");
assertThrows(IllegalArgumentException.class, () -> new SevenZMethodConfiguration(SevenZMethod.LZMA, ""));
}

@Test
public void shouldNotAllowStringOptionsForLZMA2() {
new SevenZMethodConfiguration(SevenZMethod.LZMA2, "");
assertThrows(IllegalArgumentException.class, () -> new SevenZMethodConfiguration(SevenZMethod.LZMA2, ""));
}

}

0 comments on commit 8775f01

Please sign in to comment.