} catch (IllegalArgumentException e) {
}
}
public void testCompareTo() {
JaxRsUriTemplateProcessor p1 = new JaxRsUriTemplateProcessor();
JaxRsUriTemplateProcessor p2 = new JaxRsUriTemplateProcessor();
p1.compile("/path1/path2");
p2.compile("/path1/path2");
assertTrue(p1.compareTo(p2) == 0);
p1.compile("/path2/path1");
p2.compile("/path1/path2");
assertTrue(p1.compareTo(p2) == 0);
p1.compile("/path1/path2/path3");
p2.compile("/path1/path2");
assertTrue(p1.compareTo(p2) > 0);
p1.compile("/path1/path2");
p2.compile("/path1/path2/path3");
assertTrue(p1.compareTo(p2) < 0);
p1.compile("/path1/path2/{var1}");
p2.compile("/path1/path2/{var1}");
assertTrue(p1.compareTo(p2) == 0);
p1.compile("/path1/path2/{var1}");
p2.compile("/path1/path2/{variable1}");
assertTrue(p1.compareTo(p2) == 0);
p1.compile("/path1/path2/{var1}");
p2.compile("/path1/{variable1}/path2");
assertTrue(p1.compareTo(p2) == 0);
p1.compile("/path1/path2/path3/{var1}");
p2.compile("/path1/path2/{var1}");
assertTrue(p1.compareTo(p2) > 0);
p1.compile("/path1/path2/{var1}");
p2.compile("/path1/path2/path3/{var1}");
assertTrue(p1.compareTo(p2) < 0);
p1.compile("/path1/path2/{var1}/{var2}");
p2.compile("/path1/path2/{var1}");
assertTrue(p1.compareTo(p2) > 0);
p1.compile("/path1/path2/{var1}");
p2.compile("/path1/path2/{var1}/{var2}");
assertTrue(p1.compareTo(p2) < 0);
p1.compile("/path1/path2/path3/{var1}");
p2.compile("/path1/path2/{var1}/{var2}");
assertTrue(p1.compareTo(p2) > 0);
p1.compile("/path1/path2/{var1}/{var2}");
p2.compile("/path1/path2/path3/{var1}");
assertTrue(p1.compareTo(p2) < 0);
p1.compile("/path1/path2/{var1}/{var2:.*}");
p2.compile("/path1/path2/{var1}/{var2:.*}");
assertTrue(p1.compareTo(p2) == 0);
p1.compile("/path1/path2/{var1}/{var2:.*}");
p2.compile("/path1/path2/{var1}/{var2}");
assertTrue(p1.compareTo(p2) > 0);
p1.compile("/path1/path2/{var1}/{var2}");
p2.compile("/path1/path2/{var1}/{var2:.*}");
assertTrue(p1.compareTo(p2) < 0);
p1.compile("/path1/path2/{var1:.*}/{var2}");
p2.compile("/path1/path2/{var1}/{var2:.*}");
assertTrue(p1.compareTo(p2) == 0);
}