'Testing an SFTP client with Spock Framework

We actually use JUnit and the great FakeSftpServerRule junit rule to test a custom SFTP client we made. That was working great.

Lastly, we want to get rid of junit in favor of the spock framework because we try to migrate to groovy.

Do you guys know any equivalent of FakeSftpServerRule or any way to "switch" a junit rule into a spock rule equivalent ?

Thank you a lot.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source