瀏覽代碼

more tests

Vincent Sima 8 年之前
父節點
當前提交
da80d47568
共有 1 個文件被更改,包括 22 次插入0 次删除
  1. 22
    0
      AccountTest.java

+ 22
- 0
AccountTest.java 查看文件

@@ -0,0 +1,22 @@
1
+
2
+
3
+import org.junit.Assert;
4
+import org.junit.After;
5
+import org.junit.Before;
6
+import org.junit.Test;
7
+
8
+
9
+public class AccountTest
10
+{
11
+    @Test
12
+    public void balanceTest1(){
13
+        Account account = new Account();
14
+        account.deposit(1000);
15
+        int actual = account.balance();
16
+        int expected = 1000;
17
+        Assert.assertEquals(actual,expected);
18
+
19
+}
20
+
21
+
22
+}