use of org.ethereum.jsontestsuite.CryptoTestCase in project rskj by rsksmart.
the class LocalCryptoTest method testAllInCryptoSute.
@Test
public void testAllInCryptoSute() throws ParseException, IOException {
String json = getJSON("crypto");
ObjectMapper mapper = new ObjectMapper();
JavaType type = mapper.getTypeFactory().constructMapType(HashMap.class, String.class, CryptoTestCase.class);
HashMap<String, CryptoTestCase> testSuite = mapper.readValue(json, type);
for (String key : testSuite.keySet()) {
System.out.println("executing: " + key);
testSuite.get(key).execute();
}
}
Aggregations