Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
Terral
Posts:
1
Registered:
2/10/09
|
|
Mock objects and unit testing
Posted:
Feb 10, 2009 3:40 PM
|
|
, I'm trying to write unit tests for my MATLAB code base. I've written a fair number of classes, and I have a number of them set up with unit tests using mlunit. Unfortunately, it's come time to try and test some of the the inner parts of my object graph, and to try to minimize the dependency of these tests on other objects, I want to mock out some of the objects.
Unfortunately, it appears the MATLAB does not support private classes. Ideally, I'd be able to write these classes into the same files as the tests I'm writing, since they're (by definition) going to be barebones. Has anybody else done this? If so, how did you do your mocks?
|
|
|
|