package com.plannaplan.services; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; import static org.junit.jupiter.api.Assertions.assertTrue; import java.io.IOException; import java.util.concurrent.ExecutionException; import com.plannaplan.models.UserApiResponse; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; @RunWith(SpringRunner.class) @SpringBootTest @ContextConfiguration public class UsosApiServiceTest { @Autowired private UsosApiService service; @Test @Ignore public void shouldReturnPersonalData() throws IOException, InterruptedException, ExecutionException { final UserApiResponse response = this.service.getUserData("499054"); assertTrue(response.getName().equals("Marcin")); assertTrue(response.getSurname().equals("Woźniak")); } }