Skip to content

Commit

Permalink
Fixed test to run on Mac OS
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed Nov 19, 2012
1 parent 670b46e commit f193101
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,15 @@ public static void testLongArray() throws Exception {
*/
public static void testNetworkList() throws Exception {
PropertyConverter conv=new PropertyConverters.NetworkInterfaceList();
Object tmp=conv.convert(null, List.class, "bela", "lo", false);

Object tmp;
try {
tmp=conv.convert(null, List.class, "bela", "lo", false);
}
catch(Throwable t) {
tmp=conv.convert(null, List.class, "bela", "lo0", false); // when running on Mac OS
}

Object str=conv.toString(tmp);
System.out.println("str = " + str);
assert str.equals("lo");
Expand Down

0 comments on commit f193101

Please sign in to comment.