Example #1
0
 public void TestMaster()
 {
     var builder = new Builder();
     builder.Master("test");
     Assert.AreEqual("test", builder.options["spark.master"]);
 }
Example #2
0
 public void TestLongConfig()
 {
     var builder = new Builder();
     builder.Config("longvalue", 3L);
     Assert.True(builder.options["longvalue"].Equals("3", StringComparison.InvariantCultureIgnoreCase));
 }
Example #3
0
 public void TestBoolConfig()
 {
     var builder = new Builder();
     builder.Config("boolvalue", true);
     Assert.True(builder.options["boolvalue"].Equals("true", StringComparison.InvariantCultureIgnoreCase));
 }
Example #4
0
 public void TestDoubleConfig()
 {
     var builder = new Builder();
     builder.Config("doublevalue", 3.5D);
     Assert.True(builder.options["doublevalue"].Equals("3.5", StringComparison.InvariantCultureIgnoreCase));
 }
Example #5
0
 public void TestAppName()
 {
     var builder = new Builder();
     builder.AppName("test");
     Assert.AreEqual("test", builder.options["spark.app.name"]);
 }