I had written components using Binding.scala and they're working fine for me. Now I want to unit test them using ScalaTest. How to unit test them?
I had taken reference from Binding.scala's unit tests. However it's not working for me as get and valuemethods are not accessible.
In current version of
Binding.scala(11.8.1) you can use this method for unit testing:Unfortunately, you couldn't write such (more performant?) tests:
because of
Binding.get/Binding.valueis private/protected. I filled issue about this https://github.com/ThoughtWorksInc/Binding.scala/issues/217