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