Commit cc32734e by Patryk Czarnik

Test pobierania jako unit test

parent 09b85c99
package com.example.waluty;
import static org.junit.Assert.*;
import org.junit.Test;
import java.time.LocalDate;
public class ObslugaNBPTest {
@Test
public void pobierzBiezaceKursy() {
ExchangeRatesTable tabela = ObslugaNBP.pobierzBiezaceKursy();
assertEquals("A", tabela.getTable());
// uwaga, to działa w dni powszednie między 12:00 a 23:59 :-))
assertEquals(LocalDate.now(), tabela.getEffectiveDate());
}
@Test
public void pobierzKursyHistoryczne() {
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment