@AndroidOnly("The RI doesn't throw the IllegalStateException.") public void test_wrap_05() throws SSLException {
  String host="new host";
  int port=8080;
  ByteBuffer bb=ByteBuffer.allocate(10);
  ByteBuffer[] bbA={ByteBuffer.allocate(5),ByteBuffer.allocate(10),ByteBuffer.allocate(5)};
  SSLEngine sse=getEngine(host,port);
  try {
    sse.wrap(bbA,0,bbA.length,bb);
    fail("IllegalStateException wasn't thrown");
  }
 catch (  IllegalStateException iobe) {
  }
}

@ AndroidOnly ( "The RI doesn't throw the IllegalStateException." ) public void test_wrap_05 ( ) throws SSLException { String host = "new host" ; int port = 8080 ; ByteBuffer bb = ByteBuffer . allocate ( 10 ) ; ByteBuffer [ ] bbA = { ByteBuffer . allocate ( 5 ) , ByteBuffer . allocate ( 10 ) , ByteBuffer . allocate ( 5 ) } ; SSLEngine sse = getEngine ( host , port ) ; try { sse . wrap ( bbA , 0 , bbA . length , bb ) ; fail ( "IllegalStateException wasn't thrown" ) ; } catch ( IllegalStateException iobe ) { } }
javax . net . ssl . sslengine # wrap ( bytebuffer [ ] srcs , int offset , int length , bytebuffer dst ) exception case : illegalstateexception should be thrown .
