-4
votes
1answer
169 views

Mock Objects: Real Issues, Test Driven Design with Java [on hold]

I'm trying to create a mock class to check the operability of a 'Searcher object', the object I want to mock looks like this: public class Searcher implements AristotelianSearcher { protected ...
4
votes
1answer
241 views

Modelling Login and Authentication on an iOS mobile client

I'm about to start working on a V2 of a mobile application and I'd like to adopt a more object-centric approach. Primarily because I think it makes for more maintainable code, but a secondary ...
0
votes
1answer
102 views

Is creating a separate pool for each individual png image in the same class appropriate?

I'm still possibly a little green about object-pooling, and I want to make sure something like this is a sound design pattern before really embarking upon it. Take the following code (which uses the ...
2
votes
0answers
162 views

Object Constraint Language (OCL) for Stack in java.util package

I have an exam coming up and I'm looking at past papers to get some ideas of what to expect. I'm a bit stuck on the following one and would really appreciate if someone could give some example ...
3
votes
5answers
589 views

Config Class/Struct: Pattern or Anti-Pattern? Alternatives?

If you add new configuration options to a program, it can often have tons of ripple effects in terms of getting the options to where they need to be acted upon. There are three basic ways to deal ...