From af34fc9258e1eb6e5ca97db5719decd4f71d2518 Mon Sep 17 00:00:00 2001 From: Anton Romanov Date: Tue, 7 Jun 2022 17:01:07 +0400 Subject: [PATCH] fix tests --- build.gradle | 1 + src/test/java/{ru/ulstu => }/DbStoreTest.java | 2 -- src/test/java/{ru/ulstu => }/FileStoreTest.java | 2 -- src/test/java/{ru/ulstu => }/UserServiceTest.java | 3 +-- 4 files changed, 2 insertions(+), 6 deletions(-) rename src/test/java/{ru/ulstu => }/DbStoreTest.java (97%) rename src/test/java/{ru/ulstu => }/FileStoreTest.java (97%) rename src/test/java/{ru/ulstu => }/UserServiceTest.java (95%) diff --git a/build.gradle b/build.gradle index cf6eaa4..a303593 100644 --- a/build.gradle +++ b/build.gradle @@ -8,6 +8,7 @@ jar { archivesBaseName = 'example-web' } + group 'ru.ulstu' version '1.0-SNAPSHOT' diff --git a/src/test/java/ru/ulstu/DbStoreTest.java b/src/test/java/DbStoreTest.java similarity index 97% rename from src/test/java/ru/ulstu/DbStoreTest.java rename to src/test/java/DbStoreTest.java index 286e204..43105ab 100644 --- a/src/test/java/ru/ulstu/DbStoreTest.java +++ b/src/test/java/DbStoreTest.java @@ -1,5 +1,3 @@ -package ru.ulstu; - import org.junit.Assert; import org.junit.Before; import org.junit.Test; diff --git a/src/test/java/ru/ulstu/FileStoreTest.java b/src/test/java/FileStoreTest.java similarity index 97% rename from src/test/java/ru/ulstu/FileStoreTest.java rename to src/test/java/FileStoreTest.java index 316d89e..be72c4f 100644 --- a/src/test/java/ru/ulstu/FileStoreTest.java +++ b/src/test/java/FileStoreTest.java @@ -1,5 +1,3 @@ -package ru.ulstu; - import org.junit.After; import org.junit.Assert; import org.junit.Before; diff --git a/src/test/java/ru/ulstu/UserServiceTest.java b/src/test/java/UserServiceTest.java similarity index 95% rename from src/test/java/ru/ulstu/UserServiceTest.java rename to src/test/java/UserServiceTest.java index 7356d3e..a783c9e 100644 --- a/src/test/java/ru/ulstu/UserServiceTest.java +++ b/src/test/java/UserServiceTest.java @@ -1,9 +1,8 @@ -package ru.ulstu; - import org.junit.Test; import org.mockito.Mock; import org.mockito.Mockito; import org.powermock.api.mockito.PowerMockito; +import ru.ulstu.UserService; import ru.ulstu.entity.User; import ru.ulstu.exception.UserNotValidException; import ru.ulstu.persistence.FileStore;