Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void test_initialValue() {
- int c1 = b1.createAccount("John", 5, 500.5);
- Account a1 = null;
- try{
- a1 = b1.getAccount(c1);
- }
- catch(InvalidCode ic) {
- fail("code 1 is valid");
- }
- String[] s = a1.toString().split("\\s*,\\s*");
- assertEquals("500.5", s[3]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement