Merge pull request #828 from Vishwa1311/MIFOSX-1026-1
[MIFOSX-1026] Failure test cases has been fixed
This commit is contained in:
+3
-10
@@ -59,15 +59,8 @@ public class GlobalConfigurationTest {
|
|||||||
// Verifying Value for penalty-wait-period after Updation
|
// Verifying Value for penalty-wait-period after Updation
|
||||||
Assert.assertEquals("Verifying Global Config Value after Updation", value, configDataAfter.get("value"));
|
Assert.assertEquals("Verifying Global Config Value after Updation", value, configDataAfter.get("value"));
|
||||||
|
|
||||||
// Updating Enabled Flag for maker-checker Global Configuration
|
// Updating Enabled Flag for penalty-wait-period Global Configuration
|
||||||
configId = (Integer) globalConfig.get(0).get("id");
|
Boolean enabled = (Boolean) globalConfig.get(7).get("enabled");
|
||||||
Assert.assertNotNull(configId);
|
|
||||||
|
|
||||||
configDataBefore = this.globalConfigurationHelper.getGlobalConfigurationById(this.requestSpec, this.responseSpec,
|
|
||||||
configId.toString());
|
|
||||||
Assert.assertNotNull(configDataBefore);
|
|
||||||
|
|
||||||
Boolean enabled = (Boolean) globalConfig.get(0).get("enabled");
|
|
||||||
|
|
||||||
if (enabled == true) {
|
if (enabled == true) {
|
||||||
enabled = false;
|
enabled = false;
|
||||||
@@ -81,7 +74,7 @@ public class GlobalConfigurationTest {
|
|||||||
configDataAfter = this.globalConfigurationHelper.getGlobalConfigurationById(this.requestSpec, this.responseSpec,
|
configDataAfter = this.globalConfigurationHelper.getGlobalConfigurationById(this.requestSpec, this.responseSpec,
|
||||||
configId.toString());
|
configId.toString());
|
||||||
|
|
||||||
// Verifying Enabled Flag for maker-checker after Updation
|
// Verifying Enabled Flag for penalty-wait-period after Updation
|
||||||
Assert.assertEquals("Verifying Enabled Flag Global Config after Updation", enabled, configDataAfter.get("enabled"));
|
Assert.assertEquals("Verifying Enabled Flag Global Config after Updation", enabled, configDataAfter.get("enabled"));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user