Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id AE7FA200BD8 for ; Wed, 7 Dec 2016 19:33:54 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id AD2E4160B0C; Wed, 7 Dec 2016 18:33:54 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id CE5FD160AF9 for ; Wed, 7 Dec 2016 19:33:53 +0100 (CET) Received: (qmail 89222 invoked by uid 500); 7 Dec 2016 18:33:53 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 89213 invoked by uid 99); 7 Dec 2016 18:33:53 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Dec 2016 18:33:53 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id E396FE0159; Wed, 7 Dec 2016 18:33:52 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: cshannon@apache.org To: commits@activemq.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: activemq git commit: https://issues.apache.org/jira/browse/AMQ-6441 https://issues.apache.org/jira/browse/AMQ-6526 Date: Wed, 7 Dec 2016 18:33:52 +0000 (UTC) archived-at: Wed, 07 Dec 2016 18:33:54 -0000 Repository: activemq Updated Branches: refs/heads/master 8a28c0655 -> 4b3f07e90 https://issues.apache.org/jira/browse/AMQ-6441 https://issues.apache.org/jira/browse/AMQ-6526 Adding missing license headers Project: http://git-wip-us.apache.org/repos/asf/activemq/repo Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/4b3f07e9 Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/4b3f07e9 Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/4b3f07e9 Branch: refs/heads/master Commit: 4b3f07e90ea497164aaf9cc00591e8e0f868f83b Parents: 8a28c06 Author: Christopher L. Shannon (cshannon) Authored: Wed Dec 7 13:27:01 2016 -0500 Committer: Christopher L. Shannon (cshannon) Committed: Wed Dec 7 13:32:18 2016 -0500 ---------------------------------------------------------------------- .../stomp/StompNIOSSLLargeMessageTest.java | 35 +++++++++++++++----- .../org/apache/activemq/util/LargeFile.java | 26 ++++++++++++--- 2 files changed, 47 insertions(+), 14 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/activemq/blob/4b3f07e9/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompNIOSSLLargeMessageTest.java ---------------------------------------------------------------------- diff --git a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompNIOSSLLargeMessageTest.java b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompNIOSSLLargeMessageTest.java index d600728..1cfbc38 100644 --- a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompNIOSSLLargeMessageTest.java +++ b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompNIOSSLLargeMessageTest.java @@ -1,3 +1,19 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.apache.activemq.transport.stomp; import static org.junit.Assert.*; @@ -39,6 +55,7 @@ public class StompNIOSSLLargeMessageTest extends StompTestSupport { // custom Log4J appender so we can filter the logging output in this test. protected Appender appender = new DefaultTestAppender() { //@Override + @Override public void doAppend(org.apache.log4j.spi.LoggingEvent event) { if (event.getMessage().toString().contains("") && event.getMessage().toString().contains("The maximum data length was exceeded")) { @@ -93,13 +110,13 @@ public class StompNIOSSLLargeMessageTest extends StompTestSupport { * Sends a Stomp message larger than maxDataLength bytes. * Expects to receive an exception from the broker. * The broker will throw an Stomp ProtocolException of type - * "Exception occurred processing: SEND -> - * org.apache.activemq.transport.stomp.ProtocolException: + * "Exception occurred processing: SEND -> + * org.apache.activemq.transport.stomp.ProtocolException: * The maximum data length was exceeded" - * - * Before bug AMQ-6526 this exception would contain \ for the + * + * Before bug AMQ-6526 this exception would contain \ for the * operation name. With the fix it should print the Stomp operation. - * + * * @throws Exception */ @Test(timeout = 6000000) @@ -130,9 +147,9 @@ public class StompNIOSSLLargeMessageTest extends StompTestSupport { /** - * Creates a large byte buffer and fills it with char 'X' except for the + * Creates a large byte buffer and fills it with char 'X' except for the * last byte, it gets value 0x0 assigned. - * + * * @param size - the size of the array to be created. * @return */ @@ -141,9 +158,9 @@ public class StompNIOSSLLargeMessageTest extends StompTestSupport { for (int i=0; i