com.google.common.collect.testing.SampleElements Java Examples

The following examples show how to use com.google.common.collect.testing.SampleElements. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MapTestFactory.java    From caffeine with Apache License 2.0 5 votes vote down vote up
@Override
public SampleElements<Map.Entry<String, CompletableFuture<String>>> samples() {
  return new SampleElements<>(
      Helpers.mapEntry("one", JAN),
      Helpers.mapEntry("two", FEB),
      Helpers.mapEntry("three", MARCH),
      Helpers.mapEntry("four", APRIL),
      Helpers.mapEntry("five", MAY));
}
 
Example #2
Source File: GuavaTest.java    From Chronicle-Map with Apache License 2.0 5 votes vote down vote up
@Override
public SampleElements<Map.Entry<String, String>> samples() {
    return SampleElements.mapEntries(
            new SampleElements<>("key1", "key2", "key3", "key4", "key5"),
            new SampleElements<>("val1", "val2", "val3", "val4", "val5")
    );
}
 
Example #3
Source File: TestModelGenerator.java    From rdf4j with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Override
public SampleElements<Statement> samples() {
	return new SampleElements<>(st0, st1, st2, st3, st4);
}
 
Example #4
Source File: LinkedDequeTests.java    From caffeine with Apache License 2.0 4 votes vote down vote up
@Override
public SampleElements<LinkedValue> samples() {
  return new SampleElements<LinkedValue>(b, a, c, d, e);
}
 
Example #5
Source File: ObjectHashSetConformanceTest.java    From agrona with Apache License 2.0 4 votes vote down vote up
public SampleElements<String> samples()
{
    return new SampleElements<>("Elani", "von", "der", "Schavener", "Heide");
}