Created
March 20, 2016 20:35
-
-
Save zaharidichev/6a95d8e77a1c4ea58dc4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.airconomist.searchservice; | |
import com.airconomist.searchservice.connector.skypicker.dto.SearchResult; | |
import org.springframework.web.client.RestTemplate; | |
/** | |
* @author Zahari Dichev <zaharidichev@gmail.com>. | |
*/ | |
public class TestMe { | |
public static void main(String[] args) { | |
String url = "https://api.skypicker.com/flights?flyFrom=LGW,LTN,LCY,STN,LHR&to=ZRH&dateFrom=21/03/2016&dateTo=28/03/2016&returnFrom=23/03/2016&returnTo=30/03/2016&directFlights=1&curr=gbp&adults=3&children=0&infants=0&typeFlight=round&limit=2000&partner=airconomist"; | |
RestTemplate template = new RestTemplate(); | |
for(int i = 0;i < 10000; i++) { | |
SearchResult result = template.getForObject(url, SearchResult.class); | |
System.out.println("Try " + i + " " + result.getTime()); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment