Basic Java JUnit Test Setup

Here is a sample WebDriver Java test using the JUnit framework: As we can see from my earlier C# Example, there isn’t a world of difference between the two. There is no corresponding Test Fixture attribute but there are attributes for Before, After and Test. Similar to NUnit, the Before method gets executed before every […]

Is your JUnit Assert class now deprecated?

Is your JUnit Assert class now deprecated? Well here’s how to fix it. JUnit have moved things around, and as a result the Assert class is now in a different location as and from JUnit 4.11 But fear not, rectifying this is a simple one-liner. Simply change your import statement from to this: Simples!