@Test public void testToString() { Ticket t1 = new WalkupTicket(222); String output = t1.toString(); assertTrue(t1.toString().equals("Number: 222, Price: 50.0")); }
@Test public void testGetPrice() { Ticket t1 = new WalkupTicket(111); Assert.assertEquals(50.0, t1.getPrice(), 0); }