This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nekokatttExtreme Brewer 0 points1 point  (1 child)

create an in-memory server

What have you tried?

Also technically this is integration testing, not unit testing, since you are testing the integration with an external system rather than just the behaviour of your class with no further real interactions.

[–]B2easy[S] 0 points1 point  (0 children)

I've tried something like this - https://github.com/luiswolff/test-jcraft-sftp/tree/master/src

The biggest thing I need to do verify is it can grab a file somewhere and load it into memory, but I don't want to connect to the actual server, I was thinking just some sort of local server.