@Test public void testGetExtensionFailOnNoClient() { try { handlers.getExtension("testClient", "neueda3"); } catch (AssertionError e) { assertEquals("Client not found: testClient", e.getMessage()); } }
public UrlExtension getExtension(String clientName, String uri) { assertFalse("Must provide client name to acquire URL", StringUtils.isNullOrEmpty(clientName)); assertFalse("Must provide extensions name to acquire URL", StringUtils.isNullOrEmpty(uri)); Client client = getClient(clientName); assertFalse("Client not found: " + clientName, client == null); List<UrlExtension> extensions = client.getUrlExtensions(); assertFalse("No Extensions URL found in client " + clientName, (extensions.isEmpty())); return getNamedExtension(extensions, uri); }
EtiqetHandlers { public UrlExtension getExtension(String clientName, String uri) { assertFalse("Must provide client name to acquire URL", StringUtils.isNullOrEmpty(clientName)); assertFalse("Must provide extensions name to acquire URL", StringUtils.isNullOrEmpty(uri)); Client client = getClient(clientName); assertFalse("Client not found: " + clientName, client == null); List<UrlExtension> extensions = client.getUrlExtensions(); assertFalse("No Extensions URL found in client " + clientName, (extensions.isEmpty())); return getNamedExtension(extensions, uri); } }
EtiqetHandlers { public UrlExtension getExtension(String clientName, String uri) { assertFalse("Must provide client name to acquire URL", StringUtils.isNullOrEmpty(clientName)); assertFalse("Must provide extensions name to acquire URL", StringUtils.isNullOrEmpty(uri)); Client client = getClient(clientName); assertFalse("Client not found: " + clientName, client == null); List<UrlExtension> extensions = client.getUrlExtensions(); assertFalse("No Extensions URL found in client " + clientName, (extensions.isEmpty())); return getNamedExtension(extensions, uri); } EtiqetHandlers(); }
EtiqetHandlers { public UrlExtension getExtension(String clientName, String uri) { assertFalse("Must provide client name to acquire URL", StringUtils.isNullOrEmpty(clientName)); assertFalse("Must provide extensions name to acquire URL", StringUtils.isNullOrEmpty(uri)); Client client = getClient(clientName); assertFalse("Client not found: " + clientName, client == null); List<UrlExtension> extensions = client.getUrlExtensions(); assertFalse("No Extensions URL found in client " + clientName, (extensions.isEmpty())); return getNamedExtension(extensions, uri); } EtiqetHandlers(); void startServer(String serverName); void createServer(String serverName, String serverClass); void createServer(String serverName, String serverClass, String serverConfig); void startClient(String impl, String clientName, String extraConfig); void startClientWithFailover(String impl, String clientName, String primaryConfig,
        String secondaryConfig); Client createClient(String impl, String clientName); Client createClientWithFailover(String clientType, String clientName, String primaryConfig,
        String secondaryConfig); void failover(String clientName); void startClient(String clientName); void startClient(String impl, String clientName); void isClientLoggedOn(String name); void isClientLoggedOff(String name); void waitForClientLogon(String clientName); String getValueFromField(String messageAlias, String field); void compareValuesEqual(String firstField, String firstMessageAlias, String secondField,
        String secondMessageAlias); void compareValuesNotEqual(String firstField, String firstMessageAlias, String secondField,
        String secondMessageAlias); void compareValues(String firstField, String firstMessageAlias, String secondField,
        String secondMessageAlias, Long millis); void compareTimestamps(String firstValue, String secondValue, String firstField,
        String firstMessageAlias, String secondField, String secondMessageAlias, Long millis); void compareTimestampGreaterCukeVar(String field, String messageAlias,
        String sSecondTimestamp); void compareTimestampLesserCukeVar(String field, String messageAlias,
        String sSecondTimestamp); void compareTimestampEqualsCukeVar(String field, String messageAlias,
        String sSecondTimestamp); void validateTimestampAgainstFormatParam(String formatParam, String messageAlias,
        String field); void createMessageForClient(String msgType, String clientName, String messageName, Optional<String> params); void addCukeVariable(String alias, String value); void createMessageFromFile(String fileName, String alias); void createMessage(String msgType, String protocol, String messageName, String params); void addMessage(String messageName, Cdr message); void sendMessage(String messageName, String clientName); void sendMessage(String messageName, String clientName, String sessionName); void waitForResponse(String messageType, String clientName, int milliseconds); void waitForResponse(String messageName, String clientName); void waitForResponseOfType(String messageName, String clientName, String messageType,
        int milliseconds, boolean skipOther); void waitForResponseOfType(String messageName, String clientName, String msgType); void waitForNoResponse(String messageName, String clientName, String messageType,
        int milliseconds); void waitForNoResponse(String messageName, String clientName, String messageType); void validateMessage(String messageName, String clientName, String messageType,
        Boolean checkValuesMatch); void validateMessageTypeExistInResponseMap(String messageName); void validateMessageTypeDoesNotExistInResponseMap(String messageName); void expectException(); void resetExpectException(); void checkForExceptions(); void addException(RuntimeException e, String cukeException); void checkMessageContent(Cdr message, String params); void checkResponseKeyPresenceAndValue(String messageName, String params,
        List<String> values, String part, int position, boolean checkValuesMatch); void checkResponseKeyPresenceAndValue(String messageName, String params); void checkResponseKeyPresenceAndValue(String messageName, String params,
        boolean checkValuesMatch); void checkFieldPresence(String messageName, String params); void stopClient(String clientName); void filterMessage(String msgType); void removeFromFiltered(String msgType); void cleanFilteredMsgs(); void removeSentMessage(String messageName); void removeDefaultSentMessage(); void getResponseToMessageFromListByField(
        String responseName,
        String messageName,
        String responseList,
        String fieldName
    ); void checkThatListOfParamsMatchInListOfMessages(String paramList, String messageList); String checkParamsMatch(String[] params, String[][] messageFieldValues); void consumeNamedResponse(String responseName); void startHandleExceptions(); void checkHandledExceptions(String exceptionList); void closeAllClients(); void closeAllServers(); void closeServer(String name); void setActions(String clientName, String actions); void resetActions(String clientName); void checkExtensionsEnabled(String extensionsName, String clientName); Map<String, String> getDefaultHeader(); UrlExtension getNamedExtension(List<UrlExtension> urlExtensions, String name); UrlExtension getExtension(String clientName, String uri); void sendNamedRestMessageWithPayloadHeaders(String httpVerb, Map<String, String> headers, String payload, String endpoint,
            UrlExtension extensionsUrl); URL getFullExtensionsUrl(String extensionsUrl, String endpoint); void checkPrecision(int precision, String timestamp); void checkTimeStampPrecision(String field, String messageName, String precision); void checkFieldAbsence(String messageName, String params); }
EtiqetHandlers { public UrlExtension getExtension(String clientName, String uri) { assertFalse("Must provide client name to acquire URL", StringUtils.isNullOrEmpty(clientName)); assertFalse("Must provide extensions name to acquire URL", StringUtils.isNullOrEmpty(uri)); Client client = getClient(clientName); assertFalse("Client not found: " + clientName, client == null); List<UrlExtension> extensions = client.getUrlExtensions(); assertFalse("No Extensions URL found in client " + clientName, (extensions.isEmpty())); return getNamedExtension(extensions, uri); } EtiqetHandlers(); void startServer(String serverName); void createServer(String serverName, String serverClass); void createServer(String serverName, String serverClass, String serverConfig); void startClient(String impl, String clientName, String extraConfig); void startClientWithFailover(String impl, String clientName, String primaryConfig,
        String secondaryConfig); Client createClient(String impl, String clientName); Client createClientWithFailover(String clientType, String clientName, String primaryConfig,
        String secondaryConfig); void failover(String clientName); void startClient(String clientName); void startClient(String impl, String clientName); void isClientLoggedOn(String name); void isClientLoggedOff(String name); void waitForClientLogon(String clientName); String getValueFromField(String messageAlias, String field); void compareValuesEqual(String firstField, String firstMessageAlias, String secondField,
        String secondMessageAlias); void compareValuesNotEqual(String firstField, String firstMessageAlias, String secondField,
        String secondMessageAlias); void compareValues(String firstField, String firstMessageAlias, String secondField,
        String secondMessageAlias, Long millis); void compareTimestamps(String firstValue, String secondValue, String firstField,
        String firstMessageAlias, String secondField, String secondMessageAlias, Long millis); void compareTimestampGreaterCukeVar(String field, String messageAlias,
        String sSecondTimestamp); void compareTimestampLesserCukeVar(String field, String messageAlias,
        String sSecondTimestamp); void compareTimestampEqualsCukeVar(String field, String messageAlias,
        String sSecondTimestamp); void validateTimestampAgainstFormatParam(String formatParam, String messageAlias,
        String field); void createMessageForClient(String msgType, String clientName, String messageName, Optional<String> params); void addCukeVariable(String alias, String value); void createMessageFromFile(String fileName, String alias); void createMessage(String msgType, String protocol, String messageName, String params); void addMessage(String messageName, Cdr message); void sendMessage(String messageName, String clientName); void sendMessage(String messageName, String clientName, String sessionName); void waitForResponse(String messageType, String clientName, int milliseconds); void waitForResponse(String messageName, String clientName); void waitForResponseOfType(String messageName, String clientName, String messageType,
        int milliseconds, boolean skipOther); void waitForResponseOfType(String messageName, String clientName, String msgType); void waitForNoResponse(String messageName, String clientName, String messageType,
        int milliseconds); void waitForNoResponse(String messageName, String clientName, String messageType); void validateMessage(String messageName, String clientName, String messageType,
        Boolean checkValuesMatch); void validateMessageTypeExistInResponseMap(String messageName); void validateMessageTypeDoesNotExistInResponseMap(String messageName); void expectException(); void resetExpectException(); void checkForExceptions(); void addException(RuntimeException e, String cukeException); void checkMessageContent(Cdr message, String params); void checkResponseKeyPresenceAndValue(String messageName, String params,
        List<String> values, String part, int position, boolean checkValuesMatch); void checkResponseKeyPresenceAndValue(String messageName, String params); void checkResponseKeyPresenceAndValue(String messageName, String params,
        boolean checkValuesMatch); void checkFieldPresence(String messageName, String params); void stopClient(String clientName); void filterMessage(String msgType); void removeFromFiltered(String msgType); void cleanFilteredMsgs(); void removeSentMessage(String messageName); void removeDefaultSentMessage(); void getResponseToMessageFromListByField(
        String responseName,
        String messageName,
        String responseList,
        String fieldName
    ); void checkThatListOfParamsMatchInListOfMessages(String paramList, String messageList); String checkParamsMatch(String[] params, String[][] messageFieldValues); void consumeNamedResponse(String responseName); void startHandleExceptions(); void checkHandledExceptions(String exceptionList); void closeAllClients(); void closeAllServers(); void closeServer(String name); void setActions(String clientName, String actions); void resetActions(String clientName); void checkExtensionsEnabled(String extensionsName, String clientName); Map<String, String> getDefaultHeader(); UrlExtension getNamedExtension(List<UrlExtension> urlExtensions, String name); UrlExtension getExtension(String clientName, String uri); void sendNamedRestMessageWithPayloadHeaders(String httpVerb, Map<String, String> headers, String payload, String endpoint,
            UrlExtension extensionsUrl); URL getFullExtensionsUrl(String extensionsUrl, String endpoint); void checkPrecision(int precision, String timestamp); void checkTimeStampPrecision(String field, String messageName, String precision); void checkFieldAbsence(String messageName, String params); static final String DEFAULT_CLIENT_NAME; static final String DEFAULT_MESSAGE_NAME; static final String DEFAULT_SERVER_NAME; static final String DEFAULT_PARAMS; static final String DEFAULT_SESSION; static final String DEFAULT_EXCEPTION; static final String RESPONSE; static final int NOT_SET; static final int MILLI_NANO_CONVERSION; static final String DEFAULT_EXTENSIONS_NAME; static final String HTTP_POST; static final String PURGE_ORDERS; static final String SET_TRADE_PHASE; static final String REMOVE_ORDERS; static final String HALT_ASSET; static final String RESUME_ASSET; static final String SECONDS_NAME; static final String MILLI_TIME_NAME; static final String MICRO_TIME_NAME; static final String NANO_TIME_NAME; static final int SECONDS_TIME_VALUE; static final int MILLI_TIME_VALUE; static final int MICRO_TIME_VALUE; static final int NANO_TIME_VALUE; static final String ERROR_CLIENT_NOT_FOUND; static final String ERROR_CLIENT_NOT_LOGGED_ON; static final String ERROR_CLIENT_NOT_LOGGED_OFF; static final String ERROR_CLIENT_NOT_STARTED; static final String ERROR_SERVER_NOT_FOUND; static final String ERROR_SERVER_NOT_CREATED; static final String ERROR_SERVER_NOT_STARTED; static final String ERROR_FIELD_COMPARISON; static final String ERROR_FIELD_COMPARISON_MILLIS; static final String CLIENT_THREAD_PREFIX; }