public void testBuilder_orderEntriesByValueFails() { ImmutableSortedMap.Builder<String, Integer> builder = ImmutableSortedMap.naturalOrder(); try { builder.orderEntriesByValue(Ordering.natural()); fail("Expected UnsupportedOperationException"); } catch (UnsupportedOperationException expected) { } }
public void testBuilder_orderEntriesByValueFails() { ImmutableSortedMap.Builder<String, Integer> builder = ImmutableSortedMap.naturalOrder(); try { builder.orderEntriesByValue(Ordering.natural()); fail("Expected UnsupportedOperationException"); } catch (UnsupportedOperationException expected) {} }