Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
entropy-cloud committed Jan 18, 2025
1 parent 6e2ffcb commit 14d5054
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions nop-cli-core/src/test/java/io/nop/cli/TestNopCli.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,22 +109,7 @@ public void testRunBatchDemo() {
File devDir = new File(getModuleDir(), "../nop-cli/demo/");
System.setProperty(CoreConfigs.CFG_DEV_ROOT_PATH.getName(), devDir.getAbsolutePath());
System.setProperty(CoreConfigs.CFG_RESOURCE_DIR_OVERRIDE_VFS.getName(), file.getAbsolutePath());
String[] args = new String[]{"run-task", "v:/batch/batch-demo.task.xml", "-i", "{bizDate:'2024-12-08'}",
"-t","v:/worldline/temp"};
NopCliApplication app = new NopCliApplication();
app.setFactory(factory);
int ret = app.run(args);
assertEquals(0, ret);
System.getProperties().remove(CoreConfigs.CFG_RESOURCE_DIR_OVERRIDE_VFS.getName());
}

@Test
public void testApi() {
CoreInitialization.destroy();
File file = new File("C:\\workspace\\cardlite-product\\codegen\\_vfs");
System.setProperty(CoreConfigs.CFG_RESOURCE_DIR_OVERRIDE_VFS.getName(), file.getAbsolutePath());
String[] args = new String[]{"gen", "file:/C:/workspace/cardlite-sinopac/codegen/model/api/CAS-delta.api.xml",
"-t=v:/worldline/templates/api","-o", "C:/workspace/cardlite-sinopac/codegen/gen/api"};
String[] args = new String[]{"run-task", "v:/batch/batch-demo.task.xml", "-i", "{bizDate:'2024-12-08'}"};
NopCliApplication app = new NopCliApplication();
app.setFactory(factory);
int ret = app.run(args);
Expand Down

0 comments on commit 14d5054

Please sign in to comment.