Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

start exam implementation: with the notate method, driven by test #5

Open
wants to merge 11 commits into
base: develop
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
first test with redis server launched with success
  • Loading branch information
bkuchcik committed Jun 6, 2018
commit dd61d5b0c47074a72431ca5d9aab9c1b7e3a826c
3 changes: 3 additions & 0 deletions persistence/build.gradle
Original file line number Diff line number Diff line change
@@ -3,6 +3,9 @@ apply plugin: 'kotlin-spring'
dependencies {
compile project(':interactors')
compile group: 'org.springframework.data', name: 'spring-data-redis', version: '2.0.7.RELEASE'
compile group: 'org.apache.commons', name: 'commons-pool2', version: '2.5.0'
compile group: 'redis.clients', name: 'jedis', version: '2.9.0'

testCompile 'it.ozimov:embedded-redis:0.7.2'
testCompile group: 'org.springframework', name: 'spring-test', version: '5.0.6.RELEASE'
testImplementation(
Original file line number Diff line number Diff line change
@@ -6,13 +6,15 @@ import org.junit.jupiter.api.BeforeAll
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.TestInstance
import org.junit.jupiter.api.TestInstance.*
import org.junit.jupiter.api.extension.ExtendWith
import org.junit.runner.RunWith
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.test.context.ContextConfiguration
import org.springframework.test.context.junit.jupiter.SpringExtension
import org.springframework.test.context.junit4.SpringRunner
import redis.embedded.RedisServer

@RunWith(SpringRunner::class)
@ExtendWith(SpringExtension::class)
@ContextConfiguration(classes = [RedisConfiguration::class, RedisEmbededConfiguration::class])
@TestInstance(Lifecycle.PER_CLASS)
class EmbededRedisTest {