File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/test/scala/com/sfxcode/nosql/mongo/dao Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,13 @@ import better.files.{File, Resource}
44import com .sfxcode .nosql .MongoImplicits
55import com .sfxcode .nosql .mongo ._
66import com .sfxcode .nosql .mongo .model .Student
7+ import com .sfxcode .nosql .mongo .test .UniversityDatabase
78import com .sfxcode .nosql .mongo .test .UniversityDatabase .{GradeDAO , StudentDAO }
89import org .specs2 .mutable .Specification
9- import org .specs2 .specification .BeforeAll
10+ import org .specs2 .specification .core .Fragments
11+ import org .specs2 .specification .{AfterAll , AfterSpec , BeforeAll }
1012
11- class StudentDAOSpec extends Specification with BeforeAll with MongoImplicits {
13+ class StudentDAOSpec extends Specification with BeforeAll with AfterAll with MongoImplicits {
1214 sequential
1315
1416 override def beforeAll (): Unit = {
@@ -34,4 +36,7 @@ class StudentDAOSpec extends Specification with BeforeAll with MongoImplicits {
3436
3537 }
3638 }
39+
40+ override def afterAll (): Unit =
41+ UniversityDatabase .LocalTestServer .shutdown()
3742}
You can’t perform that action at this time.
0 commit comments