Skip to content
This repository was archived by the owner on Jun 26, 2022. It is now read-only.

Commit eef0a5b

Browse files
implement new reasoning BDD steps
1 parent baffea8 commit eef0a5b

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

test/behaviour/typeql/TypeQLSteps.java

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
public class TypeQLSteps {
4040

4141
@Given("typeql define")
42+
@Given("reasoning schema")
4243
@Given("typeql define without commit")
4344
@Given("for each session, typeql define")
4445
public void typeql_define(String query) {
@@ -54,6 +55,7 @@ public void typeql_undefine(String query) {
5455
}
5556

5657
@Given("typeql insert")
58+
@Given("reasoning data")
5759
@Given("get answers of typeql insert")
5860
@Given("typeql insert without commit")
5961
@Given("for each session, typeql insert")
@@ -71,11 +73,12 @@ public void typeql_delete(String query) {
7173
}
7274

7375
@Given("for typeql query")
76+
@Given("reasoning query")
7477
@Given("get answers of typeql match")
7578
@Given("get answers of typeql match group")
7679
@Given("get answer of typeql match aggregate")
7780
@Given("get answers of typeql match group aggregate")
78-
@Given("answer set is equivalent for typeql query")
81+
@Given("verify answer set is equivalent for query")
7982
public void typeql_match(String query) {
8083
TypeQLQuery parsed = TypeQL.parseQuery(query);
8184
assertEquals(parsed, TypeQL.parseQuery(parsed.toString()));
@@ -103,15 +106,15 @@ public void do_nothing_with_throws(String query) {}
103106
@Given("connection has been opened")
104107
@Given("transaction is initialised")
105108
@Given("the integrity is validated")
109+
@Given("verifier is initialised")
110+
@Given("verify answers are complete")
111+
@Given("verify answers are sound")
106112
@Given("connection close all sessions")
107113
@Given("connection delete all databases")
108-
@Given("materialised database is completed")
109114
@Given("for each session, transaction closes")
110115
@Given("transaction commits; throws exception")
111116
@Given("connection does not have any database")
112117
@Given("for each session, transaction commits")
113-
@Given("all answers are correct in reasoned database")
114-
@Given("materialised and reasoned databases are the same size")
115118
public void do_nothing() {}
116119

117120
@Given("rules contain: {}")
@@ -121,17 +124,15 @@ public void do_nothing() {}
121124
@Given("number of groups is: {}")
122125
@Given("rules do not contain: {}")
123126
@Given("each answer does not satisfy")
124-
@Given("reasoned database is named: {}")
127+
@Given("verify answer size is: {}")
125128
@Given("connection create database: {}")
126129
@Given("session transaction is open: {}")
127-
@Given("materialised database is named: {}")
128130
@Given("session opens transaction of type: {}")
129-
@Given("answer size in reasoned database is: {}")
130131
@Given("connection open data session for database: {}")
131132
@Given("connection open schema session for database: {}")
132133
@Given("for each session, open transactions of type: {}")
133134
@Given("for each session, open transactions with reasoning of type: {}")
134-
@Given("answers are consistent across {} executions in reasoned database")
135+
@Given("verify answers are consistent across {} executions")
135136
public void do_nothing_with_arg(String ignored) {}
136137

137138
@Given("connection open data sessions for databases:")

0 commit comments

Comments
 (0)