id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
51,100
citrusframework/citrus
modules/citrus-http/src/main/java/com/consol/citrus/http/message/HttpMessage.java
HttpMessage.queryParam
public HttpMessage queryParam(final String name, final String value) { if (!StringUtils.hasText(name)) { throw new CitrusRuntimeException("Invalid query param name - must not be empty!"); } this.addQueryParam(name, value); final String queryParamString = queryParams.entrySe...
java
public HttpMessage queryParam(final String name, final String value) { if (!StringUtils.hasText(name)) { throw new CitrusRuntimeException("Invalid query param name - must not be empty!"); } this.addQueryParam(name, value); final String queryParamString = queryParams.entrySe...
[ "public", "HttpMessage", "queryParam", "(", "final", "String", "name", ",", "final", "String", "value", ")", "{", "if", "(", "!", "StringUtils", ".", "hasText", "(", "name", ")", ")", "{", "throw", "new", "CitrusRuntimeException", "(", "\"Invalid query param n...
Sets a new Http request query param. @param name The name of the request query parameter @param value The value of the request query parameter @return The altered HttpMessage
[ "Sets", "a", "new", "Http", "request", "query", "param", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-http/src/main/java/com/consol/citrus/http/message/HttpMessage.java#L243-L259
51,101
citrusframework/citrus
modules/citrus-http/src/main/java/com/consol/citrus/http/message/HttpMessage.java
HttpMessage.path
public HttpMessage path(final String path) { header(HttpMessageHeaders.HTTP_REQUEST_URI, path); header(DynamicEndpointUriResolver.REQUEST_PATH_HEADER_NAME, path); return this; }
java
public HttpMessage path(final String path) { header(HttpMessageHeaders.HTTP_REQUEST_URI, path); header(DynamicEndpointUriResolver.REQUEST_PATH_HEADER_NAME, path); return this; }
[ "public", "HttpMessage", "path", "(", "final", "String", "path", ")", "{", "header", "(", "HttpMessageHeaders", ".", "HTTP_REQUEST_URI", ",", "path", ")", ";", "header", "(", "DynamicEndpointUriResolver", ".", "REQUEST_PATH_HEADER_NAME", ",", "path", ")", ";", "...
Sets request path that is dynamically added to base uri. @param path The part of the path to add @return The altered HttpMessage
[ "Sets", "request", "path", "that", "is", "dynamically", "added", "to", "base", "uri", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-http/src/main/java/com/consol/citrus/http/message/HttpMessage.java#L269-L273
51,102
citrusframework/citrus
modules/citrus-http/src/main/java/com/consol/citrus/http/message/HttpMessage.java
HttpMessage.getRequestMethod
public HttpMethod getRequestMethod() { final Object method = getHeader(HttpMessageHeaders.HTTP_REQUEST_METHOD); if (method != null) { return HttpMethod.valueOf(method.toString()); } return null; }
java
public HttpMethod getRequestMethod() { final Object method = getHeader(HttpMessageHeaders.HTTP_REQUEST_METHOD); if (method != null) { return HttpMethod.valueOf(method.toString()); } return null; }
[ "public", "HttpMethod", "getRequestMethod", "(", ")", "{", "final", "Object", "method", "=", "getHeader", "(", "HttpMessageHeaders", ".", "HTTP_REQUEST_METHOD", ")", ";", "if", "(", "method", "!=", "null", ")", "{", "return", "HttpMethod", ".", "valueOf", "(",...
Gets the Http request method. @return The used HttpMethod
[ "Gets", "the", "Http", "request", "method", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-http/src/main/java/com/consol/citrus/http/message/HttpMessage.java#L301-L309
51,103
citrusframework/citrus
modules/citrus-http/src/main/java/com/consol/citrus/http/message/HttpMessage.java
HttpMessage.getUri
public String getUri() { final Object requestUri = getHeader(HttpMessageHeaders.HTTP_REQUEST_URI); if (requestUri != null) { return requestUri.toString(); } return null; }
java
public String getUri() { final Object requestUri = getHeader(HttpMessageHeaders.HTTP_REQUEST_URI); if (requestUri != null) { return requestUri.toString(); } return null; }
[ "public", "String", "getUri", "(", ")", "{", "final", "Object", "requestUri", "=", "getHeader", "(", "HttpMessageHeaders", ".", "HTTP_REQUEST_URI", ")", ";", "if", "(", "requestUri", "!=", "null", ")", "{", "return", "requestUri", ".", "toString", "(", ")", ...
Gets the Http request request uri. @return The request uri
[ "Gets", "the", "Http", "request", "request", "uri", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-http/src/main/java/com/consol/citrus/http/message/HttpMessage.java#L316-L324
51,104
citrusframework/citrus
modules/citrus-http/src/main/java/com/consol/citrus/http/message/HttpMessage.java
HttpMessage.getContextPath
public String getContextPath() { final Object contextPath = getHeader(HttpMessageHeaders.HTTP_CONTEXT_PATH); if (contextPath != null) { return contextPath.toString(); } return null; }
java
public String getContextPath() { final Object contextPath = getHeader(HttpMessageHeaders.HTTP_CONTEXT_PATH); if (contextPath != null) { return contextPath.toString(); } return null; }
[ "public", "String", "getContextPath", "(", ")", "{", "final", "Object", "contextPath", "=", "getHeader", "(", "HttpMessageHeaders", ".", "HTTP_CONTEXT_PATH", ")", ";", "if", "(", "contextPath", "!=", "null", ")", "{", "return", "contextPath", ".", "toString", ...
Gets the Http request context path. @return the context path
[ "Gets", "the", "Http", "request", "context", "path", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-http/src/main/java/com/consol/citrus/http/message/HttpMessage.java#L331-L339
51,105
citrusframework/citrus
modules/citrus-http/src/main/java/com/consol/citrus/http/message/HttpMessage.java
HttpMessage.getContentType
public String getContentType() { final Object contentType = getHeader(HttpMessageHeaders.HTTP_CONTENT_TYPE); if (contentType != null) { return contentType.toString(); } return null; }
java
public String getContentType() { final Object contentType = getHeader(HttpMessageHeaders.HTTP_CONTENT_TYPE); if (contentType != null) { return contentType.toString(); } return null; }
[ "public", "String", "getContentType", "(", ")", "{", "final", "Object", "contentType", "=", "getHeader", "(", "HttpMessageHeaders", ".", "HTTP_CONTENT_TYPE", ")", ";", "if", "(", "contentType", "!=", "null", ")", "{", "return", "contentType", ".", "toString", ...
Gets the Http content type header. @return the content type header value
[ "Gets", "the", "Http", "content", "type", "header", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-http/src/main/java/com/consol/citrus/http/message/HttpMessage.java#L346-L354
51,106
citrusframework/citrus
modules/citrus-http/src/main/java/com/consol/citrus/http/message/HttpMessage.java
HttpMessage.getAccept
public String getAccept() { final Object accept = getHeader("Accept"); if (accept != null) { return accept.toString(); } return null; }
java
public String getAccept() { final Object accept = getHeader("Accept"); if (accept != null) { return accept.toString(); } return null; }
[ "public", "String", "getAccept", "(", ")", "{", "final", "Object", "accept", "=", "getHeader", "(", "\"Accept\"", ")", ";", "if", "(", "accept", "!=", "null", ")", "{", "return", "accept", ".", "toString", "(", ")", ";", "}", "return", "null", ";", "...
Gets the accept header. @return The accept header value
[ "Gets", "the", "accept", "header", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-http/src/main/java/com/consol/citrus/http/message/HttpMessage.java#L361-L369
51,107
citrusframework/citrus
modules/citrus-http/src/main/java/com/consol/citrus/http/message/HttpMessage.java
HttpMessage.getQueryParamString
public String getQueryParamString() { return Optional.ofNullable(getHeader(HttpMessageHeaders.HTTP_QUERY_PARAMS)).map(Object::toString).orElse(""); }
java
public String getQueryParamString() { return Optional.ofNullable(getHeader(HttpMessageHeaders.HTTP_QUERY_PARAMS)).map(Object::toString).orElse(""); }
[ "public", "String", "getQueryParamString", "(", ")", "{", "return", "Optional", ".", "ofNullable", "(", "getHeader", "(", "HttpMessageHeaders", ".", "HTTP_QUERY_PARAMS", ")", ")", ".", "map", "(", "Object", "::", "toString", ")", ".", "orElse", "(", "\"\"", ...
Gets the Http request query param string. @return The query parameter as string
[ "Gets", "the", "Http", "request", "query", "param", "string", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-http/src/main/java/com/consol/citrus/http/message/HttpMessage.java#L385-L387
51,108
citrusframework/citrus
modules/citrus-http/src/main/java/com/consol/citrus/http/message/HttpMessage.java
HttpMessage.getStatusCode
public HttpStatus getStatusCode() { final Object statusCode = getHeader(HttpMessageHeaders.HTTP_STATUS_CODE); if (statusCode != null) { if (statusCode instanceof HttpStatus) { return (HttpStatus) statusCode; } else if (statusCode instanceof Integer) { ...
java
public HttpStatus getStatusCode() { final Object statusCode = getHeader(HttpMessageHeaders.HTTP_STATUS_CODE); if (statusCode != null) { if (statusCode instanceof HttpStatus) { return (HttpStatus) statusCode; } else if (statusCode instanceof Integer) { ...
[ "public", "HttpStatus", "getStatusCode", "(", ")", "{", "final", "Object", "statusCode", "=", "getHeader", "(", "HttpMessageHeaders", ".", "HTTP_STATUS_CODE", ")", ";", "if", "(", "statusCode", "!=", "null", ")", "{", "if", "(", "statusCode", "instanceof", "Ht...
Gets the Http response status code. @return The status code of the message
[ "Gets", "the", "Http", "response", "status", "code", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-http/src/main/java/com/consol/citrus/http/message/HttpMessage.java#L394-L408
51,109
citrusframework/citrus
modules/citrus-http/src/main/java/com/consol/citrus/http/message/HttpMessage.java
HttpMessage.getReasonPhrase
public String getReasonPhrase() { final Object reasonPhrase = getHeader(HttpMessageHeaders.HTTP_REASON_PHRASE); if (reasonPhrase != null) { return reasonPhrase.toString(); } return null; }
java
public String getReasonPhrase() { final Object reasonPhrase = getHeader(HttpMessageHeaders.HTTP_REASON_PHRASE); if (reasonPhrase != null) { return reasonPhrase.toString(); } return null; }
[ "public", "String", "getReasonPhrase", "(", ")", "{", "final", "Object", "reasonPhrase", "=", "getHeader", "(", "HttpMessageHeaders", ".", "HTTP_REASON_PHRASE", ")", ";", "if", "(", "reasonPhrase", "!=", "null", ")", "{", "return", "reasonPhrase", ".", "toString...
Gets the Http response reason phrase. @return The reason phrase of the message
[ "Gets", "the", "Http", "response", "reason", "phrase", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-http/src/main/java/com/consol/citrus/http/message/HttpMessage.java#L415-L423
51,110
citrusframework/citrus
modules/citrus-http/src/main/java/com/consol/citrus/http/message/HttpMessage.java
HttpMessage.getVersion
public String getVersion() { final Object version = getHeader(HttpMessageHeaders.HTTP_VERSION); if (version != null) { return version.toString(); } return null; }
java
public String getVersion() { final Object version = getHeader(HttpMessageHeaders.HTTP_VERSION); if (version != null) { return version.toString(); } return null; }
[ "public", "String", "getVersion", "(", ")", "{", "final", "Object", "version", "=", "getHeader", "(", "HttpMessageHeaders", ".", "HTTP_VERSION", ")", ";", "if", "(", "version", "!=", "null", ")", "{", "return", "version", ".", "toString", "(", ")", ";", ...
Gets the Http version. @return The http version of the message
[ "Gets", "the", "Http", "version", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-http/src/main/java/com/consol/citrus/http/message/HttpMessage.java#L430-L438
51,111
citrusframework/citrus
modules/citrus-http/src/main/java/com/consol/citrus/http/message/HttpMessage.java
HttpMessage.getPath
public String getPath() { final Object path = getHeader(DynamicEndpointUriResolver.REQUEST_PATH_HEADER_NAME); if (path != null) { return path.toString(); } return null; }
java
public String getPath() { final Object path = getHeader(DynamicEndpointUriResolver.REQUEST_PATH_HEADER_NAME); if (path != null) { return path.toString(); } return null; }
[ "public", "String", "getPath", "(", ")", "{", "final", "Object", "path", "=", "getHeader", "(", "DynamicEndpointUriResolver", ".", "REQUEST_PATH_HEADER_NAME", ")", ";", "if", "(", "path", "!=", "null", ")", "{", "return", "path", ".", "toString", "(", ")", ...
Gets the request path after the context path. @return The request path of the message
[ "Gets", "the", "request", "path", "after", "the", "context", "path", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-http/src/main/java/com/consol/citrus/http/message/HttpMessage.java#L445-L453
51,112
citrusframework/citrus
modules/citrus-http/src/main/java/com/consol/citrus/http/message/HttpMessage.java
HttpMessage.setCookies
public void setCookies(final Cookie[] cookies) { this.cookies.clear(); if (cookies != null) { for (final Cookie cookie : cookies) { cookie(cookie); } } }
java
public void setCookies(final Cookie[] cookies) { this.cookies.clear(); if (cookies != null) { for (final Cookie cookie : cookies) { cookie(cookie); } } }
[ "public", "void", "setCookies", "(", "final", "Cookie", "[", "]", "cookies", ")", "{", "this", ".", "cookies", ".", "clear", "(", ")", ";", "if", "(", "cookies", "!=", "null", ")", "{", "for", "(", "final", "Cookie", "cookie", ":", "cookies", ")", ...
Sets the cookies. @param cookies The cookies to set
[ "Sets", "the", "cookies", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-http/src/main/java/com/consol/citrus/http/message/HttpMessage.java#L478-L485
51,113
citrusframework/citrus
modules/citrus-http/src/main/java/com/consol/citrus/http/message/HttpMessage.java
HttpMessage.cookie
public HttpMessage cookie(final Cookie cookie) { this.cookies.put(cookie.getName(), cookie); setHeader( HttpMessageHeaders.HTTP_COOKIE_PREFIX + cookie.getName(), cookieConverter.getCookieString(cookie)); return this; }
java
public HttpMessage cookie(final Cookie cookie) { this.cookies.put(cookie.getName(), cookie); setHeader( HttpMessageHeaders.HTTP_COOKIE_PREFIX + cookie.getName(), cookieConverter.getCookieString(cookie)); return this; }
[ "public", "HttpMessage", "cookie", "(", "final", "Cookie", "cookie", ")", "{", "this", ".", "cookies", ".", "put", "(", "cookie", ".", "getName", "(", ")", ",", "cookie", ")", ";", "setHeader", "(", "HttpMessageHeaders", ".", "HTTP_COOKIE_PREFIX", "+", "co...
Adds new cookie to this http message. @param cookie The Cookie to set @return The altered HttpMessage
[ "Adds", "new", "cookie", "to", "this", "http", "message", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-http/src/main/java/com/consol/citrus/http/message/HttpMessage.java#L493-L501
51,114
citrusframework/citrus
modules/citrus-http/src/main/java/com/consol/citrus/http/message/HttpMessage.java
HttpMessage.fromRequestData
public static HttpMessage fromRequestData(final String requestData) { try (final BufferedReader reader = new BufferedReader(new StringReader(requestData))) { final HttpMessage request = new HttpMessage(); final String[] requestLine = reader.readLine().split("\\s"); if (reque...
java
public static HttpMessage fromRequestData(final String requestData) { try (final BufferedReader reader = new BufferedReader(new StringReader(requestData))) { final HttpMessage request = new HttpMessage(); final String[] requestLine = reader.readLine().split("\\s"); if (reque...
[ "public", "static", "HttpMessage", "fromRequestData", "(", "final", "String", "requestData", ")", "{", "try", "(", "final", "BufferedReader", "reader", "=", "new", "BufferedReader", "(", "new", "StringReader", "(", "requestData", ")", ")", ")", "{", "final", "...
Reads request from complete request dump. @param requestData The request dump to parse @return The parsed dump as HttpMessage
[ "Reads", "request", "from", "complete", "request", "dump", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-http/src/main/java/com/consol/citrus/http/message/HttpMessage.java#L509-L530
51,115
citrusframework/citrus
modules/citrus-http/src/main/java/com/consol/citrus/http/message/HttpMessage.java
HttpMessage.fromResponseData
public static HttpMessage fromResponseData(final String responseData) { try (final BufferedReader reader = new BufferedReader(new StringReader(responseData))) { final HttpMessage response = new HttpMessage(); final String[] statusLine = reader.readLine().split("\\s"); if (st...
java
public static HttpMessage fromResponseData(final String responseData) { try (final BufferedReader reader = new BufferedReader(new StringReader(responseData))) { final HttpMessage response = new HttpMessage(); final String[] statusLine = reader.readLine().split("\\s"); if (st...
[ "public", "static", "HttpMessage", "fromResponseData", "(", "final", "String", "responseData", ")", "{", "try", "(", "final", "BufferedReader", "reader", "=", "new", "BufferedReader", "(", "new", "StringReader", "(", "responseData", ")", ")", ")", "{", "final", ...
Reads response from complete response dump. @param responseData The response dump to parse @return The parsed dump as HttpMessage
[ "Reads", "response", "from", "complete", "response", "dump", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-http/src/main/java/com/consol/citrus/http/message/HttpMessage.java#L538-L555
51,116
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/variable/GlobalVariablesPropertyLoader.java
GlobalVariablesPropertyLoader.loadPropertiesAsVariables
public void loadPropertiesAsVariables() { BufferedReader reader = null; try { if (propertyFilesSet()) { for (String propertyFilePath : propertyFiles) { Resource propertyFile = new PathMatchingResourcePatternResolver().getResource(propertyFilePath.trim());...
java
public void loadPropertiesAsVariables() { BufferedReader reader = null; try { if (propertyFilesSet()) { for (String propertyFilePath : propertyFiles) { Resource propertyFile = new PathMatchingResourcePatternResolver().getResource(propertyFilePath.trim());...
[ "public", "void", "loadPropertiesAsVariables", "(", ")", "{", "BufferedReader", "reader", "=", "null", ";", "try", "{", "if", "(", "propertyFilesSet", "(", ")", ")", "{", "for", "(", "String", "propertyFilePath", ":", "propertyFiles", ")", "{", "Resource", "...
Load the properties as variables. @throws CitrusRuntimeException
[ "Load", "the", "properties", "as", "variables", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/variable/GlobalVariablesPropertyLoader.java#L59-L124
51,117
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/condition/HttpCondition.java
HttpCondition.invokeUrl
private int invokeUrl(TestContext context) { URL contextUrl = getUrl(context); if (log.isDebugEnabled()) { log.debug(String.format("Probing Http request url '%s'", contextUrl.toExternalForm())); } int responseCode = -1; HttpURLConnection httpURLConnection = null; ...
java
private int invokeUrl(TestContext context) { URL contextUrl = getUrl(context); if (log.isDebugEnabled()) { log.debug(String.format("Probing Http request url '%s'", contextUrl.toExternalForm())); } int responseCode = -1; HttpURLConnection httpURLConnection = null; ...
[ "private", "int", "invokeUrl", "(", "TestContext", "context", ")", "{", "URL", "contextUrl", "=", "getUrl", "(", "context", ")", ";", "if", "(", "log", ".", "isDebugEnabled", "(", ")", ")", "{", "log", ".", "debug", "(", "String", ".", "format", "(", ...
Invokes Http request URL and returns response code. @param context The context to use for the URL invocation @return The response code of the request
[ "Invokes", "Http", "request", "URL", "and", "returns", "response", "code", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/condition/HttpCondition.java#L81-L105
51,118
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/condition/HttpCondition.java
HttpCondition.getUrl
private URL getUrl(TestContext context) { try { return new URL(context.replaceDynamicContentInString(this.url)); } catch (MalformedURLException e) { throw new CitrusRuntimeException("Invalid request url", e); } }
java
private URL getUrl(TestContext context) { try { return new URL(context.replaceDynamicContentInString(this.url)); } catch (MalformedURLException e) { throw new CitrusRuntimeException("Invalid request url", e); } }
[ "private", "URL", "getUrl", "(", "TestContext", "context", ")", "{", "try", "{", "return", "new", "URL", "(", "context", ".", "replaceDynamicContentInString", "(", "this", ".", "url", ")", ")", ";", "}", "catch", "(", "MalformedURLException", "e", ")", "{"...
Gets the request url with test variable support. @param context The test context to get the url from @return The extracted url
[ "Gets", "the", "request", "url", "with", "test", "variable", "support", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/condition/HttpCondition.java#L122-L128
51,119
citrusframework/citrus
modules/citrus-ws/src/main/java/com/consol/citrus/ws/actions/AssertSoapFault.java
AssertSoapFault.constructControlFault
private SoapFault constructControlFault(TestContext context) { SoapFault controlFault= new SoapFault(); if (StringUtils.hasText(faultActor)) { controlFault.faultActor(context.replaceDynamicContentInString(faultActor)); } controlFault.faultCode(context.replaceDynamicContentI...
java
private SoapFault constructControlFault(TestContext context) { SoapFault controlFault= new SoapFault(); if (StringUtils.hasText(faultActor)) { controlFault.faultActor(context.replaceDynamicContentInString(faultActor)); } controlFault.faultCode(context.replaceDynamicContentI...
[ "private", "SoapFault", "constructControlFault", "(", "TestContext", "context", ")", "{", "SoapFault", "controlFault", "=", "new", "SoapFault", "(", ")", ";", "if", "(", "StringUtils", ".", "hasText", "(", "faultActor", ")", ")", "{", "controlFault", ".", "fau...
Constructs the control soap fault holding all expected fault information like faultCode, faultString and faultDetail. @return the constructed SoapFault instance.
[ "Constructs", "the", "control", "soap", "fault", "holding", "all", "expected", "fault", "information", "like", "faultCode", "faultString", "and", "faultDetail", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-ws/src/main/java/com/consol/citrus/ws/actions/AssertSoapFault.java#L116-L140
51,120
citrusframework/citrus
modules/citrus-kubernetes/src/main/java/com/consol/citrus/kubernetes/message/KubernetesMessageConverter.java
KubernetesMessageConverter.getCommandByName
private KubernetesCommand<?> getCommandByName(String commandName) { if (!StringUtils.hasText(commandName)) { throw new CitrusRuntimeException("Missing command name property"); } switch (commandName) { case "info": return new Info(); case "list...
java
private KubernetesCommand<?> getCommandByName(String commandName) { if (!StringUtils.hasText(commandName)) { throw new CitrusRuntimeException("Missing command name property"); } switch (commandName) { case "info": return new Info(); case "list...
[ "private", "KubernetesCommand", "<", "?", ">", "getCommandByName", "(", "String", "commandName", ")", "{", "if", "(", "!", "StringUtils", ".", "hasText", "(", "commandName", ")", ")", "{", "throw", "new", "CitrusRuntimeException", "(", "\"Missing command name prop...
Creates a new kubernetes command message model object from message headers. @param commandName @return
[ "Creates", "a", "new", "kubernetes", "command", "message", "model", "object", "from", "message", "headers", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-kubernetes/src/main/java/com/consol/citrus/kubernetes/message/KubernetesMessageConverter.java#L87-L134
51,121
citrusframework/citrus
modules/citrus-kubernetes/src/main/java/com/consol/citrus/kubernetes/message/KubernetesMessageConverter.java
KubernetesMessageConverter.createMessageHeaders
private Map<String,Object> createMessageHeaders(KubernetesCommand<?> command) { Map<String, Object> headers = new HashMap<String, Object>(); headers.put(KubernetesMessageHeaders.COMMAND, command.getName()); for (Map.Entry<String, Object> entry : command.getParameters().entrySet()) { ...
java
private Map<String,Object> createMessageHeaders(KubernetesCommand<?> command) { Map<String, Object> headers = new HashMap<String, Object>(); headers.put(KubernetesMessageHeaders.COMMAND, command.getName()); for (Map.Entry<String, Object> entry : command.getParameters().entrySet()) { ...
[ "private", "Map", "<", "String", ",", "Object", ">", "createMessageHeaders", "(", "KubernetesCommand", "<", "?", ">", "command", ")", "{", "Map", "<", "String", ",", "Object", ">", "headers", "=", "new", "HashMap", "<", "String", ",", "Object", ">", "(",...
Reads basic command information and converts to message headers. @param command @return
[ "Reads", "basic", "command", "information", "and", "converts", "to", "message", "headers", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-kubernetes/src/main/java/com/consol/citrus/kubernetes/message/KubernetesMessageConverter.java#L141-L151
51,122
citrusframework/citrus
modules/citrus-docker/src/main/java/com/consol/citrus/docker/command/ContainerCreate.java
ContainerCreate.getVolumes
private Volume[] getVolumes(TestContext context) { String[] volumes = StringUtils.commaDelimitedListToStringArray(getParameter("volumes", context)); Volume[] volumeSpecs = new Volume[volumes.length]; for (int i = 0; i < volumes.length; i++) { volumeSpecs[i] = new Volume(volumes[i]);...
java
private Volume[] getVolumes(TestContext context) { String[] volumes = StringUtils.commaDelimitedListToStringArray(getParameter("volumes", context)); Volume[] volumeSpecs = new Volume[volumes.length]; for (int i = 0; i < volumes.length; i++) { volumeSpecs[i] = new Volume(volumes[i]);...
[ "private", "Volume", "[", "]", "getVolumes", "(", "TestContext", "context", ")", "{", "String", "[", "]", "volumes", "=", "StringUtils", ".", "commaDelimitedListToStringArray", "(", "getParameter", "(", "\"volumes\"", ",", "context", ")", ")", ";", "Volume", "...
Gets the volume specs from comma delimited string. @return
[ "Gets", "the", "volume", "specs", "from", "comma", "delimited", "string", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-docker/src/main/java/com/consol/citrus/docker/command/ContainerCreate.java#L164-L173
51,123
citrusframework/citrus
modules/citrus-docker/src/main/java/com/consol/citrus/docker/command/ContainerCreate.java
ContainerCreate.getCapabilities
private Capability[] getCapabilities(String addDrop, TestContext context) { String[] capabilities = StringUtils.commaDelimitedListToStringArray(getParameter(addDrop, context)); Capability[] capAdd = new Capability[capabilities.length]; for (int i = 0; i < capabilities.length; i++) { ...
java
private Capability[] getCapabilities(String addDrop, TestContext context) { String[] capabilities = StringUtils.commaDelimitedListToStringArray(getParameter(addDrop, context)); Capability[] capAdd = new Capability[capabilities.length]; for (int i = 0; i < capabilities.length; i++) { ...
[ "private", "Capability", "[", "]", "getCapabilities", "(", "String", "addDrop", ",", "TestContext", "context", ")", "{", "String", "[", "]", "capabilities", "=", "StringUtils", ".", "commaDelimitedListToStringArray", "(", "getParameter", "(", "addDrop", ",", "cont...
Gets the capabilities added. @return
[ "Gets", "the", "capabilities", "added", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-docker/src/main/java/com/consol/citrus/docker/command/ContainerCreate.java#L179-L188
51,124
citrusframework/citrus
modules/citrus-docker/src/main/java/com/consol/citrus/docker/command/ContainerCreate.java
ContainerCreate.getExposedPorts
private ExposedPort[] getExposedPorts(String portSpecs, TestContext context) { String[] ports = StringUtils.commaDelimitedListToStringArray(portSpecs); ExposedPort[] exposedPorts = new ExposedPort[ports.length]; for (int i = 0; i < ports.length; i++) { String portSpec = context.repl...
java
private ExposedPort[] getExposedPorts(String portSpecs, TestContext context) { String[] ports = StringUtils.commaDelimitedListToStringArray(portSpecs); ExposedPort[] exposedPorts = new ExposedPort[ports.length]; for (int i = 0; i < ports.length; i++) { String portSpec = context.repl...
[ "private", "ExposedPort", "[", "]", "getExposedPorts", "(", "String", "portSpecs", ",", "TestContext", "context", ")", "{", "String", "[", "]", "ports", "=", "StringUtils", ".", "commaDelimitedListToStringArray", "(", "portSpecs", ")", ";", "ExposedPort", "[", "...
Construct set of exposed ports from comma delimited list of ports. @param portSpecs @param context @return
[ "Construct", "set", "of", "exposed", "ports", "from", "comma", "delimited", "list", "of", "ports", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-docker/src/main/java/com/consol/citrus/docker/command/ContainerCreate.java#L196-L213
51,125
citrusframework/citrus
modules/citrus-docker/src/main/java/com/consol/citrus/docker/command/ContainerCreate.java
ContainerCreate.getPortBindings
private Ports getPortBindings(String portSpecs, ExposedPort[] exposedPorts, TestContext context) { String[] ports = StringUtils.commaDelimitedListToStringArray(portSpecs); Ports portsBindings = new Ports(); for (String portSpec : ports) { String[] binding = context.replaceDynamicCon...
java
private Ports getPortBindings(String portSpecs, ExposedPort[] exposedPorts, TestContext context) { String[] ports = StringUtils.commaDelimitedListToStringArray(portSpecs); Ports portsBindings = new Ports(); for (String portSpec : ports) { String[] binding = context.replaceDynamicCon...
[ "private", "Ports", "getPortBindings", "(", "String", "portSpecs", ",", "ExposedPort", "[", "]", "exposedPorts", ",", "TestContext", "context", ")", "{", "String", "[", "]", "ports", "=", "StringUtils", ".", "commaDelimitedListToStringArray", "(", "portSpecs", ")"...
Construct set of port bindings from comma delimited list of ports. @param portSpecs @param exposedPorts @param context @return
[ "Construct", "set", "of", "port", "bindings", "from", "comma", "delimited", "list", "of", "ports", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-docker/src/main/java/com/consol/citrus/docker/command/ContainerCreate.java#L222-L239
51,126
citrusframework/citrus
modules/citrus-camel/src/main/java/com/consol/citrus/camel/endpoint/CamelSyncConsumer.java
CamelSyncConsumer.buildOutMessage
private void buildOutMessage(Exchange exchange, Message message) { org.apache.camel.Message reply = exchange.getOut(); for (Map.Entry<String, Object> header : message.getHeaders().entrySet()) { if (!header.getKey().startsWith(MessageHeaders.PREFIX)) { reply.setHeader(header.g...
java
private void buildOutMessage(Exchange exchange, Message message) { org.apache.camel.Message reply = exchange.getOut(); for (Map.Entry<String, Object> header : message.getHeaders().entrySet()) { if (!header.getKey().startsWith(MessageHeaders.PREFIX)) { reply.setHeader(header.g...
[ "private", "void", "buildOutMessage", "(", "Exchange", "exchange", ",", "Message", "message", ")", "{", "org", ".", "apache", ".", "camel", ".", "Message", "reply", "=", "exchange", ".", "getOut", "(", ")", ";", "for", "(", "Map", ".", "Entry", "<", "S...
Builds response and sets it as out message on given Camel exchange. @param message @param exchange @return
[ "Builds", "response", "and", "sets", "it", "as", "out", "message", "on", "given", "Camel", "exchange", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-camel/src/main/java/com/consol/citrus/camel/endpoint/CamelSyncConsumer.java#L114-L145
51,127
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/actions/SendMessageAction.java
SendMessageAction.createMessage
protected Message createMessage(TestContext context, String messageType) { if (dataDictionary != null) { messageBuilder.setDataDictionary(dataDictionary); } return messageBuilder.buildMessageContent(context, messageType, MessageDirection.OUTBOUND); }
java
protected Message createMessage(TestContext context, String messageType) { if (dataDictionary != null) { messageBuilder.setDataDictionary(dataDictionary); } return messageBuilder.buildMessageContent(context, messageType, MessageDirection.OUTBOUND); }
[ "protected", "Message", "createMessage", "(", "TestContext", "context", ",", "String", "messageType", ")", "{", "if", "(", "dataDictionary", "!=", "null", ")", "{", "messageBuilder", ".", "setDataDictionary", "(", "dataDictionary", ")", ";", "}", "return", "mess...
Create message to be sent. @param context @param messageType @return
[ "Create", "message", "to", "be", "sent", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/actions/SendMessageAction.java#L158-L164
51,128
citrusframework/citrus
modules/citrus-jmx/src/main/java/com/consol/citrus/jmx/client/JmxClient.java
JmxClient.getNetworkConnection
private MBeanServerConnection getNetworkConnection() { try { JMXServiceURL url = new JMXServiceURL(getEndpointConfiguration().getServerUrl()); String[] creds = {getEndpointConfiguration().getUsername(), getEndpointConfiguration().getPassword()}; JMXConnector networkConnector ...
java
private MBeanServerConnection getNetworkConnection() { try { JMXServiceURL url = new JMXServiceURL(getEndpointConfiguration().getServerUrl()); String[] creds = {getEndpointConfiguration().getUsername(), getEndpointConfiguration().getPassword()}; JMXConnector networkConnector ...
[ "private", "MBeanServerConnection", "getNetworkConnection", "(", ")", "{", "try", "{", "JMXServiceURL", "url", "=", "new", "JMXServiceURL", "(", "getEndpointConfiguration", "(", ")", ".", "getServerUrl", "(", ")", ")", ";", "String", "[", "]", "creds", "=", "{...
Establish network connection to remote mBean server. @return
[ "Establish", "network", "connection", "to", "remote", "mBean", "server", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-jmx/src/main/java/com/consol/citrus/jmx/client/JmxClient.java#L169-L181
51,129
citrusframework/citrus
modules/citrus-jmx/src/main/java/com/consol/citrus/jmx/client/JmxClient.java
JmxClient.connectionLost
private boolean connectionLost(JMXConnectionNotification connectionNotification) { return connectionNotification.getType().equals(JMXConnectionNotification.NOTIFS_LOST) || connectionNotification.getType().equals(JMXConnectionNotification.CLOSED) || connectionNotification.getType(...
java
private boolean connectionLost(JMXConnectionNotification connectionNotification) { return connectionNotification.getType().equals(JMXConnectionNotification.NOTIFS_LOST) || connectionNotification.getType().equals(JMXConnectionNotification.CLOSED) || connectionNotification.getType(...
[ "private", "boolean", "connectionLost", "(", "JMXConnectionNotification", "connectionNotification", ")", "{", "return", "connectionNotification", ".", "getType", "(", ")", ".", "equals", "(", "JMXConnectionNotification", ".", "NOTIFS_LOST", ")", "||", "connectionNotificat...
Finds connection lost type notifications. @param connectionNotification @return
[ "Finds", "connection", "lost", "type", "notifications", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-jmx/src/main/java/com/consol/citrus/jmx/client/JmxClient.java#L227-L231
51,130
citrusframework/citrus
modules/citrus-jmx/src/main/java/com/consol/citrus/jmx/client/JmxClient.java
JmxClient.scheduleReconnect
public void scheduleReconnect() { Runnable startRunnable = new Runnable() { @Override public void run() { try { MBeanServerConnection serverConnection = getNetworkConnection(); if (notificationListener != null) { ...
java
public void scheduleReconnect() { Runnable startRunnable = new Runnable() { @Override public void run() { try { MBeanServerConnection serverConnection = getNetworkConnection(); if (notificationListener != null) { ...
[ "public", "void", "scheduleReconnect", "(", ")", "{", "Runnable", "startRunnable", "=", "new", "Runnable", "(", ")", "{", "@", "Override", "public", "void", "run", "(", ")", "{", "try", "{", "MBeanServerConnection", "serverConnection", "=", "getNetworkConnection...
Schedules an attempt to re-initialize a lost connection after the reconnect delay
[ "Schedules", "an", "attempt", "to", "re", "-", "initialize", "a", "lost", "connection", "after", "the", "reconnect", "delay" ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-jmx/src/main/java/com/consol/citrus/jmx/client/JmxClient.java#L236-L253
51,131
citrusframework/citrus
modules/citrus-jmx/src/main/java/com/consol/citrus/jmx/client/JmxClient.java
JmxClient.addNotificationListener
private void addNotificationListener(ObjectName objectName, final String correlationKey, MBeanServerConnection serverConnection) { try { notificationListener = new NotificationListener() { @Override public void handleNotification(Notification notification, Object hand...
java
private void addNotificationListener(ObjectName objectName, final String correlationKey, MBeanServerConnection serverConnection) { try { notificationListener = new NotificationListener() { @Override public void handleNotification(Notification notification, Object hand...
[ "private", "void", "addNotificationListener", "(", "ObjectName", "objectName", ",", "final", "String", "correlationKey", ",", "MBeanServerConnection", "serverConnection", ")", "{", "try", "{", "notificationListener", "=", "new", "NotificationListener", "(", ")", "{", ...
Add notification listener for response messages. @param objectName @param correlationKey @param serverConnection
[ "Add", "notification", "listener", "for", "response", "messages", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-jmx/src/main/java/com/consol/citrus/jmx/client/JmxClient.java#L261-L276
51,132
citrusframework/citrus
modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/AntRunBuilder.java
AntRunBuilder.targets
public AntRunBuilder targets(String ... targets) { action.setTargets(StringUtils.collectionToCommaDelimitedString(Arrays.asList(targets))); return this; }
java
public AntRunBuilder targets(String ... targets) { action.setTargets(StringUtils.collectionToCommaDelimitedString(Arrays.asList(targets))); return this; }
[ "public", "AntRunBuilder", "targets", "(", "String", "...", "targets", ")", "{", "action", ".", "setTargets", "(", "StringUtils", ".", "collectionToCommaDelimitedString", "(", "Arrays", ".", "asList", "(", "targets", ")", ")", ")", ";", "return", "this", ";", ...
Multiple build target names to call. @param targets
[ "Multiple", "build", "target", "names", "to", "call", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/AntRunBuilder.java#L71-L74
51,133
citrusframework/citrus
modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/AntRunBuilder.java
AntRunBuilder.property
public AntRunBuilder property(String name, Object value) { action.getProperties().put(name, value); return this; }
java
public AntRunBuilder property(String name, Object value) { action.getProperties().put(name, value); return this; }
[ "public", "AntRunBuilder", "property", "(", "String", "name", ",", "Object", "value", ")", "{", "action", ".", "getProperties", "(", ")", ".", "put", "(", "name", ",", "value", ")", ";", "return", "this", ";", "}" ]
Adds a build property by name and value. @param name @param value
[ "Adds", "a", "build", "property", "by", "name", "and", "value", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/AntRunBuilder.java#L81-L84
51,134
citrusframework/citrus
modules/citrus-websocket/src/main/java/com/consol/citrus/websocket/client/WebSocketClientEndpointConfiguration.java
WebSocketClientEndpointConfiguration.getWebSocketClientHandler
private CitrusWebSocketHandler getWebSocketClientHandler(String url) { CitrusWebSocketHandler handler = new CitrusWebSocketHandler(); if (webSocketHttpHeaders == null) { webSocketHttpHeaders = new WebSocketHttpHeaders(); webSocketHttpHeaders.setSecWebSocketExtensions(Collections...
java
private CitrusWebSocketHandler getWebSocketClientHandler(String url) { CitrusWebSocketHandler handler = new CitrusWebSocketHandler(); if (webSocketHttpHeaders == null) { webSocketHttpHeaders = new WebSocketHttpHeaders(); webSocketHttpHeaders.setSecWebSocketExtensions(Collections...
[ "private", "CitrusWebSocketHandler", "getWebSocketClientHandler", "(", "String", "url", ")", "{", "CitrusWebSocketHandler", "handler", "=", "new", "CitrusWebSocketHandler", "(", ")", ";", "if", "(", "webSocketHttpHeaders", "==", "null", ")", "{", "webSocketHttpHeaders",...
Creates new client web socket handler by opening a new socket connection to server. @param url @return
[ "Creates", "new", "client", "web", "socket", "handler", "by", "opening", "a", "new", "socket", "connection", "to", "server", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-websocket/src/main/java/com/consol/citrus/websocket/client/WebSocketClientEndpointConfiguration.java#L73-L90
51,135
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/main/CitrusApp.java
CitrusApp.main
public static void main(String[] args) { CitrusApp citrusApp = new CitrusApp(args); if (citrusApp.configuration.getTimeToLive() > 0) { CompletableFuture.runAsync(() -> { try { new CompletableFuture<Void>().get(citrusApp.configuration.getTimeToLive(), Time...
java
public static void main(String[] args) { CitrusApp citrusApp = new CitrusApp(args); if (citrusApp.configuration.getTimeToLive() > 0) { CompletableFuture.runAsync(() -> { try { new CompletableFuture<Void>().get(citrusApp.configuration.getTimeToLive(), Time...
[ "public", "static", "void", "main", "(", "String", "[", "]", "args", ")", "{", "CitrusApp", "citrusApp", "=", "new", "CitrusApp", "(", "args", ")", ";", "if", "(", "citrusApp", ".", "configuration", ".", "getTimeToLive", "(", ")", ">", "0", ")", "{", ...
Main method with command line arguments. @param args
[ "Main", "method", "with", "command", "line", "arguments", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/main/CitrusApp.java#L76-L117
51,136
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/main/CitrusApp.java
CitrusApp.run
public void run() { if (isCompleted()) { log.info("Not executing tests as application state is completed!"); return; } log.info(String.format("Running Citrus %s", Citrus.getVersion())); setDefaultProperties(configuration); if (ClassUtils.isPresent("org.t...
java
public void run() { if (isCompleted()) { log.info("Not executing tests as application state is completed!"); return; } log.info(String.format("Running Citrus %s", Citrus.getVersion())); setDefaultProperties(configuration); if (ClassUtils.isPresent("org.t...
[ "public", "void", "run", "(", ")", "{", "if", "(", "isCompleted", "(", ")", ")", "{", "log", ".", "info", "(", "\"Not executing tests as application state is completed!\"", ")", ";", "return", ";", "}", "log", ".", "info", "(", "String", ".", "format", "("...
Run application with prepared Citrus instance.
[ "Run", "application", "with", "prepared", "Citrus", "instance", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/main/CitrusApp.java#L122-L136
51,137
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/main/CitrusApp.java
CitrusApp.stop
private void stop() { complete(); Citrus citrus = Citrus.CitrusInstanceManager.getSingleton(); if (citrus != null) { log.info("Closing Citrus and its application context"); citrus.close(); } }
java
private void stop() { complete(); Citrus citrus = Citrus.CitrusInstanceManager.getSingleton(); if (citrus != null) { log.info("Closing Citrus and its application context"); citrus.close(); } }
[ "private", "void", "stop", "(", ")", "{", "complete", "(", ")", ";", "Citrus", "citrus", "=", "Citrus", ".", "CitrusInstanceManager", ".", "getSingleton", "(", ")", ";", "if", "(", "citrus", "!=", "null", ")", "{", "log", ".", "info", "(", "\"Closing C...
Stop application by setting completed state and stop application context.
[ "Stop", "application", "by", "setting", "completed", "state", "and", "stop", "application", "context", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/main/CitrusApp.java#L162-L170
51,138
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/main/CitrusApp.java
CitrusApp.setDefaultProperties
private static void setDefaultProperties(CitrusAppConfiguration configuration) { for (Map.Entry<String, String> entry : configuration.getDefaultProperties().entrySet()) { log.debug(String.format("Setting application property %s=%s", entry.getKey(), entry.getValue())); System.setProperty(...
java
private static void setDefaultProperties(CitrusAppConfiguration configuration) { for (Map.Entry<String, String> entry : configuration.getDefaultProperties().entrySet()) { log.debug(String.format("Setting application property %s=%s", entry.getKey(), entry.getValue())); System.setProperty(...
[ "private", "static", "void", "setDefaultProperties", "(", "CitrusAppConfiguration", "configuration", ")", "{", "for", "(", "Map", ".", "Entry", "<", "String", ",", "String", ">", "entry", ":", "configuration", ".", "getDefaultProperties", "(", ")", ".", "entrySe...
Reads default properties in configuration and sets them as system properties. @param configuration
[ "Reads", "default", "properties", "in", "configuration", "and", "sets", "them", "as", "system", "properties", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/main/CitrusApp.java#L176-L181
51,139
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/actions/ExecutePLSQLAction.java
ExecutePLSQLAction.executeStatements
protected void executeStatements(TestContext context) { for (String stmt : statements) { try { final String toExecute = context.replaceDynamicContentInString(stmt.trim()); if (log.isDebugEnabled()) { log.debug("Executing PLSQL statement: " + toExe...
java
protected void executeStatements(TestContext context) { for (String stmt : statements) { try { final String toExecute = context.replaceDynamicContentInString(stmt.trim()); if (log.isDebugEnabled()) { log.debug("Executing PLSQL statement: " + toExe...
[ "protected", "void", "executeStatements", "(", "TestContext", "context", ")", "{", "for", "(", "String", "stmt", ":", "statements", ")", "{", "try", "{", "final", "String", "toExecute", "=", "context", ".", "replaceDynamicContentInString", "(", "stmt", ".", "t...
Run all PLSQL statements. @param context
[ "Run", "all", "PLSQL", "statements", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/actions/ExecutePLSQLAction.java#L91-L112
51,140
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/actions/ExecutePLSQLAction.java
ExecutePLSQLAction.createStatementsFromScript
private List<String> createStatementsFromScript(TestContext context) { List<String> stmts = new ArrayList<>(); script = context.replaceDynamicContentInString(script); if (log.isDebugEnabled()) { log.debug("Found inline PLSQL script " + script); } StringToken...
java
private List<String> createStatementsFromScript(TestContext context) { List<String> stmts = new ArrayList<>(); script = context.replaceDynamicContentInString(script); if (log.isDebugEnabled()) { log.debug("Found inline PLSQL script " + script); } StringToken...
[ "private", "List", "<", "String", ">", "createStatementsFromScript", "(", "TestContext", "context", ")", "{", "List", "<", "String", ">", "stmts", "=", "new", "ArrayList", "<>", "(", ")", ";", "script", "=", "context", ".", "replaceDynamicContentInString", "("...
Create SQL statements from inline script. @param context the current test context. @return list of SQL statements.
[ "Create", "SQL", "statements", "from", "inline", "script", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/actions/ExecutePLSQLAction.java#L119-L136
51,141
citrusframework/citrus
modules/citrus-rmi/src/main/java/com/consol/citrus/rmi/model/RmiServiceInvocation.java
RmiServiceInvocation.create
public static RmiServiceInvocation create(Object remoteTarget, Method method, Object[] args) { RmiServiceInvocation serviceInvocation = new RmiServiceInvocation(); if (Proxy.isProxyClass(remoteTarget.getClass())) { serviceInvocation.setRemote(method.getDeclaringClass().getName()); }...
java
public static RmiServiceInvocation create(Object remoteTarget, Method method, Object[] args) { RmiServiceInvocation serviceInvocation = new RmiServiceInvocation(); if (Proxy.isProxyClass(remoteTarget.getClass())) { serviceInvocation.setRemote(method.getDeclaringClass().getName()); }...
[ "public", "static", "RmiServiceInvocation", "create", "(", "Object", "remoteTarget", ",", "Method", "method", ",", "Object", "[", "]", "args", ")", "{", "RmiServiceInvocation", "serviceInvocation", "=", "new", "RmiServiceInvocation", "(", ")", ";", "if", "(", "P...
Static create method from target object and method definition. @return
[ "Static", "create", "method", "from", "target", "object", "and", "method", "definition", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-rmi/src/main/java/com/consol/citrus/rmi/model/RmiServiceInvocation.java#L56-L87
51,142
citrusframework/citrus
modules/citrus-rmi/src/main/java/com/consol/citrus/rmi/model/RmiServiceInvocation.java
RmiServiceInvocation.getArgTypes
public Class[] getArgTypes() { List<Class> types = new ArrayList<>(); if (args != null) { for (MethodArg arg : args.getArgs()) { try { types.add(Class.forName(arg.getType())); } catch (ClassNotFoundException e) { throw ...
java
public Class[] getArgTypes() { List<Class> types = new ArrayList<>(); if (args != null) { for (MethodArg arg : args.getArgs()) { try { types.add(Class.forName(arg.getType())); } catch (ClassNotFoundException e) { throw ...
[ "public", "Class", "[", "]", "getArgTypes", "(", ")", "{", "List", "<", "Class", ">", "types", "=", "new", "ArrayList", "<>", "(", ")", ";", "if", "(", "args", "!=", "null", ")", "{", "for", "(", "MethodArg", "arg", ":", "args", ".", "getArgs", "...
Gets the argument types from list of args. @return
[ "Gets", "the", "argument", "types", "from", "list", "of", "args", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-rmi/src/main/java/com/consol/citrus/rmi/model/RmiServiceInvocation.java#L93-L107
51,143
citrusframework/citrus
modules/citrus-rmi/src/main/java/com/consol/citrus/rmi/model/RmiServiceInvocation.java
RmiServiceInvocation.getArgValues
public Object[] getArgValues(ApplicationContext applicationContext) { List<Object> argValues = new ArrayList<>(); try { if (args != null) { for (MethodArg methodArg : args.getArgs()) { Class argType = Class.forName(methodArg.getType()); ...
java
public Object[] getArgValues(ApplicationContext applicationContext) { List<Object> argValues = new ArrayList<>(); try { if (args != null) { for (MethodArg methodArg : args.getArgs()) { Class argType = Class.forName(methodArg.getType()); ...
[ "public", "Object", "[", "]", "getArgValues", "(", "ApplicationContext", "applicationContext", ")", "{", "List", "<", "Object", ">", "argValues", "=", "new", "ArrayList", "<>", "(", ")", ";", "try", "{", "if", "(", "args", "!=", "null", ")", "{", "for", ...
Gets method args as objects. Automatically converts simple types and ready referenced beans. @return
[ "Gets", "method", "args", "as", "objects", ".", "Automatically", "converts", "simple", "types", "and", "ready", "referenced", "beans", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-rmi/src/main/java/com/consol/citrus/rmi/model/RmiServiceInvocation.java#L113-L167
51,144
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/config/xml/SQLActionParser.java
SQLActionParser.parseSqlAction
private BeanDefinitionBuilder parseSqlAction(Element element) { BeanDefinitionBuilder beanDefinition = BeanDefinitionBuilder.rootBeanDefinition(ExecuteSQLAction.class); String ignoreErrors = element.getAttribute("ignore-errors"); if (ignoreErrors != null && ignoreErrors.equals("true")) ...
java
private BeanDefinitionBuilder parseSqlAction(Element element) { BeanDefinitionBuilder beanDefinition = BeanDefinitionBuilder.rootBeanDefinition(ExecuteSQLAction.class); String ignoreErrors = element.getAttribute("ignore-errors"); if (ignoreErrors != null && ignoreErrors.equals("true")) ...
[ "private", "BeanDefinitionBuilder", "parseSqlAction", "(", "Element", "element", ")", "{", "BeanDefinitionBuilder", "beanDefinition", "=", "BeanDefinitionBuilder", ".", "rootBeanDefinition", "(", "ExecuteSQLAction", ".", "class", ")", ";", "String", "ignoreErrors", "=", ...
Parses SQL action just executing a set of statements. @param element @return
[ "Parses", "SQL", "action", "just", "executing", "a", "set", "of", "statements", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/config/xml/SQLActionParser.java#L95-L104
51,145
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/config/xml/SQLActionParser.java
SQLActionParser.parseSqlQueryAction
private BeanDefinitionBuilder parseSqlQueryAction(Element element, Element scriptValidationElement, List<Element> validateElements, List<Element> extractElements) { BeanDefinitionBuilder beanDefinition = BeanDefinitionBuilder.rootBeanDefinition(ExecuteSQLQueryAction.class); // check for sc...
java
private BeanDefinitionBuilder parseSqlQueryAction(Element element, Element scriptValidationElement, List<Element> validateElements, List<Element> extractElements) { BeanDefinitionBuilder beanDefinition = BeanDefinitionBuilder.rootBeanDefinition(ExecuteSQLQueryAction.class); // check for sc...
[ "private", "BeanDefinitionBuilder", "parseSqlQueryAction", "(", "Element", "element", ",", "Element", "scriptValidationElement", ",", "List", "<", "Element", ">", "validateElements", ",", "List", "<", "Element", ">", "extractElements", ")", "{", "BeanDefinitionBuilder",...
Parses SQL query action with result set validation elements. @param element the root element. @param scriptValidationElement the optional script validation element. @param validateElements validation elements. @param extractElements variable extraction elements. @return
[ "Parses", "SQL", "query", "action", "with", "result", "set", "validation", "elements", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/config/xml/SQLActionParser.java#L114-L155
51,146
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/config/xml/SQLActionParser.java
SQLActionParser.getScriptValidationContext
private ScriptValidationContext getScriptValidationContext(Element scriptElement) { String type = scriptElement.getAttribute("type"); ScriptValidationContext validationContext = new ScriptValidationContext(type); String filePath = scriptElement.getAttribute("file"); if (StringUt...
java
private ScriptValidationContext getScriptValidationContext(Element scriptElement) { String type = scriptElement.getAttribute("type"); ScriptValidationContext validationContext = new ScriptValidationContext(type); String filePath = scriptElement.getAttribute("file"); if (StringUt...
[ "private", "ScriptValidationContext", "getScriptValidationContext", "(", "Element", "scriptElement", ")", "{", "String", "type", "=", "scriptElement", ".", "getAttribute", "(", "\"type\"", ")", ";", "ScriptValidationContext", "validationContext", "=", "new", "ScriptValida...
Constructs the script validation context. @param scriptElement @return
[ "Constructs", "the", "script", "validation", "context", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/config/xml/SQLActionParser.java#L162-L174
51,147
citrusframework/citrus
modules/citrus-kafka/src/main/java/com/consol/citrus/kafka/endpoint/KafkaConsumer.java
KafkaConsumer.stop
public void stop() { try { if (CollectionUtils.isEmpty(consumer.subscription())) { consumer.unsubscribe(); } } finally { consumer.close(Duration.ofMillis(10 * 1000L)); } }
java
public void stop() { try { if (CollectionUtils.isEmpty(consumer.subscription())) { consumer.unsubscribe(); } } finally { consumer.close(Duration.ofMillis(10 * 1000L)); } }
[ "public", "void", "stop", "(", ")", "{", "try", "{", "if", "(", "CollectionUtils", ".", "isEmpty", "(", "consumer", ".", "subscription", "(", ")", ")", ")", "{", "consumer", ".", "unsubscribe", "(", ")", ";", "}", "}", "finally", "{", "consumer", "."...
Stop message listener container.
[ "Stop", "message", "listener", "container", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-kafka/src/main/java/com/consol/citrus/kafka/endpoint/KafkaConsumer.java#L95-L103
51,148
citrusframework/citrus
modules/citrus-kafka/src/main/java/com/consol/citrus/kafka/endpoint/KafkaConsumer.java
KafkaConsumer.createConsumer
private org.apache.kafka.clients.consumer.KafkaConsumer<Object, Object> createConsumer() { Map<String, Object> consumerProps = new HashMap<>(); consumerProps.put(ConsumerConfig.CLIENT_ID_CONFIG, Optional.ofNullable(endpointConfiguration.getClientId()).orElse(KafkaMessageHeaders.KAFKA_PREFIX + "consumer_...
java
private org.apache.kafka.clients.consumer.KafkaConsumer<Object, Object> createConsumer() { Map<String, Object> consumerProps = new HashMap<>(); consumerProps.put(ConsumerConfig.CLIENT_ID_CONFIG, Optional.ofNullable(endpointConfiguration.getClientId()).orElse(KafkaMessageHeaders.KAFKA_PREFIX + "consumer_...
[ "private", "org", ".", "apache", ".", "kafka", ".", "clients", ".", "consumer", ".", "KafkaConsumer", "<", "Object", ",", "Object", ">", "createConsumer", "(", ")", "{", "Map", "<", "String", ",", "Object", ">", "consumerProps", "=", "new", "HashMap", "<...
Create new Kafka consumer with given endpoint configuration. @return
[ "Create", "new", "Kafka", "consumer", "with", "given", "endpoint", "configuration", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-kafka/src/main/java/com/consol/citrus/kafka/endpoint/KafkaConsumer.java#L109-L124
51,149
citrusframework/citrus
modules/citrus-kafka/src/main/java/com/consol/citrus/kafka/endpoint/KafkaConsumer.java
KafkaConsumer.setConsumer
public void setConsumer(org.apache.kafka.clients.consumer.KafkaConsumer<Object, Object> consumer) { this.consumer = consumer; }
java
public void setConsumer(org.apache.kafka.clients.consumer.KafkaConsumer<Object, Object> consumer) { this.consumer = consumer; }
[ "public", "void", "setConsumer", "(", "org", ".", "apache", ".", "kafka", ".", "clients", ".", "consumer", ".", "KafkaConsumer", "<", "Object", ",", "Object", ">", "consumer", ")", "{", "this", ".", "consumer", "=", "consumer", ";", "}" ]
Sets the consumer. @param consumer
[ "Sets", "the", "consumer", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-kafka/src/main/java/com/consol/citrus/kafka/endpoint/KafkaConsumer.java#L131-L133
51,150
citrusframework/citrus
modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/TemplateBuilder.java
TemplateBuilder.load
public TemplateBuilder load(ApplicationContext applicationContext) { Template rootTemplate = applicationContext.getBean(action.getName(), Template.class); action.setGlobalContext(rootTemplate.isGlobalContext()); action.setActor(rootTemplate.getActor()); action.setActions(rootTemplate.getActions());...
java
public TemplateBuilder load(ApplicationContext applicationContext) { Template rootTemplate = applicationContext.getBean(action.getName(), Template.class); action.setGlobalContext(rootTemplate.isGlobalContext()); action.setActor(rootTemplate.getActor()); action.setActions(rootTemplate.getActions());...
[ "public", "TemplateBuilder", "load", "(", "ApplicationContext", "applicationContext", ")", "{", "Template", "rootTemplate", "=", "applicationContext", ".", "getBean", "(", "action", ".", "getName", "(", ")", ",", "Template", ".", "class", ")", ";", "action", "."...
Loads template bean from Spring bean application context and sets attributes. @param applicationContext @return
[ "Loads", "template", "bean", "from", "Spring", "bean", "application", "context", "and", "sets", "attributes", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/TemplateBuilder.java#L62-L71
51,151
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/channel/ChannelConsumer.java
ChannelConsumer.getDestinationChannel
protected MessageChannel getDestinationChannel(TestContext context) { if (endpointConfiguration.getChannel() != null) { return endpointConfiguration.getChannel(); } else if (StringUtils.hasText(endpointConfiguration.getChannelName())) { return resolveChannelName(endpointConfigura...
java
protected MessageChannel getDestinationChannel(TestContext context) { if (endpointConfiguration.getChannel() != null) { return endpointConfiguration.getChannel(); } else if (StringUtils.hasText(endpointConfiguration.getChannelName())) { return resolveChannelName(endpointConfigura...
[ "protected", "MessageChannel", "getDestinationChannel", "(", "TestContext", "context", ")", "{", "if", "(", "endpointConfiguration", ".", "getChannel", "(", ")", "!=", "null", ")", "{", "return", "endpointConfiguration", ".", "getChannel", "(", ")", ";", "}", "e...
Get the destination channel depending on settings in this message sender. Either a direct channel object is set or a channel name which will be resolved to a channel. @param context the test context @return the destination channel object.
[ "Get", "the", "destination", "channel", "depending", "on", "settings", "in", "this", "message", "sender", ".", "Either", "a", "direct", "channel", "object", "is", "set", "or", "a", "channel", "name", "which", "will", "be", "resolved", "to", "a", "channel", ...
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/channel/ChannelConsumer.java#L113-L122
51,152
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/channel/ChannelConsumer.java
ChannelConsumer.getDestinationChannelName
protected String getDestinationChannelName() { if (endpointConfiguration.getChannel() != null) { return endpointConfiguration.getChannel().toString(); } else if (StringUtils.hasText(endpointConfiguration.getChannelName())) { return endpointConfiguration.getChannelName(); ...
java
protected String getDestinationChannelName() { if (endpointConfiguration.getChannel() != null) { return endpointConfiguration.getChannel().toString(); } else if (StringUtils.hasText(endpointConfiguration.getChannelName())) { return endpointConfiguration.getChannelName(); ...
[ "protected", "String", "getDestinationChannelName", "(", ")", "{", "if", "(", "endpointConfiguration", ".", "getChannel", "(", ")", "!=", "null", ")", "{", "return", "endpointConfiguration", ".", "getChannel", "(", ")", ".", "toString", "(", ")", ";", "}", "...
Gets the channel name depending on what is set in this message sender. Either channel name is set directly or channel object is consulted for channel name. @return the channel name.
[ "Gets", "the", "channel", "name", "depending", "on", "what", "is", "set", "in", "this", "message", "sender", ".", "Either", "channel", "name", "is", "set", "directly", "or", "channel", "object", "is", "consulted", "for", "channel", "name", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/channel/ChannelConsumer.java#L130-L139
51,153
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/config/xml/PayloadElementParser.java
PayloadElementParser.parseMessagePayload
public static String parseMessagePayload(Element payloadElement) { if (payloadElement == null) { return ""; } try { Document payload = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument(); payload.appendChild(payload.importNode(payl...
java
public static String parseMessagePayload(Element payloadElement) { if (payloadElement == null) { return ""; } try { Document payload = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument(); payload.appendChild(payload.importNode(payl...
[ "public", "static", "String", "parseMessagePayload", "(", "Element", "payloadElement", ")", "{", "if", "(", "payloadElement", "==", "null", ")", "{", "return", "\"\"", ";", "}", "try", "{", "Document", "payload", "=", "DocumentBuilderFactory", ".", "newInstance"...
Static parse method taking care of payload element. @param payloadElement
[ "Static", "parse", "method", "taking", "care", "of", "payload", "element", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/config/xml/PayloadElementParser.java#L44-L62
51,154
citrusframework/citrus
modules/citrus-zookeeper/src/main/java/com/consol/citrus/zookeeper/server/ZooServer.java
ZooServer.getServerFactory
public ServerCnxnFactory getServerFactory() { if (serverFactory == null) { try { serverFactory = new NIOServerCnxnFactory(); serverFactory.configure(new InetSocketAddress(port), 5000); } catch (IOException e) { throw new CitrusRuntimeExcept...
java
public ServerCnxnFactory getServerFactory() { if (serverFactory == null) { try { serverFactory = new NIOServerCnxnFactory(); serverFactory.configure(new InetSocketAddress(port), 5000); } catch (IOException e) { throw new CitrusRuntimeExcept...
[ "public", "ServerCnxnFactory", "getServerFactory", "(", ")", "{", "if", "(", "serverFactory", "==", "null", ")", "{", "try", "{", "serverFactory", "=", "new", "NIOServerCnxnFactory", "(", ")", ";", "serverFactory", ".", "configure", "(", "new", "InetSocketAddres...
Gets the value of the serverFactory property. @return the serverFactory
[ "Gets", "the", "value", "of", "the", "serverFactory", "property", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-zookeeper/src/main/java/com/consol/citrus/zookeeper/server/ZooServer.java#L58-L69
51,155
citrusframework/citrus
modules/citrus-zookeeper/src/main/java/com/consol/citrus/zookeeper/server/ZooServer.java
ZooServer.getZooKeeperServer
public ZooKeeperServer getZooKeeperServer() { if (zooKeeperServer == null) { String dataDirectory = System.getProperty("java.io.tmpdir"); File dir = new File(dataDirectory, "zookeeper").getAbsoluteFile(); try { zooKeeperServer = new ZooKeeperServer(dir, dir, 2...
java
public ZooKeeperServer getZooKeeperServer() { if (zooKeeperServer == null) { String dataDirectory = System.getProperty("java.io.tmpdir"); File dir = new File(dataDirectory, "zookeeper").getAbsoluteFile(); try { zooKeeperServer = new ZooKeeperServer(dir, dir, 2...
[ "public", "ZooKeeperServer", "getZooKeeperServer", "(", ")", "{", "if", "(", "zooKeeperServer", "==", "null", ")", "{", "String", "dataDirectory", "=", "System", ".", "getProperty", "(", "\"java.io.tmpdir\"", ")", ";", "File", "dir", "=", "new", "File", "(", ...
Gets the value of the zooKeeperServer property. @return the zooKeeperServer
[ "Gets", "the", "value", "of", "the", "zooKeeperServer", "property", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-zookeeper/src/main/java/com/consol/citrus/zookeeper/server/ZooServer.java#L85-L97
51,156
citrusframework/citrus
modules/citrus-http/src/main/java/com/consol/citrus/http/client/BasicAuthClientHttpRequestFactory.java
BasicAuthClientHttpRequestFactory.getObject
public HttpComponentsClientHttpRequestFactory getObject() throws Exception { Assert.notNull(credentials, "User credentials not set properly!"); HttpComponentsClientHttpRequestFactory requestFactory = new HttpComponentsClientHttpRequestFactory(httpClient) { @Override prot...
java
public HttpComponentsClientHttpRequestFactory getObject() throws Exception { Assert.notNull(credentials, "User credentials not set properly!"); HttpComponentsClientHttpRequestFactory requestFactory = new HttpComponentsClientHttpRequestFactory(httpClient) { @Override prot...
[ "public", "HttpComponentsClientHttpRequestFactory", "getObject", "(", ")", "throws", "Exception", "{", "Assert", ".", "notNull", "(", "credentials", ",", "\"User credentials not set properly!\"", ")", ";", "HttpComponentsClientHttpRequestFactory", "requestFactory", "=", "new"...
Construct the client factory bean with user credentials.
[ "Construct", "the", "client", "factory", "bean", "with", "user", "credentials", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-http/src/main/java/com/consol/citrus/http/client/BasicAuthClientHttpRequestFactory.java#L68-L97
51,157
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/validation/AbstractMessageValidator.java
AbstractMessageValidator.findValidationContext
protected T findValidationContext(List<ValidationContext> validationContexts) { for (ValidationContext validationContext : validationContexts) { if (getRequiredValidationContextType().isInstance(validationContext)) { return (T) validationContext; } } retu...
java
protected T findValidationContext(List<ValidationContext> validationContexts) { for (ValidationContext validationContext : validationContexts) { if (getRequiredValidationContextType().isInstance(validationContext)) { return (T) validationContext; } } retu...
[ "protected", "T", "findValidationContext", "(", "List", "<", "ValidationContext", ">", "validationContexts", ")", "{", "for", "(", "ValidationContext", "validationContext", ":", "validationContexts", ")", "{", "if", "(", "getRequiredValidationContextType", "(", ")", "...
Finds the message validation context that is most appropriate for this validator implementation. @param validationContexts @return
[ "Finds", "the", "message", "validation", "context", "that", "is", "most", "appropriate", "for", "this", "validator", "implementation", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/validation/AbstractMessageValidator.java#L71-L79
51,158
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/container/Wait.java
Wait.getWaitTimeMs
private long getWaitTimeMs(TestContext context) { if (StringUtils.hasText(seconds)) { return Long.valueOf(context.replaceDynamicContentInString(seconds)) * 1000; } else { return Long.valueOf(context.replaceDynamicContentInString(milliseconds)); } }
java
private long getWaitTimeMs(TestContext context) { if (StringUtils.hasText(seconds)) { return Long.valueOf(context.replaceDynamicContentInString(seconds)) * 1000; } else { return Long.valueOf(context.replaceDynamicContentInString(milliseconds)); } }
[ "private", "long", "getWaitTimeMs", "(", "TestContext", "context", ")", "{", "if", "(", "StringUtils", ".", "hasText", "(", "seconds", ")", ")", "{", "return", "Long", ".", "valueOf", "(", "context", ".", "replaceDynamicContentInString", "(", "seconds", ")", ...
Gets total wait time in milliseconds. Either uses second time value or default milliseconds. @param context @return
[ "Gets", "total", "wait", "time", "in", "milliseconds", ".", "Either", "uses", "second", "time", "value", "or", "default", "milliseconds", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/container/Wait.java#L121-L127
51,159
citrusframework/citrus
modules/citrus-jms/src/main/java/com/consol/citrus/jms/endpoint/JmsSyncProducer.java
JmsSyncProducer.createConnection
protected void createConnection() throws JMSException { if (connection == null) { if (!endpointConfiguration.isPubSubDomain() && endpointConfiguration.getConnectionFactory() instanceof QueueConnectionFactory) { connection = ((QueueConnectionFactory) endpointConfiguration.getConnectio...
java
protected void createConnection() throws JMSException { if (connection == null) { if (!endpointConfiguration.isPubSubDomain() && endpointConfiguration.getConnectionFactory() instanceof QueueConnectionFactory) { connection = ((QueueConnectionFactory) endpointConfiguration.getConnectio...
[ "protected", "void", "createConnection", "(", ")", "throws", "JMSException", "{", "if", "(", "connection", "==", "null", ")", "{", "if", "(", "!", "endpointConfiguration", ".", "isPubSubDomain", "(", ")", "&&", "endpointConfiguration", ".", "getConnectionFactory",...
Create new JMS connection. @return connection @throws JMSException
[ "Create", "new", "JMS", "connection", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-jms/src/main/java/com/consol/citrus/jms/endpoint/JmsSyncProducer.java#L188-L204
51,160
citrusframework/citrus
modules/citrus-jms/src/main/java/com/consol/citrus/jms/endpoint/JmsSyncProducer.java
JmsSyncProducer.createSession
protected void createSession(Connection connection) throws JMSException { if (session == null) { if (!endpointConfiguration.isPubSubDomain() && connection instanceof QueueConnection) { session = ((QueueConnection) connection).createQueueSession(false, Session.AUTO_ACKNOWLEDGE); ...
java
protected void createSession(Connection connection) throws JMSException { if (session == null) { if (!endpointConfiguration.isPubSubDomain() && connection instanceof QueueConnection) { session = ((QueueConnection) connection).createQueueSession(false, Session.AUTO_ACKNOWLEDGE); ...
[ "protected", "void", "createSession", "(", "Connection", "connection", ")", "throws", "JMSException", "{", "if", "(", "session", "==", "null", ")", "{", "if", "(", "!", "endpointConfiguration", ".", "isPubSubDomain", "(", ")", "&&", "connection", "instanceof", ...
Create new JMS session. @param connection to use for session creation. @return session. @throws JMSException
[ "Create", "new", "JMS", "session", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-jms/src/main/java/com/consol/citrus/jms/endpoint/JmsSyncProducer.java#L212-L225
51,161
citrusframework/citrus
modules/citrus-jms/src/main/java/com/consol/citrus/jms/endpoint/JmsSyncProducer.java
JmsSyncProducer.deleteTemporaryDestination
private void deleteTemporaryDestination(Destination destination) { log.debug("Delete temporary destination: '{}'", destination); try { if (destination instanceof TemporaryQueue) { ((TemporaryQueue) destination).delete(); } else if (destination instanceof Temporar...
java
private void deleteTemporaryDestination(Destination destination) { log.debug("Delete temporary destination: '{}'", destination); try { if (destination instanceof TemporaryQueue) { ((TemporaryQueue) destination).delete(); } else if (destination instanceof Temporar...
[ "private", "void", "deleteTemporaryDestination", "(", "Destination", "destination", ")", "{", "log", ".", "debug", "(", "\"Delete temporary destination: '{}'\"", ",", "destination", ")", ";", "try", "{", "if", "(", "destination", "instanceof", "TemporaryQueue", ")", ...
Delete temporary destinations. @param destination
[ "Delete", "temporary", "destinations", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-jms/src/main/java/com/consol/citrus/jms/endpoint/JmsSyncProducer.java#L254-L266
51,162
citrusframework/citrus
modules/citrus-jms/src/main/java/com/consol/citrus/jms/endpoint/JmsSyncProducer.java
JmsSyncProducer.getReplyDestination
private Destination getReplyDestination(Session session, Message message) throws JMSException { if (message.getHeader(org.springframework.messaging.MessageHeaders.REPLY_CHANNEL) != null) { if (message.getHeader(org.springframework.messaging.MessageHeaders.REPLY_CHANNEL) instanceof Destination) { ...
java
private Destination getReplyDestination(Session session, Message message) throws JMSException { if (message.getHeader(org.springframework.messaging.MessageHeaders.REPLY_CHANNEL) != null) { if (message.getHeader(org.springframework.messaging.MessageHeaders.REPLY_CHANNEL) instanceof Destination) { ...
[ "private", "Destination", "getReplyDestination", "(", "Session", "session", ",", "Message", "message", ")", "throws", "JMSException", "{", "if", "(", "message", ".", "getHeader", "(", "org", ".", "springframework", ".", "messaging", ".", "MessageHeaders", ".", "...
Retrieve the reply destination either by injected instance, destination name or by creating a new temporary destination. @param session current JMS session @param message holding possible reply destination in header. @return the reply destination. @throws JMSException
[ "Retrieve", "the", "reply", "destination", "either", "by", "injected", "instance", "destination", "name", "or", "by", "creating", "a", "new", "temporary", "destination", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-jms/src/main/java/com/consol/citrus/jms/endpoint/JmsSyncProducer.java#L277-L295
51,163
citrusframework/citrus
modules/citrus-jms/src/main/java/com/consol/citrus/jms/endpoint/JmsSyncProducer.java
JmsSyncProducer.resolveDestination
private Destination resolveDestination(String destinationName) throws JMSException { if (log.isDebugEnabled()) { log.debug("Sending JMS message to destination: '" + destinationName + "'"); } return resolveDestinationName(destinationName, session); }
java
private Destination resolveDestination(String destinationName) throws JMSException { if (log.isDebugEnabled()) { log.debug("Sending JMS message to destination: '" + destinationName + "'"); } return resolveDestinationName(destinationName, session); }
[ "private", "Destination", "resolveDestination", "(", "String", "destinationName", ")", "throws", "JMSException", "{", "if", "(", "log", ".", "isDebugEnabled", "(", ")", ")", "{", "log", ".", "debug", "(", "\"Sending JMS message to destination: '\"", "+", "destinatio...
Resolve destination from given name. @param destinationName @return @throws JMSException
[ "Resolve", "destination", "from", "given", "name", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-jms/src/main/java/com/consol/citrus/jms/endpoint/JmsSyncProducer.java#L303-L309
51,164
citrusframework/citrus
modules/citrus-jms/src/main/java/com/consol/citrus/jms/endpoint/JmsSyncProducer.java
JmsSyncProducer.resolveDestinationName
private Destination resolveDestinationName(String name, Session session) throws JMSException { if (endpointConfiguration.getDestinationResolver() != null) { return endpointConfiguration.getDestinationResolver().resolveDestinationName(session, name, endpointConfiguration.isPubSubDomain()); } ...
java
private Destination resolveDestinationName(String name, Session session) throws JMSException { if (endpointConfiguration.getDestinationResolver() != null) { return endpointConfiguration.getDestinationResolver().resolveDestinationName(session, name, endpointConfiguration.isPubSubDomain()); } ...
[ "private", "Destination", "resolveDestinationName", "(", "String", "name", ",", "Session", "session", ")", "throws", "JMSException", "{", "if", "(", "endpointConfiguration", ".", "getDestinationResolver", "(", ")", "!=", "null", ")", "{", "return", "endpointConfigur...
Resolves the destination name from Jms session. @param name @param session @return
[ "Resolves", "the", "destination", "name", "from", "Jms", "session", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-jms/src/main/java/com/consol/citrus/jms/endpoint/JmsSyncProducer.java#L317-L323
51,165
citrusframework/citrus
modules/citrus-jms/src/main/java/com/consol/citrus/jms/endpoint/JmsSyncProducer.java
JmsSyncProducer.destroy
public void destroy() { JmsUtils.closeSession(session); if (connection != null) { ConnectionFactoryUtils.releaseConnection(connection, endpointConfiguration.getConnectionFactory(), true); } }
java
public void destroy() { JmsUtils.closeSession(session); if (connection != null) { ConnectionFactoryUtils.releaseConnection(connection, endpointConfiguration.getConnectionFactory(), true); } }
[ "public", "void", "destroy", "(", ")", "{", "JmsUtils", ".", "closeSession", "(", "session", ")", ";", "if", "(", "connection", "!=", "null", ")", "{", "ConnectionFactoryUtils", ".", "releaseConnection", "(", "connection", ",", "endpointConfiguration", ".", "g...
Destroy method closing JMS session and connection
[ "Destroy", "method", "closing", "JMS", "session", "and", "connection" ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-jms/src/main/java/com/consol/citrus/jms/endpoint/JmsSyncProducer.java#L328-L334
51,166
citrusframework/citrus
modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/CamelRouteActionBuilder.java
CamelRouteActionBuilder.context
public CamelRouteActionBuilder context(String camelContext) { Assert.notNull(applicationContext, "Citrus application context is not initialized!"); this.camelContext = applicationContext.getBean(camelContext, ModelCamelContext.class); return this; }
java
public CamelRouteActionBuilder context(String camelContext) { Assert.notNull(applicationContext, "Citrus application context is not initialized!"); this.camelContext = applicationContext.getBean(camelContext, ModelCamelContext.class); return this; }
[ "public", "CamelRouteActionBuilder", "context", "(", "String", "camelContext", ")", "{", "Assert", ".", "notNull", "(", "applicationContext", ",", "\"Citrus application context is not initialized!\"", ")", ";", "this", ".", "camelContext", "=", "applicationContext", ".", ...
Sets the Camel context to use. @param camelContext @return
[ "Sets", "the", "Camel", "context", "to", "use", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/CamelRouteActionBuilder.java#L55-L59
51,167
citrusframework/citrus
modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/CamelRouteActionBuilder.java
CamelRouteActionBuilder.controlBus
public CamelControlBusActionBuilder controlBus() { CamelControlBusAction camelControlBusAction = new CamelControlBusAction(); camelControlBusAction.setCamelContext(getCamelContext()); action.setDelegate(camelControlBusAction); return new CamelControlBusActionBuilder(camelControlBusAction); }
java
public CamelControlBusActionBuilder controlBus() { CamelControlBusAction camelControlBusAction = new CamelControlBusAction(); camelControlBusAction.setCamelContext(getCamelContext()); action.setDelegate(camelControlBusAction); return new CamelControlBusActionBuilder(camelControlBusAction); }
[ "public", "CamelControlBusActionBuilder", "controlBus", "(", ")", "{", "CamelControlBusAction", "camelControlBusAction", "=", "new", "CamelControlBusAction", "(", ")", ";", "camelControlBusAction", ".", "setCamelContext", "(", "getCamelContext", "(", ")", ")", ";", "act...
Execute control bus Camel operations. @return
[ "Execute", "control", "bus", "Camel", "operations", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/CamelRouteActionBuilder.java#L75-L81
51,168
citrusframework/citrus
modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/CamelRouteActionBuilder.java
CamelRouteActionBuilder.create
public CamelRouteActionBuilder create(RouteBuilder routeBuilder) { CreateCamelRouteAction camelRouteAction = new CreateCamelRouteAction(); try { if (!routeBuilder.getContext().equals(getCamelContext())) { routeBuilder.configureRoutes(getCamelContext()); } else { routeBuilder.configure(); } cam...
java
public CamelRouteActionBuilder create(RouteBuilder routeBuilder) { CreateCamelRouteAction camelRouteAction = new CreateCamelRouteAction(); try { if (!routeBuilder.getContext().equals(getCamelContext())) { routeBuilder.configureRoutes(getCamelContext()); } else { routeBuilder.configure(); } cam...
[ "public", "CamelRouteActionBuilder", "create", "(", "RouteBuilder", "routeBuilder", ")", "{", "CreateCamelRouteAction", "camelRouteAction", "=", "new", "CreateCamelRouteAction", "(", ")", ";", "try", "{", "if", "(", "!", "routeBuilder", ".", "getContext", "(", ")", ...
Creates new Camel routes in route builder. @param routeBuilder @return
[ "Creates", "new", "Camel", "routes", "in", "route", "builder", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/CamelRouteActionBuilder.java#L88-L106
51,169
citrusframework/citrus
modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/CamelRouteActionBuilder.java
CamelRouteActionBuilder.start
public void start(String ... routes) { StartCamelRouteAction camelRouteAction = new StartCamelRouteAction(); camelRouteAction.setRouteIds(Arrays.asList(routes)); camelRouteAction.setCamelContext(getCamelContext()); action.setDelegate(camelRouteAction); }
java
public void start(String ... routes) { StartCamelRouteAction camelRouteAction = new StartCamelRouteAction(); camelRouteAction.setRouteIds(Arrays.asList(routes)); camelRouteAction.setCamelContext(getCamelContext()); action.setDelegate(camelRouteAction); }
[ "public", "void", "start", "(", "String", "...", "routes", ")", "{", "StartCamelRouteAction", "camelRouteAction", "=", "new", "StartCamelRouteAction", "(", ")", ";", "camelRouteAction", ".", "setRouteIds", "(", "Arrays", ".", "asList", "(", "routes", ")", ")", ...
Start these Camel routes.
[ "Start", "these", "Camel", "routes", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/CamelRouteActionBuilder.java#L111-L117
51,170
citrusframework/citrus
modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/CamelRouteActionBuilder.java
CamelRouteActionBuilder.stop
public void stop(String ... routes) { StopCamelRouteAction camelRouteAction = new StopCamelRouteAction(); camelRouteAction.setRouteIds(Arrays.asList(routes)); camelRouteAction.setCamelContext(getCamelContext()); action.setDelegate(camelRouteAction); }
java
public void stop(String ... routes) { StopCamelRouteAction camelRouteAction = new StopCamelRouteAction(); camelRouteAction.setRouteIds(Arrays.asList(routes)); camelRouteAction.setCamelContext(getCamelContext()); action.setDelegate(camelRouteAction); }
[ "public", "void", "stop", "(", "String", "...", "routes", ")", "{", "StopCamelRouteAction", "camelRouteAction", "=", "new", "StopCamelRouteAction", "(", ")", ";", "camelRouteAction", ".", "setRouteIds", "(", "Arrays", ".", "asList", "(", "routes", ")", ")", ";...
Stop these Camel routes.
[ "Stop", "these", "Camel", "routes", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/CamelRouteActionBuilder.java#L122-L128
51,171
citrusframework/citrus
modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/CamelRouteActionBuilder.java
CamelRouteActionBuilder.remove
public void remove(String ... routes) { RemoveCamelRouteAction camelRouteAction = new RemoveCamelRouteAction(); camelRouteAction.setRouteIds(Arrays.asList(routes)); camelRouteAction.setCamelContext(getCamelContext()); action.setDelegate(camelRouteAction); }
java
public void remove(String ... routes) { RemoveCamelRouteAction camelRouteAction = new RemoveCamelRouteAction(); camelRouteAction.setRouteIds(Arrays.asList(routes)); camelRouteAction.setCamelContext(getCamelContext()); action.setDelegate(camelRouteAction); }
[ "public", "void", "remove", "(", "String", "...", "routes", ")", "{", "RemoveCamelRouteAction", "camelRouteAction", "=", "new", "RemoveCamelRouteAction", "(", ")", ";", "camelRouteAction", ".", "setRouteIds", "(", "Arrays", ".", "asList", "(", "routes", ")", ")"...
Remove these Camel routes.
[ "Remove", "these", "Camel", "routes", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/CamelRouteActionBuilder.java#L133-L139
51,172
citrusframework/citrus
modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/CamelRouteActionBuilder.java
CamelRouteActionBuilder.getCamelContext
private ModelCamelContext getCamelContext() { if (camelContext == null) { Assert.notNull(applicationContext, "Citrus application context is not initialized!"); if (applicationContext.containsBean("citrusCamelContext")) { camelContext = applicationContext.getBean("citrusCamelContext", M...
java
private ModelCamelContext getCamelContext() { if (camelContext == null) { Assert.notNull(applicationContext, "Citrus application context is not initialized!"); if (applicationContext.containsBean("citrusCamelContext")) { camelContext = applicationContext.getBean("citrusCamelContext", M...
[ "private", "ModelCamelContext", "getCamelContext", "(", ")", "{", "if", "(", "camelContext", "==", "null", ")", "{", "Assert", ".", "notNull", "(", "applicationContext", ",", "\"Citrus application context is not initialized!\"", ")", ";", "if", "(", "applicationContex...
Gets the camel context either explicitly set before or default context from Spring application context. @return
[ "Gets", "the", "camel", "context", "either", "explicitly", "set", "before", "or", "default", "context", "from", "Spring", "application", "context", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/CamelRouteActionBuilder.java#L155-L167
51,173
citrusframework/citrus
modules/citrus-http/src/main/java/com/consol/citrus/http/message/HttpMessageContentBuilder.java
HttpMessageContentBuilder.replaceHeaders
private void replaceHeaders(final Message from, final Message to) { to.getHeaders().clear(); to.getHeaders().putAll(from.getHeaders()); }
java
private void replaceHeaders(final Message from, final Message to) { to.getHeaders().clear(); to.getHeaders().putAll(from.getHeaders()); }
[ "private", "void", "replaceHeaders", "(", "final", "Message", "from", ",", "final", "Message", "to", ")", "{", "to", ".", "getHeaders", "(", ")", ".", "clear", "(", ")", ";", "to", ".", "getHeaders", "(", ")", ".", "putAll", "(", "from", ".", "getHea...
Replaces all headers @param from The message to take the headers from @param to The message to set the headers to
[ "Replaces", "all", "headers" ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-http/src/main/java/com/consol/citrus/http/message/HttpMessageContentBuilder.java#L82-L85
51,174
citrusframework/citrus
modules/citrus-ws/src/main/java/com/consol/citrus/ws/validation/AbstractSoapAttachmentValidator.java
AbstractSoapAttachmentValidator.findAttachment
protected SoapAttachment findAttachment(SoapMessage soapMessage, SoapAttachment controlAttachment) { List<SoapAttachment> attachments = soapMessage.getAttachments(); Attachment matching = null; if (controlAttachment.getContentId() == null) { if (attachments.size() == 1) { ...
java
protected SoapAttachment findAttachment(SoapMessage soapMessage, SoapAttachment controlAttachment) { List<SoapAttachment> attachments = soapMessage.getAttachments(); Attachment matching = null; if (controlAttachment.getContentId() == null) { if (attachments.size() == 1) { ...
[ "protected", "SoapAttachment", "findAttachment", "(", "SoapMessage", "soapMessage", ",", "SoapAttachment", "controlAttachment", ")", "{", "List", "<", "SoapAttachment", ">", "attachments", "=", "soapMessage", ".", "getAttachments", "(", ")", ";", "Attachment", "matchi...
Finds attachment in list of soap attachments on incoming soap message. By default uses content id of control attachment as search key. If no proper attachment with this content id was found in soap message throws validation exception. @param soapMessage @param controlAttachment @return
[ "Finds", "attachment", "in", "list", "of", "soap", "attachments", "on", "incoming", "soap", "message", ".", "By", "default", "uses", "content", "id", "of", "control", "attachment", "as", "search", "key", ".", "If", "no", "proper", "attachment", "with", "this...
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-ws/src/main/java/com/consol/citrus/ws/validation/AbstractSoapAttachmentValidator.java#L73-L98
51,175
citrusframework/citrus
modules/citrus-ws/src/main/java/com/consol/citrus/ws/validation/AbstractSoapAttachmentValidator.java
AbstractSoapAttachmentValidator.validateAttachmentContentId
protected void validateAttachmentContentId(SoapAttachment receivedAttachment, SoapAttachment controlAttachment) { //in case contentId was not set in test case, skip validation if (!StringUtils.hasText(controlAttachment.getContentId())) { return; } if (receivedAttachment.getContentId() ...
java
protected void validateAttachmentContentId(SoapAttachment receivedAttachment, SoapAttachment controlAttachment) { //in case contentId was not set in test case, skip validation if (!StringUtils.hasText(controlAttachment.getContentId())) { return; } if (receivedAttachment.getContentId() ...
[ "protected", "void", "validateAttachmentContentId", "(", "SoapAttachment", "receivedAttachment", ",", "SoapAttachment", "controlAttachment", ")", "{", "//in case contentId was not set in test case, skip validation ", "if", "(", "!", "StringUtils", ".", "hasText", "(", "controlA...
Validating SOAP attachment content id. @param receivedAttachment @param controlAttachment
[ "Validating", "SOAP", "attachment", "content", "id", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-ws/src/main/java/com/consol/citrus/ws/validation/AbstractSoapAttachmentValidator.java#L105-L127
51,176
citrusframework/citrus
modules/citrus-ws/src/main/java/com/consol/citrus/ws/validation/AbstractSoapAttachmentValidator.java
AbstractSoapAttachmentValidator.validateAttachmentContentType
protected void validateAttachmentContentType(SoapAttachment receivedAttachment, SoapAttachment controlAttachment) { //in case contentType was not set in test case, skip validation if (!StringUtils.hasText(controlAttachment.getContentType())) { return; } if (receivedAttachment.getContent...
java
protected void validateAttachmentContentType(SoapAttachment receivedAttachment, SoapAttachment controlAttachment) { //in case contentType was not set in test case, skip validation if (!StringUtils.hasText(controlAttachment.getContentType())) { return; } if (receivedAttachment.getContent...
[ "protected", "void", "validateAttachmentContentType", "(", "SoapAttachment", "receivedAttachment", ",", "SoapAttachment", "controlAttachment", ")", "{", "//in case contentType was not set in test case, skip validation", "if", "(", "!", "StringUtils", ".", "hasText", "(", "contr...
Validating SOAP attachment content type. @param receivedAttachment @param controlAttachment
[ "Validating", "SOAP", "attachment", "content", "type", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-ws/src/main/java/com/consol/citrus/ws/validation/AbstractSoapAttachmentValidator.java#L134-L156
51,177
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/xml/xpath/XPathUtils.java
XPathUtils.replaceDynamicNamespaces
public static String replaceDynamicNamespaces(String expression, Map<String, String> namespaces) { String expressionResult = expression; for (Entry<String, String> namespaceEntry : namespaces.entrySet()) { if (expressionResult.contains(DYNAMIC_NS_START + namespaceEntry.getValue() + ...
java
public static String replaceDynamicNamespaces(String expression, Map<String, String> namespaces) { String expressionResult = expression; for (Entry<String, String> namespaceEntry : namespaces.entrySet()) { if (expressionResult.contains(DYNAMIC_NS_START + namespaceEntry.getValue() + ...
[ "public", "static", "String", "replaceDynamicNamespaces", "(", "String", "expression", ",", "Map", "<", "String", ",", "String", ">", "namespaces", ")", "{", "String", "expressionResult", "=", "expression", ";", "for", "(", "Entry", "<", "String", ",", "String...
Replaces all dynamic namespaces in a XPath expression with respective prefixes in namespace map. XPath: <code>/{http://sample.org/foo}foo/{http://sample.org/bar}bar</code> results in <code>/ns1:foo/ns2:bar</code> where the namespace map contains ns1 and ns2. @param expression @param namespaces @return
[ "Replaces", "all", "dynamic", "namespaces", "in", "a", "XPath", "expression", "with", "respective", "prefixes", "in", "namespace", "map", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/xml/xpath/XPathUtils.java#L93-L104
51,178
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/xml/xpath/XPathUtils.java
XPathUtils.evaluate
public static Object evaluate(Node node, String xPathExpression, NamespaceContext nsContext, XPathExpressionResult resultType) { if (resultType.equals(XPathExpressionResult.NODE)) { Node resultNode = evaluateAsNode(node, xPathExpression, nsContext); if (resultNode.getNodeTyp...
java
public static Object evaluate(Node node, String xPathExpression, NamespaceContext nsContext, XPathExpressionResult resultType) { if (resultType.equals(XPathExpressionResult.NODE)) { Node resultNode = evaluateAsNode(node, xPathExpression, nsContext); if (resultNode.getNodeTyp...
[ "public", "static", "Object", "evaluate", "(", "Node", "node", ",", "String", "xPathExpression", ",", "NamespaceContext", "nsContext", ",", "XPathExpressionResult", "resultType", ")", "{", "if", "(", "resultType", ".", "equals", "(", "XPathExpressionResult", ".", ...
Evaluate XPath expression as String result type regardless what actual result type the expression will evaluate to. @param node @param xPathExpression @param nsContext @param resultType @return
[ "Evaluate", "XPath", "expression", "as", "String", "result", "type", "regardless", "what", "actual", "result", "type", "the", "expression", "will", "evaluate", "to", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/xml/xpath/XPathUtils.java#L124-L172
51,179
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/xml/xpath/XPathUtils.java
XPathUtils.evaluateAsNode
public static Node evaluateAsNode(Node node, String xPathExpression, NamespaceContext nsContext) { Node result = (Node) evaluateExpression(node, xPathExpression, nsContext, XPathConstants.NODE); if (result == null) { throw new CitrusRuntimeException("No result for XPath expression: '" + xPa...
java
public static Node evaluateAsNode(Node node, String xPathExpression, NamespaceContext nsContext) { Node result = (Node) evaluateExpression(node, xPathExpression, nsContext, XPathConstants.NODE); if (result == null) { throw new CitrusRuntimeException("No result for XPath expression: '" + xPa...
[ "public", "static", "Node", "evaluateAsNode", "(", "Node", "node", ",", "String", "xPathExpression", ",", "NamespaceContext", "nsContext", ")", "{", "Node", "result", "=", "(", "Node", ")", "evaluateExpression", "(", "node", ",", "xPathExpression", ",", "nsConte...
Evaluate XPath expression with result type Node. @param node @param xPathExpression @param nsContext @return
[ "Evaluate", "XPath", "expression", "with", "result", "type", "Node", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/xml/xpath/XPathUtils.java#L181-L189
51,180
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/xml/xpath/XPathUtils.java
XPathUtils.evaluateAsNodeList
public static NodeList evaluateAsNodeList(Node node, String xPathExpression, NamespaceContext nsContext) { NodeList result = (NodeList) evaluateExpression(node, xPathExpression, nsContext, XPathConstants.NODESET); if (result == null) { throw new CitrusRuntimeException("No result for XPath e...
java
public static NodeList evaluateAsNodeList(Node node, String xPathExpression, NamespaceContext nsContext) { NodeList result = (NodeList) evaluateExpression(node, xPathExpression, nsContext, XPathConstants.NODESET); if (result == null) { throw new CitrusRuntimeException("No result for XPath e...
[ "public", "static", "NodeList", "evaluateAsNodeList", "(", "Node", "node", ",", "String", "xPathExpression", ",", "NamespaceContext", "nsContext", ")", "{", "NodeList", "result", "=", "(", "NodeList", ")", "evaluateExpression", "(", "node", ",", "xPathExpression", ...
Evaluate XPath expression with result type NodeList. @param node @param xPathExpression @param nsContext @return
[ "Evaluate", "XPath", "expression", "with", "result", "type", "NodeList", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/xml/xpath/XPathUtils.java#L198-L206
51,181
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/xml/xpath/XPathUtils.java
XPathUtils.evaluateAsString
public static String evaluateAsString(Node node, String xPathExpression, NamespaceContext nsContext) { String result = (String) evaluateExpression(node, xPathExpression, nsContext, XPathConstants.STRING); if (!StringUtils.hasText(result)) { //result is empty so check if the expression node ...
java
public static String evaluateAsString(Node node, String xPathExpression, NamespaceContext nsContext) { String result = (String) evaluateExpression(node, xPathExpression, nsContext, XPathConstants.STRING); if (!StringUtils.hasText(result)) { //result is empty so check if the expression node ...
[ "public", "static", "String", "evaluateAsString", "(", "Node", "node", ",", "String", "xPathExpression", ",", "NamespaceContext", "nsContext", ")", "{", "String", "result", "=", "(", "String", ")", "evaluateExpression", "(", "node", ",", "xPathExpression", ",", ...
Evaluate XPath expression with result type String. @param node @param xPathExpression @param nsContext @return
[ "Evaluate", "XPath", "expression", "with", "result", "type", "String", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/xml/xpath/XPathUtils.java#L215-L225
51,182
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/xml/xpath/XPathUtils.java
XPathUtils.evaluateAsBoolean
public static Boolean evaluateAsBoolean(Node node, String xPathExpression, NamespaceContext nsContext) { return (Boolean) evaluateExpression(node, xPathExpression, nsContext, XPathConstants.BOOLEAN); }
java
public static Boolean evaluateAsBoolean(Node node, String xPathExpression, NamespaceContext nsContext) { return (Boolean) evaluateExpression(node, xPathExpression, nsContext, XPathConstants.BOOLEAN); }
[ "public", "static", "Boolean", "evaluateAsBoolean", "(", "Node", "node", ",", "String", "xPathExpression", ",", "NamespaceContext", "nsContext", ")", "{", "return", "(", "Boolean", ")", "evaluateExpression", "(", "node", ",", "xPathExpression", ",", "nsContext", "...
Evaluate XPath expression with result type Boolean value. @param node @param xPathExpression @param nsContext @return
[ "Evaluate", "XPath", "expression", "with", "result", "type", "Boolean", "value", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/xml/xpath/XPathUtils.java#L234-L236
51,183
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/xml/xpath/XPathUtils.java
XPathUtils.evaluateAsNumber
public static Double evaluateAsNumber(Node node, String xPathExpression, NamespaceContext nsContext) { return (Double) evaluateExpression(node, xPathExpression, nsContext, XPathConstants.NUMBER); }
java
public static Double evaluateAsNumber(Node node, String xPathExpression, NamespaceContext nsContext) { return (Double) evaluateExpression(node, xPathExpression, nsContext, XPathConstants.NUMBER); }
[ "public", "static", "Double", "evaluateAsNumber", "(", "Node", "node", ",", "String", "xPathExpression", ",", "NamespaceContext", "nsContext", ")", "{", "return", "(", "Double", ")", "evaluateExpression", "(", "node", ",", "xPathExpression", ",", "nsContext", ",",...
Evaluate XPath expression with result type Number. @param node @param xPathExpression @param nsContext @return
[ "Evaluate", "XPath", "expression", "with", "result", "type", "Number", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/xml/xpath/XPathUtils.java#L245-L247
51,184
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/xml/xpath/XPathUtils.java
XPathUtils.evaluateAsObject
public static Object evaluateAsObject(Node node, String xPathExpression, NamespaceContext nsContext, QName resultType) { return evaluateExpression(node, xPathExpression, nsContext, resultType); }
java
public static Object evaluateAsObject(Node node, String xPathExpression, NamespaceContext nsContext, QName resultType) { return evaluateExpression(node, xPathExpression, nsContext, resultType); }
[ "public", "static", "Object", "evaluateAsObject", "(", "Node", "node", ",", "String", "xPathExpression", ",", "NamespaceContext", "nsContext", ",", "QName", "resultType", ")", "{", "return", "evaluateExpression", "(", "node", ",", "xPathExpression", ",", "nsContext"...
Evaluate XPath expression. @param node @param xPathExpression @param nsContext @return
[ "Evaluate", "XPath", "expression", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/xml/xpath/XPathUtils.java#L256-L258
51,185
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/xml/xpath/XPathUtils.java
XPathUtils.buildExpression
private static XPathExpression buildExpression(String xPathExpression, NamespaceContext nsContext) throws XPathExpressionException { XPath xpath = createXPathFactory().newXPath(); if (nsContext != null) { xpath.setNamespaceContext(nsContext); } return xp...
java
private static XPathExpression buildExpression(String xPathExpression, NamespaceContext nsContext) throws XPathExpressionException { XPath xpath = createXPathFactory().newXPath(); if (nsContext != null) { xpath.setNamespaceContext(nsContext); } return xp...
[ "private", "static", "XPathExpression", "buildExpression", "(", "String", "xPathExpression", ",", "NamespaceContext", "nsContext", ")", "throws", "XPathExpressionException", "{", "XPath", "xpath", "=", "createXPathFactory", "(", ")", ".", "newXPath", "(", ")", ";", ...
Construct a xPath expression instance with given expression string and namespace context. If namespace context is not specified a default context is built from the XML node that is evaluated against. @param xPathExpression @param nsContext @return @throws XPathExpressionException
[ "Construct", "a", "xPath", "expression", "instance", "with", "given", "expression", "string", "and", "namespace", "context", ".", "If", "namespace", "context", "is", "not", "specified", "a", "default", "context", "is", "built", "from", "the", "XML", "node", "t...
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/xml/xpath/XPathUtils.java#L269-L278
51,186
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/xml/xpath/XPathUtils.java
XPathUtils.evaluateExpression
public static Object evaluateExpression(Node node, String xPathExpression, NamespaceContext nsContext, QName returnType) { try { return buildExpression(xPathExpression, nsContext).evaluate(node, returnType); } catch (XPathExpressionException e) { throw new CitrusRuntimeException(...
java
public static Object evaluateExpression(Node node, String xPathExpression, NamespaceContext nsContext, QName returnType) { try { return buildExpression(xPathExpression, nsContext).evaluate(node, returnType); } catch (XPathExpressionException e) { throw new CitrusRuntimeException(...
[ "public", "static", "Object", "evaluateExpression", "(", "Node", "node", ",", "String", "xPathExpression", ",", "NamespaceContext", "nsContext", ",", "QName", "returnType", ")", "{", "try", "{", "return", "buildExpression", "(", "xPathExpression", ",", "nsContext", ...
Evaluates the expression. @param node the node. @param xPathExpression the expression. @param nsContext the context. @param returnType @return the result.
[ "Evaluates", "the", "expression", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/xml/xpath/XPathUtils.java#L298-L304
51,187
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/xml/xpath/XPathUtils.java
XPathUtils.createXPathFactory
private synchronized static XPathFactory createXPathFactory() { XPathFactory factory = null; // read system property and see if there is a factory set Properties properties = System.getProperties(); for (Map.Entry<Object, Object> prop : properties.entrySet()) { String key = ...
java
private synchronized static XPathFactory createXPathFactory() { XPathFactory factory = null; // read system property and see if there is a factory set Properties properties = System.getProperties(); for (Map.Entry<Object, Object> prop : properties.entrySet()) { String key = ...
[ "private", "synchronized", "static", "XPathFactory", "createXPathFactory", "(", ")", "{", "XPathFactory", "factory", "=", "null", ";", "// read system property and see if there is a factory set", "Properties", "properties", "=", "System", ".", "getProperties", "(", ")", "...
Creates new xpath factory which is not thread safe per definition. @return
[ "Creates", "new", "xpath", "factory", "which", "is", "not", "thread", "safe", "per", "definition", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/xml/xpath/XPathUtils.java#L310-L337
51,188
citrusframework/citrus
modules/citrus-rmi/src/main/java/com/consol/citrus/rmi/endpoint/RmiEndpointConfiguration.java
RmiEndpointConfiguration.getRegistry
public Registry getRegistry() throws RemoteException { if (registry == null) { if (StringUtils.hasText(host)) { registry = LocateRegistry.getRegistry(host, port); } else { registry = LocateRegistry.getRegistry(port); } } return...
java
public Registry getRegistry() throws RemoteException { if (registry == null) { if (StringUtils.hasText(host)) { registry = LocateRegistry.getRegistry(host, port); } else { registry = LocateRegistry.getRegistry(port); } } return...
[ "public", "Registry", "getRegistry", "(", ")", "throws", "RemoteException", "{", "if", "(", "registry", "==", "null", ")", "{", "if", "(", "StringUtils", ".", "hasText", "(", "host", ")", ")", "{", "registry", "=", "LocateRegistry", ".", "getRegistry", "("...
Gets the RMI registry based on host and port settings in this configuration. @return @throws RemoteException
[ "Gets", "the", "RMI", "registry", "based", "on", "host", "and", "port", "settings", "in", "this", "configuration", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-rmi/src/main/java/com/consol/citrus/rmi/endpoint/RmiEndpointConfiguration.java#L69-L79
51,189
citrusframework/citrus
modules/citrus-arquillian/src/main/java/com/consol/citrus/arquillian/shrinkwrap/CitrusArchiveBuilder.java
CitrusArchiveBuilder.build
public File[] build() { MavenStrategyStage maven = Maven.configureResolver() .workOffline(offline) .resolve(artifactCoordinates); return applyTransitivity(maven).asFile(); }
java
public File[] build() { MavenStrategyStage maven = Maven.configureResolver() .workOffline(offline) .resolve(artifactCoordinates); return applyTransitivity(maven).asFile(); }
[ "public", "File", "[", "]", "build", "(", ")", "{", "MavenStrategyStage", "maven", "=", "Maven", ".", "configureResolver", "(", ")", ".", "workOffline", "(", "offline", ")", ".", "resolve", "(", "artifactCoordinates", ")", ";", "return", "applyTransitivity", ...
Resolve artifacts for given coordinates. @return
[ "Resolve", "artifacts", "for", "given", "coordinates", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-arquillian/src/main/java/com/consol/citrus/arquillian/shrinkwrap/CitrusArchiveBuilder.java#L83-L89
51,190
citrusframework/citrus
modules/citrus-arquillian/src/main/java/com/consol/citrus/arquillian/shrinkwrap/CitrusArchiveBuilder.java
CitrusArchiveBuilder.all
public CitrusArchiveBuilder all() { core(); jms(); kafka(); jdbc(); http(); websocket(); ws(); ssh(); ftp(); mail(); camel(); vertx(); docker(); kubernetes(); selenium(); cucumber(); z...
java
public CitrusArchiveBuilder all() { core(); jms(); kafka(); jdbc(); http(); websocket(); ws(); ssh(); ftp(); mail(); camel(); vertx(); docker(); kubernetes(); selenium(); cucumber(); z...
[ "public", "CitrusArchiveBuilder", "all", "(", ")", "{", "core", "(", ")", ";", "jms", "(", ")", ";", "kafka", "(", ")", ";", "jdbc", "(", ")", ";", "http", "(", ")", ";", "websocket", "(", ")", ";", "ws", "(", ")", ";", "ssh", "(", ")", ";", ...
Gets the complete Citrus stack as resolved Maven dependency set. @return
[ "Gets", "the", "complete", "Citrus", "stack", "as", "resolved", "Maven", "dependency", "set", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-arquillian/src/main/java/com/consol/citrus/arquillian/shrinkwrap/CitrusArchiveBuilder.java#L95-L119
51,191
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/report/AbstractOutputFileReporter.java
AbstractOutputFileReporter.createReportFile
private void createReportFile(String reportFileName, String content) { File targetDirectory = new File(getReportDirectory()); if (!targetDirectory.exists()) { if (!targetDirectory.mkdirs()) { throw new CitrusRuntimeException("Unable to create report output directory: " + getR...
java
private void createReportFile(String reportFileName, String content) { File targetDirectory = new File(getReportDirectory()); if (!targetDirectory.exists()) { if (!targetDirectory.mkdirs()) { throw new CitrusRuntimeException("Unable to create report output directory: " + getR...
[ "private", "void", "createReportFile", "(", "String", "reportFileName", ",", "String", "content", ")", "{", "File", "targetDirectory", "=", "new", "File", "(", "getReportDirectory", "(", ")", ")", ";", "if", "(", "!", "targetDirectory", ".", "exists", "(", "...
Creates the HTML report file @param reportFileName The report file to write @param content The String content of the report file
[ "Creates", "the", "HTML", "report", "file" ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/report/AbstractOutputFileReporter.java#L54-L69
51,192
citrusframework/citrus
modules/citrus-cucumber/src/main/java/com/consol/citrus/cucumber/step/runner/selenium/SeleniumSteps.java
SeleniumSteps.verifyPage
private void verifyPage(String pageId) { if (!pages.containsKey(pageId)) { throw new CitrusRuntimeException(String.format("Unknown page '%s' - please introduce page with type information first", pageId)); } }
java
private void verifyPage(String pageId) { if (!pages.containsKey(pageId)) { throw new CitrusRuntimeException(String.format("Unknown page '%s' - please introduce page with type information first", pageId)); } }
[ "private", "void", "verifyPage", "(", "String", "pageId", ")", "{", "if", "(", "!", "pages", ".", "containsKey", "(", "pageId", ")", ")", "{", "throw", "new", "CitrusRuntimeException", "(", "String", ".", "format", "(", "\"Unknown page '%s' - please introduce pa...
Verify that page is known. @param pageId
[ "Verify", "that", "page", "is", "known", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-cucumber/src/main/java/com/consol/citrus/cucumber/step/runner/selenium/SeleniumSteps.java#L252-L256
51,193
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/main/CitrusAppOptions.java
CitrusAppOptions.apply
public static <T extends CitrusAppConfiguration> T apply(T configuration, String[] arguments) { LinkedList<String> args = new LinkedList<>(Arrays.asList(arguments)); CitrusAppOptions options = new CitrusAppOptions(); while (!args.isEmpty()) { String arg = args.removeFirst(); ...
java
public static <T extends CitrusAppConfiguration> T apply(T configuration, String[] arguments) { LinkedList<String> args = new LinkedList<>(Arrays.asList(arguments)); CitrusAppOptions options = new CitrusAppOptions(); while (!args.isEmpty()) { String arg = args.removeFirst(); ...
[ "public", "static", "<", "T", "extends", "CitrusAppConfiguration", ">", "T", "apply", "(", "T", "configuration", ",", "String", "[", "]", "arguments", ")", "{", "LinkedList", "<", "String", ">", "args", "=", "new", "LinkedList", "<>", "(", "Arrays", ".", ...
Apply options based on given argument line. @param configuration @param arguments
[ "Apply", "options", "based", "on", "given", "argument", "line", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/main/CitrusAppOptions.java#L179-L194
51,194
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/config/xml/AbstractDataDictionaryParser.java
AbstractDataDictionaryParser.parseMappingDefinitions
private void parseMappingDefinitions(BeanDefinitionBuilder builder, Element element) { HashMap<String, String> mappings = new HashMap<String, String>(); for (Element matcher : DomUtils.getChildElementsByTagName(element, "mapping")) { mappings.put(matcher.getAttribute("path"), matcher.getAttr...
java
private void parseMappingDefinitions(BeanDefinitionBuilder builder, Element element) { HashMap<String, String> mappings = new HashMap<String, String>(); for (Element matcher : DomUtils.getChildElementsByTagName(element, "mapping")) { mappings.put(matcher.getAttribute("path"), matcher.getAttr...
[ "private", "void", "parseMappingDefinitions", "(", "BeanDefinitionBuilder", "builder", ",", "Element", "element", ")", "{", "HashMap", "<", "String", ",", "String", ">", "mappings", "=", "new", "HashMap", "<", "String", ",", "String", ">", "(", ")", ";", "fo...
Parses all mapping definitions and adds those to the bean definition builder as property value. @param builder the target bean definition builder. @param element the source element.
[ "Parses", "all", "mapping", "definitions", "and", "adds", "those", "to", "the", "bean", "definition", "builder", "as", "property", "value", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/config/xml/AbstractDataDictionaryParser.java#L67-L76
51,195
citrusframework/citrus
tools/remote/citrus-remote-server/src/main/java/com/consol/citrus/remote/CitrusRemoteApplication.java
CitrusRemoteApplication.getJUnitReportsFolder
private String getJUnitReportsFolder() { if (ClassUtils.isPresent("org.testng.annotations.Test", getClass().getClassLoader())) { return "test-output" + File.separator + "junitreports"; } else if (ClassUtils.isPresent("org.junit.Test", getClass().getClassLoader())) { JUnitReporter...
java
private String getJUnitReportsFolder() { if (ClassUtils.isPresent("org.testng.annotations.Test", getClass().getClassLoader())) { return "test-output" + File.separator + "junitreports"; } else if (ClassUtils.isPresent("org.junit.Test", getClass().getClassLoader())) { JUnitReporter...
[ "private", "String", "getJUnitReportsFolder", "(", ")", "{", "if", "(", "ClassUtils", ".", "isPresent", "(", "\"org.testng.annotations.Test\"", ",", "getClass", "(", ")", ".", "getClassLoader", "(", ")", ")", ")", "{", "return", "\"test-output\"", "+", "File", ...
Find reports folder based in unit testing framework present on classpath. @return
[ "Find", "reports", "folder", "based", "in", "unit", "testing", "framework", "present", "on", "classpath", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/tools/remote/citrus-remote-server/src/main/java/com/consol/citrus/remote/CitrusRemoteApplication.java#L259-L268
51,196
citrusframework/citrus
modules/citrus-kubernetes/src/main/java/com/consol/citrus/kubernetes/endpoint/KubernetesEndpointConfiguration.java
KubernetesEndpointConfiguration.getKubernetesClient
public io.fabric8.kubernetes.client.KubernetesClient getKubernetesClient() { if (kubernetesClient == null) { kubernetesClient = createKubernetesClient(); } return kubernetesClient; }
java
public io.fabric8.kubernetes.client.KubernetesClient getKubernetesClient() { if (kubernetesClient == null) { kubernetesClient = createKubernetesClient(); } return kubernetesClient; }
[ "public", "io", ".", "fabric8", ".", "kubernetes", ".", "client", ".", "KubernetesClient", "getKubernetesClient", "(", ")", "{", "if", "(", "kubernetesClient", "==", "null", ")", "{", "kubernetesClient", "=", "createKubernetesClient", "(", ")", ";", "}", "retu...
Constructs or gets the kubernetes client implementation. @return
[ "Constructs", "or", "gets", "the", "kubernetes", "client", "implementation", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-kubernetes/src/main/java/com/consol/citrus/kubernetes/endpoint/KubernetesEndpointConfiguration.java#L59-L65
51,197
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/report/HtmlReporter.java
HtmlReporter.getLogoImageData
private String getLogoImageData() { ByteArrayOutputStream os = new ByteArrayOutputStream(); BufferedInputStream reader = null; try { reader = new BufferedInputStream(FileUtils.getFileResource(logo).getInputStream()); byte[] contents = new byte[1024];...
java
private String getLogoImageData() { ByteArrayOutputStream os = new ByteArrayOutputStream(); BufferedInputStream reader = null; try { reader = new BufferedInputStream(FileUtils.getFileResource(logo).getInputStream()); byte[] contents = new byte[1024];...
[ "private", "String", "getLogoImageData", "(", ")", "{", "ByteArrayOutputStream", "os", "=", "new", "ByteArrayOutputStream", "(", ")", ";", "BufferedInputStream", "reader", "=", "null", ";", "try", "{", "reader", "=", "new", "BufferedInputStream", "(", "FileUtils",...
Reads citrus logo png image and converts to base64 encoded string for inline HTML image display. @return @throws IOException
[ "Reads", "citrus", "logo", "png", "image", "and", "converts", "to", "base64", "encoded", "string", "for", "inline", "HTML", "image", "display", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/report/HtmlReporter.java#L127-L157
51,198
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/report/HtmlReporter.java
HtmlReporter.getCodeSnippetHtml
private String getCodeSnippetHtml(Throwable cause) { StringBuilder codeSnippet = new StringBuilder(); BufferedReader reader = null; try { if (cause instanceof CitrusRuntimeException) { CitrusRuntimeException ex = (CitrusRuntimeException) cause; ...
java
private String getCodeSnippetHtml(Throwable cause) { StringBuilder codeSnippet = new StringBuilder(); BufferedReader reader = null; try { if (cause instanceof CitrusRuntimeException) { CitrusRuntimeException ex = (CitrusRuntimeException) cause; ...
[ "private", "String", "getCodeSnippetHtml", "(", "Throwable", "cause", ")", "{", "StringBuilder", "codeSnippet", "=", "new", "StringBuilder", "(", ")", ";", "BufferedReader", "reader", "=", "null", ";", "try", "{", "if", "(", "cause", "instanceof", "CitrusRuntime...
Gets the code section from test case XML which is responsible for the error. @param cause the error cause. @return
[ "Gets", "the", "code", "section", "from", "test", "case", "XML", "which", "is", "responsible", "for", "the", "error", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/report/HtmlReporter.java#L165-L224
51,199
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/report/HtmlReporter.java
HtmlReporter.getStackTraceHtml
private String getStackTraceHtml(Throwable cause) { StringBuilder stackTraceBuilder = new StringBuilder(); stackTraceBuilder.append(cause.getClass().getName()) .append(": ") .append(cause.getMessage()) .append("\n "); for (i...
java
private String getStackTraceHtml(Throwable cause) { StringBuilder stackTraceBuilder = new StringBuilder(); stackTraceBuilder.append(cause.getClass().getName()) .append(": ") .append(cause.getMessage()) .append("\n "); for (i...
[ "private", "String", "getStackTraceHtml", "(", "Throwable", "cause", ")", "{", "StringBuilder", "stackTraceBuilder", "=", "new", "StringBuilder", "(", ")", ";", "stackTraceBuilder", ".", "append", "(", "cause", ".", "getClass", "(", ")", ".", "getName", "(", "...
Construct HTML code snippet for stack trace information. @param cause the causing error. @return
[ "Construct", "HTML", "code", "snippet", "for", "stack", "trace", "information", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/report/HtmlReporter.java#L231-L245