added changes to test
@@ -457,7 +457,8 @@ package org.finra.catalog
assertEquals(List((objectName, partitonValue)), dmSearchResults)
}
- test("dmWipeNamespace should delete registered format for an object in DM") {
+ test("dmWipeNamespace should delete registered format for an object in DM")
+ {
var businessObjectDefinitionKey1 = new BusinessObjectDefinitionKey
businessObjectDefinitionKey1.setBusinessObjectDefinitionName(objectName)
@@ -545,7 +546,8 @@ package org.finra.catalog
assertEquals(0, expectedDF.except(outputDF).count)
}
- test("getSchema should return the Spark SQL StructFields for the given data object") {
+ test("getSchema should return the Spark SQL StructFields for the given data object")
+ {
var businessObjectFormat = new org.finra.herd.sdk.model.BusinessObjectFormat
businessObjectFormat.setNamespace(namespace)
businessObjectFormat.setBusinessObjectDefinitionName(objectName)
@@ -583,7 +585,8 @@ package org.finra.catalog
}
- test("getPartitions should return Spark SQL StructFields of partitions of the given object") {
+ test("getPartitions should return Spark SQL StructFields of partitions of the given object")
+ {
var businessObjectFormat = new org.finra.herd.sdk.model.BusinessObjectFormat
businessObjectFormat.setNamespace(namespace)
businessObjectFormat.setBusinessObjectDefinitionName(objectName)
@@ -1030,11 +1033,9 @@ package org.finra.catalog
"s3n://bucketName/namespace/provider/usage/fileType/objectName/frmt-v0/data-v0/month=february"), s3KeyPrefixInformation)
}
- test("stop spark") {
+ test("stop spark")
+ {
spark.stop()
}
}
-
-
-
