public void testExecuteWorkflows(PublicKeyAlgorithm algorithm,int port){
  GeneralConfig generalConfig=new GeneralConfig();
  generalConfig.setLogLevel(Level.INFO);
  ConfigHandler configHandler=ConfigHandlerFactory.createConfigHandler("client");
  configHandler.initialize(generalConfig);
  ClientCommandConfig config=new ClientCommandConfig();
  config.setConnect("localhost:" + port);
  config.setTlsTimeout(TIMEOUT);
  List<String> serverList=Arrays.asList(tlsServer.getCipherSuites());
  config.setProtocolVersion(ProtocolVersion.TLS10);
  testProtocolCompatibility(serverList,configHandler,config,algorithm);
  config.setProtocolVersion(ProtocolVersion.TLS11);
  testProtocolCompatibility(serverList,configHandler,config,algorithm);
  config.setProtocolVersion(ProtocolVersion.TLS12);
  testProtocolCompatibility(serverList,configHandler,config,algorithm);
  if (algorithm == PublicKeyAlgorithm.RSA) {
    testCustomWorkflow(port);
  }
}

public void testExecuteWorkflows ( PublicKeyAlgorithm algorithm , int port ) { GeneralConfig generalConfig = new GeneralConfig ( ) ; generalConfig . setLogLevel ( Level . INFO ) ; ConfigHandler configHandler = ConfigHandlerFactory . createConfigHandler ( "client" ) ; configHandler . initialize ( generalConfig ) ; ClientCommandConfig config = new ClientCommandConfig ( ) ; config . setConnect ( "localhost:" + port ) ; config . setTlsTimeout ( TIMEOUT ) ; List < String > serverList = Arrays . asList ( tlsServer . getCipherSuites ( ) ) ; config . setProtocolVersion ( ProtocolVersion . TLS10 ) ; testProtocolCompatibility ( serverList , configHandler , config , algorithm ) ; config . setProtocolVersion ( ProtocolVersion . TLS11 ) ; testProtocolCompatibility ( serverList , configHandler , config , algorithm ) ; config . setProtocolVersion ( ProtocolVersion . TLS12 ) ; testProtocolCompatibility ( serverList , configHandler , config , algorithm ) ; if ( algorithm == PublicKeyAlgorithm . RSA ) { testCustomWorkflow ( port ) ; } }
test of executeworkflow method , of class workflowexecutor .
