Java 类com.google.common.collect.SetsTest.Derived 实例源码

项目:guava-mock    文件:MapsTest.java   
public void testTreeMapDerived() {
  TreeMap<Derived, Integer> map = Maps.newTreeMap();
  assertEquals(Collections.emptyMap(), map);
  map.put(new Derived("foo"), 1);
  map.put(new Derived("bar"), 2);
  assertThat(map.keySet()).containsExactly(
      new Derived("bar"), new Derived("foo")).inOrder();
  assertThat(map.values()).containsExactly(2, 1).inOrder();
  assertNull(map.comparator());
}
项目:googles-monorepo-demo    文件:MapsTest.java   
public void testTreeMapDerived() {
  TreeMap<Derived, Integer> map = Maps.newTreeMap();
  assertEquals(Collections.emptyMap(), map);
  map.put(new Derived("foo"), 1);
  map.put(new Derived("bar"), 2);
  assertThat(map.keySet()).containsExactly(
      new Derived("bar"), new Derived("foo")).inOrder();
  assertThat(map.values()).containsExactly(2, 1).inOrder();
  assertNull(map.comparator());
}
项目:guava-libraries    文件:MapsTest.java   
public void testTreeMapDerived() {
  TreeMap<Derived, Integer> map = Maps.newTreeMap();
  assertEquals(Collections.emptyMap(), map);
  map.put(new Derived("foo"), 1);
  map.put(new Derived("bar"), 2);
  assertThat(map.keySet()).containsExactly(
      new Derived("bar"), new Derived("foo")).inOrder();
  assertThat(map.values()).containsExactly(2, 1).inOrder();
  assertNull(map.comparator());
}
项目:guava-libraries    文件:MapsTest.java   
public void testTreeMapDerived() {
  TreeMap<Derived, Integer> map = Maps.newTreeMap();
  assertEquals(Collections.emptyMap(), map);
  map.put(new Derived("foo"), 1);
  map.put(new Derived("bar"), 2);
  assertThat(map.keySet()).containsExactly(
      new Derived("bar"), new Derived("foo")).inOrder();
  assertThat(map.values()).containsExactly(2, 1).inOrder();
  assertNull(map.comparator());
}
项目:guava    文件:MapsTest.java   
public void testTreeMapDerived() {
  TreeMap<Derived, Integer> map = Maps.newTreeMap();
  assertEquals(Collections.emptyMap(), map);
  map.put(new Derived("foo"), 1);
  map.put(new Derived("bar"), 2);
  assertThat(map.keySet()).containsExactly(new Derived("bar"), new Derived("foo")).inOrder();
  assertThat(map.values()).containsExactly(2, 1).inOrder();
  assertNull(map.comparator());
}
项目:guava    文件:MapsTest.java   
public void testTreeMapDerived() {
  TreeMap<Derived, Integer> map = Maps.newTreeMap();
  assertEquals(Collections.emptyMap(), map);
  map.put(new Derived("foo"), 1);
  map.put(new Derived("bar"), 2);
  assertThat(map.keySet()).containsExactly(new Derived("bar"), new Derived("foo")).inOrder();
  assertThat(map.values()).containsExactly(2, 1).inOrder();
  assertNull(map.comparator());
}