Here is my problem:
I stared to create an e-commerce web site info collector.
So I created a parser for each site. The parser class is stateless.
I have got methods like:
getItemPrice(WebElement page) getItemTitel(WebElement page) getItemDescription(WebElement page) etc..
While creating a
JUnit tests for that the convenient way was to make them static methods.
While creating the next parser for the next page ,again I needed the same methods.
So it just popped out that an interface of an
IItem is required here for future changes, etc.
Therefore I have a problem to set these methods as static.
Which require to create an instance of a stateless class which lead to simple factory to create these instances etc.
I'm not sure whether this
Interface is causing me too much of an overhead or not.