test: use correct "new" variable for tests

This commit is contained in:
Connor Tumbleson 2018-07-20 15:20:39 -04:00
parent 564b285126
commit 4bda4674f9

View File

@ -88,7 +88,7 @@ public class UnknownCompressionTest extends BaseTest {
@Test @Test
public void confirmJsonFileIsDeflatedTest() throws BrutException, IOException { public void confirmJsonFileIsDeflatedTest() throws BrutException, IOException {
Integer control = sTestOrigDir.getDirectory().getCompressionLevel("test.json"); Integer control = sTestOrigDir.getDirectory().getCompressionLevel("test.json");
Integer rebuilt = sTestOrigDir.getDirectory().getCompressionLevel("test.json"); Integer rebuilt = sTestNewDir.getDirectory().getCompressionLevel("test.json");
assertEquals(control, rebuilt); assertEquals(control, rebuilt);
assertEquals(new Integer(8), rebuilt); assertEquals(new Integer(8), rebuilt);
@ -97,7 +97,7 @@ public class UnknownCompressionTest extends BaseTest {
@Test @Test
public void confirmPngFileIsCorrectlyDeflatedTest() throws BrutException, IOException { public void confirmPngFileIsCorrectlyDeflatedTest() throws BrutException, IOException {
Integer control = sTestOrigDir.getDirectory().getCompressionLevel("950x150.png"); Integer control = sTestOrigDir.getDirectory().getCompressionLevel("950x150.png");
Integer rebuilt = sTestOrigDir.getDirectory().getCompressionLevel("950x150.png"); Integer rebuilt = sTestNewDir.getDirectory().getCompressionLevel("950x150.png");
assertEquals(control, rebuilt); assertEquals(control, rebuilt);
assertEquals(new Integer(8), rebuilt); assertEquals(new Integer(8), rebuilt);