1234567891011121314151617181920212223 |
-
- import static org.junit.Assert.*;
- import org.junit.After;
- import org.junit.Before;
- import org.junit.Test;
-
- public class CurrencyConverterTest {
-
- @Test
- public void usDollarToEuroTest1(){
- //Given
- CurrencyConverter curr = new CurrencyConverter();
- double value = 1;
- //Then
- double expected = (double)0.94;
- double actual = curr.convertCurrency(1.00, 0.94, 1.00);
- //Assert
- assertEquals(expected,actual,0);
- }
-
-
- }
|