only:SdCardFieldsContent uses destination folder
This commit is contained in:
parent
553035ebb0
commit
ac6d529eb3
|
@ -314,7 +314,7 @@ public class LiveDataProcessor {
|
||||||
}
|
}
|
||||||
enumContent.append("} live_data_e;\n");
|
enumContent.append("} live_data_e;\n");
|
||||||
|
|
||||||
LazyFile lazyFile = fileFactory.create(SdCardFieldsContent.SD_CARD_OUTPUT_FILE_NAME);
|
LazyFile lazyFile = fileFactory.create(destinationFolder + SdCardFieldsContent.SD_CARD_OUTPUT_FILE_NAME);
|
||||||
SdCardFieldsContent.wrapContent(lazyFile, sdCardFieldsConsumer.getBody());
|
SdCardFieldsContent.wrapContent(lazyFile, sdCardFieldsConsumer.getBody());
|
||||||
lazyFile.close();
|
lazyFile.close();
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,7 @@ public class LiveDataProcessorTest {
|
||||||
List<LinkedHashMap> data = LiveDataProcessor.getStringObjectMap(new StringReader(testYaml));
|
List<LinkedHashMap> data = LiveDataProcessor.getStringObjectMap(new StringReader(testYaml));
|
||||||
|
|
||||||
TestFileCaptor captor = new TestFileCaptor();
|
TestFileCaptor captor = new TestFileCaptor();
|
||||||
|
String destinationFolder = "./";
|
||||||
LiveDataProcessor liveDataProcessor = new LiveDataProcessor("test", new ReaderProvider() {
|
LiveDataProcessor liveDataProcessor = new LiveDataProcessor("test", new ReaderProvider() {
|
||||||
@Override
|
@Override
|
||||||
public Reader read(String fileName) {
|
public Reader read(String fileName) {
|
||||||
|
@ -50,7 +51,7 @@ public class LiveDataProcessorTest {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, captor, "./");
|
}, captor, destinationFolder);
|
||||||
liveDataProcessor.handleYaml(data);
|
liveDataProcessor.handleYaml(data);
|
||||||
assertEquals(14, captor.fileCapture.size());
|
assertEquals(14, captor.fileCapture.size());
|
||||||
|
|
||||||
|
@ -123,7 +124,7 @@ public class LiveDataProcessorTest {
|
||||||
"\t{engine->outputChannels.oootempC, \"Temperature\", \"C\", 0},\n" +
|
"\t{engine->outputChannels.oootempC, \"Temperature\", \"C\", 0},\n" +
|
||||||
"\t{engine->outputChannels.oooesr, \"ESR\", \"ohm\", 0},\n" +
|
"\t{engine->outputChannels.oooesr, \"ESR\", \"ohm\", 0},\n" +
|
||||||
"};\n",
|
"};\n",
|
||||||
SdCardFieldsContent.SD_CARD_OUTPUT_FILE_NAME);
|
destinationFolder + SdCardFieldsContent.SD_CARD_OUTPUT_FILE_NAME);
|
||||||
|
|
||||||
captor.assertOutput("// generated by gen_live_documentation.sh / LiveDataProcessor.java\n" +
|
captor.assertOutput("// generated by gen_live_documentation.sh / LiveDataProcessor.java\n" +
|
||||||
"#pragma once\n" +
|
"#pragma once\n" +
|
||||||
|
|
Loading…
Reference in New Issue