I am developing an interpreter for a graphical language that I am designing, and I want to apply TDD to my development process (all code in java). My interpreter has only one public function: execute() that executes the a given diagram. To execute the diagram, the class should use a number of internal (private) methods. I want to create these methods using TDD but since they are private I can’t think of a way to access them. What am I doing wrong?
Thanks
1 Answer