package com.zipcoder.payment; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; public class CompareToTest { @Test public void compareToNegativeTest(){ Check myCheck = new Check("Dan Rivas", "1243567895"); PayPal pp = new PayPal("Shane McNaulty", "shane@loews.com"); int actual = myCheck.compareTo(pp); assertTrue(actual < 0); } @Test public void compareToPositiveTest(){ Check myCheck = new Check("Dan Rivas", "1243567895"); PayPal pp = new PayPal("Shane McNaulty", "shane@loews.com"); int actual = pp.compareTo(myCheck); assertTrue(actual > 0); } @Test public void compareToZeroTest(){ Payment myCheck = new Check("Dan Rivas", "1243567876"); Payment yourCheck = new Check("Dan Rivas", "1243567876"); int actual = myCheck.compareTo(yourCheck); assertEquals(0, actual); } }