diff --git a/server/src/test/java/io/jans/as/server/comp/CryptoProviderTest.java b/server/src/test/java/io/jans/as/server/comp/CryptoProviderTest.java index 0a52d0999a4..dd4f0b59e10 100644 --- a/server/src/test/java/io/jans/as/server/comp/CryptoProviderTest.java +++ b/server/src/test/java/io/jans/as/server/comp/CryptoProviderTest.java @@ -50,6 +50,8 @@ public class CryptoProviderTest extends ConfigurableTest { private final static String SIGNING_INPUT = "Signing Input"; private final static String SHARED_SECRET = "secret"; + private final static String DEF_GEN_KEYS_PROVIDER = "GenerateKeysDataProvider"; + private final static Object[][] DEF_EC_ALGS_DATA = new Object[][] { { Algorithm.ES256 }, { Algorithm.ES384 }, @@ -392,17 +394,17 @@ public void testDeleteKeyES512() { } } - @DataProvider(name = "GenerateKeysDataProvider") + @DataProvider(name = DEF_GEN_KEYS_PROVIDER) public Object[][] testGenerateKeysDataProvider() { return ConfigurableTest.ArquillianDataProvider.provide( - "CryptoProviderTest#GenerateKeysDataProvider", + "CryptoProviderTest#" + DEF_GEN_KEYS_PROVIDER, DEF_EC_ALGS_DATA ); } @Test(dependsOnMethods = {"testDeleteKeyRS256", "testDeleteKeyRS384", "testDeleteKeyRS512", "testDeleteKeyES256", "testDeleteKeyES384", "testDeleteKeyES512" }, - dataProvider = "GenerateKeysDataProvider") + dataProvider = DEF_GEN_KEYS_PROVIDER) public void testGenerateKeys(Algorithm algorithm) { for(int i = 0; i < NUM_KEY_GENS; i++) { System.out.println("----------------------");