deepweeb / B-B-W

0 stars 1 forks source link

Implementation + Testing + documentation of Chain.java #174

Closed deepweeb closed 7 years ago

deepweeb commented 7 years ago

Expected behavior

We want the Chain class to represent a block chain of an individual. Although all blocks are saved into the database and they have their own identifier which points to which chain they belong to (thus might making this class seems redundant). We still want the program to be structured and have an actual holder that represent a chain.

We also want to separate blocks from a chain the way we separate blocks from the users/ contacts.

Actual behavior

We have no object class that represent a chain, there for whenever we wanted a person's chain, we query the database. There is not really an emphasize on the chain as a part of the structure.

Steps to reproduce this behavior

Refactor according to UML.

Definition of Done

Class is made and test coverage >80% The Chain class should be implemented according to this image below image

Member responsible: Luat Duration: 4h Priority: Must Claimed by: Luat