assertj / assertj-swing

Fluent assertions for Swing apps
Other
108 stars 52 forks source link

How to use it with Scala testing frameworks? #168

Closed freewind closed 8 years ago

freewind commented 9 years ago

Just found junit & testng support, how can I use it with some Scala testing frameworks like Specs2, or scalatest?

croesch commented 8 years ago

I never used Scala and I'm not really familiar with it. But you have a couple of options..

scalatest.org says:

By offering deep integration with tools such as JUnit[..], 
ScalaTest makes it easy to take your testing to
a higher, more productive level in new or existing Scala or Java projects.

So if you can use JUnit you should be able to use AssertJ Swing as well.

If not and all else fails, one has to provide assertj-swing-scala I guess :) Having a look at the TestNG and JUnit integration of AssertJ Swing should allow you to write a Scala integration.

Maybe someone else already uses AssertJ (Swing) with Scala and can provide some feedback. idk