rodnaph/sockso — pull request #97 by nperrier (2012-04-24 02:43:45+00:00)
Title: Added tests for Coverer subclasses

Rod, I noticed that the LocalCovererTest was failing for testGetlocalCoverFilesFallbackAlbum()

I'm not sure if it was ever working correctly, but what's strange is the test paths are relative to the user.dir rather than the root of the socko dir (My sockso root is actually C:\Documents and Settings\Nathan Perrier\My Documents\NetBeansProjects\sockso, but in the test it is C:\Program Files\NetBeans 7.0):

Tests run: 6, Failures: 1, Errors: 0, Time elapsed: 0.079 sec
------------- Standard Output ---------------
track: C:\Program Files\NetBeans 7.0\test\data\covers\artist - album\track.mp3
------------- ---------------- ---------------

Testcase: testGetLocalCoverFileName took 0.047 sec
Testcase: testIsArtist took 0 sec
Testcase: testGetLocalCoverDirectories took 0.032 sec
Testcase: testGetLocalCoverFilesAlbum took 0 sec
Testcase: testGetLocalCoverFilesArtist took 0 sec
Testcase: testGetlocalCoverFilesFallbackAlbum took 0 sec
FAILED
expected:<4> but was:<3>