خرید بک لینک

Vote count: 0

When ruing testng tests with Surefire 2.19.1, I am ruing with setting 0. When I add this setting, some of my tests fail where the File class is being used. Tests that normally succeed now fail with errors around not being able to find the file. The files exist in the same location as before, it seems that the classpath is being changed when not using forks.

If I use the following code, the File issue goes away, however I can't do this for all problems.

f.exists() -- This fails 
f = new File(f.getAbsolutePath());
f.exists() -- This now works.

Is there a way to make the classpath the same as when forkcount is non zero?

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: شنبه 9 مرداد 1395 ساعت: 20:03

صفحه بندی