@Test public void testGetEnabledVoucherGeneration() { final Map<String, List<String>> assetConfiguration = getAssetConfiguration(); when(assetConfigurationRepository.findForCriteria(any(AssetConfigurationCriteria.class))) .thenReturn(assetConfiguration); final boolean actualConfigValue = assetConfigurationService .getEnabledVoucherGeneration(AssetConfigurationKeys.ENABLEVOUCHERGENERATION, "ap.kurnool"); assertEquals(true, actualConfigValue); }
public boolean getEnabledVoucherGeneration(final AssetConfigurationKeys assetConfigurationKey, final String tenantId) { final String value = getAssetConfigValueByKeyAndTenantId(assetConfigurationKey, tenantId); if (Boolean.TRUE.toString().equalsIgnoreCase(value)) return true; else return false; }
AssetConfigurationService { public boolean getEnabledVoucherGeneration(final AssetConfigurationKeys assetConfigurationKey, final String tenantId) { final String value = getAssetConfigValueByKeyAndTenantId(assetConfigurationKey, tenantId); if (Boolean.TRUE.toString().equalsIgnoreCase(value)) return true; else return false; } }
AssetConfigurationService { public boolean getEnabledVoucherGeneration(final AssetConfigurationKeys assetConfigurationKey, final String tenantId) { final String value = getAssetConfigValueByKeyAndTenantId(assetConfigurationKey, tenantId); if (Boolean.TRUE.toString().equalsIgnoreCase(value)) return true; else return false; }  }
AssetConfigurationService { public boolean getEnabledVoucherGeneration(final AssetConfigurationKeys assetConfigurationKey, final String tenantId) { final String value = getAssetConfigValueByKeyAndTenantId(assetConfigurationKey, tenantId); if (Boolean.TRUE.toString().equalsIgnoreCase(value)) return true; else return false; }  AssetConfigurationResponse search(final AssetConfigurationCriteria assetConfigurationCriteria); boolean getEnabledVoucherGeneration(final AssetConfigurationKeys assetConfigurationKey,
            final String tenantId); String getAssetConfigValueByKeyAndTenantId(final AssetConfigurationKeys assetConfigurationKey,
            final String tenantId); }
AssetConfigurationService { public boolean getEnabledVoucherGeneration(final AssetConfigurationKeys assetConfigurationKey, final String tenantId) { final String value = getAssetConfigValueByKeyAndTenantId(assetConfigurationKey, tenantId); if (Boolean.TRUE.toString().equalsIgnoreCase(value)) return true; else return false; }  AssetConfigurationResponse search(final AssetConfigurationCriteria assetConfigurationCriteria); boolean getEnabledVoucherGeneration(final AssetConfigurationKeys assetConfigurationKey,
            final String tenantId); String getAssetConfigValueByKeyAndTenantId(final AssetConfigurationKeys assetConfigurationKey,
            final String tenantId);  }