Hola Guys,

as foreseen by you guys i ran into trouble when creating a unit test for 
FCREPO-1047 (https://jira.duraspace.org/browse/FCREPO-1047).There seemes 
to be a lot of static stuff going on in Object creation. E.g. 
DOTranslationUtility which has a whole static block that goes on to call 
the static method Server.getConfig(), which tries to load fedora.fcfg 
from the filesystem. This of course results in a IOException in a unit 
testing environment and prevents mocking of dependent objects.

Do you guys think it's feasible to refactor these classes in order to 
improve unit testing ability?

-- 
*frank asseg*
softwareentwicklung
sebastian-kneipp-strasse 14a
79104 freiburg i. brsg.
tel.: ++49-761-88790001
fax.: ++49-761-88790002
mail: frank.as...@congrace.de
web: http://www.congrace.de/

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Fedora-commons-developers mailing list
Fedora-commons-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers

Reply via email to