some code samples, various examples of simple modeling ideas and some minor algorithms.

AccountTest.java 364B

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