Skip to content
Snippets Groups Projects
Commit ba8a485a authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

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

parent ee64aadb
No related branches found
No related tags found
No related merge requests found
Pipeline #4380 passed
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment