Путь к файлу JUnit ComparisionFailure - PullRequest
0 голосов
/ 11 июля 2020

Я пытаюсь добавить тестовый пример для одной из функций очистки обхода пути. Но это не удается по следующей причине: enter image description here.

The main function looks like this:- enter image description here

And a test class as:- enter image description here

Any advice on this will help, as I tried a few combinations of regex & related patterns already. But it didn't work. The 1st line of code was there before & only new lines regarding patterns were added. The below screenshots is just an example but I tried basically replace(\),replaceAll(\\), replaceAll(\\/) etc

So I see the error from the logs as below, Which is not working in Unix of course. So targeting to see only forward slash as it's for Unix. введите описание изображения здесь

...