mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-14 14:17:56 +00:00
test[kotlin]: protocol test
This commit is contained in:
1 parent
e6347a35d4
commit
5fc059ea96
1 file changed
+3
-2
@@ -50,14 +50,15 @@ public class GenerateTesting {
|
|||||||
generateLanguages.add(CodeLanguage.Python);
|
generateLanguages.add(CodeLanguage.Python);
|
||||||
|
|
||||||
// Initialize and then generate the protocol
|
// Initialize and then generate the protocol
|
||||||
ProtocolManager.initProtocolAuto(List.of(ComplexObject.class, NormalObject.class, SimpleObject.class, EmptyObject.class, VeryBigObject.class), op);
|
ProtocolManager.initProtocolAuto(List.of(ComplexObject.class, NormalObject.class, SimpleObject.class, EmptyObject.class), op);
|
||||||
copyFiles();
|
// copyFiles();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void copyFiles() throws IOException {
|
public void copyFiles() throws IOException {
|
||||||
var sourceDirectory = "C:\\github\\zfoo\\protocol\\zfookt";
|
var sourceDirectory = "C:\\github\\zfoo\\protocol\\zfookt";
|
||||||
var targetDirectory = "C:\\github\\zfoo-kotlin-support\\src\\main\\kotlin\\com\\zfoo\\kotlin";
|
var targetDirectory = "C:\\github\\zfoo-kotlin-support\\src\\main\\kotlin\\com\\zfoo\\kotlin";
|
||||||
|
FileUtils.deleteFile(new File(targetDirectory));
|
||||||
FileUtils.copyDirectory(new File(sourceDirectory), new File(targetDirectory));
|
FileUtils.copyDirectory(new File(sourceDirectory), new File(targetDirectory));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user