summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/mavlushechka/a1qa/constants/Status.java13
-rw-r--r--src/main/resources/testData.json8
2 files changed, 14 insertions, 7 deletions
diff --git a/src/main/java/com/mavlushechka/a1qa/constants/Status.java b/src/main/java/com/mavlushechka/a1qa/constants/Status.java
new file mode 100644
index 0000000..a319f39
--- /dev/null
+++ b/src/main/java/com/mavlushechka/a1qa/constants/Status.java
@@ -0,0 +1,13 @@
+package com.mavlushechka.a1qa.constants;
+
+public enum Status {
+
+ OK(200), CREATED(201), NOT_FOUND(404);
+
+ public final int code;
+
+ Status(int code) {
+ this.code = code;
+ }
+
+}
diff --git a/src/main/resources/testData.json b/src/main/resources/testData.json
index f3fc4ca..6403d5b 100644
--- a/src/main/resources/testData.json
+++ b/src/main/resources/testData.json
@@ -3,12 +3,10 @@
{
"steps": [
{
- "requestMethod": "GET",
- "responseCode": "200"
+ "requestMethod": "GET"
},
{
"requestMethod": "GET",
- "responseCode": "200",
"post": {
"id": "99",
"userId": "10",
@@ -18,7 +16,6 @@
},
{
"requestMethod": "GET",
- "responseCode": "404",
"isResponseBodyEmpty": "true",
"post": {
"id": "150"
@@ -26,14 +23,12 @@
},
{
"requestMethod": "POST",
- "responseCode": "201",
"post": {
"userId": "1"
}
},
{
"requestMethod": "GET",
- "responseCode": "200",
"user": {
"id": "5",
"name": "Chelsey Dietrich",
@@ -60,7 +55,6 @@
},
{
"requestMethod": "GET",
- "responseCode": "200",
"user": {
"id": "5"
}