summaryrefslogtreecommitdiff
path: root/src/test/java/com/mavlushechka
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/com/mavlushechka')
-rw-r--r--src/test/java/com/mavlushechka/a1qa/BaseTest.java4
-rw-r--r--src/test/java/com/mavlushechka/a1qa/TestCase1.java26
2 files changed, 15 insertions, 15 deletions
diff --git a/src/test/java/com/mavlushechka/a1qa/BaseTest.java b/src/test/java/com/mavlushechka/a1qa/BaseTest.java
index 9ba4ce4..8db4cf2 100644
--- a/src/test/java/com/mavlushechka/a1qa/BaseTest.java
+++ b/src/test/java/com/mavlushechka/a1qa/BaseTest.java
@@ -1,8 +1,8 @@
package com.mavlushechka.a1qa;
import aquality.selenium.browser.AqualityServices;
-import com.mavlushechka.a1qa.utils.JsonParser;
-import com.mavlushechka.a1qa.utils.LoggerUtils;
+import com.mavlushechka.a1qa.framework.utils.JsonParser;
+import com.mavlushechka.a1qa.framework.utils.LoggerUtils;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeSuite;
diff --git a/src/test/java/com/mavlushechka/a1qa/TestCase1.java b/src/test/java/com/mavlushechka/a1qa/TestCase1.java
index a1477c5..289ea56 100644
--- a/src/test/java/com/mavlushechka/a1qa/TestCase1.java
+++ b/src/test/java/com/mavlushechka/a1qa/TestCase1.java
@@ -1,18 +1,18 @@
package com.mavlushechka.a1qa;
import aquality.selenium.browser.AqualityServices;
-import com.mavlushechka.a1qa.models.Attachment;
-import com.mavlushechka.a1qa.models.Comment;
-import com.mavlushechka.a1qa.models.Post;
-import com.mavlushechka.a1qa.models.User;
-import com.mavlushechka.a1qa.pages.FeedPage;
-import com.mavlushechka.a1qa.pages.HomePage;
-import com.mavlushechka.a1qa.pages.ProfilePage;
-import com.mavlushechka.a1qa.pages.SignInPage;
-import com.mavlushechka.a1qa.utils.JsonParser;
-import com.mavlushechka.a1qa.utils.LoggerUtils;
-import com.mavlushechka.a1qa.utils.StringUtils;
-import com.mavlushechka.a1qa.utils.VkApiUtils;
+import com.mavlushechka.a1qa.project.models.Attachment;
+import com.mavlushechka.a1qa.project.models.Comment;
+import com.mavlushechka.a1qa.project.models.Post;
+import com.mavlushechka.a1qa.project.models.User;
+import com.mavlushechka.a1qa.project.pages.FeedPage;
+import com.mavlushechka.a1qa.project.pages.HomePage;
+import com.mavlushechka.a1qa.project.pages.ProfilePage;
+import com.mavlushechka.a1qa.project.pages.SignInPage;
+import com.mavlushechka.a1qa.framework.utils.JsonParser;
+import com.mavlushechka.a1qa.framework.utils.LoggerUtils;
+import com.mavlushechka.a1qa.framework.utils.StringUtils;
+import com.mavlushechka.a1qa.project.utils.VkApiUtils;
import org.testng.Assert;
import org.testng.annotations.Test;
@@ -48,7 +48,7 @@ public class TestCase1 extends BaseTest {
Post post = new Post(VkApiUtils.createPost(postRandomText), user, postRandomText, null);
LoggerUtils.step("[UI] Check that post with the sent text from the correct user appeared on the wall without refreshing the page.");
Assert.assertTrue(profilePage.containsPost(post), "This is not the correct post.");
- Attachment picture = new Attachment(com.mavlushechka.a1qa.constants.Attachment.PHOTO, user.getId(), Integer.parseInt(JsonParser.parseData("testData", "vkontakte.photoFromAlbum.id")));
+ Attachment picture = new Attachment(com.mavlushechka.a1qa.project.constants.Attachment.PHOTO, user.getId(), Integer.parseInt(JsonParser.parseData("testData", "vkontakte.photoFromAlbum.id")));
LoggerUtils.step("[API] Edit the added post using API-request - change text and add(upload) a picture.");
Post editedPost = new Post(post.id(), user, post.message() + "[edited]", picture);
VkApiUtils.editPost(post, editedPost);