Harmony SSLEngineTest: fail when wrap called before init
The original test did not actually call fail() thus leading this part of
the provider to be broken. However, subsequent tests called for behavior
that was opposite of the documentation. Changed both tests to expect
IllegalStateException as the documentation for SSLEngine says will
happen if the client mode is not set prior to calling #wrap.
Test: vogar --mode host --classpath out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/classes.jack --classpath out/target/common/obj/JAVA_LIBRARIES/bouncycastle-ocsp_intermediates/classes.jack --classpath out/target/common/obj/JAVA_LIBRARIES/bouncycastle-bcpkix_intermediates/classes.jack --classpath out/host/common/obj/JAVA_LIBRARIES/core-tests-support-hostdex_intermediates/classes.jack --classpath out/host/common/obj/JAVA_LIBRARIES/core-tests-hostdex_intermediates/classes.jack libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/SSLEngineTest.java
Test: cts-tradefed run cts -m CtsLibcoreTestCases -a arm64-v8a
Bug: 31301555
Change-Id: I2fde906670c4b7caf0df60190387ec5d90c3f7de
1 file changed