Commit ba8a485a authored by Benoit Lavenier's avatar Benoit Lavenier

[fix] Blockchain VO: add a missing static property name

parent ee64aadb
Pipeline #4380 passed with stage
in 24 seconds
......@@ -42,6 +42,7 @@ import java.math.BigInteger;
public class BlockchainBlock implements Serializable {
public static final String PROPERTY_NUMBER = "number";
public static final String PROPERTY_HASH = "hash";
public static final String PROPERTY_DIVIDEND = "dividend";
public static final String PROPERTY_IDENTITIES = "identities";
public static final String PROPERTY_JOINERS = "joiners";
......@@ -42,8 +42,8 @@ public class JsonAttributeParserTest {
public void getValueAsString() {
String jsonString = String.format("%s", OBJ_JSON);
JsonAttributeParser<String> isAttribute = new JsonAttributeParser<>(PROPERTY_ID, String.class);
String idValue = isAttribute.getValue(jsonString);
JsonAttributeParser<String> idAttribute = new JsonAttributeParser<>(PROPERTY_ID, String.class);
String idValue = idAttribute.getValue(jsonString);
Assert.assertEquals("joe", idValue);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment