CheckTest.java 600B

123456789101112131415161718192021222324252627
  1. package com.zipcoder.payment;
  2. import org.junit.Assert;
  3. import org.junit.Before;
  4. import org.junit.Test;
  5. public class CheckTest {
  6. private Check testCheck;
  7. @Before
  8. public void setUp() {
  9. testCheck = new Check();
  10. testCheck.setId(12345678910L);
  11. testCheck.setPayerName("Biggie");
  12. testCheck.setRoutingNumber("623852453");
  13. testCheck.setAccountNumber("1234567");
  14. }
  15. @Test
  16. public void testId() {
  17. long expectedId = 12345678910L;
  18. testCheck.setId(12345678910L);
  19. Assert.assertEquals(expectedId, testCheck.getId());
  20. }
  21. }