public static void main(String[] args) throws DataFormatException { String line = "manager AA 001000.00"; Account manager = new Account(line); System.out.println(manager.toString()); Account copy = new Account(manager.toString()); System.out.println(line); }
@Test public void testWrite() throws DataFormatException { Account account = new Account("manager", Account.Admin, 100); assertTrue(account.equals(new Account(account.toString()))); }
@Test public void testRead() throws DataFormatException { String line = "manager AA 001000.00"; Account account = new Account(line); assertEquals(line, account.toString()); }