Advertisement
spiny94

Untitled

Sep 12th, 2015
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. public void test_initialValue() {
  2. int c1 = b1.createAccount("John", 5, 500.5);
  3. Account a1 = null;
  4. try{
  5. a1 = b1.getAccount(c1);
  6. }
  7. catch(InvalidCode ic) {
  8. fail("code 1 is valid");
  9. }
  10. String[] s = a1.toString().split("\\s*,\\s*");
  11. assertEquals("500.5", s[3]);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement