diff options
author | zsxwing <zsxwing@gmail.com> | 2014-05-19 16:41:31 -0700 |
---|---|---|
committer | Tathagata Das <tathagata.das1565@gmail.com> | 2014-05-19 16:41:53 -0700 |
commit | 901102c1ba5f800705819916f2b7a38b6750cffb (patch) | |
tree | b5f1d355e8426562488de9450408bfc08786a73a /streaming/src/test | |
parent | 111c121ae97730fa8d87db7f0d17e10879fa76ab (diff) | |
download | spark-901102c1ba5f800705819916f2b7a38b6750cffb.tar.gz spark-901102c1ba5f800705819916f2b7a38b6750cffb.tar.bz2 spark-901102c1ba5f800705819916f2b7a38b6750cffb.zip |
SPARK-1878: Fix the incorrect initialization order
JIRA: https://issues.apache.org/jira/browse/SPARK-1878
Author: zsxwing <zsxwing@gmail.com>
Closes #822 from zsxwing/SPARK-1878 and squashes the following commits:
4a47e27 [zsxwing] SPARK-1878: Fix the incorrect initialization order
(cherry picked from commit 1811ba8ccb580979aa2e12019e6a82805f09ab53)
Signed-off-by: Tathagata Das <tathagata.das1565@gmail.com>
Diffstat (limited to 'streaming/src/test')
-rw-r--r-- | streaming/src/test/java/org/apache/spark/streaming/JavaAPISuite.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/streaming/src/test/java/org/apache/spark/streaming/JavaAPISuite.java b/streaming/src/test/java/org/apache/spark/streaming/JavaAPISuite.java index ce58cb12a4..4efeb8dfbe 100644 --- a/streaming/src/test/java/org/apache/spark/streaming/JavaAPISuite.java +++ b/streaming/src/test/java/org/apache/spark/streaming/JavaAPISuite.java @@ -55,6 +55,10 @@ public class JavaAPISuite extends LocalJavaStreamingContext implements Serializa equalIterator(a.iterator(), b.iterator()); } + @Test + public void testInitialization() { + Assert.assertNotNull(ssc.sc()); + } @SuppressWarnings("unchecked") @Test |