> @@ -69,6 +74,24 @@ public void testMultiMax1() {
>        assertEquals(TemplateBuilderImpl.multiMax(Ordering.natural(), values), 
> ImmutableList.of("3"));
>     }
>     
> +   public void testMultiMax2() {
> +      // check with max buried in the middle
> +      Iterable<String> values = ImmutableList.of("1", "3", "2", "2");
> +      assertEquals(TemplateBuilderImpl.multiMax(Ordering.natural(), values), 
> ImmutableList.of("3"));
> +   }
> +
> +   public void testMultiMaxNull() {
> +      // we rely on checking nulls in some Orderings, so assert it also does 
> what we expect
> +      // (unfortunately can't use ImmutableList here as that doesn't allow 
> nulls)
> +      Iterable<String> values = Arrays.asList("1", "3", null, "2", "2");
> +      
> assertEquals(TemplateBuilderImpl.multiMax(Ordering.natural().nullsLast(), 
> values), Arrays.asList((Object)null));
> +   }
> +   
> +   public void testMultiMaxNull1() {

`testMultiMaxNulls`?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/166/files#r6720681

Reply via email to