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