section: 3 tags: lab02 lab title: /Labs/02/First Experiments type: text/vnd.tiddlywiki Let's introduce the concept of automated testing using a very simple calculator class. It will have an `add` method and a `multiply` method, each of which takes two integer parameters and returns the integer result to the caller. The class diagram looks like: [[plantuml[ @startuml skinparam { skinparam backgroundColor #ffffff77 Style strictuml RoundCorner 5 Padding 2 NodeSep 100 Class { AttributeIconSize 0 FontSize 15 } } class Calculator { -- + add(x : Integer, y : Integer) : Integer + multiply(x : Integer, y : Integer) : Integer } @enduml ]]]