Advertisement
Guest User

Untitled

a guest
Aug 31st, 2015
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. public static void main(String args[]) {
  2. final List<String> test1 = Lists.newArrayList(" name : Alice",
  3. "country: US",
  4.  
  5. System.out.println(parsePerson(test1));
  6.  
  7. final List<String> test2 = Lists.newArrayList(" name : Bob",
  8. " locale: de_DE",
  9.  
  10. System.out.println(parsePerson(test2));
  11.  
  12. final List<String> test3 = Lists.newArrayList(" name : Bob",
  13. " locale: de_DE",
  14. "emailAddress:[email protected]"); // incorrect key
  15.  
  16. System.out.println(parsePerson(test3));
  17.  
  18. final List<String> test4 = Lists.newArrayList(" nme : Bob", // incorrect key
  19. " locale: de_DE",
  20. "emailAddress:[email protected]");
  21.  
  22. System.out.println(parsePerson(test4));
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement