Java Code Examples for com.google.common.collect.Synchronized.SynchronizedCollection

The following are top voted examples for showing how to use com.google.common.collect.Synchronized.SynchronizedCollection. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: guava-mock   File: SynchronizedMapTest.java   View source code 4 votes vote down vote up
public void testValues() {
  Map<String, Integer> map = create();
  Collection<Integer> values = map.values();
  assertTrue(values instanceof SynchronizedCollection);
  assertSame(mutex, ((SynchronizedCollection<?>) values).mutex);
}
 
Example 2
Project: googles-monorepo-demo   File: SynchronizedMapTest.java   View source code 4 votes vote down vote up
public void testValues() {
  Map<String, Integer> map = create();
  Collection<Integer> values = map.values();
  assertTrue(values instanceof SynchronizedCollection);
  assertSame(mutex, ((SynchronizedCollection<?>) values).mutex);
}
 
Example 3
Project: guava-libraries   File: SynchronizedMapTest.java   View source code 4 votes vote down vote up
public void testValues() {
  Map<String, Integer> map = create();
  Collection<Integer> values = map.values();
  assertTrue(values instanceof SynchronizedCollection);
  assertSame(mutex, ((SynchronizedCollection<?>) values).mutex);
}
 
Example 4
Project: guava   File: SynchronizedMapTest.java   View source code 4 votes vote down vote up
public void testValues() {
  Map<String, Integer> map = create();
  Collection<Integer> values = map.values();
  assertTrue(values instanceof SynchronizedCollection);
  assertSame(mutex, ((SynchronizedCollection<?>) values).mutex);
}
 
Example 5
Project: guava   File: SynchronizedMapTest.java   View source code 4 votes vote down vote up
public void testValues() {
  Map<String, Integer> map = create();
  Collection<Integer> values = map.values();
  assertTrue(values instanceof SynchronizedCollection);
  assertSame(mutex, ((SynchronizedCollection<?>) values).mutex);
}