Add a simple king and queen classes which implement the behaviour of the royalty interface. Also wrote the object mother of royalty objects which is final so you can just call the static methods in it to create objects with a specific state to use them fast in tests. The tests are already created for testing the behaviour and the type of the objects which are created by the object mother. I also created the UML diagrams via object aid and updated the readme.
56 lines
3.6 KiB
XML
56 lines
3.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<class-diagram version="1.1.11" icons="true" automaticImage="PNG" always-add-relationships="false"
|
|
generalizations="true" realizations="true" associations="true" dependencies="false" nesting-relationships="true"
|
|
router="FAN">
|
|
<class id="1" language="java" name="com.iluwatar.objectmother.RoyaltyObjectMother" project="object-mother"
|
|
file="/object-mother/src/main/java/com/iluwatar/objectmother/RoyaltyObjectMother.java" binary="false"
|
|
corner="BOTTOM_RIGHT">
|
|
<position height="-1" width="-1" x="535" y="366"/>
|
|
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
|
sort-features="false" accessors="true" visibility="true">
|
|
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
|
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
|
</display>
|
|
</class>
|
|
<class id="2" language="java" name="com.iluwatar.objectmother.King" project="object-mother"
|
|
file="/object-mother/src/main/java/com/iluwatar/objectmother/King.java" binary="false" corner="BOTTOM_RIGHT">
|
|
<position height="-1" width="-1" x="285" y="141"/>
|
|
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
|
sort-features="false" accessors="true" visibility="true">
|
|
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
|
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
|
</display>
|
|
</class>
|
|
<class id="3" language="java" name="com.iluwatar.objectmother.Queen" project="object-mother"
|
|
file="/object-mother/src/main/java/com/iluwatar/objectmother/Queen.java" binary="false" corner="BOTTOM_RIGHT">
|
|
<position height="-1" width="-1" x="783" y="143"/>
|
|
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
|
sort-features="false" accessors="true" visibility="true">
|
|
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
|
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
|
</display>
|
|
</class>
|
|
<interface id="4" language="java" name="com.iluwatar.objectmother.Royalty" project="object-mother"
|
|
file="/object-mother/src/main/java/com/iluwatar/objectmother/Royalty.java" binary="false" corner="BOTTOM_RIGHT">
|
|
<position height="-1" width="-1" x="536" y="142"/>
|
|
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
|
sort-features="false" accessors="true" visibility="true">
|
|
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
|
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
|
</display>
|
|
</interface>
|
|
<realization id="5">
|
|
<end type="SOURCE" refId="2"/>
|
|
<end type="TARGET" refId="4"/>
|
|
</realization>
|
|
<realization id="6">
|
|
<end type="SOURCE" refId="3"/>
|
|
<end type="TARGET" refId="4"/>
|
|
</realization>
|
|
<classifier-display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
|
sort-features="false" accessors="true" visibility="true">
|
|
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
|
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
|
</classifier-display>
|
|
<association-display labels="true" multiplicity="true"/>
|
|
</class-diagram> |