Skip to content

Commit

Permalink
Closes #107 - Re-commented out TestServiceSpec.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
TebaleloS committed Jan 23, 2024
1 parent 402989a commit d882b72
Showing 1 changed file with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ import org.springframework.boot.test.context.SpringBootTest
import org.springframework.test.context.TestContextManager


@SpringBootTest
class TestServiceSpec extends AnyFlatSpec with Matchers {

@Autowired
private var testService: TestService = _

// Makes the above autowired work
new TestContextManager(this.getClass).prepareTestInstance(this)

"TestService" should "say greetings" in {
testService.getMessage shouldEqual "The service says: alfa 'ALFA'"
}
}
//@SpringBootTest
//class TestServiceSpec extends AnyFlatSpec with Matchers {
//
// @Autowired
// private var testService: TestService = _
//
// // Makes the above autowired work
// new TestContextManager(this.getClass).prepareTestInstance(this)
//
// "TestService" should "say greetings" in {
// testService.getMessage shouldEqual "The service says: alfa 'ALFA'"
// }
//}

0 comments on commit d882b72

Please sign in to comment.