public void test_engineCreateSSLEngine_01(){
  SSLContextSpiImpl ssl=new SSLContextSpiImpl();
  try {
    SSLEngine sleng=ssl.engineCreateSSLEngine();
    fail("RuntimeException wasn't thrown");
  }
 catch (  RuntimeException re) {
    String str=re.getMessage();
    if (!str.equals("Not initialiazed"))     fail("Incorrect exception message: " + str);
  }
catch (  Exception e) {
    fail("Incorrect exception " + e + " was thrown");
  }
}

public void test_engineCreateSSLEngine_01 ( ) { SSLContextSpiImpl ssl = new SSLContextSpiImpl ( ) ; try { SSLEngine sleng = ssl . engineCreateSSLEngine ( ) ; fail ( "RuntimeException wasn't thrown" ) ; } catch ( RuntimeException re ) { String str = re . getMessage ( ) ; if ( ! str . equals ( "Not initialiazed" ) ) fail ( "Incorrect exception message: " + str ) ; } catch ( Exception e ) { fail ( "Incorrect exception " + e + " was thrown" ) ; } }
javax . net . ssl . sslcontextspi # enginecreatesslengine ( ) verify exception when sslcontextspi object wasn ' t initialiazed .
