...
The figures below illustrate some of the cases that must be handled, and which are tested by the our tests.
PlantUML Macro |
---|
object "hallvard: Person" as hallvard {
}
object "marit: Person" as marit {
}
object "jens: Person" as jens {
}
|
| marit.addChild(jens) hallvard.addChild(jens) | PlantUML Macro |
---|
object "hallvard: Person" as hallvard {
}
object "marit: Person" as marit {
}
object "jens: Person" as jens {
}
marit -> jens: children
jens -> marit: mother
hallvard -> jens: children
jens -> hallvard: father |
| Establish links with addChild. (Same effect as below) |
PlantUML Macro |
---|
object "hallvard: Person" as hallvard {
}
object "marit: Person" as marit {
}
object "jens: Person" as jens {
}
|
| jens.setMother(marit) jens.setFather(hallvard) | PlantUML Macro |
---|
object "hallvard: Person" as hallvard {
}
object "marit: Person" as marit {
}
object "jens: Person" as jens {
}
marit -> jens: children
jens -> marit: mother
hallvard -> jens: children
jens -> hallvard: father |
| Establish links with setMother og setFather. (Same effekt as above) |
PlantUML Macro |
---|
object "hallvard: Person" as hallvard {
}
object "marit: Person" as marit {
}
object "jens: Person" as jens {
}
marit -> jens: children
jens -> marit: mother
hallvard -> jens: children
jens -> hallvard: father |
| marit.removeChild(jens) hallvard.removeChild(jens)
| PlantUML Macro |
---|
object "hallvard: Person" as hallvard {
}
object "marit: Person" as marit {
}
object "jens: Person" as jens {
}
|
| Removal of links with removeChild. (Same effect as below) |
PlantUML Macro |
---|
object "hallvard: Person" as hallvard {
}
object "marit: Person" as marit {
}
object "jens: Person" as jens {
}
marit -> jens: children
jens -> marit: mother
hallvard -> jens: children
jens -> hallvard: father |
| jens.setMother(null) jens.setFather(null) | PlantUML Macro |
---|
object "hallvard: Person" as hallvard {
}
object "marit: Person" as marit {
}
object "jens: Person" as jens {
}
|
| Removal of links with setMother og setFather. (Same effekt as above) |
...