use of scala.collection.mutable.LinkedList in project geode by apache.
the class JavaAPITest method createCommonMocks.
@SuppressWarnings("unchecked")
public Tuple3<SparkContext, GeodeConnectionConf, GeodeConnection> createCommonMocks() {
SparkContext mockSparkContext = mock(SparkContext.class);
GeodeConnectionConf mockConnConf = mock(GeodeConnectionConf.class);
GeodeConnection mockConnection = mock(GeodeConnection.class);
when(mockConnConf.getConnection()).thenReturn(mockConnection);
when(mockConnConf.locators()).thenReturn(new LinkedList());
return new Tuple3<>(mockSparkContext, mockConnConf, mockConnection);
}
Aggregations