cancel
Showing results for 
Search instead for 
Did you mean: 

FileSystemConnectorTest in activiti-cycle env independant

frederikherema1
Star Contributor
Star Contributor
I altered the test 'FileSystemConnectorTest' in activiti-cycle. The previous code (line 28):

userConfiguration.addRepositoryConnectorConfiguration(new FileSystemConnectorConfiguration("filesystem", File.listRoots()[0]));

When running on a windows-box with a floppy-drive in it, the first root FS is 'A://'. If no floppy is in the drive, the '.children()' result is null and a nullpointer is thrown, since the dir doesn't exist and the test fails. When I inserted a floppy-disk it, the test actually ran fine  Smiley Very Happy

I repaced it with a more platform/environment friendly alternative, that used the current path:

userConfiguration.addRepositoryConnectorConfiguration(new FileSystemConnectorConfiguration("filesystem", new File(".")));
2 REPLIES 2

bernd_ruecker
Champ in-the-making
Champ in-the-making
OK! We still have a pending issue with making the tests more stable and platform independent, but that sounds already like a good start. Thanks!

Dear god, you really still have a floppy drive? Wow…

frederikherema1
Star Contributor
Star Contributor
I'm waiting for my new MBP to arrive, so I'm using my desktop at home which is maybe a little outdated. But still good enough though!

Good old floppies… who needs DVD's anyway?
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.