You are to use Eclipse to construct and run using JUnit
a unit test CardTest.java
for Card.java which tests all 4 methods
from the previous assignment.
The JUnit test case must run successfully.
Here is a PDF tutorial and a HTML tutorial on JUnit using Eclipse.
You are required to generate an AllTests.java driver.
Be sure to check the generate main box, so that
AllTests.java can be run standalone.
isAce(): aceClubs.isAce() should return True;twoClubs.isAce() should return False; compareRank(Card c):aceClubs.compareRank(twoHearts) should return -1;sameSuit(Card c):twoClubs.sameSuit(twoHearts) should return False twoClubs.sameSuit(aceClubs) should return True.