From af81e8dd2b46097fbe74d0013d65660b07de3b3e Mon Sep 17 00:00:00 2001 From: Janne Valkealahti Date: Sun, 27 Oct 2019 10:15:57 +0000 Subject: [PATCH] Add missing test files for mongo and redis - There was an oversight for #588 and its pr which only added data15.json file for jpa. This commit adds those for mongodb and redis. --- .../mongodb/src/test/resources/data15.json | 39 +++++++++++++++++++ .../redis/src/test/resources/data15.json | 39 +++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 spring-statemachine-data/mongodb/src/test/resources/data15.json create mode 100644 spring-statemachine-data/redis/src/test/resources/data15.json diff --git a/spring-statemachine-data/mongodb/src/test/resources/data15.json b/spring-statemachine-data/mongodb/src/test/resources/data15.json new file mode 100644 index 00000000..916e6a17 --- /dev/null +++ b/spring-statemachine-data/mongodb/src/test/resources/data15.json @@ -0,0 +1,39 @@ +[ + { + "@id": "3", + "_class": "org.springframework.statemachine.data.mongodb.MongoDbRepositoryAction", + "spel": "false" + }, + { + "@id": "4", + "_class": "org.springframework.statemachine.data.mongodb.MongoDbRepositoryAction", + "spel": "false" + }, + { + "@id": "5", + "_class": "org.springframework.statemachine.data.mongodb.MongoDbRepositoryAction", + "spel": "false" + }, + { + "@id": "1", + "_class": "org.springframework.statemachine.data.mongodb.MongoDbRepositoryState", + "initial": true, + "state": "S1", + "exitActions": ["3"] + }, + { + "@id": "2", + "_class": "org.springframework.statemachine.data.mongodb.MongoDbRepositoryState", + "initial": false, + "state": "S2", + "entryActions": ["4"], + "stateActions": ["5"] + }, + { + "_class": "org.springframework.statemachine.data.mongodb.MongoDbRepositoryTransition", + "source": "1", + "target": "2", + "event": "E1", + "kind": "EXTERNAL" + } +] \ No newline at end of file diff --git a/spring-statemachine-data/redis/src/test/resources/data15.json b/spring-statemachine-data/redis/src/test/resources/data15.json new file mode 100644 index 00000000..b995e593 --- /dev/null +++ b/spring-statemachine-data/redis/src/test/resources/data15.json @@ -0,0 +1,39 @@ +[ + { + "@id": "3", + "_class": "org.springframework.statemachine.data.redis.RedisRepositoryAction", + "spel": "false" + }, + { + "@id": "4", + "_class": "org.springframework.statemachine.data.redis.RedisRepositoryAction", + "spel": "false" + }, + { + "@id": "5", + "_class": "org.springframework.statemachine.data.redis.RedisRepositoryAction", + "spel": "false" + }, + { + "@id": "1", + "_class": "org.springframework.statemachine.data.redis.RedisRepositoryState", + "initial": true, + "state": "S1", + "exitActions": ["3"] + }, + { + "@id": "2", + "_class": "org.springframework.statemachine.data.redis.RedisRepositoryState", + "initial": false, + "state": "S2", + "entryActions": ["4"], + "stateActions": ["5"] + }, + { + "_class": "org.springframework.statemachine.data.redis.RedisRepositoryTransition", + "source": "1", + "target": "2", + "event": "E1", + "kind": "EXTERNAL" + } +] \ No newline at end of file