Search in sources :

Example 1 with LinkedList

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);
}
Also used : SparkContext(org.apache.spark.SparkContext) JavaSparkContext(org.apache.spark.api.java.JavaSparkContext) Tuple3(scala.Tuple3) LinkedList(scala.collection.mutable.LinkedList)

Aggregations

SparkContext (org.apache.spark.SparkContext)1 JavaSparkContext (org.apache.spark.api.java.JavaSparkContext)1 Tuple3 (scala.Tuple3)1 LinkedList (scala.collection.mutable.LinkedList)1