Examples of ssc()


Examples of org.apache.spark.streaming.api.java.JavaStreamingContext.ssc()

    @Test
    public void testJavaFunctions3() throws Exception {
        JavaStreamingContext jsc = mock(JavaStreamingContext.class);
        StreamingContext ssc = mock(StreamingContext.class);
        when(jsc.ssc()).thenReturn(ssc);
        StreamingContextJavaFunctions scjf = javaFunctions(jsc);
        assertThat(scjf.ssc, is(ssc));
    }

    @Test
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.