Skip to content
Permalink
Browse files
Sort members.
  • Loading branch information
garydgregory committed May 5, 2022
1 parent 16db43b commit 169277a6cfee9f4ff9e222cf3cb9a2fef53fa7cf
Showing 1 changed file with 12 additions and 12 deletions.
@@ -25,29 +25,19 @@

public class SevenZMethodConfigurationTest {

@Test
public void shouldAllowNullOptions() {
Assert.assertNull(new SevenZMethodConfiguration(SevenZMethod.LZMA2, null).getOptions());
}

@Test
public void shouldAllowLZMA2OptionsForLZMA() {
Assert.assertNotNull(new SevenZMethodConfiguration(SevenZMethod.LZMA, new LZMA2Options()).getOptions());
}

@Test
public void shouldAllowNumberForLZMA() {
Assert.assertNotNull(new SevenZMethodConfiguration(SevenZMethod.LZMA, 42).getOptions());
}

@Test
public void shouldAllowLZMA2OptionsForLZMA2() {
Assert.assertNotNull(new SevenZMethodConfiguration(SevenZMethod.LZMA2, new LZMA2Options()).getOptions());
}

@Test
public void shouldAllowNumberForLZMA2() {
Assert.assertNotNull(new SevenZMethodConfiguration(SevenZMethod.LZMA2, 42).getOptions());
public void shouldAllowNullOptions() {
Assert.assertNull(new SevenZMethodConfiguration(SevenZMethod.LZMA2, null).getOptions());
}

@Test
@@ -60,6 +50,16 @@ public void shouldAllowNumberForDeflate() {
Assert.assertNotNull(new SevenZMethodConfiguration(SevenZMethod.DEFLATE, 42).getOptions());
}

@Test
public void shouldAllowNumberForLZMA() {
Assert.assertNotNull(new SevenZMethodConfiguration(SevenZMethod.LZMA, 42).getOptions());
}

@Test
public void shouldAllowNumberForLZMA2() {
Assert.assertNotNull(new SevenZMethodConfiguration(SevenZMethod.LZMA2, 42).getOptions());
}

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

0 comments on commit 169277a

Please sign in to comment.