From 5789f0321eca329bec9afdb8923f323cb6702f52 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 12 May 2017 16:53:50 +0300 Subject: fix tests configurations --- src/test/java/com/juick/tests/ApiTests.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/test') diff --git a/src/test/java/com/juick/tests/ApiTests.java b/src/test/java/com/juick/tests/ApiTests.java index 529abd6c..778cc7af 100644 --- a/src/test/java/com/juick/tests/ApiTests.java +++ b/src/test/java/com/juick/tests/ApiTests.java @@ -21,6 +21,7 @@ import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; +import org.mockito.Mockito; import org.mockito.MockitoAnnotations; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; @@ -32,6 +33,7 @@ import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.transaction.PlatformTransactionManager; import org.springframework.transaction.annotation.TransactionManagementConfigurer; +import ru.sape.Sape; import javax.inject.Inject; import java.lang.reflect.InvocationTargetException; @@ -114,6 +116,10 @@ public class ApiTests { public JuickProtocol juickProtocol() { return new JuickProtocol("http://localhost:8080/"); } + @Bean + public Sape sape() { + return Mockito.mock(Sape.class); + } } @Inject -- cgit v1.2.3