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