package cse131x; import static org.junit.Assert.*; import org.junit.Test; public class AccountTest { @Test public void testStuff() { Account a = new Account("me", 100); assertEquals("me: $100.00", a.toString()); Account b = new Account("bob", 50); assertEquals("bob: $50.00", b.toString()); assertEquals(50, b.getBalance()); b.deposit(25); assertEquals(75, b.getBalance()); } @Test(expected=IllegalArgumentException.class) public void testBadDeposit() { Account a = new Account("me", 100); a.deposit(-40); } }