| 12345678910111213141516171819202122232425262728293031323334 |
-
-
- import static org.junit.Assert.*;
- import org.junit.After;
- import org.junit.Before;
- import org.junit.Test;
-
- /**
- * The test class AccountTest.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class AccountTest
- {
- Account account;
- @Before
- public void setUp(){
- account = new Account();
- }
-
- @Test
- public void depositTest(){
- account.deposit(10);
- int expected = 10;
- int actual = account.balance();
-
- assertEquals(expected, actual);
-
- }
-
-
- }
|