Unit tests for Android SSH client library verifying connectToHost and authenticateWithPassword functionality.
✅ ALL TESTS WORKING - 7 tests passing with 100% success rate
- Android emulator or device connected
- SSH test server running on
127.0.0.1:2222
cd example
./run-android-tests-with-logs.shThis script will:
- Start the SSH test server
- Run Android tests with real-time log output
- Stop the SSH test server
- Show all test logs including connection details
✅ 7 tests passing (100% success rate)
The tests output detailed logs showing:
- Server connection details (127.0.0.1:2222)
- Username and password being used
- Success status for each test
- Connection and disconnection events
=== SSH CONNECTION TEST ===
Connecting to: 127.0.0.1:2222
Username: user
Password: password
SUCCESS: Connected to SSH server 127.0.0.1:2222 with user user
Disconnected from SSH server
=== SSH PASSWORD AUTH SUCCESS TEST ===
Server: 127.0.0.1:2222
Username: user
Password: password
Expected: Authentication should succeed
SUCCESS: Authenticated with correct password for user user on 127.0.0.1:2222
Disconnected from SSH server
- testConnectToHost - SSH connection establishment ✅
- testAuthenticateWithPasswordSuccess - Password authentication success ✅
- testSSHClientModuleExists - Module availability verification ✅
- testJSchLibraryExists - JSch library verification ✅
- testBasicJavaFunctionality - Basic test framework ✅
- Plus 2 additional working tests from existing test suite ✅
example/android/app/src/androidTest/java/com/sshsftpexample/SSHClientDirectTest.javaexample/android/app/src/androidTest/java/com/sshsftpexample/SimpleSSHTest.javaexample/run-android-tests-with-logs.sh- Test runner script