Removed 3rd party dependency for this test

This commit is contained in:
Brendan Robert 2021-04-02 15:33:16 -05:00
parent 5b9d95c2c2
commit a8e76cd4f6

View File

@ -5,13 +5,13 @@
*/ */
package jace.ide; package jace.ide;
import com.google.common.collect.Lists;
import jace.applesoft.ApplesoftProgram; import jace.applesoft.ApplesoftProgram;
import java.io.IOException; import java.io.IOException;
import java.net.URISyntaxException; import java.net.URISyntaxException;
import java.nio.file.Files; import java.nio.file.Files;
import java.nio.file.Path; import java.nio.file.Path;
import java.nio.file.Paths; import java.nio.file.Paths;
import java.util.Arrays;
import org.junit.After; import org.junit.After;
import org.junit.AfterClass; import org.junit.AfterClass;
import org.junit.Before; import org.junit.Before;
@ -55,14 +55,14 @@ public class ApplesoftTest {
@Test @Test
public void deserializeBinaryTest() { public void deserializeBinaryTest() {
ApplesoftProgram program = ApplesoftProgram.fromBinary(Lists.newArrayList(lemonadeStandBinary), 0x0801); ApplesoftProgram program = ApplesoftProgram.fromBinary(Arrays.asList(lemonadeStandBinary), 0x0801);
assertNotNull(program); assertNotNull(program);
assertNotSame("", program.toString()); assertNotSame("", program.toString());
} }
@Test @Test
public void roundTripStringComparisonTest() { public void roundTripStringComparisonTest() {
ApplesoftProgram program = ApplesoftProgram.fromBinary(Lists.newArrayList(lemonadeStandBinary), 0x0801); ApplesoftProgram program = ApplesoftProgram.fromBinary(Arrays.asList(lemonadeStandBinary), 0x0801);
String serialized = program.toString(); String serialized = program.toString();
ApplesoftProgram deserialized = ApplesoftProgram.fromString(serialized); ApplesoftProgram deserialized = ApplesoftProgram.fromString(serialized);
String[] serializedLines = serialized.split("\\n"); String[] serializedLines = serialized.split("\\n");