assertSame(comparator, map.comparator());
}
}
public void testNullPointers() throws Exception {
NullPointerTester tester = new NullPointerTester();
tester.testAllPublicStaticMethods(ImmutableSortedMap.class);
tester.testAllPublicInstanceMethods(
ImmutableSortedMap.<String, Integer>naturalOrder());
if (false) {
// these tests aren't included due to a bug in NullPointerTester
// TODO: fix that bug, add these tests
tester.testAllPublicInstanceMethods(ImmutableSortedMap.of());
tester.testAllPublicInstanceMethods(ImmutableSortedMap.of("one", 1));
tester.testAllPublicInstanceMethods(
ImmutableSortedMap.of("one", 1, "two", 2, "three", 3));
}
}