public void test_putValue(){
  SSLSession s=clientSession;
  mySSLSessionBindingListener sbl=new mySSLSessionBindingListener();
  assertNotNull(s.getValueNames());
  assertEquals(0,s.getValueNames().length);
  s.putValue("Name_01",sbl);
  s.putValue("Name_02",sbl);
  s.putValue("Name_03",sbl);
  assertEquals(3,s.getValueNames().length);
  s.removeValue("Name_01");
  assertEquals(2,s.getValueNames().length);
  try {
    s.putValue(null,null);
    fail("IllegalArgumentException wasn't thrown");
  }
 catch (  IllegalArgumentException expected) {
  }
  try {
    s.putValue("ABC",null);
    fail("IllegalArgumentException wasn't thrown");
  }
 catch (  IllegalArgumentException expected) {
  }
  try {
    s.putValue(null,sbl);
    fail("IllegalArgumentException wasn't thrown");
  }
 catch (  IllegalArgumentException expected) {
  }
  try {
    s.removeValue(null);
    fail("IllegalArgumentException wasn't thrown");
  }
 catch (  IllegalArgumentException expected) {
  }
}

public void test_putValue ( ) { SSLSession s = clientSession ; mySSLSessionBindingListener sbl = new mySSLSessionBindingListener ( ) ; assertNotNull ( s . getValueNames ( ) ) ; assertEquals ( 0 , s . getValueNames ( ) . length ) ; s . putValue ( "Name_01" , sbl ) ; s . putValue ( "Name_02" , sbl ) ; s . putValue ( "Name_03" , sbl ) ; assertEquals ( 3 , s . getValueNames ( ) . length ) ; s . removeValue ( "Name_01" ) ; assertEquals ( 2 , s . getValueNames ( ) . length ) ; try { s . putValue ( null , null ) ; fail ( "IllegalArgumentException wasn't thrown" ) ; } catch ( IllegalArgumentException expected ) { } try { s . putValue ( "ABC" , null ) ; fail ( "IllegalArgumentException wasn't thrown" ) ; } catch ( IllegalArgumentException expected ) { } try { s . putValue ( null , sbl ) ; fail ( "IllegalArgumentException wasn't thrown" ) ; } catch ( IllegalArgumentException expected ) { } try { s . removeValue ( null ) ; fail ( "IllegalArgumentException wasn't thrown" ) ; } catch ( IllegalArgumentException expected ) { } }
javax . net . ssl . sslsession # putvalue ( string name , object value ) javax . net . ssl . sslsession # removevalue ( string name ) javax . net . ssl . sslsession # getvaluenames ( )
