target stringlengths 20 113k | src_fm stringlengths 11 86.3k | src_fm_fc stringlengths 21 86.4k | src_fm_fc_co stringlengths 30 86.4k | src_fm_fc_ms stringlengths 42 86.8k | src_fm_fc_ms_ff stringlengths 43 86.8k |
|---|---|---|---|---|---|
@Test public void builderPostGenerationWierdValue() throws Exception { BaseRequest.Builder<DummyResponse> builder = new BaseRequest.Builder<>(Request.Method.POST, url, DummyResponse.class); builder.headers(headersWithContentType); BaseRequest<DummyResponse> baseRequest = builder.build(); assertEquals("The url should be... | @Override @NonNull public String getUrl() { int method = getMethod(); String topUrl = super.getUrl(); if (method == Method.GET) { return parseGetUrl(method, topUrl, getParams(), getParamsEncoding()); } return topUrl; } | BaseRequest extends AbstractRequest<T> { @Override @NonNull public String getUrl() { int method = getMethod(); String topUrl = super.getUrl(); if (method == Method.GET) { return parseGetUrl(method, topUrl, getParams(), getParamsEncoding()); } return topUrl; } } | BaseRequest extends AbstractRequest<T> { @Override @NonNull public String getUrl() { int method = getMethod(); String topUrl = super.getUrl(); if (method == Method.GET) { return parseGetUrl(method, topUrl, getParams(), getParamsEncoding()); } return topUrl; } protected BaseRequest(Builder builder); } | BaseRequest extends AbstractRequest<T> { @Override @NonNull public String getUrl() { int method = getMethod(); String topUrl = super.getUrl(); if (method == Method.GET) { return parseGetUrl(method, topUrl, getParams(), getParamsEncoding()); } return topUrl; } protected BaseRequest(Builder builder); @NonNull String get... | BaseRequest extends AbstractRequest<T> { @Override @NonNull public String getUrl() { int method = getMethod(); String topUrl = super.getUrl(); if (method == Method.GET) { return parseGetUrl(method, topUrl, getParams(), getParamsEncoding()); } return topUrl; } protected BaseRequest(Builder builder); @NonNull String get... |
@Test public void requestPostConstruct_contentType() throws Exception { BaseRequest.Builder<DummyResponse> builder = new BaseRequest.Builder<>(Request.Method.POST, url, DummyResponse.class); builder.json(dummyRequestObject); builder.headers(headers); BaseRequest<DummyResponse> baseRequest = builder.build(); assertTrue(... | @Override @NonNull public String getBodyContentType() { if (HTTP_METHOD_JSON_ALLOWED.contains(getMethod()) && getJsonObject() != null) { return getJsonContentType(); } return super.getBodyContentType(); } | BaseRequest extends AbstractRequest<T> { @Override @NonNull public String getBodyContentType() { if (HTTP_METHOD_JSON_ALLOWED.contains(getMethod()) && getJsonObject() != null) { return getJsonContentType(); } return super.getBodyContentType(); } } | BaseRequest extends AbstractRequest<T> { @Override @NonNull public String getBodyContentType() { if (HTTP_METHOD_JSON_ALLOWED.contains(getMethod()) && getJsonObject() != null) { return getJsonContentType(); } return super.getBodyContentType(); } protected BaseRequest(Builder builder); } | BaseRequest extends AbstractRequest<T> { @Override @NonNull public String getBodyContentType() { if (HTTP_METHOD_JSON_ALLOWED.contains(getMethod()) && getJsonObject() != null) { return getJsonContentType(); } return super.getBodyContentType(); } protected BaseRequest(Builder builder); @NonNull String getJsonContentTyp... | BaseRequest extends AbstractRequest<T> { @Override @NonNull public String getBodyContentType() { if (HTTP_METHOD_JSON_ALLOWED.contains(getMethod()) && getJsonObject() != null) { return getJsonContentType(); } return super.getBodyContentType(); } protected BaseRequest(Builder builder); @NonNull String getJsonContentTyp... |
@Test public void requestPostParamConstruct_contentType() throws Exception { BaseRequest.Builder<DummyResponse> builder = new BaseRequest.Builder<>(Request.Method.POST, url, DummyResponse.class); builder.parameters(parameters); builder.headers(headers); BaseRequest<DummyResponse> baseRequest = builder.build(); assertTr... | @Override @NonNull public String getBodyContentType() { if (HTTP_METHOD_JSON_ALLOWED.contains(getMethod()) && getJsonObject() != null) { return getJsonContentType(); } return super.getBodyContentType(); } | BaseRequest extends AbstractRequest<T> { @Override @NonNull public String getBodyContentType() { if (HTTP_METHOD_JSON_ALLOWED.contains(getMethod()) && getJsonObject() != null) { return getJsonContentType(); } return super.getBodyContentType(); } } | BaseRequest extends AbstractRequest<T> { @Override @NonNull public String getBodyContentType() { if (HTTP_METHOD_JSON_ALLOWED.contains(getMethod()) && getJsonObject() != null) { return getJsonContentType(); } return super.getBodyContentType(); } protected BaseRequest(Builder builder); } | BaseRequest extends AbstractRequest<T> { @Override @NonNull public String getBodyContentType() { if (HTTP_METHOD_JSON_ALLOWED.contains(getMethod()) && getJsonObject() != null) { return getJsonContentType(); } return super.getBodyContentType(); } protected BaseRequest(Builder builder); @NonNull String getJsonContentTyp... | BaseRequest extends AbstractRequest<T> { @Override @NonNull public String getBodyContentType() { if (HTTP_METHOD_JSON_ALLOWED.contains(getMethod()) && getJsonObject() != null) { return getJsonContentType(); } return super.getBodyContentType(); } protected BaseRequest(Builder builder); @NonNull String getJsonContentTyp... |
@Test public void requestGetParamConstruct() throws Exception { BaseRequest.Builder<DummyResponse> builder = new BaseRequest.Builder<>(Request.Method.GET, url, DummyResponse.class); builder.parameters(parameters); builder.headers(headers); BaseRequest<DummyResponse> baseRequest = builder.build(); assertTrue("The body s... | @Override @NonNull public String getBodyContentType() { if (HTTP_METHOD_JSON_ALLOWED.contains(getMethod()) && getJsonObject() != null) { return getJsonContentType(); } return super.getBodyContentType(); } | BaseRequest extends AbstractRequest<T> { @Override @NonNull public String getBodyContentType() { if (HTTP_METHOD_JSON_ALLOWED.contains(getMethod()) && getJsonObject() != null) { return getJsonContentType(); } return super.getBodyContentType(); } } | BaseRequest extends AbstractRequest<T> { @Override @NonNull public String getBodyContentType() { if (HTTP_METHOD_JSON_ALLOWED.contains(getMethod()) && getJsonObject() != null) { return getJsonContentType(); } return super.getBodyContentType(); } protected BaseRequest(Builder builder); } | BaseRequest extends AbstractRequest<T> { @Override @NonNull public String getBodyContentType() { if (HTTP_METHOD_JSON_ALLOWED.contains(getMethod()) && getJsonObject() != null) { return getJsonContentType(); } return super.getBodyContentType(); } protected BaseRequest(Builder builder); @NonNull String getJsonContentTyp... | BaseRequest extends AbstractRequest<T> { @Override @NonNull public String getBodyContentType() { if (HTTP_METHOD_JSON_ALLOWED.contains(getMethod()) && getJsonObject() != null) { return getJsonContentType(); } return super.getBodyContentType(); } protected BaseRequest(Builder builder); @NonNull String getJsonContentTyp... |
@Test public void builderPatchGenerationWierdValue() throws Exception { BaseRequest.Builder<DummyResponse> builder = new BaseRequest.Builder<>(Request.Method.PATCH, url, DummyResponse.class); builder.headers(headersWithContentType); BaseRequest<DummyResponse> baseRequest = builder.build(); assertEquals("The url should ... | @Override @NonNull public String getUrl() { int method = getMethod(); String topUrl = super.getUrl(); if (method == Method.GET) { return parseGetUrl(method, topUrl, getParams(), getParamsEncoding()); } return topUrl; } | BaseRequest extends AbstractRequest<T> { @Override @NonNull public String getUrl() { int method = getMethod(); String topUrl = super.getUrl(); if (method == Method.GET) { return parseGetUrl(method, topUrl, getParams(), getParamsEncoding()); } return topUrl; } } | BaseRequest extends AbstractRequest<T> { @Override @NonNull public String getUrl() { int method = getMethod(); String topUrl = super.getUrl(); if (method == Method.GET) { return parseGetUrl(method, topUrl, getParams(), getParamsEncoding()); } return topUrl; } protected BaseRequest(Builder builder); } | BaseRequest extends AbstractRequest<T> { @Override @NonNull public String getUrl() { int method = getMethod(); String topUrl = super.getUrl(); if (method == Method.GET) { return parseGetUrl(method, topUrl, getParams(), getParamsEncoding()); } return topUrl; } protected BaseRequest(Builder builder); @NonNull String get... | BaseRequest extends AbstractRequest<T> { @Override @NonNull public String getUrl() { int method = getMethod(); String topUrl = super.getUrl(); if (method == Method.GET) { return parseGetUrl(method, topUrl, getParams(), getParamsEncoding()); } return topUrl; } protected BaseRequest(Builder builder); @NonNull String get... |
@Test public void requestPatchParamConstruct_contentType() throws Exception { BaseRequest.Builder<DummyResponse> builder = new BaseRequest.Builder<>(Request.Method.PATCH, url, DummyResponse.class); builder.parameters(parameters); builder.headers(headers); BaseRequest<DummyResponse> baseRequest = builder.build(); assert... | @Override @NonNull public String getBodyContentType() { if (HTTP_METHOD_JSON_ALLOWED.contains(getMethod()) && getJsonObject() != null) { return getJsonContentType(); } return super.getBodyContentType(); } | BaseRequest extends AbstractRequest<T> { @Override @NonNull public String getBodyContentType() { if (HTTP_METHOD_JSON_ALLOWED.contains(getMethod()) && getJsonObject() != null) { return getJsonContentType(); } return super.getBodyContentType(); } } | BaseRequest extends AbstractRequest<T> { @Override @NonNull public String getBodyContentType() { if (HTTP_METHOD_JSON_ALLOWED.contains(getMethod()) && getJsonObject() != null) { return getJsonContentType(); } return super.getBodyContentType(); } protected BaseRequest(Builder builder); } | BaseRequest extends AbstractRequest<T> { @Override @NonNull public String getBodyContentType() { if (HTTP_METHOD_JSON_ALLOWED.contains(getMethod()) && getJsonObject() != null) { return getJsonContentType(); } return super.getBodyContentType(); } protected BaseRequest(Builder builder); @NonNull String getJsonContentTyp... | BaseRequest extends AbstractRequest<T> { @Override @NonNull public String getBodyContentType() { if (HTTP_METHOD_JSON_ALLOWED.contains(getMethod()) && getJsonObject() != null) { return getJsonContentType(); } return super.getBodyContentType(); } protected BaseRequest(Builder builder); @NonNull String getJsonContentTyp... |
@Test public void builderPostGeneration() throws Exception { MultipartRequest.Builder<DummyResponse> builder = new MultipartRequest.Builder<>(Request.Method.POST, url, DummyResponse.class); builder.parameters(parameters); builder.json(dummyRequestObject); builder.headers(headers); builder.multiPartDataList(dummyDataMap... | @Nullable public HashMap<String, List<RequestData>> getMultiPartData() { return multiPartData; } | MultipartRequest extends BaseRequest<T> { @Nullable public HashMap<String, List<RequestData>> getMultiPartData() { return multiPartData; } } | MultipartRequest extends BaseRequest<T> { @Nullable public HashMap<String, List<RequestData>> getMultiPartData() { return multiPartData; } private MultipartRequest(Builder<T> builder); } | MultipartRequest extends BaseRequest<T> { @Nullable public HashMap<String, List<RequestData>> getMultiPartData() { return multiPartData; } private MultipartRequest(Builder<T> builder); @Override @NonNull String getBodyContentType(); @Nullable HashMap<String, List<RequestData>> getMultiPartData(); @NonNull String getJs... | MultipartRequest extends BaseRequest<T> { @Nullable public HashMap<String, List<RequestData>> getMultiPartData() { return multiPartData; } private MultipartRequest(Builder<T> builder); @Override @NonNull String getBodyContentType(); @Nullable HashMap<String, List<RequestData>> getMultiPartData(); @NonNull String getJs... |
@Test public void builderPostGenerationWithPutMultipartSimple() throws Exception { MultipartRequest.Builder<DummyResponse> builder = new MultipartRequest.Builder<>(Request.Method.POST, url, DummyResponse.class); builder.parameters(parameters); builder.json(dummyRequestObject); builder.headers(headers); builder.multiPar... | @Nullable public HashMap<String, List<RequestData>> getMultiPartData() { return multiPartData; } | MultipartRequest extends BaseRequest<T> { @Nullable public HashMap<String, List<RequestData>> getMultiPartData() { return multiPartData; } } | MultipartRequest extends BaseRequest<T> { @Nullable public HashMap<String, List<RequestData>> getMultiPartData() { return multiPartData; } private MultipartRequest(Builder<T> builder); } | MultipartRequest extends BaseRequest<T> { @Nullable public HashMap<String, List<RequestData>> getMultiPartData() { return multiPartData; } private MultipartRequest(Builder<T> builder); @Override @NonNull String getBodyContentType(); @Nullable HashMap<String, List<RequestData>> getMultiPartData(); @NonNull String getJs... | MultipartRequest extends BaseRequest<T> { @Nullable public HashMap<String, List<RequestData>> getMultiPartData() { return multiPartData; } private MultipartRequest(Builder<T> builder); @Override @NonNull String getBodyContentType(); @Nullable HashMap<String, List<RequestData>> getMultiPartData(); @NonNull String getJs... |
@Test public void builderPostGenerationWithInsertMultipart() throws Exception { MultipartRequest.Builder<DummyResponse> builder = new MultipartRequest.Builder<>(Request.Method.POST, url, DummyResponse.class); builder.parameters(parameters); builder.json(dummyRequestObject); builder.headers(headers); for (Map.Entry<Stri... | @Nullable public HashMap<String, List<RequestData>> getMultiPartData() { return multiPartData; } | MultipartRequest extends BaseRequest<T> { @Nullable public HashMap<String, List<RequestData>> getMultiPartData() { return multiPartData; } } | MultipartRequest extends BaseRequest<T> { @Nullable public HashMap<String, List<RequestData>> getMultiPartData() { return multiPartData; } private MultipartRequest(Builder<T> builder); } | MultipartRequest extends BaseRequest<T> { @Nullable public HashMap<String, List<RequestData>> getMultiPartData() { return multiPartData; } private MultipartRequest(Builder<T> builder); @Override @NonNull String getBodyContentType(); @Nullable HashMap<String, List<RequestData>> getMultiPartData(); @NonNull String getJs... | MultipartRequest extends BaseRequest<T> { @Nullable public HashMap<String, List<RequestData>> getMultiPartData() { return multiPartData; } private MultipartRequest(Builder<T> builder); @Override @NonNull String getBodyContentType(); @Nullable HashMap<String, List<RequestData>> getMultiPartData(); @NonNull String getJs... |
@Test(timeout = 30000) public void testCreateJMSProducer() throws JMSException { JmsPoolJMSProducer producer = (JmsPoolJMSProducer) context.createProducer(); assertNotNull(producer); MockJMSMessageProducer mockProducer = (MockJMSMessageProducer) producer.getMessageProducer(); assertNotNull(mockProducer); assertNull(moc... | public MessageProducer getMessageProducer() throws JMSRuntimeException { try { return producer.getMessageProducer(); } catch (JMSException jmsex) { throw JMSExceptionSupport.createRuntimeException(jmsex); } } | JmsPoolJMSProducer implements JMSProducer { public MessageProducer getMessageProducer() throws JMSRuntimeException { try { return producer.getMessageProducer(); } catch (JMSException jmsex) { throw JMSExceptionSupport.createRuntimeException(jmsex); } } } | JmsPoolJMSProducer implements JMSProducer { public MessageProducer getMessageProducer() throws JMSRuntimeException { try { return producer.getMessageProducer(); } catch (JMSException jmsex) { throw JMSExceptionSupport.createRuntimeException(jmsex); } } JmsPoolJMSProducer(JmsPoolSession session, JmsPoolMessageProducer p... | JmsPoolJMSProducer implements JMSProducer { public MessageProducer getMessageProducer() throws JMSRuntimeException { try { return producer.getMessageProducer(); } catch (JMSException jmsex) { throw JMSExceptionSupport.createRuntimeException(jmsex); } } JmsPoolJMSProducer(JmsPoolSession session, JmsPoolMessageProducer p... | JmsPoolJMSProducer implements JMSProducer { public MessageProducer getMessageProducer() throws JMSRuntimeException { try { return producer.getMessageProducer(); } catch (JMSException jmsex) { throw JMSExceptionSupport.createRuntimeException(jmsex); } } JmsPoolJMSProducer(JmsPoolSession session, JmsPoolMessageProducer p... |
@Test public void testCreateMessageFormatExceptionFillsMessageFromCauseMessageParamToString() { JMSException result = JMSExceptionSupport.createMessageFormatException(NO_MESSAGE_CAUSE); assertEquals(NO_MESSAGE_CAUSE.toString(), result.getMessage()); } | public static MessageFormatException createMessageFormatException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageFormatException exception = new MessageFormatException(message); if (cause instanceof Exception) { exception.setL... | JMSExceptionSupport { public static MessageFormatException createMessageFormatException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageFormatException exception = new MessageFormatException(message); if (cause instanceof Excep... | JMSExceptionSupport { public static MessageFormatException createMessageFormatException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageFormatException exception = new MessageFormatException(message); if (cause instanceof Excep... | JMSExceptionSupport { public static MessageFormatException createMessageFormatException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageFormatException exception = new MessageFormatException(message); if (cause instanceof Excep... | JMSExceptionSupport { public static MessageFormatException createMessageFormatException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageFormatException exception = new MessageFormatException(message); if (cause instanceof Excep... |
@Test public void testCreateMessageFormatExceptionFillsMessageFromCauseMessageParamToStringWhenMessageIsEmpty() { JMSException result = JMSExceptionSupport.createMessageFormatException(EMPTY_MESSAGE_CAUSE); assertEquals(EMPTY_MESSAGE_CAUSE.toString(), result.getMessage()); } | public static MessageFormatException createMessageFormatException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageFormatException exception = new MessageFormatException(message); if (cause instanceof Exception) { exception.setL... | JMSExceptionSupport { public static MessageFormatException createMessageFormatException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageFormatException exception = new MessageFormatException(message); if (cause instanceof Excep... | JMSExceptionSupport { public static MessageFormatException createMessageFormatException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageFormatException exception = new MessageFormatException(message); if (cause instanceof Excep... | JMSExceptionSupport { public static MessageFormatException createMessageFormatException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageFormatException exception = new MessageFormatException(message); if (cause instanceof Excep... | JMSExceptionSupport { public static MessageFormatException createMessageFormatException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageFormatException exception = new MessageFormatException(message); if (cause instanceof Excep... |
@Test public void testCreateMessageEOFExceptionFillsMessageFromCauseMessageParamToString() { JMSException result = JMSExceptionSupport.createMessageEOFException(NO_MESSAGE_CAUSE); assertEquals(NO_MESSAGE_CAUSE.toString(), result.getMessage()); } | public static MessageEOFException createMessageEOFException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageEOFException exception = new MessageEOFException(message); if (cause instanceof Exception) { exception.setLinkedExcepti... | JMSExceptionSupport { public static MessageEOFException createMessageEOFException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageEOFException exception = new MessageEOFException(message); if (cause instanceof Exception) { exce... | JMSExceptionSupport { public static MessageEOFException createMessageEOFException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageEOFException exception = new MessageEOFException(message); if (cause instanceof Exception) { exce... | JMSExceptionSupport { public static MessageEOFException createMessageEOFException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageEOFException exception = new MessageEOFException(message); if (cause instanceof Exception) { exce... | JMSExceptionSupport { public static MessageEOFException createMessageEOFException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageEOFException exception = new MessageEOFException(message); if (cause instanceof Exception) { exce... |
@Test public void testCreateMessageEOFExceptionFillsMessageFromCauseMessageParamToStringWhenMessageIsEmpty() { JMSException result = JMSExceptionSupport.createMessageEOFException(EMPTY_MESSAGE_CAUSE); assertEquals(EMPTY_MESSAGE_CAUSE.toString(), result.getMessage()); } | public static MessageEOFException createMessageEOFException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageEOFException exception = new MessageEOFException(message); if (cause instanceof Exception) { exception.setLinkedExcepti... | JMSExceptionSupport { public static MessageEOFException createMessageEOFException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageEOFException exception = new MessageEOFException(message); if (cause instanceof Exception) { exce... | JMSExceptionSupport { public static MessageEOFException createMessageEOFException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageEOFException exception = new MessageEOFException(message); if (cause instanceof Exception) { exce... | JMSExceptionSupport { public static MessageEOFException createMessageEOFException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageEOFException exception = new MessageEOFException(message); if (cause instanceof Exception) { exce... | JMSExceptionSupport { public static MessageEOFException createMessageEOFException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageEOFException exception = new MessageEOFException(message); if (cause instanceof Exception) { exce... |
@Test public void testCreateMessageFormatExceptionAssignsLinkedException() { JMSException result = JMSExceptionSupport.createMessageFormatException(new IOException(CAUSE_MESSAGE)); assertNotNull(result.getLinkedException()); } | public static MessageFormatException createMessageFormatException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageFormatException exception = new MessageFormatException(message); if (cause instanceof Exception) { exception.setL... | JMSExceptionSupport { public static MessageFormatException createMessageFormatException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageFormatException exception = new MessageFormatException(message); if (cause instanceof Excep... | JMSExceptionSupport { public static MessageFormatException createMessageFormatException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageFormatException exception = new MessageFormatException(message); if (cause instanceof Excep... | JMSExceptionSupport { public static MessageFormatException createMessageFormatException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageFormatException exception = new MessageFormatException(message); if (cause instanceof Excep... | JMSExceptionSupport { public static MessageFormatException createMessageFormatException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageFormatException exception = new MessageFormatException(message); if (cause instanceof Excep... |
@Test public void testCreateMessageFormatExceptionDoesNotFillLinkedExceptionWhenGivenNonExceptionThrowable() { JMSException result = JMSExceptionSupport.createMessageFormatException(new AssertionError(CAUSE_MESSAGE)); assertNull(result.getLinkedException()); } | public static MessageFormatException createMessageFormatException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageFormatException exception = new MessageFormatException(message); if (cause instanceof Exception) { exception.setL... | JMSExceptionSupport { public static MessageFormatException createMessageFormatException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageFormatException exception = new MessageFormatException(message); if (cause instanceof Excep... | JMSExceptionSupport { public static MessageFormatException createMessageFormatException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageFormatException exception = new MessageFormatException(message); if (cause instanceof Excep... | JMSExceptionSupport { public static MessageFormatException createMessageFormatException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageFormatException exception = new MessageFormatException(message); if (cause instanceof Excep... | JMSExceptionSupport { public static MessageFormatException createMessageFormatException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageFormatException exception = new MessageFormatException(message); if (cause instanceof Excep... |
@Test public void testCreateMessageEOFExceptionAssignsLinkedException() { JMSException result = JMSExceptionSupport.createMessageEOFException(new IOException(CAUSE_MESSAGE)); assertNotNull(result.getLinkedException()); } | public static MessageEOFException createMessageEOFException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageEOFException exception = new MessageEOFException(message); if (cause instanceof Exception) { exception.setLinkedExcepti... | JMSExceptionSupport { public static MessageEOFException createMessageEOFException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageEOFException exception = new MessageEOFException(message); if (cause instanceof Exception) { exce... | JMSExceptionSupport { public static MessageEOFException createMessageEOFException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageEOFException exception = new MessageEOFException(message); if (cause instanceof Exception) { exce... | JMSExceptionSupport { public static MessageEOFException createMessageEOFException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageEOFException exception = new MessageEOFException(message); if (cause instanceof Exception) { exce... | JMSExceptionSupport { public static MessageEOFException createMessageEOFException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageEOFException exception = new MessageEOFException(message); if (cause instanceof Exception) { exce... |
@Test public void testCreateMessageEOFExceptionDoesNotFillLinkedExceptionWhenGivenNonExceptionThrowable() { JMSException result = JMSExceptionSupport.createMessageEOFException(new AssertionError(CAUSE_MESSAGE)); assertNull(result.getLinkedException()); } | public static MessageEOFException createMessageEOFException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageEOFException exception = new MessageEOFException(message); if (cause instanceof Exception) { exception.setLinkedExcepti... | JMSExceptionSupport { public static MessageEOFException createMessageEOFException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageEOFException exception = new MessageEOFException(message); if (cause instanceof Exception) { exce... | JMSExceptionSupport { public static MessageEOFException createMessageEOFException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageEOFException exception = new MessageEOFException(message); if (cause instanceof Exception) { exce... | JMSExceptionSupport { public static MessageEOFException createMessageEOFException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageEOFException exception = new MessageEOFException(message); if (cause instanceof Exception) { exce... | JMSExceptionSupport { public static MessageEOFException createMessageEOFException(Throwable cause) { String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } MessageEOFException exception = new MessageEOFException(message); if (cause instanceof Exception) { exce... |
@Test(expected = JMSRuntimeException.class) public void testConvertsJMSExceptionToJMSRuntimeException() { throw JMSExceptionSupport.createRuntimeException(new JMSException("error")); } | public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) exception; } if (source inst... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... |
@Test(expected = IllegalStateRuntimeException.class) public void testConvertsIllegalStateExceptionToIllegalStateRuntimeException() { throw JMSExceptionSupport.createRuntimeException(new IllegalStateException("error")); } | public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) exception; } if (source inst... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... |
@Test public void testGetDoubleProperty() { JMSProducer producer = context.createProducer(); producer.setProperty(DOUBLE_PROPERTY_NAME, DOUBLE_PROPERTY_VALUE); assertEquals(DOUBLE_PROPERTY_VALUE, producer.getDoubleProperty(DOUBLE_PROPERTY_NAME), 0.0); } | @Override public double getDoubleProperty(String name) { try { return convertPropertyTo(name, messageProperties.get(name), Double.class); } catch (JMSException jmse) { throw JMSExceptionSupport.createRuntimeException(jmse); } } | JmsPoolJMSProducer implements JMSProducer { @Override public double getDoubleProperty(String name) { try { return convertPropertyTo(name, messageProperties.get(name), Double.class); } catch (JMSException jmse) { throw JMSExceptionSupport.createRuntimeException(jmse); } } } | JmsPoolJMSProducer implements JMSProducer { @Override public double getDoubleProperty(String name) { try { return convertPropertyTo(name, messageProperties.get(name), Double.class); } catch (JMSException jmse) { throw JMSExceptionSupport.createRuntimeException(jmse); } } JmsPoolJMSProducer(JmsPoolSession session, JmsPo... | JmsPoolJMSProducer implements JMSProducer { @Override public double getDoubleProperty(String name) { try { return convertPropertyTo(name, messageProperties.get(name), Double.class); } catch (JMSException jmse) { throw JMSExceptionSupport.createRuntimeException(jmse); } } JmsPoolJMSProducer(JmsPoolSession session, JmsPo... | JmsPoolJMSProducer implements JMSProducer { @Override public double getDoubleProperty(String name) { try { return convertPropertyTo(name, messageProperties.get(name), Double.class); } catch (JMSException jmse) { throw JMSExceptionSupport.createRuntimeException(jmse); } } JmsPoolJMSProducer(JmsPoolSession session, JmsPo... |
@Test(expected = InvalidClientIDRuntimeException.class) public void testConvertsInvalidClientIDExceptionToInvalidClientIDRuntimeException() { throw JMSExceptionSupport.createRuntimeException(new InvalidClientIDException("error")); } | public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) exception; } if (source inst... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... |
@Test(expected = InvalidDestinationRuntimeException.class) public void testConvertsInvalidDestinationExceptionToInvalidDestinationRuntimeException() { throw JMSExceptionSupport.createRuntimeException(new InvalidDestinationException("error")); } | public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) exception; } if (source inst... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... |
@Test(expected = InvalidSelectorRuntimeException.class) public void testConvertsInvalidSelectorExceptionToInvalidSelectorRuntimeException() { throw JMSExceptionSupport.createRuntimeException(new InvalidSelectorException("error")); } | public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) exception; } if (source inst... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... |
@Test(expected = JMSSecurityRuntimeException.class) public void testConvertsJMSSecurityExceptionToJMSSecurityRuntimeException() { throw JMSExceptionSupport.createRuntimeException(new JMSSecurityException("error")); } | public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) exception; } if (source inst... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... |
@Test(expected = MessageFormatRuntimeException.class) public void testConvertsMessageFormatExceptionToMessageFormatRuntimeException() { throw JMSExceptionSupport.createRuntimeException(new MessageFormatException("error")); } | public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) exception; } if (source inst... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... |
@Test(expected = MessageNotWriteableRuntimeException.class) public void testConvertsMessageNotWriteableExceptionToMessageNotWriteableRuntimeException() { throw JMSExceptionSupport.createRuntimeException(new MessageNotWriteableException("error")); } | public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) exception; } if (source inst... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... |
@Test(expected = ResourceAllocationRuntimeException.class) public void testConvertsResourceAllocationExceptionToResourceAllocationRuntimeException() { throw JMSExceptionSupport.createRuntimeException(new ResourceAllocationException("error")); } | public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) exception; } if (source inst... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... |
@Test(expected = TransactionInProgressRuntimeException.class) public void testConvertsTransactionInProgressExceptionToTransactionInProgressRuntimeException() { throw JMSExceptionSupport.createRuntimeException(new TransactionInProgressException("error")); } | public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) exception; } if (source inst... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... |
@Test(expected = TransactionRolledBackRuntimeException.class) public void testConvertsTransactionRolledBackExceptionToTransactionRolledBackRuntimeException() { throw JMSExceptionSupport.createRuntimeException(new TransactionRolledBackException("error")); } | public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) exception; } if (source inst... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... |
@Test(expected = JMSRuntimeException.class) public void testConvertsNonJMSExceptionToJMSRuntimeException() { throw JMSExceptionSupport.createRuntimeException(new IOException()); } | public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) exception; } if (source inst... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... | JMSExceptionSupport { public static JMSRuntimeException createRuntimeException(Exception exception) { JMSRuntimeException result = null; JMSException source = null; if (!(exception instanceof JMSException)) { throw new JMSRuntimeException(exception.getMessage(), null, exception); } else { source = (JMSException) except... |
@Test public void testGetFloatProperty() { JMSProducer producer = context.createProducer(); producer.setProperty(FLOAT_PROPERTY_NAME, FLOAT_PROPERTY_VALUE); assertEquals(FLOAT_PROPERTY_VALUE, producer.getFloatProperty(FLOAT_PROPERTY_NAME), 0.0f); } | @Override public float getFloatProperty(String name) { try { return convertPropertyTo(name, messageProperties.get(name), Float.class); } catch (JMSException jmse) { throw JMSExceptionSupport.createRuntimeException(jmse); } } | JmsPoolJMSProducer implements JMSProducer { @Override public float getFloatProperty(String name) { try { return convertPropertyTo(name, messageProperties.get(name), Float.class); } catch (JMSException jmse) { throw JMSExceptionSupport.createRuntimeException(jmse); } } } | JmsPoolJMSProducer implements JMSProducer { @Override public float getFloatProperty(String name) { try { return convertPropertyTo(name, messageProperties.get(name), Float.class); } catch (JMSException jmse) { throw JMSExceptionSupport.createRuntimeException(jmse); } } JmsPoolJMSProducer(JmsPoolSession session, JmsPoolM... | JmsPoolJMSProducer implements JMSProducer { @Override public float getFloatProperty(String name) { try { return convertPropertyTo(name, messageProperties.get(name), Float.class); } catch (JMSException jmse) { throw JMSExceptionSupport.createRuntimeException(jmse); } } JmsPoolJMSProducer(JmsPoolSession session, JmsPoolM... | JmsPoolJMSProducer implements JMSProducer { @Override public float getFloatProperty(String name) { try { return convertPropertyTo(name, messageProperties.get(name), Float.class); } catch (JMSException jmse) { throw JMSExceptionSupport.createRuntimeException(jmse); } } JmsPoolJMSProducer(JmsPoolSession session, JmsPoolM... |
@Test public void testConvertPropertyToNullBooleanTarget() throws JMSException { assertFalse(JMSMessagePropertySupport.convertPropertyTo("timeout", null, Boolean.class)); } | @SuppressWarnings("unchecked") public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException { if (value == null) { if (Boolean.class.equals(target)) { return (T) Boolean.FALSE; } else if (Float.class.equals(target) || Double.class.equals(target)) { throw new NullPointerException... | JMSMessagePropertySupport { @SuppressWarnings("unchecked") public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException { if (value == null) { if (Boolean.class.equals(target)) { return (T) Boolean.FALSE; } else if (Float.class.equals(target) || Double.class.equals(target)) { th... | JMSMessagePropertySupport { @SuppressWarnings("unchecked") public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException { if (value == null) { if (Boolean.class.equals(target)) { return (T) Boolean.FALSE; } else if (Float.class.equals(target) || Double.class.equals(target)) { th... | JMSMessagePropertySupport { @SuppressWarnings("unchecked") public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException { if (value == null) { if (Boolean.class.equals(target)) { return (T) Boolean.FALSE; } else if (Float.class.equals(target) || Double.class.equals(target)) { th... | JMSMessagePropertySupport { @SuppressWarnings("unchecked") public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException { if (value == null) { if (Boolean.class.equals(target)) { return (T) Boolean.FALSE; } else if (Float.class.equals(target) || Double.class.equals(target)) { th... |
@Test(expected = NullPointerException.class) public void testConvertPropertyToNullFloatTarget() throws JMSException { JMSMessagePropertySupport.convertPropertyTo("float", null, Float.class); } | @SuppressWarnings("unchecked") public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException { if (value == null) { if (Boolean.class.equals(target)) { return (T) Boolean.FALSE; } else if (Float.class.equals(target) || Double.class.equals(target)) { throw new NullPointerException... | JMSMessagePropertySupport { @SuppressWarnings("unchecked") public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException { if (value == null) { if (Boolean.class.equals(target)) { return (T) Boolean.FALSE; } else if (Float.class.equals(target) || Double.class.equals(target)) { th... | JMSMessagePropertySupport { @SuppressWarnings("unchecked") public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException { if (value == null) { if (Boolean.class.equals(target)) { return (T) Boolean.FALSE; } else if (Float.class.equals(target) || Double.class.equals(target)) { th... | JMSMessagePropertySupport { @SuppressWarnings("unchecked") public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException { if (value == null) { if (Boolean.class.equals(target)) { return (T) Boolean.FALSE; } else if (Float.class.equals(target) || Double.class.equals(target)) { th... | JMSMessagePropertySupport { @SuppressWarnings("unchecked") public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException { if (value == null) { if (Boolean.class.equals(target)) { return (T) Boolean.FALSE; } else if (Float.class.equals(target) || Double.class.equals(target)) { th... |
@Test(expected = NullPointerException.class) public void testConvertPropertyToNullDoubleTarget() throws JMSException { JMSMessagePropertySupport.convertPropertyTo("double", null, Double.class); } | @SuppressWarnings("unchecked") public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException { if (value == null) { if (Boolean.class.equals(target)) { return (T) Boolean.FALSE; } else if (Float.class.equals(target) || Double.class.equals(target)) { throw new NullPointerException... | JMSMessagePropertySupport { @SuppressWarnings("unchecked") public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException { if (value == null) { if (Boolean.class.equals(target)) { return (T) Boolean.FALSE; } else if (Float.class.equals(target) || Double.class.equals(target)) { th... | JMSMessagePropertySupport { @SuppressWarnings("unchecked") public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException { if (value == null) { if (Boolean.class.equals(target)) { return (T) Boolean.FALSE; } else if (Float.class.equals(target) || Double.class.equals(target)) { th... | JMSMessagePropertySupport { @SuppressWarnings("unchecked") public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException { if (value == null) { if (Boolean.class.equals(target)) { return (T) Boolean.FALSE; } else if (Float.class.equals(target) || Double.class.equals(target)) { th... | JMSMessagePropertySupport { @SuppressWarnings("unchecked") public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException { if (value == null) { if (Boolean.class.equals(target)) { return (T) Boolean.FALSE; } else if (Float.class.equals(target) || Double.class.equals(target)) { th... |
@Test(expected = NumberFormatException.class) public void testConvertPropertyToNullShortTarget() throws JMSException { JMSMessagePropertySupport.convertPropertyTo("number", null, Short.class); } | @SuppressWarnings("unchecked") public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException { if (value == null) { if (Boolean.class.equals(target)) { return (T) Boolean.FALSE; } else if (Float.class.equals(target) || Double.class.equals(target)) { throw new NullPointerException... | JMSMessagePropertySupport { @SuppressWarnings("unchecked") public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException { if (value == null) { if (Boolean.class.equals(target)) { return (T) Boolean.FALSE; } else if (Float.class.equals(target) || Double.class.equals(target)) { th... | JMSMessagePropertySupport { @SuppressWarnings("unchecked") public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException { if (value == null) { if (Boolean.class.equals(target)) { return (T) Boolean.FALSE; } else if (Float.class.equals(target) || Double.class.equals(target)) { th... | JMSMessagePropertySupport { @SuppressWarnings("unchecked") public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException { if (value == null) { if (Boolean.class.equals(target)) { return (T) Boolean.FALSE; } else if (Float.class.equals(target) || Double.class.equals(target)) { th... | JMSMessagePropertySupport { @SuppressWarnings("unchecked") public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException { if (value == null) { if (Boolean.class.equals(target)) { return (T) Boolean.FALSE; } else if (Float.class.equals(target) || Double.class.equals(target)) { th... |
@Test(expected = NumberFormatException.class) public void testConvertPropertyToNullIntegerTarget() throws JMSException { JMSMessagePropertySupport.convertPropertyTo("number", null, Integer.class); } | @SuppressWarnings("unchecked") public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException { if (value == null) { if (Boolean.class.equals(target)) { return (T) Boolean.FALSE; } else if (Float.class.equals(target) || Double.class.equals(target)) { throw new NullPointerException... | JMSMessagePropertySupport { @SuppressWarnings("unchecked") public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException { if (value == null) { if (Boolean.class.equals(target)) { return (T) Boolean.FALSE; } else if (Float.class.equals(target) || Double.class.equals(target)) { th... | JMSMessagePropertySupport { @SuppressWarnings("unchecked") public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException { if (value == null) { if (Boolean.class.equals(target)) { return (T) Boolean.FALSE; } else if (Float.class.equals(target) || Double.class.equals(target)) { th... | JMSMessagePropertySupport { @SuppressWarnings("unchecked") public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException { if (value == null) { if (Boolean.class.equals(target)) { return (T) Boolean.FALSE; } else if (Float.class.equals(target) || Double.class.equals(target)) { th... | JMSMessagePropertySupport { @SuppressWarnings("unchecked") public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException { if (value == null) { if (Boolean.class.equals(target)) { return (T) Boolean.FALSE; } else if (Float.class.equals(target) || Double.class.equals(target)) { th... |
@Test(expected = NumberFormatException.class) public void testConvertPropertyToNullLongTarget() throws JMSException { JMSMessagePropertySupport.convertPropertyTo("number", null, Long.class); } | @SuppressWarnings("unchecked") public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException { if (value == null) { if (Boolean.class.equals(target)) { return (T) Boolean.FALSE; } else if (Float.class.equals(target) || Double.class.equals(target)) { throw new NullPointerException... | JMSMessagePropertySupport { @SuppressWarnings("unchecked") public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException { if (value == null) { if (Boolean.class.equals(target)) { return (T) Boolean.FALSE; } else if (Float.class.equals(target) || Double.class.equals(target)) { th... | JMSMessagePropertySupport { @SuppressWarnings("unchecked") public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException { if (value == null) { if (Boolean.class.equals(target)) { return (T) Boolean.FALSE; } else if (Float.class.equals(target) || Double.class.equals(target)) { th... | JMSMessagePropertySupport { @SuppressWarnings("unchecked") public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException { if (value == null) { if (Boolean.class.equals(target)) { return (T) Boolean.FALSE; } else if (Float.class.equals(target) || Double.class.equals(target)) { th... | JMSMessagePropertySupport { @SuppressWarnings("unchecked") public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException { if (value == null) { if (Boolean.class.equals(target)) { return (T) Boolean.FALSE; } else if (Float.class.equals(target) || Double.class.equals(target)) { th... |
@Test public void testConvertPropertyToNullStringTarget() throws JMSException { assertNull(JMSMessagePropertySupport.convertPropertyTo("string", null, String.class)); } | @SuppressWarnings("unchecked") public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException { if (value == null) { if (Boolean.class.equals(target)) { return (T) Boolean.FALSE; } else if (Float.class.equals(target) || Double.class.equals(target)) { throw new NullPointerException... | JMSMessagePropertySupport { @SuppressWarnings("unchecked") public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException { if (value == null) { if (Boolean.class.equals(target)) { return (T) Boolean.FALSE; } else if (Float.class.equals(target) || Double.class.equals(target)) { th... | JMSMessagePropertySupport { @SuppressWarnings("unchecked") public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException { if (value == null) { if (Boolean.class.equals(target)) { return (T) Boolean.FALSE; } else if (Float.class.equals(target) || Double.class.equals(target)) { th... | JMSMessagePropertySupport { @SuppressWarnings("unchecked") public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException { if (value == null) { if (Boolean.class.equals(target)) { return (T) Boolean.FALSE; } else if (Float.class.equals(target) || Double.class.equals(target)) { th... | JMSMessagePropertySupport { @SuppressWarnings("unchecked") public static <T> T convertPropertyTo(String name, Object value, Class<T> target) throws JMSException { if (value == null) { if (Boolean.class.equals(target)) { return (T) Boolean.FALSE; } else if (Float.class.equals(target) || Double.class.equals(target)) { th... |
@Test(expected = IllegalArgumentException.class) public void testCheckPropertyNameIsValidWithNullName() throws JMSException { JMSMessagePropertySupport.checkPropertyNameIsValid(null, true); } | public static void checkPropertyNameIsValid(String propertyName, boolean validateNames) throws IllegalArgumentException { if (propertyName == null) { throw new IllegalArgumentException("Property name must not be null"); } else if (propertyName.length() == 0) { throw new IllegalArgumentException("Property name must not ... | JMSMessagePropertySupport { public static void checkPropertyNameIsValid(String propertyName, boolean validateNames) throws IllegalArgumentException { if (propertyName == null) { throw new IllegalArgumentException("Property name must not be null"); } else if (propertyName.length() == 0) { throw new IllegalArgumentExcept... | JMSMessagePropertySupport { public static void checkPropertyNameIsValid(String propertyName, boolean validateNames) throws IllegalArgumentException { if (propertyName == null) { throw new IllegalArgumentException("Property name must not be null"); } else if (propertyName.length() == 0) { throw new IllegalArgumentExcept... | JMSMessagePropertySupport { public static void checkPropertyNameIsValid(String propertyName, boolean validateNames) throws IllegalArgumentException { if (propertyName == null) { throw new IllegalArgumentException("Property name must not be null"); } else if (propertyName.length() == 0) { throw new IllegalArgumentExcept... | JMSMessagePropertySupport { public static void checkPropertyNameIsValid(String propertyName, boolean validateNames) throws IllegalArgumentException { if (propertyName == null) { throw new IllegalArgumentException("Property name must not be null"); } else if (propertyName.length() == 0) { throw new IllegalArgumentExcept... |
@Test(expected = IllegalArgumentException.class) public void testCheckPropertyNameIsValidWithEmptyName() throws JMSException { JMSMessagePropertySupport.checkPropertyNameIsValid("", true); } | public static void checkPropertyNameIsValid(String propertyName, boolean validateNames) throws IllegalArgumentException { if (propertyName == null) { throw new IllegalArgumentException("Property name must not be null"); } else if (propertyName.length() == 0) { throw new IllegalArgumentException("Property name must not ... | JMSMessagePropertySupport { public static void checkPropertyNameIsValid(String propertyName, boolean validateNames) throws IllegalArgumentException { if (propertyName == null) { throw new IllegalArgumentException("Property name must not be null"); } else if (propertyName.length() == 0) { throw new IllegalArgumentExcept... | JMSMessagePropertySupport { public static void checkPropertyNameIsValid(String propertyName, boolean validateNames) throws IllegalArgumentException { if (propertyName == null) { throw new IllegalArgumentException("Property name must not be null"); } else if (propertyName.length() == 0) { throw new IllegalArgumentExcept... | JMSMessagePropertySupport { public static void checkPropertyNameIsValid(String propertyName, boolean validateNames) throws IllegalArgumentException { if (propertyName == null) { throw new IllegalArgumentException("Property name must not be null"); } else if (propertyName.length() == 0) { throw new IllegalArgumentExcept... | JMSMessagePropertySupport { public static void checkPropertyNameIsValid(String propertyName, boolean validateNames) throws IllegalArgumentException { if (propertyName == null) { throw new IllegalArgumentException("Property name must not be null"); } else if (propertyName.length() == 0) { throw new IllegalArgumentExcept... |
@Test public void testCheckPropertyNameWithLogicOperatorValidationDisabled() throws JMSException { JMSMessagePropertySupport.checkPropertyNameIsValid("OR", false); } | public static void checkPropertyNameIsValid(String propertyName, boolean validateNames) throws IllegalArgumentException { if (propertyName == null) { throw new IllegalArgumentException("Property name must not be null"); } else if (propertyName.length() == 0) { throw new IllegalArgumentException("Property name must not ... | JMSMessagePropertySupport { public static void checkPropertyNameIsValid(String propertyName, boolean validateNames) throws IllegalArgumentException { if (propertyName == null) { throw new IllegalArgumentException("Property name must not be null"); } else if (propertyName.length() == 0) { throw new IllegalArgumentExcept... | JMSMessagePropertySupport { public static void checkPropertyNameIsValid(String propertyName, boolean validateNames) throws IllegalArgumentException { if (propertyName == null) { throw new IllegalArgumentException("Property name must not be null"); } else if (propertyName.length() == 0) { throw new IllegalArgumentExcept... | JMSMessagePropertySupport { public static void checkPropertyNameIsValid(String propertyName, boolean validateNames) throws IllegalArgumentException { if (propertyName == null) { throw new IllegalArgumentException("Property name must not be null"); } else if (propertyName.length() == 0) { throw new IllegalArgumentExcept... | JMSMessagePropertySupport { public static void checkPropertyNameIsValid(String propertyName, boolean validateNames) throws IllegalArgumentException { if (propertyName == null) { throw new IllegalArgumentException("Property name must not be null"); } else if (propertyName.length() == 0) { throw new IllegalArgumentExcept... |
@Test public void testSetStringPropertyWithBadPropertyName() { JMSProducer producer = context.createProducer(); try { producer.setProperty(BAD_PROPERTY_NAME, "X"); fail("Should not accept invalid property name"); } catch (IllegalArgumentException iae) {} } | @Override public JMSProducer setProperty(String name, boolean value) { return setObjectProperty(name, value); } | JmsPoolJMSProducer implements JMSProducer { @Override public JMSProducer setProperty(String name, boolean value) { return setObjectProperty(name, value); } } | JmsPoolJMSProducer implements JMSProducer { @Override public JMSProducer setProperty(String name, boolean value) { return setObjectProperty(name, value); } JmsPoolJMSProducer(JmsPoolSession session, JmsPoolMessageProducer producer); } | JmsPoolJMSProducer implements JMSProducer { @Override public JMSProducer setProperty(String name, boolean value) { return setObjectProperty(name, value); } JmsPoolJMSProducer(JmsPoolSession session, JmsPoolMessageProducer producer); @Override String toString(); @Override JMSProducer send(Destination destination, Messag... | JmsPoolJMSProducer implements JMSProducer { @Override public JMSProducer setProperty(String name, boolean value) { return setObjectProperty(name, value); } JmsPoolJMSProducer(JmsPoolSession session, JmsPoolMessageProducer producer); @Override String toString(); @Override JMSProducer send(Destination destination, Messag... |
@Test(expected = IllegalArgumentException.class) public void testCheckIdentifierIsntLogicOperatorOr() throws JMSException { JMSMessagePropertySupport.checkIdentifierIsntLogicOperator("OR"); } | public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(identifier)) { throw new Ille... | JMSMessagePropertySupport { public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(i... | JMSMessagePropertySupport { public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(i... | JMSMessagePropertySupport { public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(i... | JMSMessagePropertySupport { public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(i... |
@Test(expected = IllegalArgumentException.class) public void testCheckIdentifierIsntLogicOperatorAnd() throws JMSException { JMSMessagePropertySupport.checkIdentifierIsntLogicOperator("AND"); } | public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(identifier)) { throw new Ille... | JMSMessagePropertySupport { public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(i... | JMSMessagePropertySupport { public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(i... | JMSMessagePropertySupport { public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(i... | JMSMessagePropertySupport { public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(i... |
@Test(expected = IllegalArgumentException.class) public void testCheckIdentifierIsntLogicOperatorNot() throws JMSException { JMSMessagePropertySupport.checkIdentifierIsntLogicOperator("NOT"); } | public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(identifier)) { throw new Ille... | JMSMessagePropertySupport { public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(i... | JMSMessagePropertySupport { public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(i... | JMSMessagePropertySupport { public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(i... | JMSMessagePropertySupport { public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(i... |
@Test(expected = IllegalArgumentException.class) public void testCheckIdentifierIsntLogicOperatorBetween() throws JMSException { JMSMessagePropertySupport.checkIdentifierIsntLogicOperator("BETWEEN"); } | public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(identifier)) { throw new Ille... | JMSMessagePropertySupport { public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(i... | JMSMessagePropertySupport { public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(i... | JMSMessagePropertySupport { public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(i... | JMSMessagePropertySupport { public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(i... |
@Test(expected = IllegalArgumentException.class) public void testCheckIdentifierIsntLogicOperatorIn() throws JMSException { JMSMessagePropertySupport.checkIdentifierIsntLogicOperator("IN"); } | public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(identifier)) { throw new Ille... | JMSMessagePropertySupport { public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(i... | JMSMessagePropertySupport { public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(i... | JMSMessagePropertySupport { public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(i... | JMSMessagePropertySupport { public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(i... |
@Test(expected = IllegalArgumentException.class) public void testCheckIdentifierIsntLogicOperatorLike() throws JMSException { JMSMessagePropertySupport.checkIdentifierIsntLogicOperator("LIKE"); } | public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(identifier)) { throw new Ille... | JMSMessagePropertySupport { public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(i... | JMSMessagePropertySupport { public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(i... | JMSMessagePropertySupport { public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(i... | JMSMessagePropertySupport { public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(i... |
@Test(expected = IllegalArgumentException.class) public void testCheckIdentifierIsntLogicOperatorIs() throws JMSException { JMSMessagePropertySupport.checkIdentifierIsntLogicOperator("IS"); } | public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(identifier)) { throw new Ille... | JMSMessagePropertySupport { public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(i... | JMSMessagePropertySupport { public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(i... | JMSMessagePropertySupport { public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(i... | JMSMessagePropertySupport { public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(i... |
@Test(expected = IllegalArgumentException.class) public void testCheckIdentifierIsntLogicOperatorEscape() throws JMSException { JMSMessagePropertySupport.checkIdentifierIsntLogicOperator("ESCAPE"); } | public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(identifier)) { throw new Ille... | JMSMessagePropertySupport { public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(i... | JMSMessagePropertySupport { public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(i... | JMSMessagePropertySupport { public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(i... | JMSMessagePropertySupport { public static void checkIdentifierIsntLogicOperator(String identifier) { if ("NOT".equals(identifier) || "AND".equals(identifier) || "OR".equals(identifier) || "BETWEEN".equals(identifier) || "LIKE".equals(identifier) || "IN".equals(identifier) || "IS".equals(identifier) || "ESCAPE".equals(i... |
@Test(expected = IllegalArgumentException.class) public void testCheckIdentifierIsntNullTrueFalseFalse() throws JMSException { JMSMessagePropertySupport.checkIdentifierIsntNullTrueFalse("FALSE"); } | public static void checkIdentifierIsntNullTrueFalse(String identifier) { if ("NULL".equals(identifier) || "TRUE".equals(identifier) || "FALSE".equals(identifier)) { throw new IllegalArgumentException("Identifier not allowed in JMS: '" + identifier + "'"); } } | JMSMessagePropertySupport { public static void checkIdentifierIsntNullTrueFalse(String identifier) { if ("NULL".equals(identifier) || "TRUE".equals(identifier) || "FALSE".equals(identifier)) { throw new IllegalArgumentException("Identifier not allowed in JMS: '" + identifier + "'"); } } } | JMSMessagePropertySupport { public static void checkIdentifierIsntNullTrueFalse(String identifier) { if ("NULL".equals(identifier) || "TRUE".equals(identifier) || "FALSE".equals(identifier)) { throw new IllegalArgumentException("Identifier not allowed in JMS: '" + identifier + "'"); } } } | JMSMessagePropertySupport { public static void checkIdentifierIsntNullTrueFalse(String identifier) { if ("NULL".equals(identifier) || "TRUE".equals(identifier) || "FALSE".equals(identifier)) { throw new IllegalArgumentException("Identifier not allowed in JMS: '" + identifier + "'"); } } @SuppressWarnings("unchecked") ... | JMSMessagePropertySupport { public static void checkIdentifierIsntNullTrueFalse(String identifier) { if ("NULL".equals(identifier) || "TRUE".equals(identifier) || "FALSE".equals(identifier)) { throw new IllegalArgumentException("Identifier not allowed in JMS: '" + identifier + "'"); } } @SuppressWarnings("unchecked") ... |
@Test(expected = IllegalArgumentException.class) public void testCheckIdentifierIsntNullTrueFalseNull() throws JMSException { JMSMessagePropertySupport.checkIdentifierIsntNullTrueFalse("NULL"); } | public static void checkIdentifierIsntNullTrueFalse(String identifier) { if ("NULL".equals(identifier) || "TRUE".equals(identifier) || "FALSE".equals(identifier)) { throw new IllegalArgumentException("Identifier not allowed in JMS: '" + identifier + "'"); } } | JMSMessagePropertySupport { public static void checkIdentifierIsntNullTrueFalse(String identifier) { if ("NULL".equals(identifier) || "TRUE".equals(identifier) || "FALSE".equals(identifier)) { throw new IllegalArgumentException("Identifier not allowed in JMS: '" + identifier + "'"); } } } | JMSMessagePropertySupport { public static void checkIdentifierIsntNullTrueFalse(String identifier) { if ("NULL".equals(identifier) || "TRUE".equals(identifier) || "FALSE".equals(identifier)) { throw new IllegalArgumentException("Identifier not allowed in JMS: '" + identifier + "'"); } } } | JMSMessagePropertySupport { public static void checkIdentifierIsntNullTrueFalse(String identifier) { if ("NULL".equals(identifier) || "TRUE".equals(identifier) || "FALSE".equals(identifier)) { throw new IllegalArgumentException("Identifier not allowed in JMS: '" + identifier + "'"); } } @SuppressWarnings("unchecked") ... | JMSMessagePropertySupport { public static void checkIdentifierIsntNullTrueFalse(String identifier) { if ("NULL".equals(identifier) || "TRUE".equals(identifier) || "FALSE".equals(identifier)) { throw new IllegalArgumentException("Identifier not allowed in JMS: '" + identifier + "'"); } } @SuppressWarnings("unchecked") ... |
@Test public void testSetBytePropertyWithBadPropertyName() { JMSProducer producer = context.createProducer(); try { producer.setProperty(BAD_PROPERTY_NAME, (byte) 1); fail("Should not accept invalid property name"); } catch (IllegalArgumentException iae) {} } | @Override public JMSProducer setProperty(String name, boolean value) { return setObjectProperty(name, value); } | JmsPoolJMSProducer implements JMSProducer { @Override public JMSProducer setProperty(String name, boolean value) { return setObjectProperty(name, value); } } | JmsPoolJMSProducer implements JMSProducer { @Override public JMSProducer setProperty(String name, boolean value) { return setObjectProperty(name, value); } JmsPoolJMSProducer(JmsPoolSession session, JmsPoolMessageProducer producer); } | JmsPoolJMSProducer implements JMSProducer { @Override public JMSProducer setProperty(String name, boolean value) { return setObjectProperty(name, value); } JmsPoolJMSProducer(JmsPoolSession session, JmsPoolMessageProducer producer); @Override String toString(); @Override JMSProducer send(Destination destination, Messag... | JmsPoolJMSProducer implements JMSProducer { @Override public JMSProducer setProperty(String name, boolean value) { return setObjectProperty(name, value); } JmsPoolJMSProducer(JmsPoolSession session, JmsPoolMessageProducer producer); @Override String toString(); @Override JMSProducer send(Destination destination, Messag... |
@Test(expected = IllegalArgumentException.class) public void testCheckIdentifierIsntNullTrueFalseTrue() throws JMSException { JMSMessagePropertySupport.checkIdentifierIsntNullTrueFalse("TRUE"); } | public static void checkIdentifierIsntNullTrueFalse(String identifier) { if ("NULL".equals(identifier) || "TRUE".equals(identifier) || "FALSE".equals(identifier)) { throw new IllegalArgumentException("Identifier not allowed in JMS: '" + identifier + "'"); } } | JMSMessagePropertySupport { public static void checkIdentifierIsntNullTrueFalse(String identifier) { if ("NULL".equals(identifier) || "TRUE".equals(identifier) || "FALSE".equals(identifier)) { throw new IllegalArgumentException("Identifier not allowed in JMS: '" + identifier + "'"); } } } | JMSMessagePropertySupport { public static void checkIdentifierIsntNullTrueFalse(String identifier) { if ("NULL".equals(identifier) || "TRUE".equals(identifier) || "FALSE".equals(identifier)) { throw new IllegalArgumentException("Identifier not allowed in JMS: '" + identifier + "'"); } } } | JMSMessagePropertySupport { public static void checkIdentifierIsntNullTrueFalse(String identifier) { if ("NULL".equals(identifier) || "TRUE".equals(identifier) || "FALSE".equals(identifier)) { throw new IllegalArgumentException("Identifier not allowed in JMS: '" + identifier + "'"); } } @SuppressWarnings("unchecked") ... | JMSMessagePropertySupport { public static void checkIdentifierIsntNullTrueFalse(String identifier) { if ("NULL".equals(identifier) || "TRUE".equals(identifier) || "FALSE".equals(identifier)) { throw new IllegalArgumentException("Identifier not allowed in JMS: '" + identifier + "'"); } } @SuppressWarnings("unchecked") ... |
@Test public void testCheckIdentifierLetterAndDigitRequirementsValid() throws JMSException { JMSMessagePropertySupport.checkIdentifierLetterAndDigitRequirements("test"); } | public static void checkIdentifierLetterAndDigitRequirements(String identifier) { char startChar = identifier.charAt(0); if (!(Character.isJavaIdentifierStart(startChar))) { throw new IllegalArgumentException("Identifier does not begin with a valid JMS identifier start character: '" + identifier + "' "); } int length =... | JMSMessagePropertySupport { public static void checkIdentifierLetterAndDigitRequirements(String identifier) { char startChar = identifier.charAt(0); if (!(Character.isJavaIdentifierStart(startChar))) { throw new IllegalArgumentException("Identifier does not begin with a valid JMS identifier start character: '" + identi... | JMSMessagePropertySupport { public static void checkIdentifierLetterAndDigitRequirements(String identifier) { char startChar = identifier.charAt(0); if (!(Character.isJavaIdentifierStart(startChar))) { throw new IllegalArgumentException("Identifier does not begin with a valid JMS identifier start character: '" + identi... | JMSMessagePropertySupport { public static void checkIdentifierLetterAndDigitRequirements(String identifier) { char startChar = identifier.charAt(0); if (!(Character.isJavaIdentifierStart(startChar))) { throw new IllegalArgumentException("Identifier does not begin with a valid JMS identifier start character: '" + identi... | JMSMessagePropertySupport { public static void checkIdentifierLetterAndDigitRequirements(String identifier) { char startChar = identifier.charAt(0); if (!(Character.isJavaIdentifierStart(startChar))) { throw new IllegalArgumentException("Identifier does not begin with a valid JMS identifier start character: '" + identi... |
@Test(expected = IllegalArgumentException.class) public void testCheckIdentifierLetterAndDigitRequirementsStartWithNumber() throws JMSException { JMSMessagePropertySupport.checkIdentifierLetterAndDigitRequirements("1"); } | public static void checkIdentifierLetterAndDigitRequirements(String identifier) { char startChar = identifier.charAt(0); if (!(Character.isJavaIdentifierStart(startChar))) { throw new IllegalArgumentException("Identifier does not begin with a valid JMS identifier start character: '" + identifier + "' "); } int length =... | JMSMessagePropertySupport { public static void checkIdentifierLetterAndDigitRequirements(String identifier) { char startChar = identifier.charAt(0); if (!(Character.isJavaIdentifierStart(startChar))) { throw new IllegalArgumentException("Identifier does not begin with a valid JMS identifier start character: '" + identi... | JMSMessagePropertySupport { public static void checkIdentifierLetterAndDigitRequirements(String identifier) { char startChar = identifier.charAt(0); if (!(Character.isJavaIdentifierStart(startChar))) { throw new IllegalArgumentException("Identifier does not begin with a valid JMS identifier start character: '" + identi... | JMSMessagePropertySupport { public static void checkIdentifierLetterAndDigitRequirements(String identifier) { char startChar = identifier.charAt(0); if (!(Character.isJavaIdentifierStart(startChar))) { throw new IllegalArgumentException("Identifier does not begin with a valid JMS identifier start character: '" + identi... | JMSMessagePropertySupport { public static void checkIdentifierLetterAndDigitRequirements(String identifier) { char startChar = identifier.charAt(0); if (!(Character.isJavaIdentifierStart(startChar))) { throw new IllegalArgumentException("Identifier does not begin with a valid JMS identifier start character: '" + identi... |
@Test(expected = IllegalArgumentException.class) public void testCheckIdentifierLetterAndDigitRequirementsContainsColon() throws JMSException { JMSMessagePropertySupport.checkIdentifierLetterAndDigitRequirements("a:b"); } | public static void checkIdentifierLetterAndDigitRequirements(String identifier) { char startChar = identifier.charAt(0); if (!(Character.isJavaIdentifierStart(startChar))) { throw new IllegalArgumentException("Identifier does not begin with a valid JMS identifier start character: '" + identifier + "' "); } int length =... | JMSMessagePropertySupport { public static void checkIdentifierLetterAndDigitRequirements(String identifier) { char startChar = identifier.charAt(0); if (!(Character.isJavaIdentifierStart(startChar))) { throw new IllegalArgumentException("Identifier does not begin with a valid JMS identifier start character: '" + identi... | JMSMessagePropertySupport { public static void checkIdentifierLetterAndDigitRequirements(String identifier) { char startChar = identifier.charAt(0); if (!(Character.isJavaIdentifierStart(startChar))) { throw new IllegalArgumentException("Identifier does not begin with a valid JMS identifier start character: '" + identi... | JMSMessagePropertySupport { public static void checkIdentifierLetterAndDigitRequirements(String identifier) { char startChar = identifier.charAt(0); if (!(Character.isJavaIdentifierStart(startChar))) { throw new IllegalArgumentException("Identifier does not begin with a valid JMS identifier start character: '" + identi... | JMSMessagePropertySupport { public static void checkIdentifierLetterAndDigitRequirements(String identifier) { char startChar = identifier.charAt(0); if (!(Character.isJavaIdentifierStart(startChar))) { throw new IllegalArgumentException("Identifier does not begin with a valid JMS identifier start character: '" + identi... |
@Test(expected = IllegalArgumentException.class) public void testCheckIdentifierLetterAndDigitRequirementsContainsEndWithColon() throws JMSException { JMSMessagePropertySupport.checkIdentifierLetterAndDigitRequirements("a:b"); } | public static void checkIdentifierLetterAndDigitRequirements(String identifier) { char startChar = identifier.charAt(0); if (!(Character.isJavaIdentifierStart(startChar))) { throw new IllegalArgumentException("Identifier does not begin with a valid JMS identifier start character: '" + identifier + "' "); } int length =... | JMSMessagePropertySupport { public static void checkIdentifierLetterAndDigitRequirements(String identifier) { char startChar = identifier.charAt(0); if (!(Character.isJavaIdentifierStart(startChar))) { throw new IllegalArgumentException("Identifier does not begin with a valid JMS identifier start character: '" + identi... | JMSMessagePropertySupport { public static void checkIdentifierLetterAndDigitRequirements(String identifier) { char startChar = identifier.charAt(0); if (!(Character.isJavaIdentifierStart(startChar))) { throw new IllegalArgumentException("Identifier does not begin with a valid JMS identifier start character: '" + identi... | JMSMessagePropertySupport { public static void checkIdentifierLetterAndDigitRequirements(String identifier) { char startChar = identifier.charAt(0); if (!(Character.isJavaIdentifierStart(startChar))) { throw new IllegalArgumentException("Identifier does not begin with a valid JMS identifier start character: '" + identi... | JMSMessagePropertySupport { public static void checkIdentifierLetterAndDigitRequirements(String identifier) { char startChar = identifier.charAt(0); if (!(Character.isJavaIdentifierStart(startChar))) { throw new IllegalArgumentException("Identifier does not begin with a valid JMS identifier start character: '" + identi... |
@Test public void testCheckValidObjectBoolean() throws JMSException { JMSMessagePropertySupport.checkValidObject(Boolean.TRUE); } | public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value instanceof Character || value i... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... |
@Test public void testCheckValidObjectByte() throws JMSException { JMSMessagePropertySupport.checkValidObject(Byte.MAX_VALUE); } | public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value instanceof Character || value i... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... |
@Test public void testCheckValidObjectShort() throws JMSException { JMSMessagePropertySupport.checkValidObject(Short.MAX_VALUE); } | public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value instanceof Character || value i... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... |
@Test public void testCheckValidObjectInteger() throws JMSException { JMSMessagePropertySupport.checkValidObject(Integer.MAX_VALUE); } | public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value instanceof Character || value i... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... |
@Test public void testCheckValidObjectLong() throws JMSException { JMSMessagePropertySupport.checkValidObject(Long.MAX_VALUE); } | public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value instanceof Character || value i... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... |
@Test public void testSetBooleanPropertyWithBadPropertyName() { JMSProducer producer = context.createProducer(); try { producer.setProperty(BAD_PROPERTY_NAME, true); fail("Should not accept invalid property name"); } catch (IllegalArgumentException iae) {} } | @Override public JMSProducer setProperty(String name, boolean value) { return setObjectProperty(name, value); } | JmsPoolJMSProducer implements JMSProducer { @Override public JMSProducer setProperty(String name, boolean value) { return setObjectProperty(name, value); } } | JmsPoolJMSProducer implements JMSProducer { @Override public JMSProducer setProperty(String name, boolean value) { return setObjectProperty(name, value); } JmsPoolJMSProducer(JmsPoolSession session, JmsPoolMessageProducer producer); } | JmsPoolJMSProducer implements JMSProducer { @Override public JMSProducer setProperty(String name, boolean value) { return setObjectProperty(name, value); } JmsPoolJMSProducer(JmsPoolSession session, JmsPoolMessageProducer producer); @Override String toString(); @Override JMSProducer send(Destination destination, Messag... | JmsPoolJMSProducer implements JMSProducer { @Override public JMSProducer setProperty(String name, boolean value) { return setObjectProperty(name, value); } JmsPoolJMSProducer(JmsPoolSession session, JmsPoolMessageProducer producer); @Override String toString(); @Override JMSProducer send(Destination destination, Messag... |
@Test public void testCheckValidObjectFloat() throws JMSException { JMSMessagePropertySupport.checkValidObject(Float.MAX_VALUE); } | public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value instanceof Character || value i... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... |
@Test public void testCheckValidObjectDouble() throws JMSException { JMSMessagePropertySupport.checkValidObject(Double.MAX_VALUE); } | public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value instanceof Character || value i... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... |
@Test public void testCheckValidObjectCharacter() throws JMSException { JMSMessagePropertySupport.checkValidObject(Character.MAX_VALUE); } | public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value instanceof Character || value i... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... |
@Test public void testCheckValidObjectString() throws JMSException { JMSMessagePropertySupport.checkValidObject(""); } | public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value instanceof Character || value i... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... |
@Test public void testCheckValidObjectNull() throws JMSException { JMSMessagePropertySupport.checkValidObject(null); } | public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value instanceof Character || value i... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... |
@Test(expected = MessageFormatException.class) public void testCheckValidObjectList() throws JMSException { JMSMessagePropertySupport.checkValidObject(Collections.EMPTY_LIST); } | public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value instanceof Character || value i... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... | JMSMessagePropertySupport { public static void checkValidObject(Object value) throws MessageFormatException { boolean valid = value instanceof Boolean || value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof Long || value instanceof Float || value instanceof Double || value ins... |
@Test public void testToString() throws JMSException { JmsPoolConnection connection = (JmsPoolConnection) cf.createQueueConnection(); Session session = connection.createSession(); Queue queue = session.createTemporaryQueue(); MessageProducer producer = session.createProducer(queue); assertNotNull(producer.toString()); ... | @Override public String toString() { return getClass().getSimpleName() + " { " + messageProducer + " }"; } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public String toString() { return getClass().getSimpleName() + " { " + messageProducer + " }"; } } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public String toString() { return getClass().getSimpleName() + " { " + messageProducer + " }"; } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public String toString() { return getClass().getSimpleName() + " { " + messageProducer + " }"; } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); @Override void c... | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public String toString() { return getClass().getSimpleName() + " { " + messageProducer + " }"; } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); @Override void c... |
@Test public void testCloseMoreThanOnce() throws JMSException { JmsPoolConnection connection = (JmsPoolConnection) cf.createQueueConnection(); Session session = connection.createSession(); Queue queue = session.createTemporaryQueue(); MessageProducer producer = session.createProducer(queue); producer.close(); producer.... | @Override public void close() throws JMSException { doClose(false); } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void close() throws JMSException { doClose(false); } } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void close() throws JMSException { doClose(false); } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void close() throws JMSException { doClose(false); } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); @Override void close(); @Override void send(Message m... | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void close() throws JMSException { doClose(false); } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); @Override void close(); @Override void send(Message m... |
@Test public void testSetDeliveryMode() throws JMSException { JmsPoolConnection connection = (JmsPoolConnection) cf.createQueueConnection(); Session session = connection.createSession(); Queue queue = session.createTemporaryQueue(); MessageProducer producer = session.createProducer(queue); assertEquals(Message.DEFAULT_... | @Override public void setDeliveryMode(int deliveryMode) throws JMSException { checkClosed(); this.deliveryMode = deliveryMode; } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void setDeliveryMode(int deliveryMode) throws JMSException { checkClosed(); this.deliveryMode = deliveryMode; } } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void setDeliveryMode(int deliveryMode) throws JMSException { checkClosed(); this.deliveryMode = deliveryMode; } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCo... | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void setDeliveryMode(int deliveryMode) throws JMSException { checkClosed(); this.deliveryMode = deliveryMode; } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCo... | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void setDeliveryMode(int deliveryMode) throws JMSException { checkClosed(); this.deliveryMode = deliveryMode; } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCo... |
@Test public void testSetDeliveryDelay() throws JMSException { JmsPoolConnection connection = (JmsPoolConnection) cf.createQueueConnection(); Session session = connection.createSession(); Queue queue = session.createTemporaryQueue(); MessageProducer producer = session.createProducer(queue); assertEquals(0, producer.get... | @Override public void setDeliveryDelay(long deliveryDelay) throws JMSException { checkClosed(); session.checkClientJMSVersionSupport(2, 0); this.deliveryDelay = deliveryDelay; this.messageProducer.setDeliveryDelay(deliveryDelay); } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void setDeliveryDelay(long deliveryDelay) throws JMSException { checkClosed(); session.checkClientJMSVersionSupport(2, 0); this.deliveryDelay = deliveryDelay; this.messageProducer.setDeliveryDelay(deliveryDelay); } } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void setDeliveryDelay(long deliveryDelay) throws JMSException { checkClosed(); session.checkClientJMSVersionSupport(2, 0); this.deliveryDelay = deliveryDelay; this.messageProducer.setDeliveryDelay(deliveryDelay); } JmsPoolMessageProduce... | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void setDeliveryDelay(long deliveryDelay) throws JMSException { checkClosed(); session.checkClientJMSVersionSupport(2, 0); this.deliveryDelay = deliveryDelay; this.messageProducer.setDeliveryDelay(deliveryDelay); } JmsPoolMessageProduce... | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void setDeliveryDelay(long deliveryDelay) throws JMSException { checkClosed(); session.checkClientJMSVersionSupport(2, 0); this.deliveryDelay = deliveryDelay; this.messageProducer.setDeliveryDelay(deliveryDelay); } JmsPoolMessageProduce... |
@Test public void testSetDoublePropertyWithBadPropertyName() { JMSProducer producer = context.createProducer(); try { producer.setProperty(BAD_PROPERTY_NAME, 100.0); fail("Should not accept invalid property name"); } catch (IllegalArgumentException iae) {} } | @Override public JMSProducer setProperty(String name, boolean value) { return setObjectProperty(name, value); } | JmsPoolJMSProducer implements JMSProducer { @Override public JMSProducer setProperty(String name, boolean value) { return setObjectProperty(name, value); } } | JmsPoolJMSProducer implements JMSProducer { @Override public JMSProducer setProperty(String name, boolean value) { return setObjectProperty(name, value); } JmsPoolJMSProducer(JmsPoolSession session, JmsPoolMessageProducer producer); } | JmsPoolJMSProducer implements JMSProducer { @Override public JMSProducer setProperty(String name, boolean value) { return setObjectProperty(name, value); } JmsPoolJMSProducer(JmsPoolSession session, JmsPoolMessageProducer producer); @Override String toString(); @Override JMSProducer send(Destination destination, Messag... | JmsPoolJMSProducer implements JMSProducer { @Override public JMSProducer setProperty(String name, boolean value) { return setObjectProperty(name, value); } JmsPoolJMSProducer(JmsPoolSession session, JmsPoolMessageProducer producer); @Override String toString(); @Override JMSProducer send(Destination destination, Messag... |
@Test public void testSetPriority() throws JMSException { JmsPoolConnection connection = (JmsPoolConnection) cf.createQueueConnection(); Session session = connection.createSession(); Queue queue = session.createTemporaryQueue(); MessageProducer producer = session.createProducer(queue); assertEquals(Message.DEFAULT_PRIO... | @Override public void setPriority(int priority) throws JMSException { checkClosed(); this.priority = priority; } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void setPriority(int priority) throws JMSException { checkClosed(); this.priority = priority; } } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void setPriority(int priority) throws JMSException { checkClosed(); this.priority = priority; } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void setPriority(int priority) throws JMSException { checkClosed(); this.priority = priority; } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); @Override ... | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void setPriority(int priority) throws JMSException { checkClosed(); this.priority = priority; } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); @Override ... |
@Test public void testSetTimeToLive() throws JMSException { JmsPoolConnection connection = (JmsPoolConnection) cf.createQueueConnection(); Session session = connection.createSession(); Queue queue = session.createTemporaryQueue(); MessageProducer producer = session.createProducer(queue); assertEquals(Message.DEFAULT_TI... | @Override public void setTimeToLive(long timeToLive) throws JMSException { checkClosed(); this.timeToLive = timeToLive; } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void setTimeToLive(long timeToLive) throws JMSException { checkClosed(); this.timeToLive = timeToLive; } } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void setTimeToLive(long timeToLive) throws JMSException { checkClosed(); this.timeToLive = timeToLive; } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void setTimeToLive(long timeToLive) throws JMSException { checkClosed(); this.timeToLive = timeToLive; } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); @... | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void setTimeToLive(long timeToLive) throws JMSException { checkClosed(); this.timeToLive = timeToLive; } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); @... |
@Test public void testSetDisableMessageID() throws JMSException { JmsPoolConnection connection = (JmsPoolConnection) cf.createQueueConnection(); Session session = connection.createSession(); Queue queue = session.createTemporaryQueue(); MessageProducer producer = session.createProducer(queue); assertFalse(producer.getD... | @Override public void setDisableMessageID(boolean disableMessageID) throws JMSException { checkClosed(); this.disableMessageID = disableMessageID; } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void setDisableMessageID(boolean disableMessageID) throws JMSException { checkClosed(); this.disableMessageID = disableMessageID; } } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void setDisableMessageID(boolean disableMessageID) throws JMSException { checkClosed(); this.disableMessageID = disableMessageID; } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination,... | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void setDisableMessageID(boolean disableMessageID) throws JMSException { checkClosed(); this.disableMessageID = disableMessageID; } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination,... | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void setDisableMessageID(boolean disableMessageID) throws JMSException { checkClosed(); this.disableMessageID = disableMessageID; } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination,... |
@Test public void testNullDestinationOnSendToAnonymousProducer() throws JMSException { JmsPoolConnection connection = (JmsPoolConnection) cf.createQueueConnection(); Session session = connection.createSession(); MessageProducer producer = session.createProducer(null); try { producer.send(null, session.createMessage());... | @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); @Ove... | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); @Ove... |
@Test public void testNullDestinationOnSendToTargetedProducer() throws JMSException { JmsPoolConnection connection = (JmsPoolConnection) cf.createQueueConnection(); Session session = connection.createSession(); MessageProducer producer = session.createProducer(session.createTemporaryQueue()); try { producer.send(null, ... | @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); @Ove... | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); @Ove... |
@Test public void testNullDestinationOnSendToAnonymousProducerWithCompletion() throws JMSException { JmsPoolConnection connection = (JmsPoolConnection) cf.createQueueConnection(); Session session = connection.createSession(); MessageProducer producer = session.createProducer(null); CompletionListener listener = new Com... | @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); @Ove... | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); @Ove... |
@Test public void testNullDestinationOnSendToTargetedProducerWithCompletion() throws JMSException { JmsPoolConnection connection = (JmsPoolConnection) cf.createQueueConnection(); Session session = connection.createSession(); MessageProducer producer = session.createProducer(session.createTemporaryQueue()); CompletionLi... | @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); @Ove... | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); @Ove... |
@Test(timeout = 10000) public void testAnonymousProducerThrowsUOEWhenExplictDestinationNotProvided() throws Exception { JmsPoolConnection connection = (JmsPoolConnection) cf.createQueueConnection(); Session session = connection.createSession(); MessageProducer producer = session.createProducer(null); Message message = ... | @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); @Ove... | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); @Ove... |
@Test(timeout = 10000) public void testExplicitProducerThrowsUOEWhenExplictDestinationIsProvided() throws Exception { Destination dest = new MockJMSQueue("explicitDestination"); JmsPoolConnection connection = (JmsPoolConnection) cf.createQueueConnection(); Session session = connection.createSession(); MessageProducer p... | @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); @Ove... | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); @Ove... |
@Test(timeout = 10000) public void testAnonymousDestinationProducerThrowsIDEWhenNullDestinationIsProvided() throws Exception { JmsPoolConnection connection = (JmsPoolConnection) cf.createQueueConnection(); Session session = connection.createSession(); MessageProducer producer = session.createProducer(null); Message mes... | @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); @Ove... | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); @Ove... |
@Test public void testSetFloatPropertyWithBadPropertyName() { JMSProducer producer = context.createProducer(); try { producer.setProperty(BAD_PROPERTY_NAME, 100.0f); fail("Should not accept invalid property name"); } catch (IllegalArgumentException iae) {} } | @Override public JMSProducer setProperty(String name, boolean value) { return setObjectProperty(name, value); } | JmsPoolJMSProducer implements JMSProducer { @Override public JMSProducer setProperty(String name, boolean value) { return setObjectProperty(name, value); } } | JmsPoolJMSProducer implements JMSProducer { @Override public JMSProducer setProperty(String name, boolean value) { return setObjectProperty(name, value); } JmsPoolJMSProducer(JmsPoolSession session, JmsPoolMessageProducer producer); } | JmsPoolJMSProducer implements JMSProducer { @Override public JMSProducer setProperty(String name, boolean value) { return setObjectProperty(name, value); } JmsPoolJMSProducer(JmsPoolSession session, JmsPoolMessageProducer producer); @Override String toString(); @Override JMSProducer send(Destination destination, Messag... | JmsPoolJMSProducer implements JMSProducer { @Override public JMSProducer setProperty(String name, boolean value) { return setObjectProperty(name, value); } JmsPoolJMSProducer(JmsPoolSession session, JmsPoolMessageProducer producer); @Override String toString(); @Override JMSProducer send(Destination destination, Messag... |
@Test(timeout = 10000) public void testAnonymousProducerThrowsIAEWhenNullCompletionListenerProvided() throws Exception { Destination dest = new MockJMSQueue("explicitDestination"); JmsPoolConnection connection = (JmsPoolConnection) cf.createQueueConnection(); Session session = connection.createSession(); MessageProduce... | @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); @Ove... | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); @Ove... |
@Test(timeout = 10000) public void testExplicitProducerThrowsIAEWhenNullCompletionListenerIsProvided() throws Exception { Destination dest = new MockJMSQueue("explicitDestination"); JmsPoolConnection connection = (JmsPoolConnection) cf.createQueueConnection(); Session session = connection.createSession(); MessageProduc... | @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); } | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); @Ove... | JmsPoolMessageProducer implements MessageProducer, AutoCloseable { @Override public void send(Message message) throws JMSException { send(message, deliveryMode, priority, timeToLive); } JmsPoolMessageProducer(JmsPoolSession session, MessageProducer messageProducer, Destination destination, AtomicInteger refCount); @Ove... |
@Test public void testToString() throws JMSException { JmsPoolConnection connection = (JmsPoolConnection) cf.createQueueConnection(); QueueSession session = connection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); Queue queue = session.createTemporaryQueue(); QueueSender sender = session.createSender(queue); ass... | @Override public String toString() { return getClass().getSimpleName() + " { " + getDelegate() + " }"; } | JmsPoolQueueSender extends JmsPoolMessageProducer implements QueueSender, AutoCloseable { @Override public String toString() { return getClass().getSimpleName() + " { " + getDelegate() + " }"; } } | JmsPoolQueueSender extends JmsPoolMessageProducer implements QueueSender, AutoCloseable { @Override public String toString() { return getClass().getSimpleName() + " { " + getDelegate() + " }"; } JmsPoolQueueSender(JmsPoolSession session, QueueSender messageProducer, Destination destination, AtomicInteger refCount); } | JmsPoolQueueSender extends JmsPoolMessageProducer implements QueueSender, AutoCloseable { @Override public String toString() { return getClass().getSimpleName() + " { " + getDelegate() + " }"; } JmsPoolQueueSender(JmsPoolSession session, QueueSender messageProducer, Destination destination, AtomicInteger refCount); @Ov... | JmsPoolQueueSender extends JmsPoolMessageProducer implements QueueSender, AutoCloseable { @Override public String toString() { return getClass().getSimpleName() + " { " + getDelegate() + " }"; } JmsPoolQueueSender(JmsPoolSession session, QueueSender messageProducer, Destination destination, AtomicInteger refCount); @Ov... |
@Test public void testGetQueue() throws JMSException { JmsPoolConnection connection = (JmsPoolConnection) cf.createQueueConnection(); QueueSession session = connection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); Queue queue = session.createTemporaryQueue(); QueueSender sender = session.createSender(queue); ass... | @Override public Queue getQueue() throws JMSException { return (Queue) getDestination(); } | JmsPoolQueueSender extends JmsPoolMessageProducer implements QueueSender, AutoCloseable { @Override public Queue getQueue() throws JMSException { return (Queue) getDestination(); } } | JmsPoolQueueSender extends JmsPoolMessageProducer implements QueueSender, AutoCloseable { @Override public Queue getQueue() throws JMSException { return (Queue) getDestination(); } JmsPoolQueueSender(JmsPoolSession session, QueueSender messageProducer, Destination destination, AtomicInteger refCount); } | JmsPoolQueueSender extends JmsPoolMessageProducer implements QueueSender, AutoCloseable { @Override public Queue getQueue() throws JMSException { return (Queue) getDestination(); } JmsPoolQueueSender(JmsPoolSession session, QueueSender messageProducer, Destination destination, AtomicInteger refCount); @Override void se... | JmsPoolQueueSender extends JmsPoolMessageProducer implements QueueSender, AutoCloseable { @Override public Queue getQueue() throws JMSException { return (Queue) getDestination(); } JmsPoolQueueSender(JmsPoolSession session, QueueSender messageProducer, Destination destination, AtomicInteger refCount); @Override void se... |
@Test public void testGetTopicSubscriber() throws JMSException { JmsPoolConnection connection = (JmsPoolConnection) cf.createQueueConnection(); QueueSession session = connection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); Queue queue = session.createTemporaryQueue(); JmsPoolQueueSender sender = (JmsPoolQueueSe... | public QueueSender getQueueSender() throws JMSException { return (QueueSender) getMessageProducer(); } | JmsPoolQueueSender extends JmsPoolMessageProducer implements QueueSender, AutoCloseable { public QueueSender getQueueSender() throws JMSException { return (QueueSender) getMessageProducer(); } } | JmsPoolQueueSender extends JmsPoolMessageProducer implements QueueSender, AutoCloseable { public QueueSender getQueueSender() throws JMSException { return (QueueSender) getMessageProducer(); } JmsPoolQueueSender(JmsPoolSession session, QueueSender messageProducer, Destination destination, AtomicInteger refCount); } | JmsPoolQueueSender extends JmsPoolMessageProducer implements QueueSender, AutoCloseable { public QueueSender getQueueSender() throws JMSException { return (QueueSender) getMessageProducer(); } JmsPoolQueueSender(JmsPoolSession session, QueueSender messageProducer, Destination destination, AtomicInteger refCount); @Over... | JmsPoolQueueSender extends JmsPoolMessageProducer implements QueueSender, AutoCloseable { public QueueSender getQueueSender() throws JMSException { return (QueueSender) getMessageProducer(); } JmsPoolQueueSender(JmsPoolSession session, QueueSender messageProducer, Destination destination, AtomicInteger refCount); @Over... |
@Test public void testSendToQueue() throws JMSException { JmsPoolConnection connection = (JmsPoolConnection) cf.createTopicConnection(); QueueSession session = connection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); Queue queue = session.createTemporaryQueue(); QueueSender sender = session.createSender(null); f... | @Override public void send(Queue queue, Message message, int deliveryMode, int priority, long timeToLine) throws JMSException { super.send(queue, message, deliveryMode, priority, timeToLine); } | JmsPoolQueueSender extends JmsPoolMessageProducer implements QueueSender, AutoCloseable { @Override public void send(Queue queue, Message message, int deliveryMode, int priority, long timeToLine) throws JMSException { super.send(queue, message, deliveryMode, priority, timeToLine); } } | JmsPoolQueueSender extends JmsPoolMessageProducer implements QueueSender, AutoCloseable { @Override public void send(Queue queue, Message message, int deliveryMode, int priority, long timeToLine) throws JMSException { super.send(queue, message, deliveryMode, priority, timeToLine); } JmsPoolQueueSender(JmsPoolSession se... | JmsPoolQueueSender extends JmsPoolMessageProducer implements QueueSender, AutoCloseable { @Override public void send(Queue queue, Message message, int deliveryMode, int priority, long timeToLine) throws JMSException { super.send(queue, message, deliveryMode, priority, timeToLine); } JmsPoolQueueSender(JmsPoolSession se... | JmsPoolQueueSender extends JmsPoolMessageProducer implements QueueSender, AutoCloseable { @Override public void send(Queue queue, Message message, int deliveryMode, int priority, long timeToLine) throws JMSException { super.send(queue, message, deliveryMode, priority, timeToLine); } JmsPoolQueueSender(JmsPoolSession se... |
@Test public void testSendToQueueWithOverrides() throws JMSException { JmsPoolConnection connection = (JmsPoolConnection) cf.createTopicConnection(); QueueSession session = connection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); Queue queue = session.createTemporaryQueue(); QueueSender sender = session.createSe... | @Override public void send(Queue queue, Message message, int deliveryMode, int priority, long timeToLine) throws JMSException { super.send(queue, message, deliveryMode, priority, timeToLine); } | JmsPoolQueueSender extends JmsPoolMessageProducer implements QueueSender, AutoCloseable { @Override public void send(Queue queue, Message message, int deliveryMode, int priority, long timeToLine) throws JMSException { super.send(queue, message, deliveryMode, priority, timeToLine); } } | JmsPoolQueueSender extends JmsPoolMessageProducer implements QueueSender, AutoCloseable { @Override public void send(Queue queue, Message message, int deliveryMode, int priority, long timeToLine) throws JMSException { super.send(queue, message, deliveryMode, priority, timeToLine); } JmsPoolQueueSender(JmsPoolSession se... | JmsPoolQueueSender extends JmsPoolMessageProducer implements QueueSender, AutoCloseable { @Override public void send(Queue queue, Message message, int deliveryMode, int priority, long timeToLine) throws JMSException { super.send(queue, message, deliveryMode, priority, timeToLine); } JmsPoolQueueSender(JmsPoolSession se... | JmsPoolQueueSender extends JmsPoolMessageProducer implements QueueSender, AutoCloseable { @Override public void send(Queue queue, Message message, int deliveryMode, int priority, long timeToLine) throws JMSException { super.send(queue, message, deliveryMode, priority, timeToLine); } JmsPoolQueueSender(JmsPoolSession se... |
@Test public void testSendToQueueFailsIfNotAnonymousPublisher() throws JMSException { JmsPoolConnection connection = (JmsPoolConnection) cf.createTopicConnection(); QueueSession session = connection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); Queue queue = session.createTemporaryQueue(); QueueSender sender = s... | @Override public void send(Queue queue, Message message, int deliveryMode, int priority, long timeToLine) throws JMSException { super.send(queue, message, deliveryMode, priority, timeToLine); } | JmsPoolQueueSender extends JmsPoolMessageProducer implements QueueSender, AutoCloseable { @Override public void send(Queue queue, Message message, int deliveryMode, int priority, long timeToLine) throws JMSException { super.send(queue, message, deliveryMode, priority, timeToLine); } } | JmsPoolQueueSender extends JmsPoolMessageProducer implements QueueSender, AutoCloseable { @Override public void send(Queue queue, Message message, int deliveryMode, int priority, long timeToLine) throws JMSException { super.send(queue, message, deliveryMode, priority, timeToLine); } JmsPoolQueueSender(JmsPoolSession se... | JmsPoolQueueSender extends JmsPoolMessageProducer implements QueueSender, AutoCloseable { @Override public void send(Queue queue, Message message, int deliveryMode, int priority, long timeToLine) throws JMSException { super.send(queue, message, deliveryMode, priority, timeToLine); } JmsPoolQueueSender(JmsPoolSession se... | JmsPoolQueueSender extends JmsPoolMessageProducer implements QueueSender, AutoCloseable { @Override public void send(Queue queue, Message message, int deliveryMode, int priority, long timeToLine) throws JMSException { super.send(queue, message, deliveryMode, priority, timeToLine); } JmsPoolQueueSender(JmsPoolSession se... |
@Test public void testToString() throws JMSException { JmsPoolConnection connection = (JmsPoolConnection) cf.createTopicConnection(); TopicSession session = connection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE); Topic topic = session.createTemporaryTopic(); TopicPublisher publisher = session.createPublisher(to... | @Override public String toString() { return getClass().getSimpleName() + " { " + getDelegate() + " }"; } | JmsPoolTopicPublisher extends JmsPoolMessageProducer implements TopicPublisher, AutoCloseable { @Override public String toString() { return getClass().getSimpleName() + " { " + getDelegate() + " }"; } } | JmsPoolTopicPublisher extends JmsPoolMessageProducer implements TopicPublisher, AutoCloseable { @Override public String toString() { return getClass().getSimpleName() + " { " + getDelegate() + " }"; } JmsPoolTopicPublisher(JmsPoolSession session, TopicPublisher messageProducer, Destination destination, AtomicInteger re... | JmsPoolTopicPublisher extends JmsPoolMessageProducer implements TopicPublisher, AutoCloseable { @Override public String toString() { return getClass().getSimpleName() + " { " + getDelegate() + " }"; } JmsPoolTopicPublisher(JmsPoolSession session, TopicPublisher messageProducer, Destination destination, AtomicInteger re... | JmsPoolTopicPublisher extends JmsPoolMessageProducer implements TopicPublisher, AutoCloseable { @Override public String toString() { return getClass().getSimpleName() + " { " + getDelegate() + " }"; } JmsPoolTopicPublisher(JmsPoolSession session, TopicPublisher messageProducer, Destination destination, AtomicInteger re... |
@Test public void testGetTopic() throws JMSException { JmsPoolConnection connection = (JmsPoolConnection) cf.createTopicConnection(); TopicSession session = connection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE); Topic topic = session.createTemporaryTopic(); TopicPublisher publisher = session.createPublisher(to... | @Override public Topic getTopic() throws JMSException { return (Topic) getDestination(); } | JmsPoolTopicPublisher extends JmsPoolMessageProducer implements TopicPublisher, AutoCloseable { @Override public Topic getTopic() throws JMSException { return (Topic) getDestination(); } } | JmsPoolTopicPublisher extends JmsPoolMessageProducer implements TopicPublisher, AutoCloseable { @Override public Topic getTopic() throws JMSException { return (Topic) getDestination(); } JmsPoolTopicPublisher(JmsPoolSession session, TopicPublisher messageProducer, Destination destination, AtomicInteger refCount); } | JmsPoolTopicPublisher extends JmsPoolMessageProducer implements TopicPublisher, AutoCloseable { @Override public Topic getTopic() throws JMSException { return (Topic) getDestination(); } JmsPoolTopicPublisher(JmsPoolSession session, TopicPublisher messageProducer, Destination destination, AtomicInteger refCount); @Over... | JmsPoolTopicPublisher extends JmsPoolMessageProducer implements TopicPublisher, AutoCloseable { @Override public Topic getTopic() throws JMSException { return (Topic) getDestination(); } JmsPoolTopicPublisher(JmsPoolSession session, TopicPublisher messageProducer, Destination destination, AtomicInteger refCount); @Over... |
@Test public void testSetShortPropertyWithBadPropertyName() { JMSProducer producer = context.createProducer(); try { producer.setProperty(BAD_PROPERTY_NAME, (short) 100); fail("Should not accept invalid property name"); } catch (IllegalArgumentException iae) {} } | @Override public JMSProducer setProperty(String name, boolean value) { return setObjectProperty(name, value); } | JmsPoolJMSProducer implements JMSProducer { @Override public JMSProducer setProperty(String name, boolean value) { return setObjectProperty(name, value); } } | JmsPoolJMSProducer implements JMSProducer { @Override public JMSProducer setProperty(String name, boolean value) { return setObjectProperty(name, value); } JmsPoolJMSProducer(JmsPoolSession session, JmsPoolMessageProducer producer); } | JmsPoolJMSProducer implements JMSProducer { @Override public JMSProducer setProperty(String name, boolean value) { return setObjectProperty(name, value); } JmsPoolJMSProducer(JmsPoolSession session, JmsPoolMessageProducer producer); @Override String toString(); @Override JMSProducer send(Destination destination, Messag... | JmsPoolJMSProducer implements JMSProducer { @Override public JMSProducer setProperty(String name, boolean value) { return setObjectProperty(name, value); } JmsPoolJMSProducer(JmsPoolSession session, JmsPoolMessageProducer producer); @Override String toString(); @Override JMSProducer send(Destination destination, Messag... |
@Test public void testGetTopicPublisher() throws JMSException { JmsPoolConnection connection = (JmsPoolConnection) cf.createTopicConnection(); TopicSession session = connection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE); Topic topic = session.createTemporaryTopic(); JmsPoolTopicPublisher publisher = (JmsPoolTo... | public TopicPublisher getTopicPublisher() throws JMSException { return (TopicPublisher) getMessageProducer(); } | JmsPoolTopicPublisher extends JmsPoolMessageProducer implements TopicPublisher, AutoCloseable { public TopicPublisher getTopicPublisher() throws JMSException { return (TopicPublisher) getMessageProducer(); } } | JmsPoolTopicPublisher extends JmsPoolMessageProducer implements TopicPublisher, AutoCloseable { public TopicPublisher getTopicPublisher() throws JMSException { return (TopicPublisher) getMessageProducer(); } JmsPoolTopicPublisher(JmsPoolSession session, TopicPublisher messageProducer, Destination destination, AtomicInt... | JmsPoolTopicPublisher extends JmsPoolMessageProducer implements TopicPublisher, AutoCloseable { public TopicPublisher getTopicPublisher() throws JMSException { return (TopicPublisher) getMessageProducer(); } JmsPoolTopicPublisher(JmsPoolSession session, TopicPublisher messageProducer, Destination destination, AtomicInt... | JmsPoolTopicPublisher extends JmsPoolMessageProducer implements TopicPublisher, AutoCloseable { public TopicPublisher getTopicPublisher() throws JMSException { return (TopicPublisher) getMessageProducer(); } JmsPoolTopicPublisher(JmsPoolSession session, TopicPublisher messageProducer, Destination destination, AtomicInt... |
@Test public void testPublish() throws JMSException { JmsPoolConnection connection = (JmsPoolConnection) cf.createTopicConnection(); TopicSession session = connection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE); Topic topic = session.createTemporaryTopic(); TopicPublisher publisher = session.createPublisher(top... | @Override public void publish(Message message) throws JMSException { super.send(message); } | JmsPoolTopicPublisher extends JmsPoolMessageProducer implements TopicPublisher, AutoCloseable { @Override public void publish(Message message) throws JMSException { super.send(message); } } | JmsPoolTopicPublisher extends JmsPoolMessageProducer implements TopicPublisher, AutoCloseable { @Override public void publish(Message message) throws JMSException { super.send(message); } JmsPoolTopicPublisher(JmsPoolSession session, TopicPublisher messageProducer, Destination destination, AtomicInteger refCount); } | JmsPoolTopicPublisher extends JmsPoolMessageProducer implements TopicPublisher, AutoCloseable { @Override public void publish(Message message) throws JMSException { super.send(message); } JmsPoolTopicPublisher(JmsPoolSession session, TopicPublisher messageProducer, Destination destination, AtomicInteger refCount); @Ove... | JmsPoolTopicPublisher extends JmsPoolMessageProducer implements TopicPublisher, AutoCloseable { @Override public void publish(Message message) throws JMSException { super.send(message); } JmsPoolTopicPublisher(JmsPoolSession session, TopicPublisher messageProducer, Destination destination, AtomicInteger refCount); @Ove... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.