Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Originally posted by Ernest Friedman-Hill:
If a private method needs to be tested, consider whether it ought to be a public method of some other class. In other words, can you extract the functionality out into a smaller class that you can test independently, and then have the original class simply use the new class?
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Ernest Friedman-Hill:
If a private method needs to be tested, consider whether it ought to be a public method of some other class. In other words, can you extract the functionality out into a smaller class that you can test independently, and then have the original class simply use the new class?
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter
The first one has too much "data envy", I think, in that it has to root around in Board's data to find its answer.
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter
Don't get me started about those stupid light bulbs. |