From 5e78833665224998c8a35d4f8ecd920db39bddaf Mon Sep 17 00:00:00 2001 From: nizewen <1090414202@qq.com> Date: Mon, 4 Nov 2024 14:17:32 +0800 Subject: [PATCH] test_new --- .../java/com/example/demo/DemoApplication.java | 9 +++++++++ .../java/com/example/demo/handler/config.java | 17 +++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 src/main/java/com/example/demo/handler/config.java diff --git a/src/main/java/com/example/demo/DemoApplication.java b/src/main/java/com/example/demo/DemoApplication.java index 325bd9e..38061d0 100644 --- a/src/main/java/com/example/demo/DemoApplication.java +++ b/src/main/java/com/example/demo/DemoApplication.java @@ -26,4 +26,13 @@ public class DemoApplication { public static void main(String[] args) { SpringApplication.run(DemoApplication.class, args); } + + public class ManipulationTest extends BasicJBehaveTest { + @Override + public InjectableStepsFactory stepsFactory() { + - Map<String, Object> state = new HashMap<String, + Object>(); + + Map<String, Object> state = new HashMap<>(); + return new InstanceStepsFactory(configuration(), + new SharedSteps(state), } \ No newline at end of file diff --git a/src/main/java/com/example/demo/handler/config.java b/src/main/java/com/example/demo/handler/config.java new file mode 100644 index 0000000..dc75e36 --- /dev/null +++ b/src/main/java/com/example/demo/handler/config.java @@ -0,0 +1,17 @@ +package com.example.demo.handler; + +/** + * @author HongZe + * @date 2024骞�11鏈�04鏃� 14:16 + * @Description + */ +public class config { + type TaskConfig struct { + Count Count `yaml:"count"` + ExecuteCommand ExecuteCommand `yaml:"exec"` + Variables map[string]string `yaml:"variables"` + + EnvFile string `yaml:"env_file"` + Secrets map[string]string `yaml:"secrets"` + Storage Storage `yaml:"storage"` + } +} -- GitLab