Guest User

Untitled

a guest
Jan 12th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. package com.stravovani.stravovani;
  2.  
  3. import com.stravovani.stravovani.Service.CardService;
  4. import org.junit.Before;
  5. import org.junit.Test;
  6. import org.springframework.beans.factory.annotation.Autowired;
  7.  
  8. import static org.junit.Assert.*;
  9.  
  10. public class ConvertToDBformatTest {
  11.  
  12. @Autowired
  13. private CardService cardService;
  14.  
  15. @Before
  16. public void setUp() {
  17. cardService = new CardService();
  18. }
  19.  
  20. @Test
  21. public void testCard() throws Exception {
  22.  
  23. String actual = cardService.convertToDBformat(",00004502540214");
  24. String expected = "0061812694";
  25.  
  26. assertEquals(expected, actual);
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment