Created
July 5, 2018 07:53
-
-
Save alexmoleiro/ad1a58798622fdff54a9826cea7709c9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
@Test | |
void return_hours_for_all_postal_codes() { | |
CorreosAdaptor correosAdaptor = new CorreosAdaptor(); | |
IntStream.rangeClosed(35000, 35302). | |
boxed().peek(i-> System.out.println(i)). | |
map(i->correosAdaptor.getArrayOfOficina(String.valueOf(i))). | |
forEach(oficina->oficina.getItem().stream().filter(x->!x.getHorarioF().equals("SIN SERVICIO")).forEach( | |
o-> { | |
System.out.println(o.getHorarioF()); | |
System.out.println(o.getHorarioLV()); | |
System.out.println(o.getHorarioS()); | |
}) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment