From a86b5ada5b07ec18671983b0c772063815cac334 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 17 Oct 2017 22:43:27 +0300 Subject: tests refatoring now api and www tests uses embedded db --- .../src/test/java/com/juick/service/MessageServiceTest.java | 2 +- .../src/test/java/com/juick/service/MockImagesService.java | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'juick-server-jdbc/src/test/java') diff --git a/juick-server-jdbc/src/test/java/com/juick/service/MessageServiceTest.java b/juick-server-jdbc/src/test/java/com/juick/service/MessageServiceTest.java index f5701b0c..0577e009 100644 --- a/juick-server-jdbc/src/test/java/com/juick/service/MessageServiceTest.java +++ b/juick-server-jdbc/src/test/java/com/juick/service/MessageServiceTest.java @@ -59,7 +59,7 @@ public class MessageServiceTest extends AbstractJUnit4SpringContextTests { @Inject private PMQueriesService pmQueriesService; - int ugnichId, freefdId, mid; + static int ugnichId, freefdId, mid; private static boolean setUpIsDone = false; diff --git a/juick-server-jdbc/src/test/java/com/juick/service/MockImagesService.java b/juick-server-jdbc/src/test/java/com/juick/service/MockImagesService.java index 6f47de91..33cc1243 100644 --- a/juick-server-jdbc/src/test/java/com/juick/service/MockImagesService.java +++ b/juick-server-jdbc/src/test/java/com/juick/service/MockImagesService.java @@ -5,9 +5,6 @@ import com.juick.Message; import com.juick.Photo; import org.springframework.util.StringUtils; -import java.io.File; -import java.nio.file.Paths; - public class MockImagesService implements ImagesService { @Override public void setAttachmentMetadata(String imgDir, String baseUrl, Message msg) throws Exception { -- cgit v1.2.3