Skip to content
Permalink
Browse files
Format.
  • Loading branch information
garydgregory committed May 5, 2022
1 parent 8775f01 commit 16db43b1e46a7db8acc07f52b7a21e9e3b434bf2
Showing 1 changed file with 7 additions and 16 deletions.
@@ -27,46 +27,37 @@ public class SevenZMethodConfigurationTest {

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

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

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

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

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

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

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

@Test

0 comments on commit 16db43b

Please sign in to comment.