minor progress

This commit is contained in:
rusefillc 2023-02-11 15:20:10 -05:00
parent 5f106d1f39
commit f9122f9119
1 changed files with 10 additions and 6 deletions

View File

@ -14,15 +14,20 @@ import static org.junit.Assert.assertEquals;
public class PinoutLogicIntegratedTest { public class PinoutLogicIntegratedTest {
@Test @Test
public void testWholeThing() throws IOException { public void testWholeThing() throws IOException {
StringWriter testWriter = new StringWriter(); runPinputTest("pins:\n" +
Reader input = new StringReader("pins:\n" +
" - pin: 1\n" + " - pin: 1\n" +
" id: [E11, E11]\n" + " id: [E11, E11]\n" +
" class: [event_inputs, switch_inputs]\n" + " class: [event_inputs, switch_inputs]\n" +
" function: Digital trigger/switch input for instance Hall type CAM\n" + " function: Digital trigger/switch input for instance Hall type CAM\n" +
" ts_name: Digital 2\n" + " ts_name: Digital 2\n" +
" type: din"); " type: din", "");
}
private static void runPinputTest(String inputYaml, String expected) throws IOException {
StringWriter testWriter = new StringWriter();
Reader input = new StringReader(inputYaml);
BoardInputs testBoard = new BoardInputs() { BoardInputs testBoard = new BoardInputs() {
@Override @Override
@ -67,7 +72,6 @@ public class PinoutLogicIntegratedTest {
//logic.registerBoardSpecificPinNames(registry, definitionState, enumsReader); //logic.registerBoardSpecificPinNames(registry, definitionState, enumsReader);
// assertEquals("", testWriter.getBuffer().toString()); // assertEquals(expected, testWriter.getBuffer().toString());
} }
} }