Applied formatting guidlines. Compared enum using '==' as suggested in TableRegisterSupportTest.
@@ -134,7 +134,7 @@ public class TableRegisterSupportTest {
support.createDDL("bar", "employee", specs, parts, "ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.OpenCSVSerde'", "stored as orc", "tblproperties (\"orc.compress\"=\"SNAPPY\")",
tableType);
String location = StringUtils.substringBetween(ddl, "LOCATION '", "'");
- if(tableType.toString().equalsIgnoreCase("master")){
+ if (tableType == TableType.MASTER) {
assertEquals("Master location does not match", "s3a://testBucket/app/warehouse/bar/employee", location);
} else {
assertEquals("Locations do not match", "s3a://testBucket/model.db/bar/employee/" + tableType.toString().toLowerCase(), location);
