2020-02-06 14:20:36 +01:00
|
|
|
package li.strolch.plc.core.util;
|
|
|
|
|
|
|
|
import java.io.IOException;
|
|
|
|
|
|
|
|
import org.junit.Test;
|
|
|
|
|
|
|
|
public class PlcAddressGeneratorTest {
|
|
|
|
|
|
|
|
@Test
|
|
|
|
public void shouldGenerate() throws IOException {
|
|
|
|
|
|
|
|
String templatesFile = "../example/Templates.xml";
|
2020-02-26 09:38:13 +01:00
|
|
|
String importFile = "/home/eitch/src/git/mfs-soh/mfs-soh-plc/runtime/data/mfs-soh-plc.csv";
|
|
|
|
String exportFile = "/home/eitch/src/git/mfs-soh/mfs-soh-plc/runtime/data/mfs-soh-plc-generated.xml";
|
2020-02-06 14:20:36 +01:00
|
|
|
|
|
|
|
PlcAddressGenerator.main(new String[] { templatesFile, importFile, exportFile });
|
|
|
|
}
|
|
|
|
}
|