mirror of
https://github.com/bbasaran/kessel-run.git
synced 2024-09-25 21:35:21 -04:00
Start of a layout for a format converter
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package org.misoenergy.hackday.kessel_run;
|
||||
|
||||
import org.misoenergy.hackday.kessel_run.class_definitions.CharacterClass;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.List;
|
||||
|
||||
public class PCGenConverter {
|
||||
|
||||
public static File convertToPCGen(List<CharacterClass> classes) {
|
||||
File pcGenOutput = new File("sw5eClasses.lst");
|
||||
PCGenExporter exporter = new PCGenExporter();
|
||||
exporter.export(pcGenOutput);
|
||||
return pcGenOutput;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package org.misoenergy.hackday.kessel_run;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.misoenergy.hackday.kessel_run.class_definitions.CharacterClass;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import static junit.framework.TestCase.assertTrue;
|
||||
|
||||
@SpringBootTest
|
||||
public class PCGenConverterTests {
|
||||
|
||||
@Test
|
||||
void convertToPCGen() {
|
||||
File pcGenOutput = new File("sw5eClasses.lst");
|
||||
List<CharacterClass> classes = new ArrayList<CharacterClass>();
|
||||
File pcgenFile = PCGenConverter.convertToPCGen(classes);
|
||||
|
||||
assertTrue(pcgenFile.isFile());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user