I'm doing some testing in Play right now that involves an HTTPS websocket client. It's going through Netty for HTTPS functionality, so I'm not using any built in HTTP classes (such as anything in the WS namespace). I would like to write a couple of tests to ensure that SSL connects correctly and that it rejects invalid data properly.
My thought was to just have Play run HTTPS during testing with a sample keystore, however in test, it looks like Play is not respecting the https.port setting (I'm getting 'connection refused' during test, but it works fine in development).
I've added this to my build.sbt:
javaOptions in (Test) += "-Dhttps.port=23456"
Is there any way to get HTTPS running in test?