You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2015/12/08 01:12:27 UTC
[01/32] activemq-artemis git commit: Remove unnecessary casts
Repository: activemq-artemis
Updated Branches:
refs/heads/master b0007c453 -> 8abf9cfaa
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/XmlImportExportTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/XmlImportExportTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/XmlImportExportTest.java
index f2e321b..9f6af78 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/XmlImportExportTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/XmlImportExportTest.java
@@ -87,7 +87,7 @@ public class XmlImportExportTest extends ActiveMQTestBase {
if (forceLongs) {
JournalStorageManager manager = (JournalStorageManager) server.getStorageManager();
BatchingIDGenerator idGenerator = (BatchingIDGenerator) manager.getIDGenerator();
- idGenerator.forceNextID(((long) Integer.MAX_VALUE) + 1L);
+ idGenerator.forceNextID((Integer.MAX_VALUE) + 1L);
}
}
[24/32] activemq-artemis git commit: Convert mac linefeeds to unix
Posted by cl...@apache.org.
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/FlushCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/FlushCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/FlushCommandTest.java
index 0836727..77f5017 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/FlushCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/FlushCommandTest.java
@@ -1 +1,53 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for FlushCommand
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class FlushCommandTest extends BaseCommandTestSupport {
public static FlushCommandTest SINGLETON = new FlushCommandTest();
@Override
public Object createObject() throws Exception {
FlushCommand info = new FlushCommand();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
FlushCommand info = (FlushCommand) object;
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for FlushCommand
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class FlushCommandTest extends BaseCommandTestSupport {
+
+ public static FlushCommandTest SINGLETON = new FlushCommandTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ FlushCommand info = new FlushCommand();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ FlushCommand info = (FlushCommand) object;
+
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/IntegerResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/IntegerResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/IntegerResponseTest.java
index 3d4f749..8c20c08 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/IntegerResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/IntegerResponseTest.java
@@ -1 +1,54 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for IntegerResponse
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class IntegerResponseTest extends ResponseTest {
public static IntegerResponseTest SINGLETON = new IntegerResponseTest();
@Override
public Object createObject() throws Exception {
IntegerResponse info = new IntegerResponse();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
IntegerResponse info = (IntegerResponse) object;
info.setResult(1);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for IntegerResponse
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class IntegerResponseTest extends ResponseTest {
+
+ public static IntegerResponseTest SINGLETON = new IntegerResponseTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ IntegerResponse info = new IntegerResponse();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ IntegerResponse info = (IntegerResponse) object;
+
+ info.setResult(1);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalQueueAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalQueueAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalQueueAckTest.java
index bc9dbaa..5c1f730 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalQueueAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalQueueAckTest.java
@@ -1 +1,55 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for JournalQueueAck
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class JournalQueueAckTest extends DataFileGeneratorTestSupport {
public static JournalQueueAckTest SINGLETON = new JournalQueueAckTest();
@Override
public Object createObject() throws Exception {
JournalQueueAck info = new JournalQueueAck();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
JournalQueueAck info = (JournalQueueAck) object;
info.setDestination(createActiveMQDestination("Destination:1"));
info.setMessageAck(createMessageAck("MessageAck:2"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for JournalQueueAck
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class JournalQueueAckTest extends DataFileGeneratorTestSupport {
+
+ public static JournalQueueAckTest SINGLETON = new JournalQueueAckTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ JournalQueueAck info = new JournalQueueAck();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ JournalQueueAck info = (JournalQueueAck) object;
+
+ info.setDestination(createActiveMQDestination("Destination:1"));
+ info.setMessageAck(createMessageAck("MessageAck:2"));
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTopicAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTopicAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTopicAckTest.java
index 0afd5d7..ed1eb30 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTopicAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTopicAckTest.java
@@ -1 +1,59 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for JournalTopicAck
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class JournalTopicAckTest extends DataFileGeneratorTestSupport {
public static JournalTopicAckTest SINGLETON = new JournalTopicAckTest();
@Override
public Object createObject() throws Exception {
JournalTopicAck info = new JournalTopicAck();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
JournalTopicAck info = (JournalTopicAck) object;
info.setDestination(createActiveMQDestination("Destination:1"));
info.setMessageId(createMessageId("MessageId:2"));
info.setMessageSequenceId(1);
info.setSubscri
tionName("SubscritionName:3");
info.setClientId("ClientId:4");
info.setTransactionId(createTransactionId("TransactionId:5"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for JournalTopicAck
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class JournalTopicAckTest extends DataFileGeneratorTestSupport {
+
+ public static JournalTopicAckTest SINGLETON = new JournalTopicAckTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ JournalTopicAck info = new JournalTopicAck();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ JournalTopicAck info = (JournalTopicAck) object;
+
+ info.setDestination(createActiveMQDestination("Destination:1"));
+ info.setMessageId(createMessageId("MessageId:2"));
+ info.setMessageSequenceId(1);
+ info.setSubscritionName("SubscritionName:3");
+ info.setClientId("ClientId:4");
+ info.setTransactionId(createTransactionId("TransactionId:5"));
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTraceTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTraceTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTraceTest.java
index 738f1f3..babd014 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTraceTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTraceTest.java
@@ -1 +1,54 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for JournalTrace
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class JournalTraceTest extends DataFileGeneratorTestSupport {
public static JournalTraceTest SINGLETON = new JournalTraceTest();
@Override
public Object createObject() throws Exception {
JournalTrace info = new JournalTrace();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
JournalTrace info = (JournalTrace) object;
info.setMessage("Message:1");
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for JournalTrace
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class JournalTraceTest extends DataFileGeneratorTestSupport {
+
+ public static JournalTraceTest SINGLETON = new JournalTraceTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ JournalTrace info = new JournalTrace();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ JournalTrace info = (JournalTrace) object;
+
+ info.setMessage("Message:1");
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTransactionTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTransactionTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTransactionTest.java
index e5fa414..d36cf70 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTransactionTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTransactionTest.java
@@ -1 +1,56 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for JournalTransaction
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class JournalTransactionTest extends DataFileGeneratorTestSupport {
public static JournalTransactionTest SINGLETON = new JournalTransactionTest();
@Override
public Object createObject() throws Exception {
JournalTransaction info = new JournalTransaction();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
JournalTransaction info = (JournalTransaction) object;
info.setTransactionId(createTransactionId("TransactionId:1"));
info.setType((byte) 1);
info.setWasPrepared(true);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for JournalTransaction
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class JournalTransactionTest extends DataFileGeneratorTestSupport {
+
+ public static JournalTransactionTest SINGLETON = new JournalTransactionTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ JournalTransaction info = new JournalTransaction();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ JournalTransaction info = (JournalTransaction) object;
+
+ info.setTransactionId(createTransactionId("TransactionId:1"));
+ info.setType((byte) 1);
+ info.setWasPrepared(true);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/KeepAliveInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/KeepAliveInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/KeepAliveInfoTest.java
index 23ad49f..5847584 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/KeepAliveInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/KeepAliveInfoTest.java
@@ -1 +1,53 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for KeepAliveInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class KeepAliveInfoTest extends BaseCommandTestSupport {
public static KeepAliveInfoTest SINGLETON = new KeepAliveInfoTest();
@Override
public Object createObject() throws Exception {
KeepAliveInfo info = new KeepAliveInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
KeepAliveInfo info = (KeepAliveInfo) object;
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for KeepAliveInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class KeepAliveInfoTest extends BaseCommandTestSupport {
+
+ public static KeepAliveInfoTest SINGLETON = new KeepAliveInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ KeepAliveInfo info = new KeepAliveInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ KeepAliveInfo info = (KeepAliveInfo) object;
+
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/LastPartialCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/LastPartialCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/LastPartialCommandTest.java
index a5cead5..7422835 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/LastPartialCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/LastPartialCommandTest.java
@@ -1 +1,53 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for LastPartialCommand
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class LastPartialCommandTest extends PartialCommandTest {
public static LastPartialCommandTest SINGLETON = new LastPartialCommandTest();
@Override
public Object createObject() throws Exception {
LastPartialCommand info = new LastPartialCommand();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
LastPartialCommand info = (LastPartialCommand) object;
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for LastPartialCommand
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class LastPartialCommandTest extends PartialCommandTest {
+
+ public static LastPartialCommandTest SINGLETON = new LastPartialCommandTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ LastPartialCommand info = new LastPartialCommand();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ LastPartialCommand info = (LastPartialCommand) object;
+
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/LocalTransactionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/LocalTransactionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/LocalTransactionIdTest.java
index 203e4ee..409c1a9 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/LocalTransactionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/LocalTransactionIdTest.java
@@ -1 +1,55 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for LocalTransactionId
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class LocalTransactionIdTest extends TransactionIdTestSupport {
public static LocalTransactionIdTest SINGLETON = new LocalTransactionIdTest();
@Override
public Object createObject() throws Exception {
LocalTransactionId info = new LocalTransactionId();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
LocalTransactionId info = (LocalTransactionId) object;
info.setValue(1);
info.setConnectionId(createConnectionId("ConnectionId:1"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for LocalTransactionId
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class LocalTransactionIdTest extends TransactionIdTestSupport {
+
+ public static LocalTransactionIdTest SINGLETON = new LocalTransactionIdTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ LocalTransactionId info = new LocalTransactionId();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ LocalTransactionId info = (LocalTransactionId) object;
+
+ info.setValue(1);
+ info.setConnectionId(createConnectionId("ConnectionId:1"));
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageAckTest.java
index c0a3a19..936d62b 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageAckTest.java
@@ -1 +1,61 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for MessageAck
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class MessageAckTest extends BaseCommandTestSupport {
public static MessageAckTest SINGLETON = new MessageAckTest();
@Override
public Object createObject() throws Exception {
MessageAck info = new MessageAck();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
MessageAck info = (MessageAck) object;
info.setDestination(createActiveMQDestination("Destination:1"));
info.setTransactionId(createTransactionId("TransactionId:2"));
info.setConsumerId(createConsumerId("ConsumerId:3"));
info.setAckType((byte) 1)
;
info.setFirstMessageId(createMessageId("FirstMessageId:4"));
info.setLastMessageId(createMessageId("LastMessageId:5"));
info.setMessageCount(1);
info.setPoisonCause(createThrowable("PoisonCause:6"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for MessageAck
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class MessageAckTest extends BaseCommandTestSupport {
+
+ public static MessageAckTest SINGLETON = new MessageAckTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ MessageAck info = new MessageAck();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ MessageAck info = (MessageAck) object;
+
+ info.setDestination(createActiveMQDestination("Destination:1"));
+ info.setTransactionId(createTransactionId("TransactionId:2"));
+ info.setConsumerId(createConsumerId("ConsumerId:3"));
+ info.setAckType((byte) 1);
+ info.setFirstMessageId(createMessageId("FirstMessageId:4"));
+ info.setLastMessageId(createMessageId("LastMessageId:5"));
+ info.setMessageCount(1);
+ info.setPoisonCause(createThrowable("PoisonCause:6"));
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageDispatchNotificationTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageDispatchNotificationTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageDispatchNotificationTest.java
index b2a4211..27867f9 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageDispatchNotificationTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageDispatchNotificationTest.java
@@ -1 +1,57 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for MessageDispatchNotification
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class MessageDispatchNotificationTest extends BaseCommandTestSupport {
public static MessageDispatchNotificationTest SINGLETON = new MessageDispatchNotificationTest();
@Override
public Object createObject() throws Exception {
MessageDispatchNotification info = new MessageDispatchNotification();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
MessageDispatchNotification info = (MessageDispatchNotification) object;
info.setConsumerId(createConsumerId("ConsumerId:1"));
info.setDestination(createAct
iveMQDestination("Destination:2"));
info.setDeliverySequenceId(1);
info.setMessageId(createMessageId("MessageId:3"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for MessageDispatchNotification
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class MessageDispatchNotificationTest extends BaseCommandTestSupport {
+
+ public static MessageDispatchNotificationTest SINGLETON = new MessageDispatchNotificationTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ MessageDispatchNotification info = new MessageDispatchNotification();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ MessageDispatchNotification info = (MessageDispatchNotification) object;
+
+ info.setConsumerId(createConsumerId("ConsumerId:1"));
+ info.setDestination(createActiveMQDestination("Destination:2"));
+ info.setDeliverySequenceId(1);
+ info.setMessageId(createMessageId("MessageId:3"));
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageDispatchTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageDispatchTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageDispatchTest.java
index 1c7e59c..1b15d1a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageDispatchTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageDispatchTest.java
@@ -1 +1,57 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for MessageDispatch
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class MessageDispatchTest extends BaseCommandTestSupport {
public static MessageDispatchTest SINGLETON = new MessageDispatchTest();
@Override
public Object createObject() throws Exception {
MessageDispatch info = new MessageDispatch();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
MessageDispatch info = (MessageDispatch) object;
info.setConsumerId(createConsumerId("ConsumerId:1"));
info.setDestination(createActiveMQDestination("Destination:2"));
info.setMessage(createMessage("Message:3"));
inf
o.setRedeliveryCounter(1);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for MessageDispatch
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class MessageDispatchTest extends BaseCommandTestSupport {
+
+ public static MessageDispatchTest SINGLETON = new MessageDispatchTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ MessageDispatch info = new MessageDispatch();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ MessageDispatch info = (MessageDispatch) object;
+
+ info.setConsumerId(createConsumerId("ConsumerId:1"));
+ info.setDestination(createActiveMQDestination("Destination:2"));
+ info.setMessage(createMessage("Message:3"));
+ info.setRedeliveryCounter(1);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageIdTest.java
index 3e56cad..c797697 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageIdTest.java
@@ -1 +1,56 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for MessageId
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class MessageIdTest extends DataFileGeneratorTestSupport {
public static MessageIdTest SINGLETON = new MessageIdTest();
@Override
public Object createObject() throws Exception {
MessageId info = new MessageId();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
MessageId info = (MessageId) object;
info.setProducerId(createProducerId("ProducerId:1"));
info.setProducerSequenceId(1);
info.setBrokerSequenceId(2);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for MessageId
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class MessageIdTest extends DataFileGeneratorTestSupport {
+
+ public static MessageIdTest SINGLETON = new MessageIdTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ MessageId info = new MessageId();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ MessageId info = (MessageId) object;
+
+ info.setProducerId(createProducerId("ProducerId:1"));
+ info.setProducerSequenceId(1);
+ info.setBrokerSequenceId(2);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessagePullTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessagePullTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessagePullTest.java
index 4f08429..76e4e8f 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessagePullTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessagePullTest.java
@@ -1 +1,58 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for MessagePull
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class MessagePullTest extends BaseCommandTestSupport {
public static MessagePullTest SINGLETON = new MessagePullTest();
@Override
public Object createObject() throws Exception {
MessagePull info = new MessagePull();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
MessagePull info = (MessagePull) object;
info.setConsumerId(createConsumerId("ConsumerId:1"));
info.setDestination(createActiveMQDestination("Destination:2"));
info.setTimeout(1);
info.setCorrelationId("CorrelationId:3");
info.setMess
ageId(createMessageId("MessageId:4"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for MessagePull
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class MessagePullTest extends BaseCommandTestSupport {
+
+ public static MessagePullTest SINGLETON = new MessagePullTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ MessagePull info = new MessagePull();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ MessagePull info = (MessagePull) object;
+
+ info.setConsumerId(createConsumerId("ConsumerId:1"));
+ info.setDestination(createActiveMQDestination("Destination:2"));
+ info.setTimeout(1);
+ info.setCorrelationId("CorrelationId:3");
+ info.setMessageId(createMessageId("MessageId:4"));
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageTestSupport.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageTestSupport.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageTestSupport.java
index 0c4d027..355464e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageTestSupport.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageTestSupport.java
@@ -1 +1,86 @@
-/**
*
* 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.openwire.v9;
import org.apache.activemq.command.*;
/**
* Test case for the OpenWire marshalling for Message
*
*
* NOTE!: This file is auto generated - do not mod
ify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public abstract class MessageTestSupport extends BaseCommandTestSupport {
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
Message info = (Message) object;
info.setProducerId(createProducerId("ProducerId:1"));
info.setDestination(createActiveMQDestination("Destination:2"));
info.setTransactionId(createTransactionId("TransactionId:3"));
info.setOriginalDestination(createActiveMQDestination("OriginalDestination:4"));
info.setMessageId(createMessageId("MessageId:5"));
info.setOriginalTransactionId(createTransactionId("OriginalTransactionId:6"));
info.setGroupID("GroupID:7");
info.setGroupSequence(1);
info.setCorrelationId("CorrelationId:8");
info.setPersistent(true);
inf
o.setExpiration(1);
info.setPriority((byte) 1);
info.setReplyTo(createActiveMQDestination("ReplyTo:9"));
info.setTimestamp(2);
info.setType("Type:10");
{
byte data[] = "Content:11".getBytes();
info.setContent(new org.apache.activemq.util.ByteSequence(data, 0, data.length));
}
{
byte data[] = "MarshalledProperties:12".getBytes();
info.setMarshalledProperties(new org.apache.activemq.util.ByteSequence(data, 0, data.length));
}
info.setDataStructure(createDataStructure("DataStructure:13"));
info.setTargetConsumerId(createConsumerId("TargetConsumerId:14"));
info.setCompressed(false);
info.setRedeliveryCounter(2);
{
BrokerId value[] = new BrokerId[2];
for (int i = 0; i < 2; i++) {
value[i] = createBrokerId("BrokerPath:15");
}
info.setBrokerPath(value);
}
info.setArrival(3);
info.setUserID("UserID:16");
inf
o.setRecievedByDFBridge(true);
info.setDroppable(false);
{
BrokerId value[] = new BrokerId[2];
for (int i = 0; i < 2; i++) {
value[i] = createBrokerId("Cluster:17");
}
info.setCluster(value);
}
info.setBrokerInTime(4);
info.setBrokerOutTime(5);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for Message
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public abstract class MessageTestSupport extends BaseCommandTestSupport {
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ Message info = (Message) object;
+
+ info.setProducerId(createProducerId("ProducerId:1"));
+ info.setDestination(createActiveMQDestination("Destination:2"));
+ info.setTransactionId(createTransactionId("TransactionId:3"));
+ info.setOriginalDestination(createActiveMQDestination("OriginalDestination:4"));
+ info.setMessageId(createMessageId("MessageId:5"));
+ info.setOriginalTransactionId(createTransactionId("OriginalTransactionId:6"));
+ info.setGroupID("GroupID:7");
+ info.setGroupSequence(1);
+ info.setCorrelationId("CorrelationId:8");
+ info.setPersistent(true);
+ info.setExpiration(1);
+ info.setPriority((byte) 1);
+ info.setReplyTo(createActiveMQDestination("ReplyTo:9"));
+ info.setTimestamp(2);
+ info.setType("Type:10");
+ {
+ byte data[] = "Content:11".getBytes();
+ info.setContent(new org.apache.activemq.util.ByteSequence(data, 0, data.length));
+ }
+ {
+ byte data[] = "MarshalledProperties:12".getBytes();
+ info.setMarshalledProperties(new org.apache.activemq.util.ByteSequence(data, 0, data.length));
+ }
+ info.setDataStructure(createDataStructure("DataStructure:13"));
+ info.setTargetConsumerId(createConsumerId("TargetConsumerId:14"));
+ info.setCompressed(false);
+ info.setRedeliveryCounter(2);
+ {
+ BrokerId value[] = new BrokerId[2];
+ for (int i = 0; i < 2; i++) {
+ value[i] = createBrokerId("BrokerPath:15");
+ }
+ info.setBrokerPath(value);
+ }
+ info.setArrival(3);
+ info.setUserID("UserID:16");
+ info.setRecievedByDFBridge(true);
+ info.setDroppable(false);
+ {
+ BrokerId value[] = new BrokerId[2];
+ for (int i = 0; i < 2; i++) {
+ value[i] = createBrokerId("Cluster:17");
+ }
+ info.setCluster(value);
+ }
+ info.setBrokerInTime(4);
+ info.setBrokerOutTime(5);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/NetworkBridgeFilterTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/NetworkBridgeFilterTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/NetworkBridgeFilterTest.java
index 8e4adbb..3b93f61 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/NetworkBridgeFilterTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/NetworkBridgeFilterTest.java
@@ -1 +1,55 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for NetworkBridgeFilter
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class NetworkBridgeFilterTest extends DataFileGeneratorTestSupport {
public static NetworkBridgeFilterTest SINGLETON = new NetworkBridgeFilterTest();
@Override
public Object createObject() throws Exception {
NetworkBridgeFilter info = new NetworkBridgeFilter();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
NetworkBridgeFilter info = (NetworkBridgeFilter) object;
info.setNetworkTTL(1);
info.setNetworkBrokerId(createBrokerId("NetworkBrokerId:1"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for NetworkBridgeFilter
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class NetworkBridgeFilterTest extends DataFileGeneratorTestSupport {
+
+ public static NetworkBridgeFilterTest SINGLETON = new NetworkBridgeFilterTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ NetworkBridgeFilter info = new NetworkBridgeFilter();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ NetworkBridgeFilter info = (NetworkBridgeFilter) object;
+
+ info.setNetworkTTL(1);
+ info.setNetworkBrokerId(createBrokerId("NetworkBrokerId:1"));
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/PartialCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/PartialCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/PartialCommandTest.java
index cb762ba..8a740fd 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/PartialCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/PartialCommandTest.java
@@ -1 +1,55 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for PartialCommand
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class PartialCommandTest extends DataFileGeneratorTestSupport {
public static PartialCommandTest SINGLETON = new PartialCommandTest();
@Override
public Object createObject() throws Exception {
PartialCommand info = new PartialCommand();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
PartialCommand info = (PartialCommand) object;
info.setCommandId(1);
info.setData("Data:1".getBytes());
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for PartialCommand
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class PartialCommandTest extends DataFileGeneratorTestSupport {
+
+ public static PartialCommandTest SINGLETON = new PartialCommandTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ PartialCommand info = new PartialCommand();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ PartialCommand info = (PartialCommand) object;
+
+ info.setCommandId(1);
+ info.setData("Data:1".getBytes());
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerAckTest.java
index 609d790..7537afd 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerAckTest.java
@@ -1 +1,55 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ProducerAck
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ProducerAckTest extends BaseCommandTestSupport {
public static ProducerAckTest SINGLETON = new ProducerAckTest();
@Override
public Object createObject() throws Exception {
ProducerAck info = new ProducerAck();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ProducerAck info = (ProducerAck) object;
info.setProducerId(createProducerId("ProducerId:1"));
info.setSize(1);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ProducerAck
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ProducerAckTest extends BaseCommandTestSupport {
+
+ public static ProducerAckTest SINGLETON = new ProducerAckTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ProducerAck info = new ProducerAck();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ProducerAck info = (ProducerAck) object;
+
+ info.setProducerId(createProducerId("ProducerId:1"));
+ info.setSize(1);
+ }
+}
[23/32] activemq-artemis git commit: Convert mac linefeeds to unix
Posted by cl...@apache.org.
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerIdTest.java
index 7671d5b..f04007f 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerIdTest.java
@@ -1 +1,56 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ProducerId
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ProducerIdTest extends DataFileGeneratorTestSupport {
public static ProducerIdTest SINGLETON = new ProducerIdTest();
@Override
public Object createObject() throws Exception {
ProducerId info = new ProducerId();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ProducerId info = (ProducerId) object;
info.setConnectionId("ConnectionId:1");
info.setValue(1);
info.setSessionId(2);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ProducerId
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ProducerIdTest extends DataFileGeneratorTestSupport {
+
+ public static ProducerIdTest SINGLETON = new ProducerIdTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ProducerId info = new ProducerId();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ProducerId info = (ProducerId) object;
+
+ info.setConnectionId("ConnectionId:1");
+ info.setValue(1);
+ info.setSessionId(2);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerInfoTest.java
index 241c1f9..05de5b8 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerInfoTest.java
@@ -1 +1,64 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ProducerInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ProducerInfoTest extends BaseCommandTestSupport {
public static ProducerInfoTest SINGLETON = new ProducerInfoTest();
@Override
public Object createObject() throws Exception {
ProducerInfo info = new ProducerInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ProducerInfo info = (ProducerInfo) object;
info.setProducerId(createProducerId("ProducerId:1"));
info.setDestination(createActiveMQDestination("Destination:2"));
{
BrokerId value[] = new BrokerId[2];
for (int i = 0; i < 2;
i++) {
value[i] = createBrokerId("BrokerPath:3");
}
info.setBrokerPath(value);
}
info.setDispatchAsync(true);
info.setWindowSize(1);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ProducerInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ProducerInfoTest extends BaseCommandTestSupport {
+
+ public static ProducerInfoTest SINGLETON = new ProducerInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ProducerInfo info = new ProducerInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ProducerInfo info = (ProducerInfo) object;
+
+ info.setProducerId(createProducerId("ProducerId:1"));
+ info.setDestination(createActiveMQDestination("Destination:2"));
+ {
+ BrokerId value[] = new BrokerId[2];
+ for (int i = 0; i < 2; i++) {
+ value[i] = createBrokerId("BrokerPath:3");
+ }
+ info.setBrokerPath(value);
+ }
+ info.setDispatchAsync(true);
+ info.setWindowSize(1);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/RemoveInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/RemoveInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/RemoveInfoTest.java
index e3c2a3e..78eeb1b 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/RemoveInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/RemoveInfoTest.java
@@ -1 +1,55 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for RemoveInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class RemoveInfoTest extends BaseCommandTestSupport {
public static RemoveInfoTest SINGLETON = new RemoveInfoTest();
@Override
public Object createObject() throws Exception {
RemoveInfo info = new RemoveInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
RemoveInfo info = (RemoveInfo) object;
info.setObjectId(createDataStructure("ObjectId:1"));
info.setLastDeliveredSequenceId(1);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for RemoveInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class RemoveInfoTest extends BaseCommandTestSupport {
+
+ public static RemoveInfoTest SINGLETON = new RemoveInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ RemoveInfo info = new RemoveInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ RemoveInfo info = (RemoveInfo) object;
+
+ info.setObjectId(createDataStructure("ObjectId:1"));
+ info.setLastDeliveredSequenceId(1);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/RemoveSubscriptionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/RemoveSubscriptionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/RemoveSubscriptionInfoTest.java
index d0293df..360f4d0 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/RemoveSubscriptionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/RemoveSubscriptionInfoTest.java
@@ -1 +1,56 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for RemoveSubscriptionInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class RemoveSubscriptionInfoTest extends BaseCommandTestSupport {
public static RemoveSubscriptionInfoTest SINGLETON = new RemoveSubscriptionInfoTest();
@Override
public Object createObject() throws Exception {
RemoveSubscriptionInfo info = new RemoveSubscriptionInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
RemoveSubscriptionInfo info = (RemoveSubscriptionInfo) object;
info.setConnectionId(createConnectionId("ConnectionId:1"));
info.setSubcriptionName("SubcriptionName:2");
info.setCli
entId("ClientId:3");
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for RemoveSubscriptionInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class RemoveSubscriptionInfoTest extends BaseCommandTestSupport {
+
+ public static RemoveSubscriptionInfoTest SINGLETON = new RemoveSubscriptionInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ RemoveSubscriptionInfo info = new RemoveSubscriptionInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ RemoveSubscriptionInfo info = (RemoveSubscriptionInfo) object;
+
+ info.setConnectionId(createConnectionId("ConnectionId:1"));
+ info.setSubcriptionName("SubcriptionName:2");
+ info.setClientId("ClientId:3");
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ReplayCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ReplayCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ReplayCommandTest.java
index d3b5925..acc6348 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ReplayCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ReplayCommandTest.java
@@ -1 +1,55 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ReplayCommand
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ReplayCommandTest extends BaseCommandTestSupport {
public static ReplayCommandTest SINGLETON = new ReplayCommandTest();
@Override
public Object createObject() throws Exception {
ReplayCommand info = new ReplayCommand();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ReplayCommand info = (ReplayCommand) object;
info.setFirstNakNumber(1);
info.setLastNakNumber(2);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ReplayCommand
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ReplayCommandTest extends BaseCommandTestSupport {
+
+ public static ReplayCommandTest SINGLETON = new ReplayCommandTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ReplayCommand info = new ReplayCommand();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ReplayCommand info = (ReplayCommand) object;
+
+ info.setFirstNakNumber(1);
+ info.setLastNakNumber(2);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ResponseTest.java
index 7ca15e8..9f2d4ac 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ResponseTest.java
@@ -1 +1,54 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for Response
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ResponseTest extends BaseCommandTestSupport {
public static ResponseTest SINGLETON = new ResponseTest();
@Override
public Object createObject() throws Exception {
Response info = new Response();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
Response info = (Response) object;
info.setCorrelationId(1);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for Response
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ResponseTest extends BaseCommandTestSupport {
+
+ public static ResponseTest SINGLETON = new ResponseTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ Response info = new Response();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ Response info = (Response) object;
+
+ info.setCorrelationId(1);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SessionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SessionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SessionIdTest.java
index 6365ea4..d9882ac 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SessionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SessionIdTest.java
@@ -1 +1,55 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for SessionId
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class SessionIdTest extends DataFileGeneratorTestSupport {
public static SessionIdTest SINGLETON = new SessionIdTest();
@Override
public Object createObject() throws Exception {
SessionId info = new SessionId();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
SessionId info = (SessionId) object;
info.setConnectionId("ConnectionId:1");
info.setValue(1);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for SessionId
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class SessionIdTest extends DataFileGeneratorTestSupport {
+
+ public static SessionIdTest SINGLETON = new SessionIdTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ SessionId info = new SessionId();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ SessionId info = (SessionId) object;
+
+ info.setConnectionId("ConnectionId:1");
+ info.setValue(1);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SessionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SessionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SessionInfoTest.java
index 495a516..b453a03 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SessionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SessionInfoTest.java
@@ -1 +1,54 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for SessionInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class SessionInfoTest extends BaseCommandTestSupport {
public static SessionInfoTest SINGLETON = new SessionInfoTest();
@Override
public Object createObject() throws Exception {
SessionInfo info = new SessionInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
SessionInfo info = (SessionInfo) object;
info.setSessionId(createSessionId("SessionId:1"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for SessionInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class SessionInfoTest extends BaseCommandTestSupport {
+
+ public static SessionInfoTest SINGLETON = new SessionInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ SessionInfo info = new SessionInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ SessionInfo info = (SessionInfo) object;
+
+ info.setSessionId(createSessionId("SessionId:1"));
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ShutdownInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ShutdownInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ShutdownInfoTest.java
index 6c0c920..27a6fcf 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ShutdownInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ShutdownInfoTest.java
@@ -1 +1,53 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ShutdownInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ShutdownInfoTest extends BaseCommandTestSupport {
public static ShutdownInfoTest SINGLETON = new ShutdownInfoTest();
@Override
public Object createObject() throws Exception {
ShutdownInfo info = new ShutdownInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ShutdownInfo info = (ShutdownInfo) object;
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ShutdownInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ShutdownInfoTest extends BaseCommandTestSupport {
+
+ public static ShutdownInfoTest SINGLETON = new ShutdownInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ShutdownInfo info = new ShutdownInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ShutdownInfo info = (ShutdownInfo) object;
+
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SubscriptionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SubscriptionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SubscriptionInfoTest.java
index bd7e90e..a370120 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SubscriptionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SubscriptionInfoTest.java
@@ -1 +1,58 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for SubscriptionInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class SubscriptionInfoTest extends DataFileGeneratorTestSupport {
public static SubscriptionInfoTest SINGLETON = new SubscriptionInfoTest();
@Override
public Object createObject() throws Exception {
SubscriptionInfo info = new SubscriptionInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
SubscriptionInfo info = (SubscriptionInfo) object;
info.setClientId("ClientId:1");
info.setDestination(createActiveMQDestination("Destination:2"));
info.setSelector("Selector:3");
info.setSubcriptionName(
"SubcriptionName:4");
info.setSubscribedDestination(createActiveMQDestination("SubscribedDestination:5"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for SubscriptionInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class SubscriptionInfoTest extends DataFileGeneratorTestSupport {
+
+ public static SubscriptionInfoTest SINGLETON = new SubscriptionInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ SubscriptionInfo info = new SubscriptionInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ SubscriptionInfo info = (SubscriptionInfo) object;
+
+ info.setClientId("ClientId:1");
+ info.setDestination(createActiveMQDestination("Destination:2"));
+ info.setSelector("Selector:3");
+ info.setSubcriptionName("SubcriptionName:4");
+ info.setSubscribedDestination(createActiveMQDestination("SubscribedDestination:5"));
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/TransactionIdTestSupport.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/TransactionIdTestSupport.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/TransactionIdTestSupport.java
index 98f335e..a37b510 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/TransactionIdTestSupport.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/TransactionIdTestSupport.java
@@ -1 +1,44 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for TransactionId
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public abstract class TransactionIdTestSupport extends DataFileGeneratorTestSupport {
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
TransactionId info = (TransactionId) object;
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for TransactionId
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public abstract class TransactionIdTestSupport extends DataFileGeneratorTestSupport {
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ TransactionId info = (TransactionId) object;
+
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/TransactionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/TransactionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/TransactionInfoTest.java
index 0d43b65..0ea77d0 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/TransactionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/TransactionInfoTest.java
@@ -1 +1,56 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for TransactionInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class TransactionInfoTest extends BaseCommandTestSupport {
public static TransactionInfoTest SINGLETON = new TransactionInfoTest();
@Override
public Object createObject() throws Exception {
TransactionInfo info = new TransactionInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
TransactionInfo info = (TransactionInfo) object;
info.setConnectionId(createConnectionId("ConnectionId:1"));
info.setTransactionId(createTransactionId("TransactionId:2"));
info.setType((byte) 1);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for TransactionInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class TransactionInfoTest extends BaseCommandTestSupport {
+
+ public static TransactionInfoTest SINGLETON = new TransactionInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ TransactionInfo info = new TransactionInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ TransactionInfo info = (TransactionInfo) object;
+
+ info.setConnectionId(createConnectionId("ConnectionId:1"));
+ info.setTransactionId(createTransactionId("TransactionId:2"));
+ info.setType((byte) 1);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/XATransactionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/XATransactionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/XATransactionIdTest.java
index fe1a455..daca16f 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/XATransactionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/XATransactionIdTest.java
@@ -1 +1,56 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for XATransactionId
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class XATransactionIdTest extends TransactionIdTestSupport {
public static XATransactionIdTest SINGLETON = new XATransactionIdTest();
@Override
public Object createObject() throws Exception {
XATransactionId info = new XATransactionId();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
XATransactionId info = (XATransactionId) object;
info.setFormatId(1);
info.setGlobalTransactionId("GlobalTransactionId:1".getBytes());
info.setBranchQualifier("BranchQualifier:2".getBytes());
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for XATransactionId
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class XATransactionIdTest extends TransactionIdTestSupport {
+
+ public static XATransactionIdTest SINGLETON = new XATransactionIdTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ XATransactionId info = new XATransactionId();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ XATransactionId info = (XATransactionId) object;
+
+ info.setFormatId(1);
+ info.setGlobalTransactionId("GlobalTransactionId:1".getBytes());
+ info.setBranchQualifier("BranchQualifier:2".getBytes());
+ }
+}
[10/32] activemq-artemis git commit: Remove redundant type arguments
Posted by cl...@apache.org.
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/FailoverTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/FailoverTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/FailoverTest.java
index 3054321..9e53c01 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/FailoverTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/FailoverTest.java
@@ -197,7 +197,7 @@ public class FailoverTest extends FailoverTestBase {
final ClientConsumer consumer = session.createConsumer(FailoverTestBase.ADDRESS);
session.start();
- final Map<Integer, ClientMessage> received = new HashMap<Integer, ClientMessage>();
+ final Map<Integer, ClientMessage> received = new HashMap<>();
consumer.setMessageHandler(new MessageHandler() {
@@ -260,7 +260,7 @@ public class FailoverTest extends FailoverTestBase {
final ClientConsumer consumer = session.createConsumer(FailoverTestBase.ADDRESS);
session.start();
- final Map<Integer, ClientMessage> received = new HashMap<Integer, ClientMessage>();
+ final Map<Integer, ClientMessage> received = new HashMap<>();
Thread t = new Thread() {
@Override
@@ -1427,12 +1427,12 @@ public class FailoverTest extends FailoverTestBase {
final int numConsumersPerSession = 5;
- Map<ClientSession, List<ClientConsumer>> sessionConsumerMap = new HashMap<ClientSession, List<ClientConsumer>>();
+ Map<ClientSession, List<ClientConsumer>> sessionConsumerMap = new HashMap<>();
for (int i = 0; i < numSessions; i++) {
ClientSession session = createSession(sf, true, true);
- List<ClientConsumer> consumers = new ArrayList<ClientConsumer>();
+ List<ClientConsumer> consumers = new ArrayList<>();
for (int j = 0; j < numConsumersPerSession; j++) {
SimpleString queueName = new SimpleString("queue" + i + "-" + j);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/FailoverTestBase.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/FailoverTestBase.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/FailoverTestBase.java
index bb711ab..67123df 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/FailoverTestBase.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/FailoverTestBase.java
@@ -296,8 +296,8 @@ public abstract class FailoverTestBase extends ActiveMQTestBase {
public static final class LatchClusterTopologyListener implements ClusterTopologyListener {
final CountDownLatch latch;
- List<String> liveNode = new ArrayList<String>();
- List<String> backupNode = new ArrayList<String>();
+ List<String> liveNode = new ArrayList<>();
+ List<String> backupNode = new ArrayList<>();
public LatchClusterTopologyListener(CountDownLatch latch) {
this.latch = latch;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/MultipleLivesMultipleBackupsFailoverTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/MultipleLivesMultipleBackupsFailoverTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/MultipleLivesMultipleBackupsFailoverTest.java
index a6ab97b..edc8b11 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/MultipleLivesMultipleBackupsFailoverTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/MultipleLivesMultipleBackupsFailoverTest.java
@@ -39,7 +39,7 @@ import java.util.Map;
*/
public class MultipleLivesMultipleBackupsFailoverTest extends MultipleBackupsFailoverTestBase {
- protected Map<Integer, TestableServer> servers = new HashMap<Integer, TestableServer>();
+ protected Map<Integer, TestableServer> servers = new HashMap<>();
private ServerLocator locator2;
private ServerLocator locator;
private final boolean sharedStore = true;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/MultipleServerFailoverTestBase.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/MultipleServerFailoverTestBase.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/MultipleServerFailoverTestBase.java
index 156400b..3926172 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/MultipleServerFailoverTestBase.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/MultipleServerFailoverTestBase.java
@@ -48,13 +48,13 @@ public abstract class MultipleServerFailoverTestBase extends ActiveMQTestBase {
// Attributes ----------------------------------------------------
- protected List<TestableServer> liveServers = new ArrayList<TestableServer>();
+ protected List<TestableServer> liveServers = new ArrayList<>();
- protected List<TestableServer> backupServers = new ArrayList<TestableServer>();
+ protected List<TestableServer> backupServers = new ArrayList<>();
- protected List<Configuration> backupConfigs = new ArrayList<Configuration>();
+ protected List<Configuration> backupConfigs = new ArrayList<>();
- protected List<Configuration> liveConfigs = new ArrayList<Configuration>();
+ protected List<Configuration> liveConfigs = new ArrayList<>();
protected List<NodeManager> nodeManagers;
@@ -72,10 +72,10 @@ public abstract class MultipleServerFailoverTestBase extends ActiveMQTestBase {
@Before
public void setUp() throws Exception {
super.setUp();
- liveServers = new ArrayList<TestableServer>();
- backupServers = new ArrayList<TestableServer>();
- backupConfigs = new ArrayList<Configuration>();
- liveConfigs = new ArrayList<Configuration>();
+ liveServers = new ArrayList<>();
+ backupServers = new ArrayList<>();
+ backupConfigs = new ArrayList<>();
+ liveConfigs = new ArrayList<>();
for (int i = 0; i < getLiveServerCount(); i++) {
HAPolicyConfiguration haPolicyConfiguration = null;
@@ -104,7 +104,7 @@ public abstract class MultipleServerFailoverTestBase extends ActiveMQTestBase {
TransportConfiguration livetc = getConnectorTransportConfiguration(true, i);
configuration.addConnectorConfiguration(livetc.getName(), livetc);
- List<String> connectors = new ArrayList<String>();
+ List<String> connectors = new ArrayList<>();
for (int j = 0; j < getLiveServerCount(); j++) {
if (j != i) {
TransportConfiguration staticTc = getConnectorTransportConfiguration(true, j);
@@ -149,7 +149,7 @@ public abstract class MultipleServerFailoverTestBase extends ActiveMQTestBase {
TransportConfiguration backuptc = getConnectorTransportConfiguration(false, i);
configuration.addConnectorConfiguration(backuptc.getName(), backuptc);
- List<String> connectors = new ArrayList<String>();
+ List<String> connectors = new ArrayList<>();
for (int j = 0; j < getBackupServerCount(); j++) {
TransportConfiguration staticTc = getConnectorTransportConfiguration(true, j);
configuration.addConnectorConfiguration(staticTc.getName(), staticTc);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/NettyFailoverTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/NettyFailoverTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/NettyFailoverTest.java
index 775a7d9..2c1ccfd 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/NettyFailoverTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/NettyFailoverTest.java
@@ -46,7 +46,7 @@ public class NettyFailoverTest extends FailoverTest {
@Test
public void testFailoverWithHostAlias() throws Exception {
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put(TransportConstants.HOST_PROP_NAME, "127.0.0.1");
TransportConfiguration tc = createTransportConfiguration(true, false, params);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/QuorumFailOverTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/QuorumFailOverTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/QuorumFailOverTest.java
index cdba3f7..955e34c 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/QuorumFailOverTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/QuorumFailOverTest.java
@@ -102,7 +102,7 @@ public class QuorumFailOverTest extends StaticClusterWithBackupFailoverTest {
private static class TopologyListener implements ClusterTopologyListener {
final String prefix;
- final Map<String, Pair<TransportConfiguration, TransportConfiguration>> nodes = new ConcurrentHashMap<String, Pair<TransportConfiguration, TransportConfiguration>>();
+ final Map<String, Pair<TransportConfiguration, TransportConfiguration>> nodes = new ConcurrentHashMap<>();
public TopologyListener(String string) {
prefix = string;
@@ -110,7 +110,7 @@ public class QuorumFailOverTest extends StaticClusterWithBackupFailoverTest {
@Override
public void nodeUP(TopologyMember topologyMember, boolean last) {
- Pair<TransportConfiguration, TransportConfiguration> connectorPair = new Pair<TransportConfiguration, TransportConfiguration>(topologyMember.getLive(), topologyMember.getBackup());
+ Pair<TransportConfiguration, TransportConfiguration> connectorPair = new Pair<>(topologyMember.getLive(), topologyMember.getBackup());
nodes.put(topologyMember.getBackupGroupName(), connectorPair);
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/ReplicatedMultipleServerFailoverExtraBackupsTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/ReplicatedMultipleServerFailoverExtraBackupsTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/ReplicatedMultipleServerFailoverExtraBackupsTest.java
index 6dfec71..c1f3942 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/ReplicatedMultipleServerFailoverExtraBackupsTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/ReplicatedMultipleServerFailoverExtraBackupsTest.java
@@ -105,7 +105,7 @@ public class ReplicatedMultipleServerFailoverExtraBackupsTest extends Replicated
waitForDistribution(ADDRESS, backupServers.get(0).getServer(), 100);
waitForDistribution(ADDRESS, backupServers.get(1).getServer(), 100);
- List<TestableServer> toCrash = new ArrayList<TestableServer>();
+ List<TestableServer> toCrash = new ArrayList<>();
for (TestableServer backupServer : backupServers) {
if (!backupServer.getServer().getHAPolicy().isBackup()) {
toCrash.add(backupServer);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/SecurityFailoverTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/SecurityFailoverTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/SecurityFailoverTest.java
index 2564189..121a650 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/SecurityFailoverTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/SecurityFailoverTest.java
@@ -104,7 +104,7 @@ public class SecurityFailoverTest extends FailoverTest {
ActiveMQJAASSecurityManager securityManager = (ActiveMQJAASSecurityManager) server.getServer().getSecurityManager();
securityManager.getConfiguration().addUser("a", "b");
Role role = new Role("arole", true, true, true, true, true, true, true);
- Set<Role> roles = new HashSet<Role>();
+ Set<Role> roles = new HashSet<>();
roles.add(role);
server.getServer().getSecurityRepository().addMatch("#", roles);
securityManager.getConfiguration().addRole("a", "arole");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/SingleLiveMultipleBackupsFailoverTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/SingleLiveMultipleBackupsFailoverTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/SingleLiveMultipleBackupsFailoverTest.java
index 066da16..069eb32 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/SingleLiveMultipleBackupsFailoverTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/SingleLiveMultipleBackupsFailoverTest.java
@@ -39,7 +39,7 @@ import java.util.Map;
*/
public class SingleLiveMultipleBackupsFailoverTest extends MultipleBackupsFailoverTestBase {
- protected Map<Integer, TestableServer> servers = new HashMap<Integer, TestableServer>();
+ protected Map<Integer, TestableServer> servers = new HashMap<>();
protected ServerLocatorImpl locator;
private NodeManager nodeManager;
final boolean sharedStore = true;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/reattach/MultiThreadRandomReattachTestBase.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/reattach/MultiThreadRandomReattachTestBase.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/reattach/MultiThreadRandomReattachTestBase.java
index ce2e7b1..5b04a14 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/reattach/MultiThreadRandomReattachTestBase.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/reattach/MultiThreadRandomReattachTestBase.java
@@ -297,8 +297,8 @@ public abstract class MultiThreadRandomReattachTestBase extends MultiThreadReatt
final int numSessions = 10;
- Set<ClientConsumer> consumers = new HashSet<ClientConsumer>();
- Set<ClientSession> sessions = new HashSet<ClientSession>();
+ Set<ClientConsumer> consumers = new HashSet<>();
+ Set<ClientSession> sessions = new HashSet<>();
for (int i = 0; i < numSessions; i++) {
SimpleString subName = new SimpleString(threadNum + "sub" + i);
@@ -323,7 +323,7 @@ public abstract class MultiThreadRandomReattachTestBase extends MultiThreadReatt
sendMessages(sessSend, producer, numMessages, threadNum);
- Set<MyHandler> handlers = new HashSet<MyHandler>();
+ Set<MyHandler> handlers = new HashSet<>();
for (ClientConsumer consumer : consumers) {
MyHandler handler = new MyHandler(threadNum, numMessages);
@@ -375,8 +375,8 @@ public abstract class MultiThreadRandomReattachTestBase extends MultiThreadReatt
final int numSessions = 10;
- Set<ClientConsumer> consumers = new HashSet<ClientConsumer>();
- Set<ClientSession> sessions = new HashSet<ClientSession>();
+ Set<ClientConsumer> consumers = new HashSet<>();
+ Set<ClientSession> sessions = new HashSet<>();
for (int i = 0; i < numSessions; i++) {
SimpleString subName = new SimpleString(threadNum + "sub" + i);
@@ -403,7 +403,7 @@ public abstract class MultiThreadRandomReattachTestBase extends MultiThreadReatt
session.start();
}
- Set<MyHandler> handlers = new HashSet<MyHandler>();
+ Set<MyHandler> handlers = new HashSet<>();
for (ClientConsumer consumer : consumers) {
MyHandler handler = new MyHandler(threadNum, numMessages);
@@ -457,8 +457,8 @@ public abstract class MultiThreadRandomReattachTestBase extends MultiThreadReatt
final int numSessions = 10;
- Set<ClientConsumer> consumers = new HashSet<ClientConsumer>();
- Set<ClientSession> sessions = new HashSet<ClientSession>();
+ Set<ClientConsumer> consumers = new HashSet<>();
+ Set<ClientSession> sessions = new HashSet<>();
for (int i = 0; i < numSessions; i++) {
SimpleString subName = new SimpleString(threadNum + "sub" + i);
@@ -489,7 +489,7 @@ public abstract class MultiThreadRandomReattachTestBase extends MultiThreadReatt
sessSend.commit();
- Set<MyHandler> handlers = new HashSet<MyHandler>();
+ Set<MyHandler> handlers = new HashSet<>();
for (ClientConsumer consumer : consumers) {
MyHandler handler = new MyHandler(threadNum, numMessages);
@@ -557,8 +557,8 @@ public abstract class MultiThreadRandomReattachTestBase extends MultiThreadReatt
final int numSessions = 10;
- Set<ClientConsumer> consumers = new HashSet<ClientConsumer>();
- Set<ClientSession> sessions = new HashSet<ClientSession>();
+ Set<ClientConsumer> consumers = new HashSet<>();
+ Set<ClientSession> sessions = new HashSet<>();
for (int i = 0; i < numSessions; i++) {
SimpleString subName = new SimpleString(threadNum + " sub" + i);
@@ -592,7 +592,7 @@ public abstract class MultiThreadRandomReattachTestBase extends MultiThreadReatt
session.start();
}
- Set<MyHandler> handlers = new HashSet<MyHandler>();
+ Set<MyHandler> handlers = new HashSet<>();
for (ClientConsumer consumer : consumers) {
MyHandler handler = new MyHandler(threadNum, numMessages);
@@ -684,8 +684,8 @@ public abstract class MultiThreadRandomReattachTestBase extends MultiThreadReatt
final int numSessions = 10;
- Set<ClientConsumer> consumers = new HashSet<ClientConsumer>();
- Set<ClientSession> sessions = new HashSet<ClientSession>();
+ Set<ClientConsumer> consumers = new HashSet<>();
+ Set<ClientSession> sessions = new HashSet<>();
for (int i = 0; i < numSessions; i++) {
SimpleString subName = new SimpleString(threadNum + "sub" + i);
@@ -741,8 +741,8 @@ public abstract class MultiThreadRandomReattachTestBase extends MultiThreadReatt
final int numSessions = 10;
- Set<ClientConsumer> consumers = new HashSet<ClientConsumer>();
- Set<ClientSession> sessions = new HashSet<ClientSession>();
+ Set<ClientConsumer> consumers = new HashSet<>();
+ Set<ClientSession> sessions = new HashSet<>();
for (int i = 0; i < numSessions; i++) {
SimpleString subName = new SimpleString(threadNum + "sub" + i);
@@ -800,8 +800,8 @@ public abstract class MultiThreadRandomReattachTestBase extends MultiThreadReatt
final int numSessions = 10;
- Set<ClientConsumer> consumers = new HashSet<ClientConsumer>();
- Set<ClientSession> sessions = new HashSet<ClientSession>();
+ Set<ClientConsumer> consumers = new HashSet<>();
+ Set<ClientSession> sessions = new HashSet<>();
for (int i = 0; i < numSessions; i++) {
SimpleString subName = new SimpleString(threadNum + "sub" + i);
@@ -873,8 +873,8 @@ public abstract class MultiThreadRandomReattachTestBase extends MultiThreadReatt
final int numSessions = 10;
- Set<ClientConsumer> consumers = new HashSet<ClientConsumer>();
- Set<ClientSession> sessions = new HashSet<ClientSession>();
+ Set<ClientConsumer> consumers = new HashSet<>();
+ Set<ClientSession> sessions = new HashSet<>();
for (int i = 0; i < numSessions; i++) {
SimpleString subName = new SimpleString(threadNum + "sub" + i);
@@ -1159,14 +1159,14 @@ public abstract class MultiThreadRandomReattachTestBase extends MultiThreadReatt
final int numMessages,
final int threadNum) throws Exception {
// We make sure the messages arrive in the order they were sent from a particular producer
- Map<ClientConsumer, Map<Integer, Integer>> counts = new HashMap<ClientConsumer, Map<Integer, Integer>>();
+ Map<ClientConsumer, Map<Integer, Integer>> counts = new HashMap<>();
for (int i = 0; i < numMessages; i++) {
for (ClientConsumer consumer : consumers) {
Map<Integer, Integer> consumerCounts = counts.get(consumer);
if (consumerCounts == null) {
- consumerCounts = new HashMap<Integer, Integer>();
+ consumerCounts = new HashMap<>();
counts.put(consumer, consumerCounts);
}
@@ -1206,7 +1206,7 @@ public abstract class MultiThreadRandomReattachTestBase extends MultiThreadReatt
CountDownLatch latch = new CountDownLatch(1);
- private final Map<Integer, Integer> counts = new HashMap<Integer, Integer>();
+ private final Map<Integer, Integer> counts = new HashMap<>();
volatile String failure;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/reattach/MultiThreadReattachSupportTestBase.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/reattach/MultiThreadReattachSupportTestBase.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/reattach/MultiThreadReattachSupportTestBase.java
index 3a41924..e36475a 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/reattach/MultiThreadReattachSupportTestBase.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/reattach/MultiThreadReattachSupportTestBase.java
@@ -117,7 +117,7 @@ public abstract class MultiThreadReattachSupportTestBase extends ActiveMQTestBas
}
do {
- List<Runner> threads = new ArrayList<Runner>();
+ List<Runner> threads = new ArrayList<>();
for (int i = 0; i < numThreads; i++) {
Runner runner = new Runner(runnable, i);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/reattach/OrderReattachTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/reattach/OrderReattachTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/reattach/OrderReattachTest.java
index f38b703..f0aac93 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/reattach/OrderReattachTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/reattach/OrderReattachTest.java
@@ -73,7 +73,7 @@ public class OrderReattachTest extends ActiveMQTestBase {
final ClientSession session = sf.createSession(false, true, true);
- final LinkedBlockingDeque<Boolean> failureQueue = new LinkedBlockingDeque<Boolean>();
+ final LinkedBlockingDeque<Boolean> failureQueue = new LinkedBlockingDeque<>();
final CountDownLatch ready = new CountDownLatch(1);
@@ -158,8 +158,8 @@ public class OrderReattachTest extends ActiveMQTestBase {
final int numSessions = 10;
- Set<ClientConsumer> consumers = new HashSet<ClientConsumer>();
- Set<ClientSession> sessions = new HashSet<ClientSession>();
+ Set<ClientConsumer> consumers = new HashSet<>();
+ Set<ClientSession> sessions = new HashSet<>();
for (int i = 0; i < numSessions; i++) {
SimpleString subName = new SimpleString("sub" + i);
@@ -229,7 +229,7 @@ public class OrderReattachTest extends ActiveMQTestBase {
}
}
- Set<MyHandler> handlers = new HashSet<MyHandler>();
+ Set<MyHandler> handlers = new HashSet<>();
for (ClientConsumer consumer : consumers) {
MyHandler handler = new MyHandler();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/reattach/RandomReattachTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/reattach/RandomReattachTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/reattach/RandomReattachTest.java
index 4332a80..8d1fe32 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/reattach/RandomReattachTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/reattach/RandomReattachTest.java
@@ -232,8 +232,8 @@ public class RandomReattachTest extends ActiveMQTestBase {
final int numSessions = 10;
- Set<ClientConsumer> consumers = new HashSet<ClientConsumer>();
- Set<ClientSession> sessions = new HashSet<ClientSession>();
+ Set<ClientConsumer> consumers = new HashSet<>();
+ Set<ClientSession> sessions = new HashSet<>();
for (int i = 0; i < numSessions; i++) {
SimpleString subName = new SimpleString("sub" + i);
@@ -290,7 +290,7 @@ public class RandomReattachTest extends ActiveMQTestBase {
}
}
- Set<MyHandler> handlers = new HashSet<MyHandler>();
+ Set<MyHandler> handlers = new HashSet<>();
for (ClientConsumer consumer : consumers) {
MyHandler handler = new MyHandler();
@@ -335,8 +335,8 @@ public class RandomReattachTest extends ActiveMQTestBase {
final int numSessions = 50;
- Set<ClientConsumer> consumers = new HashSet<ClientConsumer>();
- Set<ClientSession> sessions = new HashSet<ClientSession>();
+ Set<ClientConsumer> consumers = new HashSet<>();
+ Set<ClientSession> sessions = new HashSet<>();
for (int i = 0; i < numSessions; i++) {
SimpleString subName = new SimpleString("sub" + i);
@@ -388,7 +388,7 @@ public class RandomReattachTest extends ActiveMQTestBase {
}
}
- Set<MyHandler> handlers = new HashSet<MyHandler>();
+ Set<MyHandler> handlers = new HashSet<>();
for (ClientConsumer consumer : consumers) {
MyHandler handler = new MyHandler();
@@ -435,8 +435,8 @@ public class RandomReattachTest extends ActiveMQTestBase {
final int numSessions = 1;
- Set<ClientConsumer> consumers = new HashSet<ClientConsumer>();
- Set<ClientSession> sessions = new HashSet<ClientSession>();
+ Set<ClientConsumer> consumers = new HashSet<>();
+ Set<ClientSession> sessions = new HashSet<>();
for (int i = 0; i < numSessions; i++) {
SimpleString subName = new SimpleString("sub" + i);
@@ -504,7 +504,7 @@ public class RandomReattachTest extends ActiveMQTestBase {
}
}
- Set<MyHandler> handlers = new HashSet<MyHandler>();
+ Set<MyHandler> handlers = new HashSet<>();
for (ClientConsumer consumer : consumers) {
MyHandler handler = new MyHandler();
@@ -576,8 +576,8 @@ public class RandomReattachTest extends ActiveMQTestBase {
final int numSessions = 10;
- Set<ClientConsumer> consumers = new HashSet<ClientConsumer>();
- Set<ClientSession> sessions = new HashSet<ClientSession>();
+ Set<ClientConsumer> consumers = new HashSet<>();
+ Set<ClientSession> sessions = new HashSet<>();
for (int i = 0; i < numSessions; i++) {
SimpleString subName = new SimpleString("sub" + i);
@@ -639,7 +639,7 @@ public class RandomReattachTest extends ActiveMQTestBase {
}
}
- Set<MyHandler> handlers = new HashSet<MyHandler>();
+ Set<MyHandler> handlers = new HashSet<>();
for (ClientConsumer consumer : consumers) {
MyHandler handler = new MyHandler();
@@ -713,8 +713,8 @@ public class RandomReattachTest extends ActiveMQTestBase {
final int numSessions = 10;
- Set<ClientConsumer> consumers = new HashSet<ClientConsumer>();
- Set<ClientSession> sessions = new HashSet<ClientSession>();
+ Set<ClientConsumer> consumers = new HashSet<>();
+ Set<ClientSession> sessions = new HashSet<>();
for (int i = 0; i < numSessions; i++) {
SimpleString subName = new SimpleString("sub" + i);
@@ -789,8 +789,8 @@ public class RandomReattachTest extends ActiveMQTestBase {
final int numSessions = 10;
- Set<ClientConsumer> consumers = new HashSet<ClientConsumer>();
- Set<ClientSession> sessions = new HashSet<ClientSession>();
+ Set<ClientConsumer> consumers = new HashSet<>();
+ Set<ClientSession> sessions = new HashSet<>();
for (int i = 0; i < numSessions; i++) {
SimpleString subName = new SimpleString("sub" + i);
@@ -873,8 +873,8 @@ public class RandomReattachTest extends ActiveMQTestBase {
final int numSessions = 10;
- Set<ClientConsumer> consumers = new HashSet<ClientConsumer>();
- Set<ClientSession> sessions = new HashSet<ClientSession>();
+ Set<ClientConsumer> consumers = new HashSet<>();
+ Set<ClientSession> sessions = new HashSet<>();
for (int i = 0; i < numSessions; i++) {
SimpleString subName = new SimpleString("sub" + i);
@@ -985,8 +985,8 @@ public class RandomReattachTest extends ActiveMQTestBase {
final int numSessions = 10;
- Set<ClientConsumer> consumers = new HashSet<ClientConsumer>();
- Set<ClientSession> sessions = new HashSet<ClientSession>();
+ Set<ClientConsumer> consumers = new HashSet<>();
+ Set<ClientSession> sessions = new HashSet<>();
for (int i = 0; i < numSessions; i++) {
SimpleString subName = new SimpleString("sub" + i);
@@ -1304,7 +1304,7 @@ public class RandomReattachTest extends ActiveMQTestBase {
}
}
- private final ArrayList<AssertionError> errors = new ArrayList<AssertionError>();
+ private final ArrayList<AssertionError> errors = new ArrayList<>();
/* (non-Javadoc)
* @see MessageHandler#onMessage(ClientMessage)
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/topology/IsolatedTopologyTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/topology/IsolatedTopologyTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/topology/IsolatedTopologyTest.java
index 85f6d32..e45679a 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/topology/IsolatedTopologyTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/topology/IsolatedTopologyTest.java
@@ -81,24 +81,24 @@ public class IsolatedTopologyTest extends ActiveMQTestBase {
}
private ActiveMQServer createServer1() throws Exception {
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put(TransportConstants.CLUSTER_CONNECTION, "cc1");
params.put(org.apache.activemq.artemis.core.remoting.impl.invm.TransportConstants.SERVER_ID_PROP_NAME, "1");
TransportConfiguration acceptor1VM1 = new TransportConfiguration(ActiveMQTestBase.INVM_ACCEPTOR_FACTORY, params, "acceptor-cc1");
- params = new HashMap<String, Object>();
+ params = new HashMap<>();
params.put(TransportConstants.CLUSTER_CONNECTION, "cc2");
params.put(org.apache.activemq.artemis.core.remoting.impl.invm.TransportConstants.SERVER_ID_PROP_NAME, "2");
TransportConfiguration acceptor2VM1 = new TransportConfiguration(ActiveMQTestBase.INVM_ACCEPTOR_FACTORY, params, "acceptor-cc2");
- List<String> connectTo = new ArrayList<String>();
+ List<String> connectTo = new ArrayList<>();
connectTo.add("other-cc1");
ClusterConnectionConfiguration server1CC1 = new ClusterConnectionConfiguration().setName("cc1").setAddress("jms").setConnectorName("local-cc1").setRetryInterval(250).setConfirmationWindowSize(1024).setMessageLoadBalancingType(MessageLoadBalancingType.ON_DEMAND).setStaticConnectors(connectTo);
- ArrayList<String> connectTo2 = new ArrayList<String>();
+ ArrayList<String> connectTo2 = new ArrayList<>();
connectTo2.add("other-cc2");
ClusterConnectionConfiguration server1CC2 = new ClusterConnectionConfiguration().setName("cc2").setAddress("jms").setConnectorName("local-cc2").setRetryInterval(250).setConfirmationWindowSize(1024).setMessageLoadBalancingType(MessageLoadBalancingType.ON_DEMAND).setStaticConnectors(connectTo2);
@@ -113,24 +113,24 @@ public class IsolatedTopologyTest extends ActiveMQTestBase {
private ActiveMQServer createServer2() throws Exception {
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put(TransportConstants.CLUSTER_CONNECTION, "cc1");
params.put(org.apache.activemq.artemis.core.remoting.impl.invm.TransportConstants.SERVER_ID_PROP_NAME, "3");
TransportConfiguration acceptor1VM1 = new TransportConfiguration(ActiveMQTestBase.INVM_ACCEPTOR_FACTORY, params, "acceptor-cc1");
- params = new HashMap<String, Object>();
+ params = new HashMap<>();
params.put(TransportConstants.CLUSTER_CONNECTION, "cc2");
params.put(org.apache.activemq.artemis.core.remoting.impl.invm.TransportConstants.SERVER_ID_PROP_NAME, "4");
TransportConfiguration acceptor2VM1 = new TransportConfiguration(ActiveMQTestBase.INVM_ACCEPTOR_FACTORY, params, "acceptor-cc2");
- List<String> connectTo = new ArrayList<String>();
+ List<String> connectTo = new ArrayList<>();
connectTo.add("other-cc1");
ClusterConnectionConfiguration server1CC1 = new ClusterConnectionConfiguration().setName("cc1").setAddress("jms").setConnectorName("local-cc1").setRetryInterval(250).setConfirmationWindowSize(1024).setMessageLoadBalancingType(MessageLoadBalancingType.ON_DEMAND).setStaticConnectors(connectTo);
- List<String> connectTo2 = new ArrayList<String>();
+ List<String> connectTo2 = new ArrayList<>();
connectTo2.add("other-cc2");
ClusterConnectionConfiguration server1CC2 = new ClusterConnectionConfiguration().setName("cc2").setAddress("jms").setConnectorName("local-cc2").setRetryInterval(250).setConfirmationWindowSize(1024).setMessageLoadBalancingType(MessageLoadBalancingType.ON_DEMAND).setStaticConnectors(connectTo2);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/topology/NonHATopologyTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/topology/NonHATopologyTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/topology/NonHATopologyTest.java
index 4bad259..b6eed8a 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/topology/NonHATopologyTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/topology/NonHATopologyTest.java
@@ -64,7 +64,7 @@ public class NonHATopologyTest extends ActiveMQTestBase {
server.getConfiguration().getAcceptorConfigurations().add(new TransportConfiguration(NETTY_ACCEPTOR_FACTORY));
server.getConfiguration().getConnectorConfigurations().put("netty", new TransportConfiguration(NETTY_CONNECTOR_FACTORY));
- ArrayList<String> list = new ArrayList<String>();
+ ArrayList<String> list = new ArrayList<>();
list.add("netty");
Configuration config = server.getConfiguration();
config.getClusterConfigurations().add(new ClusterConnectionConfiguration().setName("tst").setAddress("jms").setConnectorName("netty").setRetryInterval(1000).setConfirmationWindowSize(1000).setMessageLoadBalancingType(MessageLoadBalancingType.ON_DEMAND).setStaticConnectors(list).setAllowDirectConnectionsOnly(true));
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/util/MultiServerTestBase.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/util/MultiServerTestBase.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/util/MultiServerTestBase.java
index 536b0ca..8ca823c 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/util/MultiServerTestBase.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/util/MultiServerTestBase.java
@@ -160,7 +160,7 @@ public class MultiServerTestBase extends ActiveMQTestBase {
Configuration configuration = createBasicConfig(node).setJournalMaxIO_AIO(1000).setThreadPoolMaxSize(10).clearAcceptorConfigurations().addAcceptorConfiguration(serverConfigAcceptor).addConnectorConfiguration("thisConnector", thisConnector).setHAPolicyConfiguration(sharedStorage ? new SharedStoreMasterPolicyConfiguration() : new ReplicatedPolicyConfiguration());
- List<String> targetServersOnConnection = new ArrayList<String>();
+ List<String> targetServersOnConnection = new ArrayList<>();
for (int targetNode = 0; targetNode < getNumberOfServers(); targetNode++) {
if (targetNode == node) {
@@ -196,7 +196,7 @@ public class MultiServerTestBase extends ActiveMQTestBase {
addServer(server);
- return new Pair<ActiveMQServer, NodeManager>(server, nodeManager);
+ return new Pair<>(server, nodeManager);
}
protected ActiveMQServer setupBackupServer(final int node,
@@ -207,7 +207,7 @@ public class MultiServerTestBase extends ActiveMQTestBase {
Configuration configuration = createBasicConfig(useSharedStorage() ? liveNode : node).clearAcceptorConfigurations().addAcceptorConfiguration(serverConfigAcceptor).addConnectorConfiguration("thisConnector", thisConnector).setHAPolicyConfiguration(useSharedStorage() ? new SharedStoreSlavePolicyConfiguration() : new ReplicaPolicyConfiguration());
- List<String> targetServersOnConnection = new ArrayList<String>();
+ List<String> targetServersOnConnection = new ArrayList<>();
for (int targetNode = 0; targetNode < getNumberOfServers(); targetNode++) {
// if (targetNode == node)
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/discovery/DiscoveryBaseTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/discovery/DiscoveryBaseTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/discovery/DiscoveryBaseTest.java
index 137d252..44bb31a 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/discovery/DiscoveryBaseTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/discovery/DiscoveryBaseTest.java
@@ -77,7 +77,7 @@ public class DiscoveryBaseTest extends ActiveMQTestBase {
protected TransportConfiguration generateTC(String debug) {
String className = "org.foo.bar." + debug + "|" + UUIDGenerator.getInstance().generateStringUUID() + "";
String name = UUIDGenerator.getInstance().generateStringUUID();
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put(UUIDGenerator.getInstance().generateStringUUID(), 123);
params.put(UUIDGenerator.getInstance().generateStringUUID(), UUIDGenerator.getInstance().generateStringUUID());
params.put(UUIDGenerator.getInstance().generateStringUUID(), true);
@@ -99,7 +99,7 @@ public class DiscoveryBaseTest extends ActiveMQTestBase {
List<DiscoveryEntry> actual) {
assertNotNull(actual);
- List<TransportConfiguration> sortedExpected = new ArrayList<TransportConfiguration>(expected);
+ List<TransportConfiguration> sortedExpected = new ArrayList<>(expected);
Collections.sort(sortedExpected, new Comparator<TransportConfiguration>() {
@Override
@@ -107,7 +107,7 @@ public class DiscoveryBaseTest extends ActiveMQTestBase {
return o2.toString().compareTo(o1.toString());
}
});
- List<DiscoveryEntry> sortedActual = new ArrayList<DiscoveryEntry>(actual);
+ List<DiscoveryEntry> sortedActual = new ArrayList<>(actual);
Collections.sort(sortedActual, new Comparator<DiscoveryEntry>() {
@Override
public int compare(DiscoveryEntry o1, DiscoveryEntry o2) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/http/CoreClientOverHttpTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/http/CoreClientOverHttpTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/http/CoreClientOverHttpTest.java
index 071389f..119be87 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/http/CoreClientOverHttpTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/http/CoreClientOverHttpTest.java
@@ -52,7 +52,7 @@ public class CoreClientOverHttpTest extends ActiveMQTestBase {
@Before
public void setUp() throws Exception {
super.setUp();
- HashMap<String, Object> params = new HashMap<String, Object>();
+ HashMap<String, Object> params = new HashMap<>();
params.put(TransportConstants.HTTP_ENABLED_PROP_NAME, true);
conf = createDefaultInVMConfig().clearAcceptorConfigurations().addAcceptorConfiguration(new TransportConfiguration(NETTY_ACCEPTOR_FACTORY, params));
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/ActiveMQConnectionFactoryTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/ActiveMQConnectionFactoryTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/ActiveMQConnectionFactoryTest.java
index c4ddd2c..93f03bf 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/ActiveMQConnectionFactoryTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/ActiveMQConnectionFactoryTest.java
@@ -509,9 +509,9 @@ public class ActiveMQConnectionFactoryTest extends ActiveMQTestBase {
private void startServer() throws Exception {
liveTC = new TransportConfiguration(INVM_CONNECTOR_FACTORY);
- Map<String, TransportConfiguration> connectors = new HashMap<String, TransportConfiguration>();
+ Map<String, TransportConfiguration> connectors = new HashMap<>();
connectors.put(liveTC.getName(), liveTC);
- List<String> connectorNames = new ArrayList<String>();
+ List<String> connectorNames = new ArrayList<>();
connectorNames.add(liveTC.getName());
Configuration liveConf = createBasicConfig().addAcceptorConfiguration(new TransportConfiguration(INVM_ACCEPTOR_FACTORY)).setConnectorConfigurations(connectors).setHAPolicyConfiguration(new SharedStoreMasterPolicyConfiguration());
@@ -524,7 +524,7 @@ public class ActiveMQConnectionFactoryTest extends ActiveMQTestBase {
BroadcastGroupConfiguration bcConfig1 = new BroadcastGroupConfiguration().setName(bcGroupName).setBroadcastPeriod(broadcastPeriod).setConnectorInfos(connectorNames).setEndpointFactory(new UDPBroadcastEndpointFactory().setGroupAddress(groupAddress).setGroupPort(groupPort).setLocalBindPort(localBindPort));
- List<BroadcastGroupConfiguration> bcConfigs1 = new ArrayList<BroadcastGroupConfiguration>();
+ List<BroadcastGroupConfiguration> bcConfigs1 = new ArrayList<>();
bcConfigs1.add(bcConfig1);
liveConf.setBroadcastGroupConfigurations(bcConfigs1);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/FloodServerTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/FloodServerTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/FloodServerTest.java
index 36ae11f..9ef5f6d 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/FloodServerTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/FloodServerTest.java
@@ -102,7 +102,7 @@ public class FloodServerTest extends ActiveMQTestBase {
int reconnectAttempts = -1;
long callTimeout = 30000;
- List<TransportConfiguration> connectorConfigs = new ArrayList<TransportConfiguration>();
+ List<TransportConfiguration> connectorConfigs = new ArrayList<>();
connectorConfigs.add(new TransportConfiguration(NettyConnectorFactory.class.getName()));
serverManager.createConnectionFactory("ManualReconnectionToSingleServerTest", false, JMSFactoryType.CF, registerConnectors(server, connectorConfigs), null, 1000, ActiveMQClient.DEFAULT_CONNECTION_TTL, callTimeout, ActiveMQClient.DEFAULT_CALL_FAILOVER_TIMEOUT, ActiveMQClient.DEFAULT_CACHE_LARGE_MESSAGE_CLIENT, ActiveMQClient.DEFAULT_MIN_LARGE_MESSAGE_SIZE, ActiveMQClient.DEFAULT_COMPRESS_LARGE_MESSAGES, ActiveMQClient.DEFAULT_CONSUMER_WINDOW_SIZE, ActiveMQClient.DEFAULT_CONSUMER_MAX_RATE, ActiveMQClient.DEFAULT_CONFIRMATION_WINDOW_SIZE, ActiveMQClient.DEFAULT_PRODUCER_WINDOW_SIZE, ActiveMQClient.DEFAULT_PRODUCER_MAX_RATE, false, false, false, ActiveMQClient.DEFAULT_AUTO_GROUP, false, ActiveMQClient.DEFAULT_CONNECTION_LOAD_BALANCING_POLICY_CLASS_NAME, ActiveMQClient.DEFAULT_ACK_BATCH_SIZE, ActiveMQClient.DEFAULT_ACK_BATCH_SIZE, ActiveMQClient.DEFAULT_USE_GLOBAL_POOLS, ActiveMQClient.DEFAULT_SCHEDULED_THREAD_POOL_MAX_SIZE, ActiveMQClient.DEFAULT_THREAD_POOL_MAX_SIZE, retryInterva
l, retryIntervalMultiplier, 1000, reconnectAttempts, ActiveMQClient.DEFAULT_FAILOVER_ON_INITIAL_CONNECTION, null, "/cf");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/ManualReconnectionToSingleServerTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/ManualReconnectionToSingleServerTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/ManualReconnectionToSingleServerTest.java
index a8a44e0..aff6e01 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/ManualReconnectionToSingleServerTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/ManualReconnectionToSingleServerTest.java
@@ -149,7 +149,7 @@ public class ManualReconnectionToSingleServerTest extends ActiveMQTestBase {
configuration.getQueueConfigurations().add(new JMSQueueConfigurationImpl().setName(QUEUE_NAME).setBindings(QUEUE_NAME));
- ArrayList<TransportConfiguration> configs = new ArrayList<TransportConfiguration>();
+ ArrayList<TransportConfiguration> configs = new ArrayList<>();
configs.add(new TransportConfiguration(NETTY_CONNECTOR_FACTORY));
ConnectionFactoryConfiguration cfConfig = new ConnectionFactoryConfigurationImpl().setName("cf").setConnectorNames(registerConnectors(server, configs)).setBindings("/cf").setRetryInterval(1000).setReconnectAttempts(-1);
configuration.getConnectionFactoryConfigurations().add(cfConfig);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/SimpleJNDIClientTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/SimpleJNDIClientTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/SimpleJNDIClientTest.java
index e0e74a4..c4df3f2 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/SimpleJNDIClientTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/SimpleJNDIClientTest.java
@@ -393,9 +393,9 @@ public class SimpleJNDIClientTest extends ActiveMQTestBase {
private void startServer() throws Exception {
liveTC = new TransportConfiguration(INVM_CONNECTOR_FACTORY);
- Map<String, TransportConfiguration> connectors = new HashMap<String, TransportConfiguration>();
+ Map<String, TransportConfiguration> connectors = new HashMap<>();
connectors.put(liveTC.getName(), liveTC);
- List<String> connectorNames = new ArrayList<String>();
+ List<String> connectorNames = new ArrayList<>();
connectorNames.add(liveTC.getName());
Map params = new HashMap();
@@ -411,7 +411,7 @@ public class SimpleJNDIClientTest extends ActiveMQTestBase {
BroadcastGroupConfiguration bcConfig1 = new BroadcastGroupConfiguration().setName(bcGroupName).setBroadcastPeriod(broadcastPeriod).setConnectorInfos(connectorNames).setEndpointFactory(new UDPBroadcastEndpointFactory().setGroupAddress(groupAddress).setGroupPort(groupPort).setLocalBindPort(localBindPort));
- List<BroadcastGroupConfiguration> bcConfigs1 = new ArrayList<BroadcastGroupConfiguration>();
+ List<BroadcastGroupConfiguration> bcConfigs1 = new ArrayList<>();
bcConfigs1.add(bcConfig1);
liveConf.setBroadcastGroupConfigurations(bcConfigs1);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/client/ReSendMessageTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/client/ReSendMessageTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/client/ReSendMessageTest.java
index d2a2b81..aad5d53 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/client/ReSendMessageTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/client/ReSendMessageTest.java
@@ -62,7 +62,7 @@ public class ReSendMessageTest extends JMSTestBase {
conn.start();
Session sess = conn.createSession(true, Session.SESSION_TRANSACTED);
- ArrayList<Message> msgs = new ArrayList<Message>();
+ ArrayList<Message> msgs = new ArrayList<>();
for (int i = 0; i < 10; i++) {
BytesMessage bm = sess.createBytesMessage();
@@ -96,7 +96,7 @@ public class ReSendMessageTest extends JMSTestBase {
conn.start();
Session sess = conn.createSession(true, Session.SESSION_TRANSACTED);
- ArrayList<Message> msgs = new ArrayList<Message>();
+ ArrayList<Message> msgs = new ArrayList<>();
for (int i = 0; i < 1; i++) {
MapMessage mm = sess.createMapMessage();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/client/SessionClosedOnRemotingConnectionFailureTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/client/SessionClosedOnRemotingConnectionFailureTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/client/SessionClosedOnRemotingConnectionFailureTest.java
index 515858d..4f664f1 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/client/SessionClosedOnRemotingConnectionFailureTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/client/SessionClosedOnRemotingConnectionFailureTest.java
@@ -59,7 +59,7 @@ public class SessionClosedOnRemotingConnectionFailureTest extends JMSTestBase {
@Test
public void testSessionClosedOnRemotingConnectionFailure() throws Exception {
- List<TransportConfiguration> connectorConfigs = new ArrayList<TransportConfiguration>();
+ List<TransportConfiguration> connectorConfigs = new ArrayList<>();
connectorConfigs.add(new TransportConfiguration(INVM_CONNECTOR_FACTORY));
jmsServer.createConnectionFactory("cffoo", false, JMSFactoryType.CF, registerConnectors(server, connectorConfigs), null, ActiveMQClient.DEFAULT_CLIENT_FAILURE_CHECK_PERIOD, ActiveMQClient.DEFAULT_CONNECTION_TTL, ActiveMQClient.DEFAULT_CALL_TIMEOUT, ActiveMQClient.DEFAULT_CALL_FAILOVER_TIMEOUT, ActiveMQClient.DEFAULT_CACHE_LARGE_MESSAGE_CLIENT, ActiveMQClient.DEFAULT_MIN_LARGE_MESSAGE_SIZE, ActiveMQClient.DEFAULT_COMPRESS_LARGE_MESSAGES, ActiveMQClient.DEFAULT_CONSUMER_WINDOW_SIZE, ActiveMQClient.DEFAULT_CONSUMER_MAX_RATE, ActiveMQClient.DEFAULT_CONFIRMATION_WINDOW_SIZE, ActiveMQClient.DEFAULT_PRODUCER_WINDOW_SIZE, ActiveMQClient.DEFAULT_PRODUCER_MAX_RATE, ActiveMQClient.DEFAULT_BLOCK_ON_ACKNOWLEDGE, ActiveMQClient.DEFAULT_BLOCK_ON_DURABLE_SEND, ActiveMQClient.DEFAULT_BLOCK_ON_NON_DURABLE_SEND, ActiveMQClient.DEFAULT_AUTO_GROUP, ActiveMQClient.DEFAULT_PRE_ACKNOWLEDGE, ActiveMQClient.DEFAULT_CONNECTION_LOAD_BALANCING_POLICY_CLASS_NAME, ActiveMQClient.DEFAULT_ACK_BATCH_SIZE, Acti
veMQClient.DEFAULT_ACK_BATCH_SIZE, ActiveMQClient.DEFAULT_USE_GLOBAL_POOLS, ActiveMQClient.DEFAULT_SCHEDULED_THREAD_POOL_MAX_SIZE, ActiveMQClient.DEFAULT_THREAD_POOL_MAX_SIZE, ActiveMQClient.DEFAULT_RETRY_INTERVAL, ActiveMQClient.DEFAULT_RETRY_INTERVAL_MULTIPLIER, ActiveMQClient.DEFAULT_MAX_RETRY_INTERVAL, 0, ActiveMQClient.DEFAULT_FAILOVER_ON_INITIAL_CONNECTION, null, "/cffoo");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/client/StoreConfigTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/client/StoreConfigTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/client/StoreConfigTest.java
index a6b85df..131cb0e 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/client/StoreConfigTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/client/StoreConfigTest.java
@@ -47,7 +47,7 @@ public class StoreConfigTest extends JMSTestBase {
server.getConfiguration().getConnectorConfigurations().put("np", new TransportConfiguration(INVM_CONNECTOR_FACTORY));
- List<String> transportConfigurations = new ArrayList<String>();
+ List<String> transportConfigurations = new ArrayList<>();
transportConfigurations.add("tst");
ConnectionFactoryConfigurationImpl factCFG = (ConnectionFactoryConfigurationImpl) new ConnectionFactoryConfigurationImpl().setName("tst").setConnectorNames(transportConfigurations);
@@ -111,7 +111,7 @@ public class StoreConfigTest extends JMSTestBase {
server.getConfiguration().getConnectorConfigurations().put("np", new TransportConfiguration(INVM_CONNECTOR_FACTORY));
- List<String> transportConfigurations = new ArrayList<String>();
+ List<String> transportConfigurations = new ArrayList<>();
transportConfigurations.add("tst");
ConnectionFactoryConfigurationImpl factCFG = (ConnectionFactoryConfigurationImpl) new ConnectionFactoryConfigurationImpl().setName("tst").setConnectorNames(transportConfigurations);
@@ -213,7 +213,7 @@ public class StoreConfigTest extends JMSTestBase {
// server.getConfiguration().getConnectorConfigurations().put("np", new TransportConfiguration(INVM_CONNECTOR_FACTORY));
- List<String> transportConfigurations = new ArrayList<String>();
+ List<String> transportConfigurations = new ArrayList<>();
transportConfigurations.add("tst");
ConnectionFactoryConfigurationImpl factCFG = (ConnectionFactoryConfigurationImpl) new ConnectionFactoryConfigurationImpl().setName("tst").setConnectorNames(transportConfigurations);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/cluster/JMSFailoverListenerTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/cluster/JMSFailoverListenerTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/cluster/JMSFailoverListenerTest.java
index d2139e9..dd64621 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/cluster/JMSFailoverListenerTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/cluster/JMSFailoverListenerTest.java
@@ -90,7 +90,7 @@ public class JMSFailoverListenerTest extends ActiveMQTestBase {
protected ActiveMQServer backupServer;
- protected Map<String, Object> backupParams = new HashMap<String, Object>();
+ protected Map<String, Object> backupParams = new HashMap<>();
private TransportConfiguration backuptc;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/cluster/JMSFailoverTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/cluster/JMSFailoverTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/cluster/JMSFailoverTest.java
index 2c1edb6..e6f9808 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/cluster/JMSFailoverTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/cluster/JMSFailoverTest.java
@@ -98,7 +98,7 @@ public class JMSFailoverTest extends ActiveMQTestBase {
protected ActiveMQServer backupServer;
- protected Map<String, Object> backupParams = new HashMap<String, Object>();
+ protected Map<String, Object> backupParams = new HashMap<>();
private TransportConfiguration backuptc;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/connection/CloseConnectionOnGCTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/connection/CloseConnectionOnGCTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/connection/CloseConnectionOnGCTest.java
index 5cc0baa..b6ef8c8 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/connection/CloseConnectionOnGCTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/connection/CloseConnectionOnGCTest.java
@@ -61,7 +61,7 @@ public class CloseConnectionOnGCTest extends JMSTestBase {
Connection conn = cf.createConnection();
- WeakReference<Connection> wr = new WeakReference<Connection>(conn);
+ WeakReference<Connection> wr = new WeakReference<>(conn);
Assert.assertEquals(1, server.getRemotingService().getConnections().size());
final CountDownLatch latch = new CountDownLatch(1);
@@ -87,9 +87,9 @@ public class CloseConnectionOnGCTest extends JMSTestBase {
Connection conn2 = cf.createConnection();
Connection conn3 = cf.createConnection();
- WeakReference<Connection> wr1 = new WeakReference<Connection>(conn1);
- WeakReference<Connection> wr2 = new WeakReference<Connection>(conn2);
- WeakReference<Connection> wr3 = new WeakReference<Connection>(conn3);
+ WeakReference<Connection> wr1 = new WeakReference<>(conn1);
+ WeakReference<Connection> wr2 = new WeakReference<>(conn2);
+ WeakReference<Connection> wr3 = new WeakReference<>(conn3);
Assert.assertEquals(3, server.getRemotingService().getConnections().size());
@@ -122,9 +122,9 @@ public class CloseConnectionOnGCTest extends JMSTestBase {
Connection conn2 = cf.createConnection();
Connection conn3 = cf.createConnection();
- WeakReference<Connection> wr1 = new WeakReference<Connection>(conn1);
- WeakReference<Connection> wr2 = new WeakReference<Connection>(conn2);
- WeakReference<Connection> wr3 = new WeakReference<Connection>(conn3);
+ WeakReference<Connection> wr1 = new WeakReference<>(conn1);
+ WeakReference<Connection> wr2 = new WeakReference<>(conn2);
+ WeakReference<Connection> wr3 = new WeakReference<>(conn3);
Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE);
Session sess2 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/connection/ConnectionFactorySerializationTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/connection/ConnectionFactorySerializationTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/connection/ConnectionFactorySerializationTest.java
index b800dd0..2098ee6 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/connection/ConnectionFactorySerializationTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/connection/ConnectionFactorySerializationTest.java
@@ -153,7 +153,7 @@ public class ConnectionFactorySerializationTest extends JMSTestBase {
private void createDiscoveryFactoryUDP() throws Exception {
// Deploy a connection factory with discovery
- List<String> bindings = new ArrayList<String>();
+ List<String> bindings = new ArrayList<>();
bindings.add("MyConnectionFactory");
final String groupAddress = "1.2.3.4";
final int port = 1234;
@@ -170,7 +170,7 @@ public class ConnectionFactorySerializationTest extends JMSTestBase {
private void createDiscoveryFactoryJGroupsFile() throws Exception {
// Deploy a connection factory with discovery
- List<String> bindings = new ArrayList<String>();
+ List<String> bindings = new ArrayList<>();
bindings.add("MyConnectionFactory");
JGroupsFileBroadcastEndpointFactory config = new JGroupsFileBroadcastEndpointFactory().setChannelName("myChannel").setFile("/META-INF/myfile.xml");
@@ -184,7 +184,7 @@ public class ConnectionFactorySerializationTest extends JMSTestBase {
private void createDiscoveryFactoryJGroupsProperties() throws Exception {
// Deploy a connection factory with discovery
- List<String> bindings = new ArrayList<String>();
+ List<String> bindings = new ArrayList<>();
bindings.add("MyConnectionFactory");
JGroupsPropertiesBroadcastEndpointFactory config = new JGroupsPropertiesBroadcastEndpointFactory().setChannelName("myChannel").setProperties("param=1,param2=2");
@@ -222,7 +222,7 @@ public class ConnectionFactorySerializationTest extends JMSTestBase {
jmsServer.getActiveMQServer().getConfiguration().getConnectorConfigurations().put(main2.getName(), main2);
- ArrayList<String> connectorNames = new ArrayList<String>();
+ ArrayList<String> connectorNames = new ArrayList<>();
connectorNames.add(main.getName());
connectorNames.add(main2.getName());
ConnectionFactoryConfiguration configuration = new ConnectionFactoryConfigurationImpl().setName("MyConnectionFactory").setHA(b).setConnectorNames(connectorNames).setClientID("clientID").setClientFailureCheckPeriod(-1).setConnectionTTL(-2).setFactoryType(JMSFactoryType.CF).setCallTimeout(-3).setCallFailoverTimeout(-4).setCacheLargeMessagesClient(b).setMinLargeMessageSize(-5).setConsumerWindowSize(-6).setConsumerMaxRate(-7).setConfirmationWindowSize(-8).setProducerWindowSize(-9).setProducerMaxRate(-10).setBlockOnAcknowledge(b).setBlockOnDurableSend(b).setBlockOnNonDurableSend(b).setAutoGroup(b).setPreAcknowledge(b).setLoadBalancingPolicyClassName("foobar").setTransactionBatchSize(-11).setDupsOKBatchSize(-12).setUseGlobalPools(b).setScheduledThreadPoolMaxSize(-13).setThreadPoolMaxSize(-14).setRetryInterval(-15).setRetryIntervalMultiplier(-16).setMaxRetryInterval(-17).setReconnectAttempts(-18).setFailoverOnInitialConnection(b).setGroupID("groupID");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/connection/InvalidConnectorTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/connection/InvalidConnectorTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/connection/InvalidConnectorTest.java
index 46c2d76..d1b4588 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/connection/InvalidConnectorTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/connection/InvalidConnectorTest.java
@@ -34,10 +34,10 @@ public class InvalidConnectorTest extends JMSTestBase {
@Test
public void testInvalidConnector() throws Exception {
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put(TransportConstants.HOST_PROP_NAME, "0.0.0.0");
- List<TransportConfiguration> connectorConfigs = new ArrayList<TransportConfiguration>();
+ List<TransportConfiguration> connectorConfigs = new ArrayList<>();
connectorConfigs.add(new TransportConfiguration(NETTY_CONNECTOR_FACTORY, params));
int retryInterval = 1000;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/jms2client/JmsProducerCompletionListenerTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/jms2client/JmsProducerCompletionListenerTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/jms2client/JmsProducerCompletionListenerTest.java
index 5d11e45..debcb03 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/jms2client/JmsProducerCompletionListenerTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/jms2client/JmsProducerCompletionListenerTest.java
@@ -113,7 +113,7 @@ public class JmsProducerCompletionListenerTest extends JMSTestBase {
@Test
public void testInvalidCallFromListener() throws InterruptedException {
JMSConsumer consumer = context.createConsumer(queue);
- List<InvalidCompletionListener> listeners = new ArrayList<InvalidCompletionListener>();
+ List<InvalidCompletionListener> listeners = new ArrayList<>();
for (int i = 0; i < 3; i++) {
InvalidCompletionListener cl = new InvalidCompletionListener(context, i);
listeners.add(cl);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/server/JMSServerStartStopTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/server/JMSServerStartStopTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/server/JMSServerStartStopTest.java
index f8b3b80..c18b431 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/server/JMSServerStartStopTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/server/JMSServerStartStopTest.java
@@ -54,7 +54,7 @@ public class JMSServerStartStopTest extends ActiveMQTestBase {
private Connection conn;
private ActiveMQConnectionFactory jbcf;
- private final Set<ActiveMQConnectionFactory> connectionFactories = new HashSet<ActiveMQConnectionFactory>();
+ private final Set<ActiveMQConnectionFactory> connectionFactories = new HashSet<>();
@Override
@Before
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/server/config/JMSConfigurationTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/server/config/JMSConfigurationTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/server/config/JMSConfigurationTest.java
index bb659c6..03e64e6 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/server/config/JMSConfigurationTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/server/config/JMSConfigurationTest.java
@@ -54,7 +54,7 @@ public class JMSConfigurationTest extends ActiveMQTestBase {
JMSConfiguration jmsConfiguration = new JMSConfigurationImpl();
TransportConfiguration connectorConfig = new TransportConfiguration(InVMConnectorFactory.class.getName());
- List<TransportConfiguration> transportConfigs = new ArrayList<TransportConfiguration>();
+ List<TransportConfiguration> transportConfigs = new ArrayList<>();
transportConfigs.add(connectorConfig);
ConnectionFactoryConfiguration cfConfig = new ConnectionFactoryConfigurationImpl().setName(RandomUtil.randomString()).setConnectorNames(registerConnectors(coreServer, transportConfigs)).setBindings("/cf/binding1", "/cf/binding2");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/server/management/ConnectionFactoryControlTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/server/management/ConnectionFactoryControlTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/server/management/ConnectionFactoryControlTest.java
index 4873c92..7436ce1 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/server/management/ConnectionFactoryControlTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/server/management/ConnectionFactoryControlTest.java
@@ -95,7 +95,7 @@ public class ConnectionFactoryControlTest extends ManagementTestBase {
JMSUtil.JMXListener listener = new JMSUtil.JMXListener();
this.mbeanServer.addNotificationListener(ObjectNameBuilder.DEFAULT.getJMSServerObjectName(), listener, null, null);
- List<String> connectors = new ArrayList<String>();
+ List<String> connectors = new ArrayList<>();
connectors.add("invm");
this.jmsServerManager.createConnectionFactory("NewCF", false, JMSFactoryType.CF, connectors, "/NewConnectionFactory");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/server/management/JMSQueueControlTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/server/management/JMSQueueControlTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/server/management/JMSQueueControlTest.java
index ac9b28e..6cad5d4 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/server/management/JMSQueueControlTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/server/management/JMSQueueControlTest.java
@@ -1374,7 +1374,7 @@ public class JMSQueueControlTest extends ManagementTestBase {
JMSUtil.JMXListener listener = new JMSUtil.JMXListener();
this.mbeanServer.addNotificationListener(ObjectNameBuilder.DEFAULT.getJMSServerObjectName(), listener, null, null);
- List<String> connectors = new ArrayList<String>();
+ List<String> connectors = new ArrayList<>();
connectors.add("invm");
String testQueueName = "newQueue";
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/server/management/JMSServerControlTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/server/management/JMSServerControlTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/server/management/JMSServerControlTest.java
index bf06eb6..659d785 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/server/management/JMSServerControlTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/server/management/JMSServerControlTest.java
@@ -1027,11 +1027,11 @@ public class JMSServerControlTest extends ManagementTestBase {
class FakeJMSStorageManager implements JMSStorageManager {
- Map<String, PersistedDestination> destinationMap = new HashMap<String, PersistedDestination>();
+ Map<String, PersistedDestination> destinationMap = new HashMap<>();
- Map<String, PersistedConnectionFactory> connectionFactoryMap = new HashMap<String, PersistedConnectionFactory>();
+ Map<String, PersistedConnectionFactory> connectionFactoryMap = new HashMap<>();
- ConcurrentHashMap<String, List<String>> persistedJNDIMap = new ConcurrentHashMap<String, List<String>>();
+ ConcurrentHashMap<String, List<String>> persistedJNDIMap = new ConcurrentHashMap<>();
JMSStorageManager delegate;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/server/management/TopicControlTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/server/management/TopicControlTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/server/management/TopicControlTest.java
index f46578e..11d2b43 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/server/management/TopicControlTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/server/management/TopicControlTest.java
@@ -516,7 +516,7 @@ public class TopicControlTest extends ManagementTestBase {
JMSUtil.JMXListener listener = new JMSUtil.JMXListener();
this.mbeanServer.addNotificationListener(ObjectNameBuilder.DEFAULT.getJMSServerObjectName(), listener, null, null);
- List<String> connectors = new ArrayList<String>();
+ List<String> connectors = new ArrayList<>();
connectors.add("invm");
String testTopicName = "newTopic";
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/journal/NIOJournalCompactTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/journal/NIOJournalCompactTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/journal/NIOJournalCompactTest.java
index 99679e0..b91b89f 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/journal/NIOJournalCompactTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/journal/NIOJournalCompactTest.java
@@ -67,31 +67,31 @@ public class NIOJournalCompactTest extends JournalImplTestBase {
@Test
public void testControlFile() throws Exception {
- ArrayList<JournalFile> dataFiles = new ArrayList<JournalFile>();
+ ArrayList<JournalFile> dataFiles = new ArrayList<>();
for (int i = 0; i < 5; i++) {
SequentialFile file = fileFactory.createSequentialFile("file-" + i + ".tst");
dataFiles.add(new JournalFileImpl(file, 0, JournalImpl.FORMAT_VERSION));
}
- ArrayList<JournalFile> newFiles = new ArrayList<JournalFile>();
+ ArrayList<JournalFile> newFiles = new ArrayList<>();
for (int i = 0; i < 3; i++) {
SequentialFile file = fileFactory.createSequentialFile("file-" + i + ".tst.new");
newFiles.add(new JournalFileImpl(file, 0, JournalImpl.FORMAT_VERSION));
}
- ArrayList<Pair<String, String>> renames = new ArrayList<Pair<String, String>>();
- renames.add(new Pair<String, String>("a", "b"));
- renames.add(new Pair<String, String>("c", "d"));
+ ArrayList<Pair<String, String>> renames = new ArrayList<>();
+ renames.add(new Pair<>("a", "b"));
+ renames.add(new Pair<>("c", "d"));
AbstractJournalUpdateTask.writeControlFile(fileFactory, dataFiles, newFiles, renames);
- ArrayList<String> strDataFiles = new ArrayList<String>();
+ ArrayList<String> strDataFiles = new ArrayList<>();
- ArrayList<String> strNewFiles = new ArrayList<String>();
+ ArrayList<String> strNewFiles = new ArrayList<>();
- ArrayList<Pair<String, String>> renamesRead = new ArrayList<Pair<String, String>>();
+ ArrayList<Pair<String, String>> renamesRead = new ArrayList<>();
Assert.assertNotNull(JournalCompactor.readControlFile(fileFactory, strDataFiles, strNewFiles, renamesRead));
@@ -234,9 +234,9 @@ public class NIOJournalCompactTest extends JournalImplTestBase {
journal.stop();
- List<RecordInfo> records1 = new ArrayList<RecordInfo>();
+ List<RecordInfo> records1 = new ArrayList<>();
- List<PreparedTransactionInfo> preparedRecords = new ArrayList<PreparedTransactionInfo>();
+ List<PreparedTransactionInfo> preparedRecords = new ArrayList<>();
journal.start();
@@ -480,9 +480,9 @@ public class NIOJournalCompactTest extends JournalImplTestBase {
setup(2, 60 * 1024, false);
- ArrayList<Long> liveIDs = new ArrayList<Long>();
+ ArrayList<Long> liveIDs = new ArrayList<>();
- ArrayList<Pair<Long, Long>> transactedRecords = new ArrayList<Pair<Long, Long>>();
+ ArrayList<Pair<Long, Long>> transactedRecords = new ArrayList<>();
final CountDownLatch latchDone = new CountDownLatch(1);
final CountDownLatch latchWait = new CountDownLatch(1);
@@ -566,7 +566,7 @@ public class NIOJournalCompactTest extends JournalImplTestBase {
if (preXA) {
prepare(transactionID, new SimpleEncoding(10, (byte) 0));
}
- transactedRecords.add(new Pair<Long, Long>(transactionID++, recordID));
+ transactedRecords.add(new Pair<>(transactionID++, recordID));
}
}
@@ -1090,7 +1090,7 @@ public class NIOJournalCompactTest extends JournalImplTestBase {
// add and remove some data to force reclaiming
{
- ArrayList<Long> ids = new ArrayList<Long>();
+ ArrayList<Long> ids = new ArrayList<>();
for (int i = 0; i < NUMBER_OF_RECORDS; i++) {
long id = idGenerator.generateID();
ids.add(id);
@@ -1165,9 +1165,9 @@ public class NIOJournalCompactTest extends JournalImplTestBase {
startJournal();
loadAndCheck();
- ArrayList<Long> listToDelete = new ArrayList<Long>();
+ ArrayList<Long> listToDelete = new ArrayList<>();
- ArrayList<Integer> expectedSizes = new ArrayList<Integer>();
+ ArrayList<Integer> expectedSizes = new ArrayList<>();
for (int i = 0; i < 10; i++) {
long id = idGenerator.generateID();
@@ -1241,7 +1241,7 @@ public class NIOJournalCompactTest extends JournalImplTestBase {
journal.forceMoveNextFile();
- ArrayList<Long> listToDelete = new ArrayList<Long>();
+ ArrayList<Long> listToDelete = new ArrayList<>();
for (int i = 0; i < 10; i++) {
if (i == 5) {
commit(tx);
@@ -1287,7 +1287,7 @@ public class NIOJournalCompactTest extends JournalImplTestBase {
journal.forceMoveNextFile();
- ArrayList<Long> listToDelete = new ArrayList<Long>();
+ ArrayList<Long> listToDelete = new ArrayList<>();
for (int i = 0; i < 10; i++) {
long id = idGenerator.generateID();
listToDelete.add(id);
@@ -1330,7 +1330,7 @@ public class NIOJournalCompactTest extends JournalImplTestBase {
journal.forceMoveNextFile();
- ArrayList<Long> listToDelete = new ArrayList<Long>();
+ ArrayList<Long> listToDelete = new ArrayList<>();
for (int i = 0; i < 10; i++) {
long id = idGenerator.generateID();
listToDelete.add(id);
@@ -1380,7 +1380,7 @@ public class NIOJournalCompactTest extends JournalImplTestBase {
journal.forceMoveNextFile();
- ArrayList<Long> listToDelete = new ArrayList<Long>();
+ ArrayList<Long> listToDelete = new ArrayList<>();
for (int i = 0; i < 10; i++) {
long id = idGenerator.generateID();
listToDelete.add(id);
@@ -1436,7 +1436,7 @@ public class NIOJournalCompactTest extends JournalImplTestBase {
journal.forceMoveNextFile();
- ArrayList<Long> listToDelete = new ArrayList<Long>();
+ ArrayList<Long> listToDelete = new ArrayList<>();
for (int i = 0; i < 10; i++) {
long id = idGenerator.generateID();
listToDelete.add(id);
@@ -1545,9 +1545,9 @@ public class NIOJournalCompactTest extends JournalImplTestBase {
startJournal();
loadAndCheck();
- ArrayList<Long> listToDelete = new ArrayList<Long>();
+ ArrayList<Long> listToDelete = new ArrayList<>();
- ArrayList<Integer> expectedSizes = new ArrayList<Integer>();
+ ArrayList<Integer> expectedSizes = new ArrayList<>();
for (int i = 0; i < 10; i++) {
long tx = idGenerator.generateID();
@@ -1639,7 +1639,7 @@ public class NIOJournalCompactTest extends JournalImplTestBase {
storage.loadInternalOnly();
((JournalImpl) storage.getMessageJournal()).setAutoReclaim(false);
- final LinkedList<Long> survivingMsgs = new LinkedList<Long>();
+ final LinkedList<Long> survivingMsgs = new LinkedList<>();
Runnable producerRunnable = new Runnable() {
@Override
[09/32] activemq-artemis git commit: Remove redundant type arguments
Posted by cl...@apache.org.
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/AddressControlTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/AddressControlTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/AddressControlTest.java
index 0983ffa..284d61d 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/AddressControlTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/AddressControlTest.java
@@ -125,7 +125,7 @@ public class AddressControlTest extends ManagementTestBase {
Object[] roles = addressControl.getRoles();
Assert.assertEquals(0, roles.length);
- Set<Role> newRoles = new HashSet<Role>();
+ Set<Role> newRoles = new HashSet<>();
newRoles.add(role);
server.getSecurityRepository().addMatch(address.toString(), newRoles);
@@ -158,7 +158,7 @@ public class AddressControlTest extends ManagementTestBase {
RoleInfo[] roles = RoleInfo.from(jsonString);
Assert.assertEquals(0, roles.length);
- Set<Role> newRoles = new HashSet<Role>();
+ Set<Role> newRoles = new HashSet<>();
newRoles.add(role);
server.getSecurityRepository().addMatch(address.toString(), newRoles);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/AddressControlUsingCoreTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/AddressControlUsingCoreTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/AddressControlUsingCoreTest.java
index 3b415f0..57181bf 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/AddressControlUsingCoreTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/AddressControlUsingCoreTest.java
@@ -132,7 +132,7 @@ public class AddressControlUsingCoreTest extends ManagementTestBase {
}
Assert.assertEquals(0, roles.length);
- Set<Role> newRoles = new HashSet<Role>();
+ Set<Role> newRoles = new HashSet<>();
newRoles.add(role);
server.getSecurityRepository().addMatch(address.toString(), newRoles);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/BridgeControlTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/BridgeControlTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/BridgeControlTest.java
index 43d7048..d1eb9ea 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/BridgeControlTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/BridgeControlTest.java
@@ -117,7 +117,7 @@ public class BridgeControlTest extends ManagementTestBase {
public void setUp() throws Exception {
super.setUp();
- Map<String, Object> acceptorParams = new HashMap<String, Object>();
+ Map<String, Object> acceptorParams = new HashMap<>();
acceptorParams.put(TransportConstants.SERVER_ID_PROP_NAME, 1);
TransportConfiguration acceptorConfig = new TransportConfiguration(InVMAcceptorFactory.class.getName(), acceptorParams, RandomUtil.randomString());
@@ -125,7 +125,7 @@ public class BridgeControlTest extends ManagementTestBase {
CoreQueueConfiguration sourceQueueConfig = new CoreQueueConfiguration().setAddress(RandomUtil.randomString()).setName(RandomUtil.randomString()).setDurable(false);
CoreQueueConfiguration targetQueueConfig = new CoreQueueConfiguration().setAddress(RandomUtil.randomString()).setName(RandomUtil.randomString()).setDurable(false);
- List<String> connectors = new ArrayList<String>();
+ List<String> connectors = new ArrayList<>();
connectors.add(connectorConfig.getName());
Configuration conf_1 = createBasicConfig().addAcceptorConfiguration(acceptorConfig).addQueueConfiguration(targetQueueConfig);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/BridgeControlUsingCoreTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/BridgeControlUsingCoreTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/BridgeControlUsingCoreTest.java
index 025b1e9..e917e0a 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/BridgeControlUsingCoreTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/BridgeControlUsingCoreTest.java
@@ -104,7 +104,7 @@ public class BridgeControlUsingCoreTest extends ManagementTestBase {
public void setUp() throws Exception {
super.setUp();
- Map<String, Object> acceptorParams = new HashMap<String, Object>();
+ Map<String, Object> acceptorParams = new HashMap<>();
acceptorParams.put(TransportConstants.SERVER_ID_PROP_NAME, 1);
TransportConfiguration acceptorConfig = new TransportConfiguration(InVMAcceptorFactory.class.getName(), acceptorParams, RandomUtil.randomString());
@@ -112,7 +112,7 @@ public class BridgeControlUsingCoreTest extends ManagementTestBase {
CoreQueueConfiguration sourceQueueConfig = new CoreQueueConfiguration().setAddress(RandomUtil.randomString()).setName(RandomUtil.randomString()).setDurable(false);
CoreQueueConfiguration targetQueueConfig = new CoreQueueConfiguration().setAddress(RandomUtil.randomString()).setName(RandomUtil.randomString()).setDurable(false);
- List<String> connectors = new ArrayList<String>();
+ List<String> connectors = new ArrayList<>();
connectors.add(connectorConfig.getName());
bridgeConfig = new BridgeConfiguration().setName(RandomUtil.randomString()).setQueueName(sourceQueueConfig.getName()).setForwardingAddress(targetQueueConfig.getAddress()).setRetryInterval(RandomUtil.randomPositiveLong()).setRetryIntervalMultiplier(RandomUtil.randomDouble()).setInitialConnectAttempts(RandomUtil.randomPositiveInt()).setReconnectAttempts(RandomUtil.randomPositiveInt()).setReconnectAttemptsOnSameNode(RandomUtil.randomPositiveInt()).setUseDuplicateDetection(RandomUtil.randomBoolean()).setConfirmationWindowSize(RandomUtil.randomPositiveInt()).setStaticConnectors(connectors);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/BroadcastGroupControlTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/BroadcastGroupControlTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/BroadcastGroupControlTest.java
index bc1fb65..e6759eb 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/BroadcastGroupControlTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/BroadcastGroupControlTest.java
@@ -83,7 +83,7 @@ public class BroadcastGroupControlTest extends ManagementTestBase {
super.setUp();
TransportConfiguration connectorConfiguration = new TransportConfiguration(NETTY_CONNECTOR_FACTORY);
- List<String> connectorInfos = new ArrayList<String>();
+ List<String> connectorInfos = new ArrayList<>();
connectorInfos.add(connectorConfiguration.getName());
broadcastGroupConfig = new BroadcastGroupConfiguration().setName(RandomUtil.randomString()).setBroadcastPeriod(RandomUtil.randomPositiveInt()).setConnectorInfos(connectorInfos).setEndpointFactory(new UDPBroadcastEndpointFactory().setGroupAddress("231.7.7.7").setGroupPort(1199).setLocalBindPort(1198));
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ClusterConnectionControl2Test.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ClusterConnectionControl2Test.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ClusterConnectionControl2Test.java
index 10027b0..12fc1ab 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ClusterConnectionControl2Test.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ClusterConnectionControl2Test.java
@@ -103,7 +103,7 @@ public class ClusterConnectionControl2Test extends ManagementTestBase {
String groupAddress = "231.7.7.7";
int groupPort = 9876;
- Map<String, Object> acceptorParams_1 = new HashMap<String, Object>();
+ Map<String, Object> acceptorParams_1 = new HashMap<>();
acceptorParams_1.put(TransportConstants.PORT_PROP_NAME, port_1);
TransportConfiguration acceptorConfig_0 = new TransportConfiguration(ActiveMQTestBase.NETTY_ACCEPTOR_FACTORY);
@@ -113,7 +113,7 @@ public class ClusterConnectionControl2Test extends ManagementTestBase {
TransportConfiguration connectorConfig_0 = new TransportConfiguration(ActiveMQTestBase.NETTY_CONNECTOR_FACTORY);
CoreQueueConfiguration queueConfig = new CoreQueueConfiguration().setAddress(RandomUtil.randomString()).setName(RandomUtil.randomString()).setDurable(false);
- List<String> connectorInfos = new ArrayList<String>();
+ List<String> connectorInfos = new ArrayList<>();
connectorInfos.add("netty");
BroadcastGroupConfiguration broadcastGroupConfig = new BroadcastGroupConfiguration().setName(discoveryName).setBroadcastPeriod(250).setConnectorInfos(connectorInfos).setEndpointFactory(new UDPBroadcastEndpointFactory().setGroupAddress(groupAddress).setGroupPort(groupPort));
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ClusterConnectionControlTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ClusterConnectionControlTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ClusterConnectionControlTest.java
index 1fb9c43..d32b054 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ClusterConnectionControlTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ClusterConnectionControlTest.java
@@ -187,14 +187,14 @@ public class ClusterConnectionControlTest extends ManagementTestBase {
public void setUp() throws Exception {
super.setUp();
- Map<String, Object> acceptorParams = new HashMap<String, Object>();
+ Map<String, Object> acceptorParams = new HashMap<>();
acceptorParams.put(TransportConstants.SERVER_ID_PROP_NAME, 1);
TransportConfiguration acceptorConfig = new TransportConfiguration(InVMAcceptorFactory.class.getName(), acceptorParams, RandomUtil.randomString());
TransportConfiguration connectorConfig = new TransportConfiguration(InVMConnectorFactory.class.getName(), acceptorParams, RandomUtil.randomString());
CoreQueueConfiguration queueConfig = new CoreQueueConfiguration().setAddress(RandomUtil.randomString()).setName(RandomUtil.randomString()).setDurable(false);
- List<String> connectors = new ArrayList<String>();
+ List<String> connectors = new ArrayList<>();
connectors.add(connectorConfig.getName());
String discoveryGroupName = RandomUtil.randomString();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/JMXDomainTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/JMXDomainTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/JMXDomainTest.java
index 86a9d02..2a357b0 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/JMXDomainTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/JMXDomainTest.java
@@ -40,7 +40,7 @@ public class JMXDomainTest extends ManagementTestBase {
String jmxDomain_1 = ActiveMQDefaultConfiguration.getDefaultJmxDomain() + ".1";
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put(TransportConstants.SERVER_ID_PROP_NAME, 1);
Configuration config_1 = createBasicConfig().addAcceptorConfiguration(new TransportConfiguration(InVMAcceptorFactory.class.getName(), params)).setJMXDomain(jmxDomain_1);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ManagementActivationTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ManagementActivationTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ManagementActivationTest.java
index 5a538ff..480f536 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ManagementActivationTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ManagementActivationTest.java
@@ -69,7 +69,7 @@ public class ManagementActivationTest extends FailoverTestBase {
@Test
public void testCreateConnectionFactory() throws Exception {
- List<String> connectorNames = new ArrayList<String>();
+ List<String> connectorNames = new ArrayList<>();
connectorNames.add(connectorName);
ConnectionFactoryConfiguration config = new ConnectionFactoryConfigurationImpl().setName("test").setConnectorNames(connectorNames).setBindings("/myConnectionFactory");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ManagementHelperTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ManagementHelperTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ManagementHelperTest.java
index 16839e0..d6bd6a4 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ManagementHelperTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ManagementHelperTest.java
@@ -74,7 +74,7 @@ public class ManagementHelperTest extends Assert {
double d = RandomUtil.randomDouble();
boolean b = RandomUtil.randomBoolean();
long l = RandomUtil.randomLong();
- Map<String, Object> map = new HashMap<String, Object>();
+ Map<String, Object> map = new HashMap<>();
String key1 = RandomUtil.randomString();
int value1 = RandomUtil.randomInt();
String key2 = RandomUtil.randomString();
@@ -91,7 +91,7 @@ public class ManagementHelperTest extends Assert {
map.put(key4, value4);
map.put(key5, value5);
- Map<String, Object> map2 = new HashMap<String, Object>();
+ Map<String, Object> map2 = new HashMap<>();
String key2_1 = RandomUtil.randomString();
int value2_1 = RandomUtil.randomInt();
String key2_2 = RandomUtil.randomString();
@@ -108,7 +108,7 @@ public class ManagementHelperTest extends Assert {
map2.put(key2_4, value2_4);
map2.put(key2_5, value2_5);
- Map<String, Object> map3 = new HashMap<String, Object>();
+ Map<String, Object> map3 = new HashMap<>();
String key3_1 = RandomUtil.randomString();
int value3_1 = RandomUtil.randomInt();
String key3_2 = RandomUtil.randomString();
@@ -185,7 +185,7 @@ public class ManagementHelperTest extends Assert {
String resource = RandomUtil.randomString();
String operationName = RandomUtil.randomString();
- Map<String, Object> map = new HashMap<String, Object>();
+ Map<String, Object> map = new HashMap<>();
String key1 = RandomUtil.randomString();
String[] val1 = new String[]{"a", "b", "c"};
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ManagementWithStompTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ManagementWithStompTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ManagementWithStompTest.java
index 1816d00..96b6dc3 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ManagementWithStompTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ManagementWithStompTest.java
@@ -160,7 +160,7 @@ public class ManagementWithStompTest extends ManagementTestBase {
public void setUp() throws Exception {
super.setUp();
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put(TransportConstants.PROTOCOLS_PROP_NAME, StompProtocolManagerFactory.STOMP_PROTOCOL_NAME);
params.put(TransportConstants.PORT_PROP_NAME, TransportConstants.DEFAULT_STOMP_PORT);
TransportConfiguration stompTransport = new TransportConfiguration(NettyAcceptorFactory.class.getName(), params);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/SecurityNotificationTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/SecurityNotificationTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/SecurityNotificationTest.java
index 98ee6f7..b3e20c9 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/SecurityNotificationTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/SecurityNotificationTest.java
@@ -90,7 +90,7 @@ public class SecurityNotificationTest extends ActiveMQTestBase {
// guest can not create queue
Role role = new Role("roleCanNotCreateQueue", true, true, false, true, false, true, true);
- Set<Role> roles = new HashSet<Role>();
+ Set<Role> roles = new HashSet<>();
roles.add(role);
server.getSecurityRepository().addMatch(address.toString(), roles);
ActiveMQJAASSecurityManager securityManager = (ActiveMQJAASSecurityManager) server.getSecurityManager();
@@ -139,7 +139,7 @@ public class SecurityNotificationTest extends ActiveMQTestBase {
securityManager.getConfiguration().setDefaultUser("guest");
Role role = new Role("notif", true, true, true, true, true, true, true);
- Set<Role> roles = new HashSet<Role>();
+ Set<Role> roles = new HashSet<>();
roles.add(role);
server.getSecurityRepository().addMatch(ActiveMQDefaultConfiguration.getDefaultManagementNotificationAddress().toString(), roles);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/mqtt/imported/MQTTTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/mqtt/imported/MQTTTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/mqtt/imported/MQTTTest.java
index 6627014..f15af10 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/mqtt/imported/MQTTTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/mqtt/imported/MQTTTest.java
@@ -293,7 +293,7 @@ public class MQTTTest extends MQTTTestSupport {
String RETAINED = "retained";
publisher.publish("foo", RETAINED.getBytes(), AT_LEAST_ONCE, true);
- List<String> messages = new ArrayList<String>();
+ List<String> messages = new ArrayList<>();
for (int i = 0; i < 10; i++) {
messages.add("TEST MESSAGE:" + i);
}
@@ -629,7 +629,7 @@ public class MQTTTest extends MQTTTestSupport {
mqtt.setKeepAlive((short) 2);
mqtt.setCleanSession(true);
- final List<PUBLISH> publishList = new ArrayList<PUBLISH>();
+ final List<PUBLISH> publishList = new ArrayList<>();
mqtt.setTracer(new Tracer() {
@Override
public void onReceive(MQTTFrame frame) {
@@ -715,7 +715,7 @@ public class MQTTTest extends MQTTTestSupport {
final MQTT mqtt = createMQTTConnection("resend", false);
mqtt.setKeepAlive((short) 5);
- final List<PUBLISH> publishList = new ArrayList<PUBLISH>();
+ final List<PUBLISH> publishList = new ArrayList<>();
mqtt.setTracer(new Tracer() {
@Override
public void onReceive(MQTTFrame frame) {
@@ -785,7 +785,7 @@ public class MQTTTest extends MQTTTestSupport {
final MQTT mqtt = createMQTTConnection("nonclean-packetid", false);
mqtt.setKeepAlive((short) 15);
- final Map<Short, PUBLISH> publishMap = new ConcurrentHashMap<Short, PUBLISH>();
+ final Map<Short, PUBLISH> publishMap = new ConcurrentHashMap<>();
mqtt.setTracer(new Tracer() {
@Override
public void onReceive(MQTTFrame frame) {
@@ -860,7 +860,7 @@ public class MQTTTest extends MQTTTestSupport {
// If there is a good reason for this we should follow ActiveMQ.
public void testPacketIdGeneratorCleanSession() throws Exception {
final String[] cleanClientIds = new String[]{"", "clean-packetid", null};
- final Map<Short, PUBLISH> publishMap = new ConcurrentHashMap<Short, PUBLISH>();
+ final Map<Short, PUBLISH> publishMap = new ConcurrentHashMap<>();
MQTT[] mqtts = new MQTT[cleanClientIds.length];
for (int i = 0; i < cleanClientIds.length; i++) {
mqtts[i] = createMQTTConnection("", true);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/mqtt/imported/MQTTTestSupport.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/mqtt/imported/MQTTTestSupport.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/mqtt/imported/MQTTTestSupport.java
index 28cd8d3..2e37110 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/mqtt/imported/MQTTTestSupport.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/mqtt/imported/MQTTTestSupport.java
@@ -55,7 +55,7 @@ public class MQTTTestSupport extends ActiveMQTestBase {
protected int port = 1883;
protected ActiveMQConnectionFactory cf;
- protected LinkedList<Throwable> exceptions = new LinkedList<Throwable>();
+ protected LinkedList<Throwable> exceptions = new LinkedList<>();
protected boolean persistent;
protected String protocolConfig;
protected String protocolScheme;
@@ -134,7 +134,7 @@ public class MQTTTestSupport extends ActiveMQTestBase {
// MQTT transport connectors as needed, the port variable is always supposed to be
// assigned the primary MQTT connector's port.
- HashMap<String, Object> params = new HashMap<String, Object>();
+ HashMap<String, Object> params = new HashMap<>();
params.put(TransportConstants.PORT_PROP_NAME, "" + 5445);
params.put(TransportConstants.PROTOCOLS_PROP_NAME, "CORE");
TransportConfiguration transportConfiguration = new TransportConfiguration(NETTY_ACCEPTOR_FACTORY, params);
@@ -148,7 +148,7 @@ public class MQTTTestSupport extends ActiveMQTestBase {
// MQTT transport connectors as needed, the port variable is always supposed to be
// assigned the primary MQTT connector's port.
- HashMap<String, Object> params = new HashMap<String, Object>();
+ HashMap<String, Object> params = new HashMap<>();
params.put(TransportConstants.PORT_PROP_NAME, "" + port);
params.put(TransportConstants.PROTOCOLS_PROP_NAME, "MQTT");
TransportConfiguration transportConfiguration = new TransportConfiguration(NETTY_ACCEPTOR_FACTORY, params);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/mqtt/imported/PahoMQTTTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/mqtt/imported/PahoMQTTTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/mqtt/imported/PahoMQTTTest.java
index 73f52c0..bd912ff 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/mqtt/imported/PahoMQTTTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/mqtt/imported/PahoMQTTTest.java
@@ -60,7 +60,7 @@ public class PahoMQTTTest extends MQTTTestSupport {
client.connect();
client.subscribe("test");
- final AtomicReference<Throwable> asyncError = new AtomicReference<Throwable>();
+ final AtomicReference<Throwable> asyncError = new AtomicReference<>();
final CountDownLatch connectedDoneLatch = new CountDownLatch(CLIENTS);
final CountDownLatch disconnectDoneLatch = new CountDownLatch(CLIENTS);
final CountDownLatch sendBarrier = new CountDownLatch(1);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/mqtt/imported/util/ResourceLoadingSslContext.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/mqtt/imported/util/ResourceLoadingSslContext.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/mqtt/imported/util/ResourceLoadingSslContext.java
index 7312e62..91eef82 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/mqtt/imported/util/ResourceLoadingSslContext.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/mqtt/imported/util/ResourceLoadingSslContext.java
@@ -93,7 +93,7 @@ public class ResourceLoadingSslContext extends SslContext {
private Collection<TrustManager> createTrustManagers() throws Exception {
KeyStore ks = createTrustManagerKeyStore();
if (ks == null) {
- return new ArrayList<TrustManager>(0);
+ return new ArrayList<>(0);
}
TrustManagerFactory tmf = TrustManagerFactory.getInstance(trustStoreAlgorithm);
@@ -104,7 +104,7 @@ public class ResourceLoadingSslContext extends SslContext {
private Collection<KeyManager> createKeyManagers() throws Exception {
KeyStore ks = createKeyManagerKeyStore();
if (ks == null) {
- return new ArrayList<KeyManager>(0);
+ return new ArrayList<>(0);
}
KeyManagerFactory tmf = KeyManagerFactory.getInstance(keyStoreAlgorithm);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/BasicOpenWireTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/BasicOpenWireTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/BasicOpenWireTest.java
index 01dafe0..d2e3215 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/BasicOpenWireTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/BasicOpenWireTest.java
@@ -54,7 +54,7 @@ public class BasicOpenWireTest extends OpenWireTestBase {
protected String messageTextPrefix = "";
protected boolean topic = true;
- protected Map<String, SimpleString> testQueues = new HashMap<String, SimpleString>();
+ protected Map<String, SimpleString> testQueues = new HashMap<>();
@Override
@Before
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/OpenWireTestBase.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/OpenWireTestBase.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/OpenWireTestBase.java
index 675574e..275fad6 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/OpenWireTestBase.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/OpenWireTestBase.java
@@ -100,12 +100,12 @@ public class OpenWireTestBase extends ActiveMQTestBase {
Map<String, Set<Role>> settings = server.getConfiguration().getSecurityRoles();
if (settings == null) {
- settings = new HashMap<String, Set<Role>>();
+ settings = new HashMap<>();
server.getConfiguration().setSecurityRoles(settings);
}
Set<Role> anySet = settings.get("#");
if (anySet == null) {
- anySet = new HashSet<Role>();
+ anySet = new HashSet<>();
settings.put("#", anySet);
}
anySet.add(senderRole);
@@ -129,7 +129,7 @@ public class OpenWireTestBase extends ActiveMQTestBase {
}
protected void registerConnectionFactory() throws Exception {
- List<TransportConfiguration> connectorConfigs = new ArrayList<TransportConfiguration>();
+ List<TransportConfiguration> connectorConfigs = new ArrayList<>();
connectorConfigs.add(new TransportConfiguration(INVM_CONNECTOR_FACTORY));
createCF(connectorConfigs, "/cf");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JMSMessageTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JMSMessageTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JMSMessageTest.java
index 43cf62e..0d44282 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JMSMessageTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JMSMessageTest.java
@@ -263,7 +263,7 @@ public class JMSMessageTest extends BasicOpenWireTest {
private long expiration;
private int priority;
private String text;
- private final HashMap<String, Object> props = new HashMap<String, Object>();
+ private final HashMap<String, Object> props = new HashMap<>();
@Override
public String getJMSMessageID() throws JMSException {
@@ -430,7 +430,7 @@ public class JMSMessageTest extends BasicOpenWireTest {
@Override
public Enumeration<?> getPropertyNames() throws JMSException {
- return new Vector<String>(props.keySet()).elements();
+ return new Vector<>(props.keySet()).elements();
}
@Override
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsConnectionStartStopTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsConnectionStartStopTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsConnectionStartStopTest.java
index 3606200..c538aef 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsConnectionStartStopTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsConnectionStartStopTest.java
@@ -119,7 +119,7 @@ public class JmsConnectionStartStopTest extends BasicOpenWireTest {
@Test
public void testConcurrentSessionCreateWithStart() throws Exception {
ThreadPoolExecutor executor = new ThreadPoolExecutor(50, Integer.MAX_VALUE, 60L, TimeUnit.SECONDS, new SynchronousQueue<Runnable>());
- final Vector<Throwable> exceptions = new Vector<Throwable>();
+ final Vector<Throwable> exceptions = new Vector<>();
final AtomicInteger counter = new AtomicInteger(0);
final Random rand = new Random();
Runnable createSessionTask = new Runnable() {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsConsumerResetActiveListenerTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsConsumerResetActiveListenerTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsConsumerResetActiveListenerTest.java
index b50abb6..04a331e 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsConsumerResetActiveListenerTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsConsumerResetActiveListenerTest.java
@@ -53,7 +53,7 @@ public class JmsConsumerResetActiveListenerTest extends BasicOpenWireTest {
final CountDownLatch latch = new CountDownLatch(2);
final AtomicBoolean first = new AtomicBoolean(true);
- final Vector<Object> results = new Vector<Object>();
+ final Vector<Object> results = new Vector<>();
consumer.setMessageListener(new MessageListener() {
@Override
@@ -105,7 +105,7 @@ public class JmsConsumerResetActiveListenerTest extends BasicOpenWireTest {
final CountDownLatch latch = new CountDownLatch(2);
final AtomicBoolean first = new AtomicBoolean(true);
- final Vector<Object> results = new Vector<Object>();
+ final Vector<Object> results = new Vector<>();
consumer.setMessageListener(new MessageListener() {
@Override
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsTopicRequestReplyTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsTopicRequestReplyTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsTopicRequestReplyTest.java
index e31621d..5228d03 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsTopicRequestReplyTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsTopicRequestReplyTest.java
@@ -48,7 +48,7 @@ public class JmsTopicRequestReplyTest extends BasicOpenWireTest implements Messa
private MessageProducer replyProducer;
private Session serverSession;
private Destination requestDestination;
- private List<JMSException> failures = new Vector<JMSException>();
+ private List<JMSException> failures = new Vector<>();
private boolean dynamicallyCreateProducer;
private String clientSideClientID;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsTransactionTestSupport.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsTransactionTestSupport.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsTransactionTestSupport.java
index 21e0444..e2cd32d 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsTransactionTestSupport.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsTransactionTestSupport.java
@@ -53,8 +53,8 @@ public abstract class JmsTransactionTestSupport extends BasicOpenWireTest implem
protected int batchCount = 10;
protected int batchSize = 20;
- private List<Message> unackMessages = new ArrayList<Message>(MESSAGE_COUNT);
- private List<Message> ackMessages = new ArrayList<Message>(MESSAGE_COUNT);
+ private List<Message> unackMessages = new ArrayList<>(MESSAGE_COUNT);
+ private List<Message> ackMessages = new ArrayList<>(MESSAGE_COUNT);
private boolean resendPhase;
@Override
@@ -175,7 +175,7 @@ public abstract class JmsTransactionTestSupport extends BasicOpenWireTest implem
// receives the first message
beginTx();
- ArrayList<Message> messages = new ArrayList<Message>();
+ ArrayList<Message> messages = new ArrayList<>();
System.out.println("About to consume message 1");
Message message = consumer.receive(1000);
messages.add(message);
@@ -212,7 +212,7 @@ public abstract class JmsTransactionTestSupport extends BasicOpenWireTest implem
// receives the first message
beginTx();
- ArrayList<Message> messages = new ArrayList<Message>();
+ ArrayList<Message> messages = new ArrayList<>();
System.out.println("About to consume message 1");
Message message = consumer.receive(1000);
messages.add(message);
@@ -254,7 +254,7 @@ public abstract class JmsTransactionTestSupport extends BasicOpenWireTest implem
commitTx();
// receives the first message
- ArrayList<Message> messages = new ArrayList<Message>();
+ ArrayList<Message> messages = new ArrayList<>();
System.out.println("About to consume message 1");
beginTx();
Message message = consumer.receive(1000);
@@ -303,7 +303,7 @@ public abstract class JmsTransactionTestSupport extends BasicOpenWireTest implem
commitTx();
// receives the first message
- ArrayList<Message> messages = new ArrayList<Message>();
+ ArrayList<Message> messages = new ArrayList<>();
System.out.println("About to consume message 1");
beginTx();
Message message = consumer.receive(1000);
@@ -348,7 +348,7 @@ public abstract class JmsTransactionTestSupport extends BasicOpenWireTest implem
System.out.println("Sent 0: " + outbound[0]);
System.out.println("Sent 1: " + outbound[1]);
- ArrayList<Message> messages = new ArrayList<Message>();
+ ArrayList<Message> messages = new ArrayList<>();
beginTx();
Message message = consumer.receive(1000);
messages.add(message);
@@ -400,7 +400,7 @@ public abstract class JmsTransactionTestSupport extends BasicOpenWireTest implem
System.out.println("Sent 0: " + outbound[0]);
System.out.println("Sent 1: " + outbound[1]);
- ArrayList<Message> messages = new ArrayList<Message>();
+ ArrayList<Message> messages = new ArrayList<>();
beginTx();
TextMessage message = (TextMessage) consumer.receive(1000);
assertEquals(outbound[0], message);
@@ -551,7 +551,7 @@ public abstract class JmsTransactionTestSupport extends BasicOpenWireTest implem
@Test
public void testChangeMutableObjectInObjectMessageThenRollback() throws Exception {
- ArrayList<String> list = new ArrayList<String>();
+ ArrayList<String> list = new ArrayList<>();
list.add("First");
Message outbound = session.createObjectMessage(list);
outbound.setStringProperty("foo", "abc");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/MessageListenerRedeliveryTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/MessageListenerRedeliveryTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/MessageListenerRedeliveryTest.java
index d07ec1a..5606a6a 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/MessageListenerRedeliveryTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/MessageListenerRedeliveryTest.java
@@ -280,7 +280,7 @@ public class MessageListenerRedeliveryTest extends BasicOpenWireTest {
final CountDownLatch gotMessage = new CountDownLatch(2);
final AtomicInteger count = new AtomicInteger(0);
final int maxDeliveries = getRedeliveryPolicy().getMaximumRedeliveries();
- final ArrayList<String> received = new ArrayList<String>();
+ final ArrayList<String> received = new ArrayList<>();
consumer.setMessageListener(new MessageListener() {
@Override
public void onMessage(Message message) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/MultipleProducersPagingTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/MultipleProducersPagingTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/MultipleProducersPagingTest.java
index a57c781..0adcc2f 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/MultipleProducersPagingTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/MultipleProducersPagingTest.java
@@ -64,7 +64,7 @@ public class MultipleProducersPagingTest extends ActiveMQTestBase {
private AtomicLong msgReceived;
private AtomicLong msgSent;
- private final Set<Connection> connections = new HashSet<Connection>();
+ private final Set<Connection> connections = new HashSet<>();
private EmbeddedJMS jmsServer;
private ConnectionFactory cf;
private Queue queue;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/PagingSendTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/PagingSendTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/PagingSendTest.java
index db8a2ee..5f736fc 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/PagingSendTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/PagingSendTest.java
@@ -284,7 +284,7 @@ public class PagingSendTest extends ActiveMQTestBase {
public List<String> sendMessageBatch(int batchSize,
ClientSession session,
SimpleString queueAddr) throws ActiveMQException {
- List<String> messageIds = new ArrayList<String>();
+ List<String> messageIds = new ArrayList<>();
ClientProducer producer = session.createProducer(queueAddr);
for (int i = 0; i < batchSize; i++) {
Message message = session.createMessage(true);
@@ -308,7 +308,7 @@ public class PagingSendTest extends ActiveMQTestBase {
public void checkBatchMessagesAreNotPagedTwice(Queue queue) throws Exception {
LinkedListIterator<MessageReference> pageIterator = queue.totalIterator();
- Set<String> messageOrderSet = new HashSet<String>();
+ Set<String> messageOrderSet = new HashSet<>();
int duplicates = 0;
while (pageIterator.hasNext()) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/SpawnedServerSupport.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/SpawnedServerSupport.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/SpawnedServerSupport.java
index 68986de..cad965c 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/SpawnedServerSupport.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/SpawnedServerSupport.java
@@ -73,7 +73,7 @@ public class SpawnedServerSupport {
}
protected static final ClusterConnectionConfiguration setupClusterConn(String connectorName, String... connectors) {
- List<String> connectorList = new LinkedList<String>();
+ List<String> connectorList = new LinkedList<>();
for (String conn : connectors) {
connectorList.add(conn);
}
@@ -97,7 +97,7 @@ public class SpawnedServerSupport {
else {
className = NettyConnectorFactory.class.getName();
}
- Map<String, Object> serverParams = new HashMap<String, Object>();
+ Map<String, Object> serverParams = new HashMap<>();
serverParams.put(org.apache.activemq.artemis.core.remoting.impl.netty.TransportConstants.PORT_PROP_NAME, port);
return new TransportConfiguration(className, serverParams);
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/AddressSettingsConfigurationStorageTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/AddressSettingsConfigurationStorageTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/AddressSettingsConfigurationStorageTest.java
index a03c5a2..cca5ed4 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/AddressSettingsConfigurationStorageTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/AddressSettingsConfigurationStorageTest.java
@@ -37,7 +37,7 @@ public class AddressSettingsConfigurationStorageTest extends StorageManagerTestB
public void setUp() throws Exception {
super.setUp();
- mapExpectedAddresses = new HashMap<SimpleString, PersistedAddressSetting>();
+ mapExpectedAddresses = new HashMap<>();
}
protected void addAddress(JournalStorageManager journal1, String address, AddressSettings setting) throws Exception {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/DeleteMessagesOnStartupTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/DeleteMessagesOnStartupTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/DeleteMessagesOnStartupTest.java
index 718dccc..8b783e9 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/DeleteMessagesOnStartupTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/DeleteMessagesOnStartupTest.java
@@ -37,14 +37,14 @@ public class DeleteMessagesOnStartupTest extends StorageManagerTestBase {
volatile boolean deleteMessages = false;
- ArrayList<Long> deletedMessage = new ArrayList<Long>();
+ ArrayList<Long> deletedMessage = new ArrayList<>();
@Test
public void testDeleteMessagesOnStartup() throws Exception {
createStorage();
Queue theQueue = new FakeQueue(new SimpleString(""));
- HashMap<Long, Queue> queues = new HashMap<Long, Queue>();
+ HashMap<Long, Queue> queues = new HashMap<>();
queues.put(100L, theQueue);
ServerMessage msg = new ServerMessageImpl(1, 100);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/JMSConnectionFactoryConfigurationStorageTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/JMSConnectionFactoryConfigurationStorageTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/JMSConnectionFactoryConfigurationStorageTest.java
index 0bf1ec4..8989b27 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/JMSConnectionFactoryConfigurationStorageTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/JMSConnectionFactoryConfigurationStorageTest.java
@@ -41,7 +41,7 @@ public class JMSConnectionFactoryConfigurationStorageTest extends StorageManager
public void setUp() throws Exception {
super.setUp();
- mapExpectedCFs = new HashMap<String, PersistedConnectionFactory>();
+ mapExpectedCFs = new HashMap<>();
}
protected void addSetting(PersistedConnectionFactory setting) throws Exception {
@@ -54,7 +54,7 @@ public class JMSConnectionFactoryConfigurationStorageTest extends StorageManager
createJMSStorage();
- List<String> transportConfigs = new ArrayList<String>();
+ List<String> transportConfigs = new ArrayList<>();
for (int i = 0; i < 5; i++) {
transportConfigs.add("c1-" + i);
@@ -126,16 +126,16 @@ public class JMSConnectionFactoryConfigurationStorageTest extends StorageManager
str[i] = "str" + i;
}
- List<String> connectorConfigs = new ArrayList<String>();
- Map<String, Object> liveParams = new HashMap<String, Object>();
+ List<String> connectorConfigs = new ArrayList<>();
+ Map<String, Object> liveParams = new HashMap<>();
liveParams.put(TransportConstants.PORT_PROP_NAME, 5665);
- Map<String, Object> backupParams = new HashMap<String, Object>();
+ Map<String, Object> backupParams = new HashMap<>();
backupParams.put(TransportConstants.PORT_PROP_NAME, 5775);
- Map<String, Object> liveParams2 = new HashMap<String, Object>();
+ Map<String, Object> liveParams2 = new HashMap<>();
liveParams2.put(TransportConstants.PORT_PROP_NAME, 6665);
ConnectionFactoryConfiguration config = new ConnectionFactoryConfigurationImpl().setName("some-name").setConnectorNames(connectorConfigs).setBindings(str).setCallTimeout(RandomUtil.randomPositiveLong());
- List<Pair<String, String>> connectors = new ArrayList<Pair<String, String>>();
+ List<Pair<String, String>> connectors = new ArrayList<>();
connectors.add(new Pair<String, String>(RandomUtil.randomString(), null));
//config.setConnectorNames(connectors);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/JMSDynamicConfigTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/JMSDynamicConfigTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/JMSDynamicConfigTest.java
index 1a1430d..8d9dbfa 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/JMSDynamicConfigTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/JMSDynamicConfigTest.java
@@ -46,7 +46,7 @@ public class JMSDynamicConfigTest extends JMSTestBase {
@Test
public void testStart() throws Exception {
- ArrayList<String> connectors = new ArrayList<String>();
+ ArrayList<String> connectors = new ArrayList<>();
connectors.add("invm");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/RestartSMTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/RestartSMTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/RestartSMTest.java
index f5dea62..a60e05f 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/RestartSMTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/RestartSMTest.java
@@ -74,11 +74,11 @@ public class RestartSMTest extends ActiveMQTestBase {
journal.start();
- List<QueueBindingInfo> queueBindingInfos = new ArrayList<QueueBindingInfo>();
+ List<QueueBindingInfo> queueBindingInfos = new ArrayList<>();
journal.loadBindingJournal(queueBindingInfos, new ArrayList<GroupingInfo>());
- Map<Long, Queue> queues = new HashMap<Long, Queue>();
+ Map<Long, Queue> queues = new HashMap<>();
journal.loadMessageJournal(postOffice, null, null, null, null, null, null, new FakeJournalLoader());
@@ -88,11 +88,11 @@ public class RestartSMTest extends ActiveMQTestBase {
journal.start();
- queues = new HashMap<Long, Queue>();
+ queues = new HashMap<>();
journal.loadMessageJournal(postOffice, null, null, null, null, null, null, new FakeJournalLoader());
- queueBindingInfos = new ArrayList<QueueBindingInfo>();
+ queueBindingInfos = new ArrayList<>();
journal.loadBindingJournal(queueBindingInfos, new ArrayList<GroupingInfo>());
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/RolesConfigurationStorageTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/RolesConfigurationStorageTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/RolesConfigurationStorageTest.java
index 1ebf8ad..c0aaf86 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/RolesConfigurationStorageTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/RolesConfigurationStorageTest.java
@@ -36,7 +36,7 @@ public class RolesConfigurationStorageTest extends StorageManagerTestBase {
public void setUp() throws Exception {
super.setUp();
- mapExpectedSets = new HashMap<SimpleString, PersistedRoles>();
+ mapExpectedSets = new HashMap<>();
}
protected void addSetting(PersistedRoles setting) throws Exception {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/TransportConfigurationEncodingSupportTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/TransportConfigurationEncodingSupportTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/TransportConfigurationEncodingSupportTest.java
index 3ee521b..ec4b666 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/TransportConfigurationEncodingSupportTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/persistence/TransportConfigurationEncodingSupportTest.java
@@ -48,7 +48,7 @@ public class TransportConfigurationEncodingSupportTest extends Assert {
@Test
public void testTransportConfiguration() throws Exception {
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put(TransportConstants.PORT_PROP_NAME, 5665);
params.put(TransportConstants.HOST_PROP_NAME, RandomUtil.randomString());
TransportConfiguration config = new TransportConfiguration(NettyConnectorFactory.class.getName(), params);
@@ -72,18 +72,18 @@ public class TransportConfigurationEncodingSupportTest extends Assert {
@Test
public void testTransportConfigurations() throws Exception {
- List<Pair<TransportConfiguration, TransportConfiguration>> connectorConfigs = new ArrayList<Pair<TransportConfiguration, TransportConfiguration>>();
- Map<String, Object> liveParams = new HashMap<String, Object>();
+ List<Pair<TransportConfiguration, TransportConfiguration>> connectorConfigs = new ArrayList<>();
+ Map<String, Object> liveParams = new HashMap<>();
liveParams.put(TransportConstants.PORT_PROP_NAME, 5665);
TransportConfiguration live1 = new TransportConfiguration(NettyConnectorFactory.class.getName(), liveParams);
- Map<String, Object> backupParams = new HashMap<String, Object>();
+ Map<String, Object> backupParams = new HashMap<>();
backupParams.put(TransportConstants.PORT_PROP_NAME, 5775);
TransportConfiguration backup1 = new TransportConfiguration(NettyConnectorFactory.class.getName(), backupParams);
- Map<String, Object> liveParams2 = new HashMap<String, Object>();
+ Map<String, Object> liveParams2 = new HashMap<>();
liveParams2.put(TransportConstants.PORT_PROP_NAME, 6665);
TransportConfiguration live2 = new TransportConfiguration(NettyConnectorFactory.class.getName(), liveParams2);
- connectorConfigs.add(new Pair<TransportConfiguration, TransportConfiguration>(live1, backup1));
+ connectorConfigs.add(new Pair<>(live1, backup1));
connectorConfigs.add(new Pair<TransportConfiguration, TransportConfiguration>(live2, null));
ActiveMQBuffer buffer = ActiveMQBuffers.fixedBuffer(TransportConfigurationEncodingSupport.getEncodeSize(connectorConfigs));
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/proton/ProtonTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/proton/ProtonTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/proton/ProtonTest.java
index 7663f69..5d628f9 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/proton/ProtonTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/proton/ProtonTest.java
@@ -94,7 +94,7 @@ public class ProtonTest extends ActiveMQTestBase {
super.setUp();
disableCheckThread();
server = this.createServer(true, true);
- HashMap<String, Object> params = new HashMap<String, Object>();
+ HashMap<String, Object> params = new HashMap<>();
params.put(TransportConstants.PORT_PROP_NAME, "5672");
params.put(TransportConstants.PROTOCOLS_PROP_NAME, "AMQP");
TransportConfiguration transportConfiguration = new TransportConfiguration(NETTY_ACCEPTOR_FACTORY, params);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ra/ActiveMQMessageHandlerSecurityTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ra/ActiveMQMessageHandlerSecurityTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ra/ActiveMQMessageHandlerSecurityTest.java
index 13d1560..544ebea 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ra/ActiveMQMessageHandlerSecurityTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ra/ActiveMQMessageHandlerSecurityTest.java
@@ -68,7 +68,7 @@ public class ActiveMQMessageHandlerSecurityTest extends ActiveMQRATestBase {
securityManager.getConfiguration().addUser("testuser", "testpassword");
securityManager.getConfiguration().addRole("testuser", "arole");
Role role = new Role("arole", false, true, false, false, false, false, false);
- Set<Role> roles = new HashSet<Role>();
+ Set<Role> roles = new HashSet<>();
roles.add(role);
server.getSecurityRepository().addMatch(MDBQUEUEPREFIXED, roles);
ActiveMQResourceAdapter qResourceAdapter = newResourceAdapter();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ra/JMSContextTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ra/JMSContextTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ra/JMSContextTest.java
index 0fc7416..756127f 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ra/JMSContextTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ra/JMSContextTest.java
@@ -58,7 +58,7 @@ public class JMSContextTest extends ActiveMQRATestBase {
securityManager.getConfiguration().addRole("testuser", "arole");
securityManager.getConfiguration().addRole("guest", "arole");
Role role = new Role("arole", true, true, true, true, true, true, true);
- Set<Role> roles = new HashSet<Role>();
+ Set<Role> roles = new HashSet<>();
roles.add(role);
server.getSecurityRepository().addMatch(MDBQUEUEPREFIXED, roles);
resourceAdapter = new ActiveMQResourceAdapter();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ra/OutgoingConnectionTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ra/OutgoingConnectionTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ra/OutgoingConnectionTest.java
index 10723a5..e9fbff3 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ra/OutgoingConnectionTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ra/OutgoingConnectionTest.java
@@ -83,7 +83,7 @@ public class OutgoingConnectionTest extends ActiveMQRATestBase {
securityManager.getConfiguration().addRole("testuser", "arole");
securityManager.getConfiguration().addRole("guest", "arole");
Role role = new Role("arole", true, true, true, true, true, true, true);
- Set<Role> roles = new HashSet<Role>();
+ Set<Role> roles = new HashSet<>();
roles.add(role);
server.getSecurityRepository().addMatch(MDBQUEUEPREFIXED, roles);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ra/OutgoingConnectionTestJTA.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ra/OutgoingConnectionTestJTA.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ra/OutgoingConnectionTestJTA.java
index a1abc48..1b32d2c 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ra/OutgoingConnectionTestJTA.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ra/OutgoingConnectionTestJTA.java
@@ -72,7 +72,7 @@ public class OutgoingConnectionTestJTA extends ActiveMQRATestBase {
((ActiveMQJAASSecurityManager) server.getSecurityManager()).getConfiguration().addRole("testuser", "arole");
((ActiveMQJAASSecurityManager) server.getSecurityManager()).getConfiguration().addRole("guest", "arole");
Role role = new Role("arole", true, true, true, true, true, true, true);
- Set<Role> roles = new HashSet<Role>();
+ Set<Role> roles = new HashSet<>();
roles.add(role);
server.getSecurityRepository().addMatch(MDBQUEUEPREFIXED, roles);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ra/ResourceAdapterTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ra/ResourceAdapterTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ra/ResourceAdapterTest.java
index 6bce079..272214b 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ra/ResourceAdapterTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ra/ResourceAdapterTest.java
@@ -620,7 +620,7 @@ public class ResourceAdapterTest extends ActiveMQRATestBase {
qResourceAdapter.setPasswordCodec(DefaultSensitiveStringCodec.class.getName() + ";key=anotherkey");
DefaultSensitiveStringCodec codec = new DefaultSensitiveStringCodec();
- Map<String, String> prop = new HashMap<String, String>();
+ Map<String, String> prop = new HashMap<>();
prop.put("key", "anotherkey");
codec.init(prop);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/remoting/BatchDelayTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/remoting/BatchDelayTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/remoting/BatchDelayTest.java
index 2548fc6..78ca02c 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/remoting/BatchDelayTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/remoting/BatchDelayTest.java
@@ -48,7 +48,7 @@ public class BatchDelayTest extends ActiveMQTestBase {
public void setUp() throws Exception {
super.setUp();
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put(TransportConstants.BATCH_DELAY, DELAY);
TransportConfiguration tc = new TransportConfiguration(NETTY_ACCEPTOR_FACTORY, params);
@@ -59,7 +59,7 @@ public class BatchDelayTest extends ActiveMQTestBase {
}
protected ClientSessionFactory createSessionFactory() throws Exception {
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put(TransportConstants.BATCH_DELAY, DELAY);
ServerLocator locator = ActiveMQClient.createServerLocatorWithoutHA(createTransportConfiguration(true, false, params));
addServerLocator(locator);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/remoting/DirectDeliverTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/remoting/DirectDeliverTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/remoting/DirectDeliverTest.java
index 6a06a88..897cec0 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/remoting/DirectDeliverTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/remoting/DirectDeliverTest.java
@@ -49,7 +49,7 @@ public class DirectDeliverTest extends ActiveMQTestBase {
public void setUp() throws Exception {
super.setUp();
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put(TransportConstants.DIRECT_DELIVER, true);
TransportConfiguration tc = new TransportConfiguration(NettyAcceptorFactory.class.getName(), params);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/remoting/NetworkAddressTestBase.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/remoting/NetworkAddressTestBase.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/remoting/NetworkAddressTestBase.java
index 1fb4cef..366d55d 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/remoting/NetworkAddressTestBase.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/remoting/NetworkAddressTestBase.java
@@ -62,7 +62,7 @@ public abstract class NetworkAddressTestBase extends ActiveMQTestBase {
}
public static Map<NetworkInterface, InetAddress> getAddressForEachNetworkInterface() throws Exception {
- Map<NetworkInterface, InetAddress> map = new HashMap<NetworkInterface, InetAddress>();
+ Map<NetworkInterface, InetAddress> map = new HashMap<>();
Enumeration<NetworkInterface> ifaces = NetworkInterface.getNetworkInterfaces();
while (ifaces.hasMoreElements()) {
NetworkInterface iface = ifaces.nextElement();
@@ -183,10 +183,10 @@ public abstract class NetworkAddressTestBase extends ActiveMQTestBase {
final int localPort) throws Exception {
System.out.println("acceptor=" + acceptorHost + ", connector=" + connectorHost + ", mustConnect=" + mustConnect);
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put(getHostPropertyKey(), acceptorHost);
TransportConfiguration acceptorConfig = new TransportConfiguration(getAcceptorFactoryClassName(), params);
- Set<TransportConfiguration> transportConfigs = new HashSet<TransportConfiguration>();
+ Set<TransportConfiguration> transportConfigs = new HashSet<>();
transportConfigs.add(acceptorConfig);
Configuration config = createDefaultNettyConfig();
@@ -195,7 +195,7 @@ public abstract class NetworkAddressTestBase extends ActiveMQTestBase {
try {
messagingService.start();
- params = new HashMap<String, Object>();
+ params = new HashMap<>();
params.put(getHostPropertyKey(), connectorHost);
if (localPort != 0) {
params.put(getLocalPortProperty(), localPort);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/remoting/ReconnectTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/remoting/ReconnectTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/remoting/ReconnectTest.java
index 268b10b..c344591 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/remoting/ReconnectTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/remoting/ReconnectTest.java
@@ -188,7 +188,7 @@ public class ReconnectTest extends ActiveMQTestBase {
}
private ServerSession[] countMetadata(ActiveMQServer server, String parameter, int expected) throws Exception {
- List<ServerSession> sessionList = new LinkedList<ServerSession>();
+ List<ServerSession> sessionList = new LinkedList<>();
for (int i = 0; i < 10 && sessionList.size() != expected; i++) {
sessionList.clear();
@@ -241,7 +241,7 @@ public class ReconnectTest extends ActiveMQTestBase {
// One for beforeReconnecto from the Factory, and one for the commit about to be done
final CountDownLatch latchCommit = new CountDownLatch(2);
- final ArrayList<Thread> threadToBeInterrupted = new ArrayList<Thread>();
+ final ArrayList<Thread> threadToBeInterrupted = new ArrayList<>();
factory.addFailureListener(new SessionFailureListener() {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/replication/ReplicationTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/replication/ReplicationTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/replication/ReplicationTest.java
index e9e3c02..4a00caa 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/replication/ReplicationTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/replication/ReplicationTest.java
@@ -340,7 +340,7 @@ public final class ReplicationTest extends ActiveMQTestBase {
final AtomicInteger lastError = new AtomicInteger(0);
- final List<String> msgsResult = new ArrayList<String>();
+ final List<String> msgsResult = new ArrayList<>();
final CountDownLatch latch = new CountDownLatch(1);
@@ -498,7 +498,7 @@ public final class ReplicationTest extends ActiveMQTestBase {
setupServer(true);
- final ArrayList<Integer> executions = new ArrayList<Integer>();
+ final ArrayList<Integer> executions = new ArrayList<>();
StorageManager storage = getStorage();
manager = liveServer.getReplicationManager();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/scheduling/ScheduledMessageTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/scheduling/ScheduledMessageTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/scheduling/ScheduledMessageTest.java
index 11a9c67..1b6b513 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/scheduling/ScheduledMessageTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/scheduling/ScheduledMessageTest.java
@@ -727,7 +727,7 @@ public class ScheduledMessageTest extends ActiveMQTestBase {
ClientConsumer consumer = session.createConsumer(atestq);
- ArrayList<Xid> xids = new ArrayList<Xid>();
+ ArrayList<Xid> xids = new ArrayList<>();
session.start();
[20/32] activemq-artemis git commit: Remove redundant type arguments
Posted by cl...@apache.org.
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/RemotingConnectionImpl.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/RemotingConnectionImpl.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/RemotingConnectionImpl.java
index a19c3f3..1cb4f2a 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/RemotingConnectionImpl.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/RemotingConnectionImpl.java
@@ -52,7 +52,7 @@ public class RemotingConnectionImpl extends AbstractRemotingConnection implement
// -----------------------------------------------------------------------------------
private final PacketDecoder packetDecoder;
- private final Map<Long, Channel> channels = new ConcurrentHashMap<Long, Channel>();
+ private final Map<Long, Channel> channels = new ConcurrentHashMap<>();
private final long blockingCallTimeout;
@@ -246,7 +246,7 @@ public class RemotingConnectionImpl extends AbstractRemotingConnection implement
// method is
// complete
- Set<Channel> allChannels = new HashSet<Channel>(channels.values());
+ Set<Channel> allChannels = new HashSet<>(channels.values());
if (!criticalError) {
removeAllChannels();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/ClusterTopologyChangeMessage.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/ClusterTopologyChangeMessage.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/ClusterTopologyChangeMessage.java
index f019576..48c7862 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/ClusterTopologyChangeMessage.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/ClusterTopologyChangeMessage.java
@@ -132,7 +132,7 @@ public class ClusterTopologyChangeMessage extends PacketImpl {
else {
b = null;
}
- pair = new Pair<TransportConfiguration, TransportConfiguration>(a, b);
+ pair = new Pair<>(a, b);
last = buffer.readBoolean();
}
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/ClusterTopologyChangeMessage_V2.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/ClusterTopologyChangeMessage_V2.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/ClusterTopologyChangeMessage_V2.java
index 76860e1..a39dda9 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/ClusterTopologyChangeMessage_V2.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/ClusterTopologyChangeMessage_V2.java
@@ -126,7 +126,7 @@ public class ClusterTopologyChangeMessage_V2 extends ClusterTopologyChangeMessag
else {
b = null;
}
- pair = new Pair<TransportConfiguration, TransportConfiguration>(a, b);
+ pair = new Pair<>(a, b);
last = buffer.readBoolean();
}
if (buffer.readableBytes() > 0) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/SessionBindingQueryResponseMessage.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/SessionBindingQueryResponseMessage.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/SessionBindingQueryResponseMessage.java
index 7d77edc..65a0d25 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/SessionBindingQueryResponseMessage.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/SessionBindingQueryResponseMessage.java
@@ -74,7 +74,7 @@ public class SessionBindingQueryResponseMessage extends PacketImpl {
public void decodeRest(final ActiveMQBuffer buffer) {
exists = buffer.readBoolean();
int numQueues = buffer.readInt();
- queueNames = new ArrayList<SimpleString>(numQueues);
+ queueNames = new ArrayList<>(numQueues);
for (int i = 0; i < numQueues; i++) {
queueNames.add(buffer.readSimpleString());
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/SessionXAGetInDoubtXidsResponseMessage.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/SessionXAGetInDoubtXidsResponseMessage.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/SessionXAGetInDoubtXidsResponseMessage.java
index 92260b1..a78bad4 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/SessionXAGetInDoubtXidsResponseMessage.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/SessionXAGetInDoubtXidsResponseMessage.java
@@ -60,7 +60,7 @@ public class SessionXAGetInDoubtXidsResponseMessage extends PacketImpl {
@Override
public void decodeRest(final ActiveMQBuffer buffer) {
int len = buffer.readInt();
- xids = new ArrayList<Xid>(len);
+ xids = new ArrayList<>(len);
for (int i = 0; i < len; i++) {
Xid xid = XidCodecSupport.decodeXid(buffer);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/TransportConfigurationUtil.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/TransportConfigurationUtil.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/TransportConfigurationUtil.java
index 60b8336..cfadcfa 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/TransportConfigurationUtil.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/TransportConfigurationUtil.java
@@ -76,7 +76,7 @@ public class TransportConfigurationUtil {
}
private static Map<String, Object> cloneDefaults(Map<String, Object> defaults) {
- Map<String, Object> cloned = new HashMap<String, Object>();
+ Map<String, Object> cloned = new HashMap<>();
for (Map.Entry entry : defaults.entrySet()) {
cloned.put((String) entry.getKey(), entry.getValue());
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyConnection.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyConnection.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyConnection.java
index 2c1f1c8..6f2f792 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyConnection.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyConnection.java
@@ -65,7 +65,7 @@ public class NettyConnection implements Connection {
private final Semaphore writeLock = new Semaphore(1);
- private final Set<ReadyListener> readyListeners = new ConcurrentHashSet<ReadyListener>();
+ private final Set<ReadyListener> readyListeners = new ConcurrentHashSet<>();
private RemotingConnection protocolConnection;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyConnector.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyConnector.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyConnector.java
index 60d913c..3f56248 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyConnector.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyConnector.java
@@ -135,7 +135,7 @@ public class NettyConnector extends AbstractConnector {
ResourceLeakDetector.setEnabled(false);
// Set default Configuration
- Map<String, Object> config = new HashMap<String, Object>();
+ Map<String, Object> config = new HashMap<>();
config.put(TransportConstants.HOST_PROP_NAME, TransportConstants.DEFAULT_HOST);
config.put(TransportConstants.PORT_PROP_NAME, TransportConstants.DEFAULT_PORT);
DEFAULT_CONFIG = Collections.unmodifiableMap(config);
@@ -202,7 +202,7 @@ public class NettyConnector extends AbstractConnector {
private long batchDelay;
- private ConcurrentMap<Object, Connection> connections = new ConcurrentHashMap<Object, Connection>();
+ private ConcurrentMap<Object, Connection> connections = new ConcurrentHashMap<>();
private String servletPath;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/SharedNioEventLoopGroup.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/SharedNioEventLoopGroup.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/SharedNioEventLoopGroup.java
index 7656130..b9b1a31 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/SharedNioEventLoopGroup.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/SharedNioEventLoopGroup.java
@@ -36,7 +36,7 @@ public class SharedNioEventLoopGroup extends NioEventLoopGroup {
private static SharedNioEventLoopGroup instance;
- private final AtomicReference<ScheduledFuture<?>> shutdown = new AtomicReference<ScheduledFuture<?>>();
+ private final AtomicReference<ScheduledFuture<?>> shutdown = new AtomicReference<>();
private final AtomicLong nioChannelFactoryCount = new AtomicLong();
private final Promise<?> terminationPromise = ImmediateEventExecutor.INSTANCE.newPromise();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/TransportConstants.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/TransportConstants.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/TransportConstants.java
index b241ac5..f373639 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/TransportConstants.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/TransportConstants.java
@@ -200,7 +200,7 @@ public class TransportConstants {
public static final long DEFAULT_CONNECTIONS_ALLOWED = -1L;
static {
- Set<String> allowableAcceptorKeys = new HashSet<String>();
+ Set<String> allowableAcceptorKeys = new HashSet<>();
allowableAcceptorKeys.add(TransportConstants.SSL_ENABLED_PROP_NAME);
allowableAcceptorKeys.add(TransportConstants.HTTP_RESPONSE_TIME_PROP_NAME);
allowableAcceptorKeys.add(TransportConstants.HTTP_SERVER_SCAN_PERIOD_PROP_NAME);
@@ -237,7 +237,7 @@ public class TransportConstants {
ALLOWABLE_ACCEPTOR_KEYS = Collections.unmodifiableSet(allowableAcceptorKeys);
- Set<String> allowableConnectorKeys = new HashSet<String>();
+ Set<String> allowableConnectorKeys = new HashSet<>();
allowableConnectorKeys.add(TransportConstants.SSL_ENABLED_PROP_NAME);
allowableConnectorKeys.add(TransportConstants.HTTP_ENABLED_PROP_NAME);
allowableConnectorKeys.add(TransportConstants.HTTP_CLIENT_IDLE_PROP_NAME);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/reader/MessageUtil.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/reader/MessageUtil.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/reader/MessageUtil.java
index b56abc4..f61384d 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/reader/MessageUtil.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/reader/MessageUtil.java
@@ -124,7 +124,7 @@ public class MessageUtil {
public static void clearProperties(Message message) {
- List<SimpleString> toRemove = new ArrayList<SimpleString>();
+ List<SimpleString> toRemove = new ArrayList<>();
for (SimpleString propName : message.getPropertyNames()) {
if (!propName.startsWith(JMS) || propName.startsWith(JMSX) ||
@@ -139,7 +139,7 @@ public class MessageUtil {
}
public static Set<String> getPropertyNames(Message message) {
- HashSet<String> set = new HashSet<String>();
+ HashSet<String> set = new HashSet<>();
for (SimpleString propName : message.getPropertyNames()) {
if ((!propName.startsWith(JMS) || propName.startsWith(JMSX) ||
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/spi/core/protocol/AbstractRemotingConnection.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/spi/core/protocol/AbstractRemotingConnection.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/spi/core/protocol/AbstractRemotingConnection.java
index 7670740..32df48c 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/spi/core/protocol/AbstractRemotingConnection.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/spi/core/protocol/AbstractRemotingConnection.java
@@ -32,8 +32,8 @@ import org.apache.activemq.artemis.spi.core.remoting.Connection;
public abstract class AbstractRemotingConnection implements RemotingConnection {
- protected final List<FailureListener> failureListeners = new CopyOnWriteArrayList<FailureListener>();
- protected final List<CloseListener> closeListeners = new CopyOnWriteArrayList<CloseListener>();
+ protected final List<FailureListener> failureListeners = new CopyOnWriteArrayList<>();
+ protected final List<CloseListener> closeListeners = new CopyOnWriteArrayList<>();
protected final Connection transportConnection;
protected final Executor executor;
protected final long creationTime;
@@ -47,11 +47,11 @@ public abstract class AbstractRemotingConnection implements RemotingConnection {
@Override
public List<FailureListener> getFailureListeners() {
- return new ArrayList<FailureListener>(failureListeners);
+ return new ArrayList<>(failureListeners);
}
protected void callFailureListeners(final ActiveMQException me, String scaleDownTargetNodeID) {
- final List<FailureListener> listenersClone = new ArrayList<FailureListener>(failureListeners);
+ final List<FailureListener> listenersClone = new ArrayList<>(failureListeners);
for (final FailureListener listener : listenersClone) {
try {
@@ -71,7 +71,7 @@ public abstract class AbstractRemotingConnection implements RemotingConnection {
}
protected void callClosingListeners() {
- final List<CloseListener> listenersClone = new ArrayList<CloseListener>(closeListeners);
+ final List<CloseListener> listenersClone = new ArrayList<>(closeListeners);
for (final CloseListener listener : listenersClone) {
try {
@@ -140,7 +140,7 @@ public abstract class AbstractRemotingConnection implements RemotingConnection {
@Override
public List<CloseListener> removeCloseListeners() {
- List<CloseListener> ret = new ArrayList<CloseListener>(closeListeners);
+ List<CloseListener> ret = new ArrayList<>(closeListeners);
closeListeners.clear();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/ConfigurationHelper.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/ConfigurationHelper.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/ConfigurationHelper.java
index 76326b6..8771451 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/ConfigurationHelper.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/ConfigurationHelper.java
@@ -124,7 +124,7 @@ public class ConfigurationHelper {
}
public static Set<String> checkKeys(final Set<String> allowableKeys, final Set<String> keys) {
- Set<String> invalid = new HashSet<String>();
+ Set<String> invalid = new HashSet<>();
for (String key : keys) {
if (!allowableKeys.contains(key)) {
@@ -135,7 +135,7 @@ public class ConfigurationHelper {
}
public static Set<String> checkKeysExist(final Set<String> requiredKeys, final Set<String> keys) {
- Set<String> invalid = new HashSet<String>(requiredKeys);
+ Set<String> invalid = new HashSet<>(requiredKeys);
for (String key : keys) {
if (requiredKeys.contains(key)) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/LinkedListImpl.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/LinkedListImpl.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/LinkedListImpl.java
index e455db8..4262274 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/LinkedListImpl.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/LinkedListImpl.java
@@ -29,7 +29,7 @@ public class LinkedListImpl<E> implements LinkedList<E> {
private static final int INITIAL_ITERATOR_ARRAY_SIZE = 10;
- private final Node<E> head = new Node<E>(null);
+ private final Node<E> head = new Node<>(null);
private Node<E> tail = null;
@@ -48,7 +48,7 @@ public class LinkedListImpl<E> implements LinkedList<E> {
@Override
public void addHead(E e) {
- Node<E> node = new Node<E>(e);
+ Node<E> node = new Node<>(e);
node.next = head.next;
@@ -73,7 +73,7 @@ public class LinkedListImpl<E> implements LinkedList<E> {
addHead(e);
}
else {
- Node<E> node = new Node<E>(e);
+ Node<E> node = new Node<>(e);
node.prev = tail;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/MemorySize.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/MemorySize.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/MemorySize.java
index dfb3f01..b3e47cc 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/MemorySize.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/MemorySize.java
@@ -105,7 +105,7 @@ public class MemorySize {
}
private static void forceGC() {
- WeakReference<Object> dumbReference = new WeakReference<Object>(new Object());
+ WeakReference<Object> dumbReference = new WeakReference<>(new Object());
// A loop that will wait GC, using the minimal time as possible
while (dumbReference.get() != null) {
System.gc();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/OrderedExecutorFactory.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/OrderedExecutorFactory.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/OrderedExecutorFactory.java
index 949970b..7475526 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/OrderedExecutorFactory.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/OrderedExecutorFactory.java
@@ -56,7 +56,7 @@ public final class OrderedExecutorFactory implements ExecutorFactory {
*/
private static final class OrderedExecutor implements Executor {
- private final ConcurrentLinkedQueue<Runnable> tasks = new ConcurrentLinkedQueue<Runnable>();
+ private final ConcurrentLinkedQueue<Runnable> tasks = new ConcurrentLinkedQueue<>();
// @protected by tasks
private boolean running;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/PriorityLinkedListImpl.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/PriorityLinkedListImpl.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/PriorityLinkedListImpl.java
index 6556ef5..06b2432 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/PriorityLinkedListImpl.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/PriorityLinkedListImpl.java
@@ -40,7 +40,7 @@ public class PriorityLinkedListImpl<T> implements PriorityLinkedList<T> {
levels = (LinkedListImpl<T>[]) Array.newInstance(LinkedListImpl.class, priorities);
for (int i = 0; i < priorities; i++) {
- levels[i] = new LinkedListImpl<T>();
+ levels[i] = new LinkedListImpl<>();
}
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/SecurityFormatter.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/SecurityFormatter.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/SecurityFormatter.java
index d79f7d6..1df12b1 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/SecurityFormatter.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/SecurityFormatter.java
@@ -40,7 +40,7 @@ public class SecurityFormatter {
List<String> consume = toList(consumeRoles);
List<String> manage = toList(manageRoles);
- Set<String> allRoles = new HashSet<String>();
+ Set<String> allRoles = new HashSet<>();
allRoles.addAll(createDurableQueue);
allRoles.addAll(deleteDurableQueue);
allRoles.addAll(createNonDurableQueue);
@@ -49,7 +49,7 @@ public class SecurityFormatter {
allRoles.addAll(consume);
allRoles.addAll(manage);
- Set<Role> roles = new HashSet<Role>(allRoles.size());
+ Set<Role> roles = new HashSet<>(allRoles.size());
for (String role : allRoles) {
roles.add(new Role(role, send.contains(role), consume.contains(role), createDurableQueue.contains(role), deleteDurableQueue.contains(role), createNonDurableQueue.contains(role), deleteNonDurableQueue.contains(role), manageRoles.contains(role)));
}
@@ -57,7 +57,7 @@ public class SecurityFormatter {
}
private static List<String> toList(final String commaSeparatedString) {
- List<String> list = new ArrayList<String>();
+ List<String> list = new ArrayList<>();
if (commaSeparatedString == null || commaSeparatedString.trim().length() == 0) {
return list;
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/SoftValueHashMap.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/SoftValueHashMap.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/SoftValueHashMap.java
index 19ea7dd..4cfbfa4 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/SoftValueHashMap.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/SoftValueHashMap.java
@@ -36,9 +36,9 @@ public class SoftValueHashMap<K, V extends SoftValueHashMap.ValueCache> implemen
// The soft references that are already good.
// too bad there's no way to override the queue method on ReferenceQueue, so I wouldn't need this
- private final ReferenceQueue<V> refQueue = new ReferenceQueue<V>();
+ private final ReferenceQueue<V> refQueue = new ReferenceQueue<>();
- private final Map<K, AggregatedSoftReference> mapDelegate = new HashMap<K, AggregatedSoftReference>();
+ private final Map<K, AggregatedSoftReference> mapDelegate = new HashMap<>();
private final AtomicLong usedCounter = new AtomicLong(0);
@@ -156,7 +156,7 @@ public class SoftValueHashMap<K, V extends SoftValueHashMap.ValueCache> implemen
private void checkCacheSize() {
if (maxElements > 0 && mapDelegate.size() > maxElements) {
- TreeSet<AggregatedSoftReference> usedReferences = new TreeSet<AggregatedSoftReference>(new ComparatorAgregated());
+ TreeSet<AggregatedSoftReference> usedReferences = new TreeSet<>(new ComparatorAgregated());
for (AggregatedSoftReference ref : mapDelegate.values()) {
V v = ref.get();
@@ -260,7 +260,7 @@ public class SoftValueHashMap<K, V extends SoftValueHashMap.ValueCache> implemen
@Override
public Collection<V> values() {
processQueue();
- ArrayList<V> list = new ArrayList<V>();
+ ArrayList<V> list = new ArrayList<>();
for (AggregatedSoftReference refs : mapDelegate.values()) {
V value = refs.get();
@@ -278,11 +278,11 @@ public class SoftValueHashMap<K, V extends SoftValueHashMap.ValueCache> implemen
@Override
public Set<java.util.Map.Entry<K, V>> entrySet() {
processQueue();
- HashSet<Map.Entry<K, V>> set = new HashSet<Map.Entry<K, V>>();
+ HashSet<Map.Entry<K, V>> set = new HashSet<>();
for (Map.Entry<K, AggregatedSoftReference> pair : mapDelegate.entrySet()) {
V value = pair.getValue().get();
if (value != null) {
- set.add(new EntryElement<K, V>(pair.getKey(), value));
+ set.add(new EntryElement<>(pair.getKey(), value));
}
}
return set;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/VersionLoader.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/VersionLoader.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/VersionLoader.java
index ace62c8..a0efdb5 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/VersionLoader.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/VersionLoader.java
@@ -118,7 +118,7 @@ public final class VersionLoader {
int microVersion = Integer.valueOf(versionProps.getProperty("activemq.version.microVersion"));
int[] incrementingVersions = parseCompatibleVersionList(versionProps.getProperty("activemq.version.incrementingVersion"));
int[] compatibleVersionArray = parseCompatibleVersionList(versionProps.getProperty("activemq.version.compatibleVersionList"));
- List<Version> definedVersions = new ArrayList<Version>(incrementingVersions.length);
+ List<Version> definedVersions = new ArrayList<>(incrementingVersions.length);
for (int incrementingVersion : incrementingVersions) {
definedVersions.add(new VersionImpl(versionName, majorVersion, minorVersion, microVersion, incrementingVersion, compatibleVersionArray));
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/XMLUtil.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/XMLUtil.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/XMLUtil.java
index d8b9e6a..5634207 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/XMLUtil.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/XMLUtil.java
@@ -413,7 +413,7 @@ public final class XMLUtil {
}
private static List<Node> filter(final NodeList nl, final short[] typesToFilter) {
- List<Node> nodes = new ArrayList<Node>();
+ List<Node> nodes = new ArrayList<>();
outer:
for (int i = 0; i < nl.getLength(); i++) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/json/JSONArray.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/json/JSONArray.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/json/JSONArray.java
index 0cbaf72..b70bd21 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/json/JSONArray.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/json/JSONArray.java
@@ -87,7 +87,7 @@ public class JSONArray {
* Construct an empty JSONArray.
*/
public JSONArray() {
- myArrayList = new ArrayList<Object>();
+ myArrayList = new ArrayList<>();
}
/**
@@ -161,7 +161,7 @@ public class JSONArray {
* @param collection A Collection.
*/
public JSONArray(final Collection collection) {
- myArrayList = collection == null ? new ArrayList<Object>() : new ArrayList<Object>(collection);
+ myArrayList = collection == null ? new ArrayList<>() : new ArrayList<>(collection);
}
/**
@@ -169,7 +169,7 @@ public class JSONArray {
* The collection should have Java Beans.
*/
public JSONArray(final Collection collection, final boolean includeSuperClass) {
- myArrayList = collection == null ? new ArrayList<Object>() : new ArrayList<Object>(collection.size());
+ myArrayList = collection == null ? new ArrayList<>() : new ArrayList<>(collection.size());
if (collection != null) {
Iterator<Object> iter = collection.iterator();
while (iter.hasNext()) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/test/java/org/apache/activemq/artemis/util/CompressionUtilTest.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/test/java/org/apache/activemq/artemis/util/CompressionUtilTest.java b/artemis-core-client/src/test/java/org/apache/activemq/artemis/util/CompressionUtilTest.java
index aaeb578..f5d4c42 100644
--- a/artemis-core-client/src/test/java/org/apache/activemq/artemis/util/CompressionUtilTest.java
+++ b/artemis-core-client/src/test/java/org/apache/activemq/artemis/util/CompressionUtilTest.java
@@ -43,7 +43,7 @@ public class CompressionUtilTest extends Assert {
AtomicLong counter = new AtomicLong(0);
DeflaterReader reader = new DeflaterReader(inputStream, counter);
- ArrayList<Integer> zipHolder = new ArrayList<Integer>();
+ ArrayList<Integer> zipHolder = new ArrayList<>();
int b = reader.read();
while (b != -1) {
@@ -79,7 +79,7 @@ public class CompressionUtilTest extends Assert {
DeflaterReader reader = new DeflaterReader(inputStream, counter);
byte[] buffer = new byte[7];
- ArrayList<Integer> zipHolder = new ArrayList<Integer>();
+ ArrayList<Integer> zipHolder = new ArrayList<>();
int n = reader.read(buffer);
while (n != -1) {
@@ -122,7 +122,7 @@ public class CompressionUtilTest extends Assert {
ByteArrayInputStream byteInput = new ByteArrayInputStream(zipBytes);
InflaterReader inflater = new InflaterReader(byteInput);
- ArrayList<Integer> holder = new ArrayList<Integer>();
+ ArrayList<Integer> holder = new ArrayList<>();
int read = inflater.read();
while (read != -1) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/test/java/org/apache/activemq/artemis/util/ConcurrentHashSetTest.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/test/java/org/apache/activemq/artemis/util/ConcurrentHashSetTest.java b/artemis-core-client/src/test/java/org/apache/activemq/artemis/util/ConcurrentHashSetTest.java
index 8a2e40b..6c97afd 100644
--- a/artemis-core-client/src/test/java/org/apache/activemq/artemis/util/ConcurrentHashSetTest.java
+++ b/artemis-core-client/src/test/java/org/apache/activemq/artemis/util/ConcurrentHashSetTest.java
@@ -117,7 +117,7 @@ public class ConcurrentHashSetTest extends Assert {
@Before
public void setUp() throws Exception {
- set = new ConcurrentHashSet<String>();
+ set = new ConcurrentHashSet<>();
element = RandomUtil.randomString();
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/test/java/org/apache/activemq/artemis/util/TimeAndCounterIDGeneratorTest.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/test/java/org/apache/activemq/artemis/util/TimeAndCounterIDGeneratorTest.java b/artemis-core-client/src/test/java/org/apache/activemq/artemis/util/TimeAndCounterIDGeneratorTest.java
index 923a9f3..671261e 100644
--- a/artemis-core-client/src/test/java/org/apache/activemq/artemis/util/TimeAndCounterIDGeneratorTest.java
+++ b/artemis-core-client/src/test/java/org/apache/activemq/artemis/util/TimeAndCounterIDGeneratorTest.java
@@ -73,7 +73,7 @@ public class TimeAndCounterIDGeneratorTest extends Assert {
@Test
public void testCalculationOnMultiThread() throws Throwable {
- final ConcurrentHashSet<Long> hashSet = new ConcurrentHashSet<Long>();
+ final ConcurrentHashSet<Long> hashSet = new ConcurrentHashSet<>();
final TimeAndCounterIDGenerator seq = new TimeAndCounterIDGenerator();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQConnection.java
----------------------------------------------------------------------
diff --git a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQConnection.java b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQConnection.java
index 60de2d7..19e5b67 100644
--- a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQConnection.java
+++ b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQConnection.java
@@ -79,11 +79,11 @@ public class ActiveMQConnection extends ActiveMQConnectionForContextImpl impleme
private final int connectionType;
- private final Set<ActiveMQSession> sessions = new ConcurrentHashSet<ActiveMQSession>();
+ private final Set<ActiveMQSession> sessions = new ConcurrentHashSet<>();
- private final Set<SimpleString> tempQueues = new ConcurrentHashSet<SimpleString>();
+ private final Set<SimpleString> tempQueues = new ConcurrentHashSet<>();
- private final Set<SimpleString> knownDestinations = new ConcurrentHashSet<SimpleString>();
+ private final Set<SimpleString> knownDestinations = new ConcurrentHashSet<>();
private volatile boolean hasNoLocal;
@@ -327,7 +327,7 @@ public class ActiveMQConnection extends ActiveMQConnectionForContextImpl impleme
sessionFactory.close();
try {
- for (ActiveMQSession session : new HashSet<ActiveMQSession>(sessions)) {
+ for (ActiveMQSession session : new HashSet<>(sessions)) {
session.close();
}
@@ -689,7 +689,7 @@ public class ActiveMQConnection extends ActiveMQConnectionForContextImpl impleme
private final WeakReference<ActiveMQConnection> connectionRef;
JMSFailureListener(final ActiveMQConnection connection) {
- connectionRef = new WeakReference<ActiveMQConnection>(connection);
+ connectionRef = new WeakReference<>(connection);
}
@Override
@@ -742,7 +742,7 @@ public class ActiveMQConnection extends ActiveMQConnectionForContextImpl impleme
private final WeakReference<ActiveMQConnection> connectionRef;
FailoverEventListenerImpl(final ActiveMQConnection connection) {
- connectionRef = new WeakReference<ActiveMQConnection>(connection);
+ connectionRef = new WeakReference<>(connection);
}
@Override
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQConnectionMetaData.java
----------------------------------------------------------------------
diff --git a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQConnectionMetaData.java b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQConnectionMetaData.java
index 628281b..8a14915 100644
--- a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQConnectionMetaData.java
+++ b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQConnectionMetaData.java
@@ -86,7 +86,7 @@ public class ActiveMQConnectionMetaData implements ConnectionMetaData {
@Override
public Enumeration getJMSXPropertyNames() throws JMSException {
- Vector<Object> v = new Vector<Object>();
+ Vector<Object> v = new Vector<>();
v.add("JMSXGroupID");
v.add("JMSXGroupSeq");
v.add("JMSXDeliveryCount");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQDestination.java
----------------------------------------------------------------------
diff --git a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQDestination.java b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQDestination.java
index f803ff6..e77a48b 100644
--- a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQDestination.java
+++ b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQDestination.java
@@ -202,7 +202,7 @@ public class ActiveMQDestination implements Destination, Serializable, Reference
throw new JMSRuntimeException("Invalid message queue name: " + queueName);
}
- Pair<String, String> pair = new Pair<String, String>(parts[0].toString(), parts[1].toString());
+ Pair<String, String> pair = new Pair<>(parts[0].toString(), parts[1].toString());
return pair;
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQJMSProducer.java
----------------------------------------------------------------------
diff --git a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQJMSProducer.java b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQJMSProducer.java
index cd86e86..6e37a86 100644
--- a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQJMSProducer.java
+++ b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQJMSProducer.java
@@ -553,7 +553,7 @@ public final class ActiveMQJMSProducer implements JMSProducer {
public Set<String> getPropertyNames() {
try {
Set<SimpleString> simplePropNames = properties.getPropertyNames();
- Set<String> propNames = new HashSet<String>(simplePropNames.size());
+ Set<String> propNames = new HashSet<>(simplePropNames.size());
for (SimpleString str : simplePropNames) {
propNames.add(str.toString());
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQMapMessage.java
----------------------------------------------------------------------
diff --git a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQMapMessage.java b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQMapMessage.java
index b3112a7..d067593 100644
--- a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQMapMessage.java
+++ b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQMapMessage.java
@@ -314,7 +314,7 @@ public final class ActiveMQMapMessage extends ActiveMQMessage implements MapMess
@Override
public Enumeration getMapNames() throws JMSException {
Set<SimpleString> simplePropNames = map.getPropertyNames();
- Set<String> propNames = new HashSet<String>(simplePropNames.size());
+ Set<String> propNames = new HashSet<>(simplePropNames.size());
for (SimpleString str : simplePropNames) {
propNames.add(str.toString());
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQMessage.java
----------------------------------------------------------------------
diff --git a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQMessage.java b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQMessage.java
index 6dfdf7c..528a8a3 100644
--- a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQMessage.java
+++ b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQMessage.java
@@ -57,7 +57,7 @@ public class ActiveMQMessage implements javax.jms.Message {
public static final byte TYPE = org.apache.activemq.artemis.api.core.Message.DEFAULT_TYPE;
public static Map<String, Object> coreMaptoJMSMap(final Map<String, Object> coreMessage) {
- Map<String, Object> jmsMessage = new HashMap<String, Object>();
+ Map<String, Object> jmsMessage = new HashMap<>();
String deliveryMode = (Boolean) coreMessage.get("durable") ? "PERSISTENT" : "NON_PERSISTENT";
byte priority = (Byte) coreMessage.get("priority");
@@ -95,7 +95,7 @@ public class ActiveMQMessage implements javax.jms.Message {
// Static --------------------------------------------------------
- private static final HashSet<String> reservedIdentifiers = new HashSet<String>();
+ private static final HashSet<String> reservedIdentifiers = new HashSet<>();
static {
ActiveMQMessage.reservedIdentifiers.add("NULL");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQSession.java
----------------------------------------------------------------------
diff --git a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQSession.java b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQSession.java
index 758cb90..e2a1fca 100644
--- a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQSession.java
+++ b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQSession.java
@@ -90,7 +90,7 @@ public class ActiveMQSession implements QueueSession, TopicSession {
private boolean recoverCalled;
- private final Set<ActiveMQMessageConsumer> consumers = new HashSet<ActiveMQMessageConsumer>();
+ private final Set<ActiveMQMessageConsumer> consumers = new HashSet<>();
// Constructors --------------------------------------------------
@@ -240,7 +240,7 @@ public class ActiveMQSession implements QueueSession, TopicSession {
connection.getThreadAwareContext().assertNotMessageListenerThread();
synchronized (connection) {
try {
- for (ActiveMQMessageConsumer cons : new HashSet<ActiveMQMessageConsumer>(consumers)) {
+ for (ActiveMQMessageConsumer cons : new HashSet<>(consumers)) {
cons.close();
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/SelectorTranslator.java
----------------------------------------------------------------------
diff --git a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/SelectorTranslator.java b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/SelectorTranslator.java
index d227f89..5dcd7c3 100644
--- a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/SelectorTranslator.java
+++ b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/SelectorTranslator.java
@@ -60,7 +60,7 @@ public class SelectorTranslator {
int matchPos = 0;
- List<Integer> positions = new ArrayList<Integer>();
+ List<Integer> positions = new ArrayList<>();
boolean replaceInQuotes = match.charAt(0) == quote;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ThreadAwareContext.java
----------------------------------------------------------------------
diff --git a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ThreadAwareContext.java b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ThreadAwareContext.java
index 10624ce..602704d 100644
--- a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ThreadAwareContext.java
+++ b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ThreadAwareContext.java
@@ -39,7 +39,7 @@ public class ThreadAwareContext {
* Use a set because JMSContext can create more than one JMSConsumer
* to receive asynchronously from different destinations.
*/
- private Set<Long> messageListenerThreads = new ConcurrentHashSet<Long>();
+ private Set<Long> messageListenerThreads = new ConcurrentHashSet<>();
/**
* Sets current thread to the context
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jndi/ReadOnlyContext.java
----------------------------------------------------------------------
diff --git a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jndi/ReadOnlyContext.java b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jndi/ReadOnlyContext.java
index e94377d..97d02a6 100644
--- a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jndi/ReadOnlyContext.java
+++ b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jndi/ReadOnlyContext.java
@@ -74,17 +74,17 @@ public class ReadOnlyContext implements Context, Serializable {
private String nameInNamespace = "";
public ReadOnlyContext() {
- environment = new Hashtable<String, Object>();
- bindings = new HashMap<String, Object>();
- treeBindings = new HashMap<String, Object>();
+ environment = new Hashtable<>();
+ bindings = new HashMap<>();
+ treeBindings = new HashMap<>();
}
public ReadOnlyContext(Hashtable env) {
if (env == null) {
- this.environment = new Hashtable<String, Object>();
+ this.environment = new Hashtable<>();
}
else {
- this.environment = new Hashtable<String, Object>(env);
+ this.environment = new Hashtable<>(env);
}
this.bindings = Collections.EMPTY_MAP;
this.treeBindings = Collections.EMPTY_MAP;
@@ -92,13 +92,13 @@ public class ReadOnlyContext implements Context, Serializable {
public ReadOnlyContext(Hashtable environment, Map<String, Object> bindings) {
if (environment == null) {
- this.environment = new Hashtable<String, Object>();
+ this.environment = new Hashtable<>();
}
else {
- this.environment = new Hashtable<String, Object>(environment);
+ this.environment = new Hashtable<>(environment);
}
- this.bindings = new HashMap<String, Object>();
- treeBindings = new HashMap<String, Object>();
+ this.bindings = new HashMap<>();
+ treeBindings = new HashMap<>();
if (bindings != null) {
for (Map.Entry<String, Object> binding : bindings.entrySet()) {
try {
@@ -120,7 +120,7 @@ public class ReadOnlyContext implements Context, Serializable {
protected ReadOnlyContext(ReadOnlyContext clone, Hashtable env) {
this.bindings = clone.bindings;
this.treeBindings = clone.treeBindings;
- this.environment = new Hashtable<String, Object>(env);
+ this.environment = new Hashtable<>(env);
}
protected ReadOnlyContext(ReadOnlyContext clone, Hashtable<String, Object> env, String nameInNamespace) {
@@ -155,7 +155,7 @@ public class ReadOnlyContext implements Context, Serializable {
assert name != null && name.length() > 0;
assert !frozen;
- Map<String, Object> newBindings = new HashMap<String, Object>();
+ Map<String, Object> newBindings = new HashMap<>();
int pos = name.indexOf('/');
if (pos == -1) {
if (treeBindings.put(name, value) != null) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-jms-client/src/test/java/org/apache/activemq/artemis/uri/ConnectionFactoryURITest.java
----------------------------------------------------------------------
diff --git a/artemis-jms-client/src/test/java/org/apache/activemq/artemis/uri/ConnectionFactoryURITest.java b/artemis-jms-client/src/test/java/org/apache/activemq/artemis/uri/ConnectionFactoryURITest.java
index 4e88e70..9f0fd18 100644
--- a/artemis-jms-client/src/test/java/org/apache/activemq/artemis/uri/ConnectionFactoryURITest.java
+++ b/artemis-jms-client/src/test/java/org/apache/activemq/artemis/uri/ConnectionFactoryURITest.java
@@ -57,7 +57,7 @@ public class ConnectionFactoryURITest {
private static final String[] V6IPs = {"fe80::baf6:b1ff:fe12:daf7%eth0", "2620:db8:1:2::1%em1"};
- private static Set<String> ignoreList = new HashSet<String>();
+ private static Set<String> ignoreList = new HashSet<>();
static {
ignoreList.add("protocolManagerFactoryStr");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/bridge/impl/JMSBridgeImpl.java
----------------------------------------------------------------------
diff --git a/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/bridge/impl/JMSBridgeImpl.java b/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/bridge/impl/JMSBridgeImpl.java
index 6e190eb..5cbde39 100644
--- a/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/bridge/impl/JMSBridgeImpl.java
+++ b/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/bridge/impl/JMSBridgeImpl.java
@@ -185,7 +185,7 @@ public final class JMSBridgeImpl implements JMSBridge {
* Constructor for MBean
*/
public JMSBridgeImpl() {
- messages = new LinkedList<Message>();
+ messages = new LinkedList<>();
executor = createExecutor();
}
@@ -1563,7 +1563,7 @@ public final class JMSBridgeImpl implements JMSBridge {
String propName = en.nextElement();
if (oldProps == null) {
- oldProps = new HashMap<String, Object>();
+ oldProps = new HashMap<>();
}
oldProps.put(propName, msg.getObjectProperty(propName));
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/management/impl/JMSQueueControlImpl.java
----------------------------------------------------------------------
diff --git a/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/management/impl/JMSQueueControlImpl.java b/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/management/impl/JMSQueueControlImpl.java
index b64a14f..d279f8e 100644
--- a/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/management/impl/JMSQueueControlImpl.java
+++ b/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/management/impl/JMSQueueControlImpl.java
@@ -220,7 +220,7 @@ public class JMSQueueControlImpl extends StandardMBean implements JMSQueueContro
@Override
public Map<String, Map<String, Object>[]> listDeliveringMessages() throws Exception {
try {
- Map<String, Map<String, Object>[]> returnMap = new HashMap<String, Map<String, Object>[]>();
+ Map<String, Map<String, Object>[]> returnMap = new HashMap<>();
// the workingMap from the queue-control
Map<String, Map<String, Object>[]> workingMap = coreQueueControl.listDeliveringMessages();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/management/impl/JMSServerControlImpl.java
----------------------------------------------------------------------
diff --git a/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/management/impl/JMSServerControlImpl.java b/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/management/impl/JMSServerControlImpl.java
index 5c0aea8..8cb54f7 100644
--- a/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/management/impl/JMSServerControlImpl.java
+++ b/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/management/impl/JMSServerControlImpl.java
@@ -162,7 +162,7 @@ public class JMSServerControlImpl extends AbstractControl implements JMSServerCo
server.createConnectionFactory(name, ha, JMSFactoryType.valueOf(cfType), connectorNames[0], JMSServerControlImpl.convert(bindings));
}
else {
- List<String> connectorList = new ArrayList<String>(connectorNames.length);
+ List<String> connectorList = new ArrayList<>(connectorNames.length);
for (String str : connectorNames) {
connectorList.add(str);
@@ -262,7 +262,7 @@ public class JMSServerControlImpl extends AbstractControl implements JMSServerCo
configuration.setDiscoveryGroupName(connectorNames[0]);
}
else {
- ArrayList<String> connectorNamesList = new ArrayList<String>();
+ ArrayList<String> connectorNamesList = new ArrayList<>();
for (String nameC : connectorNames) {
connectorNamesList.add(nameC);
}
@@ -593,7 +593,7 @@ public class JMSServerControlImpl extends AbstractControl implements JMSServerCo
Set<ServerSession> sessions = server.getActiveMQServer().getSessions();
- Map<Object, ServerSession> jmsSessions = new HashMap<Object, ServerSession>();
+ Map<Object, ServerSession> jmsSessions = new HashMap<>();
// First separate the real jms sessions, after all we are only interested in those here on the *jms* server controller
for (ServerSession session : sessions) {
@@ -745,7 +745,7 @@ public class JMSServerControlImpl extends AbstractControl implements JMSServerCo
@Override
public String[] listTargetDestinations(String sessionID) throws Exception {
String[] addresses = server.getActiveMQServer().getActiveMQServerControl().listTargetAddresses(sessionID);
- Map<String, DestinationControl> allDests = new HashMap<String, DestinationControl>();
+ Map<String, DestinationControl> allDests = new HashMap<>();
Object[] queueControls = server.getActiveMQServer().getManagementService().getResources(JMSQueueControl.class);
for (Object queueControl2 : queueControls) {
@@ -759,7 +759,7 @@ public class JMSServerControlImpl extends AbstractControl implements JMSServerCo
allDests.put(topicControl.getAddress(), topicControl);
}
- List<String> destinations = new ArrayList<String>();
+ List<String> destinations = new ArrayList<>();
for (String addresse : addresses) {
DestinationControl control = allDests.get(addresse);
if (control != null) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/management/impl/JMSTopicControlImpl.java
----------------------------------------------------------------------
diff --git a/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/management/impl/JMSTopicControlImpl.java b/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/management/impl/JMSTopicControlImpl.java
index e7711ae..e226e7a 100644
--- a/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/management/impl/JMSTopicControlImpl.java
+++ b/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/management/impl/JMSTopicControlImpl.java
@@ -260,7 +260,7 @@ public class JMSTopicControlImpl extends StandardMBean implements TopicControl {
private Object[] listSubscribersInfos(final DurabilityType durability) {
List<QueueControl> queues = getQueues(durability);
- List<Object[]> subInfos = new ArrayList<Object[]>(queues.size());
+ List<Object[]> subInfos = new ArrayList<>(queues.size());
for (QueueControl queue : queues) {
String clientID = null;
@@ -342,7 +342,7 @@ public class JMSTopicControlImpl extends StandardMBean implements TopicControl {
private List<QueueControl> getQueues(final DurabilityType durability) {
try {
- List<QueueControl> matchingQueues = new ArrayList<QueueControl>();
+ List<QueueControl> matchingQueues = new ArrayList<>();
String[] queues = addressControl.getQueueNames();
for (String queue : queues) {
QueueControl coreQueueControl = (QueueControl) managementService.getResource(ResourceNames.CORE_QUEUE + queue);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/persistence/config/PersistedBindings.java
----------------------------------------------------------------------
diff --git a/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/persistence/config/PersistedBindings.java b/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/persistence/config/PersistedBindings.java
index bdf999b..53d0fb7 100644
--- a/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/persistence/config/PersistedBindings.java
+++ b/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/persistence/config/PersistedBindings.java
@@ -36,7 +36,7 @@ public class PersistedBindings implements EncodingSupport {
private String name;
- private ArrayList<String> bindings = new ArrayList<String>();
+ private ArrayList<String> bindings = new ArrayList<>();
// Static --------------------------------------------------------
@@ -61,7 +61,7 @@ public class PersistedBindings implements EncodingSupport {
type = PersistedType.getType(buffer.readByte());
name = buffer.readSimpleString().toString();
int bindingArraySize = buffer.readInt();
- bindings = new ArrayList<String>(bindingArraySize);
+ bindings = new ArrayList<>(bindingArraySize);
for (int i = 0; i < bindingArraySize; i++) {
bindings.add(buffer.readSimpleString().toString());
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/persistence/impl/journal/JMSJournalStorageManagerImpl.java
----------------------------------------------------------------------
diff --git a/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/persistence/impl/journal/JMSJournalStorageManagerImpl.java b/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/persistence/impl/journal/JMSJournalStorageManagerImpl.java
index dc93149..55bc821 100644
--- a/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/persistence/impl/journal/JMSJournalStorageManagerImpl.java
+++ b/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/persistence/impl/journal/JMSJournalStorageManagerImpl.java
@@ -62,11 +62,11 @@ public final class JMSJournalStorageManagerImpl implements JMSStorageManager {
private volatile boolean started;
- private final Map<String, PersistedConnectionFactory> mapFactories = new ConcurrentHashMap<String, PersistedConnectionFactory>();
+ private final Map<String, PersistedConnectionFactory> mapFactories = new ConcurrentHashMap<>();
- private final Map<Pair<PersistedType, String>, PersistedDestination> destinations = new ConcurrentHashMap<Pair<PersistedType, String>, PersistedDestination>();
+ private final Map<Pair<PersistedType, String>, PersistedDestination> destinations = new ConcurrentHashMap<>();
- private final Map<Pair<PersistedType, String>, PersistedBindings> mapBindings = new ConcurrentHashMap<Pair<PersistedType, String>, PersistedBindings>();
+ private final Map<Pair<PersistedType, String>, PersistedBindings> mapBindings = new ConcurrentHashMap<>();
private final Configuration config;
@@ -101,7 +101,7 @@ public final class JMSJournalStorageManagerImpl implements JMSStorageManager {
// Public --------------------------------------------------------
@Override
public List<PersistedConnectionFactory> recoverConnectionFactories() {
- List<PersistedConnectionFactory> cfs = new ArrayList<PersistedConnectionFactory>(mapFactories.values());
+ List<PersistedConnectionFactory> cfs = new ArrayList<>(mapFactories.values());
return cfs;
}
@@ -124,7 +124,7 @@ public final class JMSJournalStorageManagerImpl implements JMSStorageManager {
@Override
public List<PersistedDestination> recoverDestinations() {
- List<PersistedDestination> destinations = new ArrayList<PersistedDestination>(this.destinations.values());
+ List<PersistedDestination> destinations = new ArrayList<>(this.destinations.values());
return destinations;
}
@@ -134,18 +134,18 @@ public final class JMSJournalStorageManagerImpl implements JMSStorageManager {
long id = idGenerator.generateID();
destination.setId(id);
jmsJournal.appendAddRecord(id, DESTINATION_RECORD, destination, true);
- destinations.put(new Pair<PersistedType, String>(destination.getType(), destination.getName()), destination);
+ destinations.put(new Pair<>(destination.getType(), destination.getName()), destination);
}
@Override
public List<PersistedBindings> recoverPersistedBindings() throws Exception {
- ArrayList<PersistedBindings> list = new ArrayList<PersistedBindings>(mapBindings.values());
+ ArrayList<PersistedBindings> list = new ArrayList<>(mapBindings.values());
return list;
}
@Override
public void addBindings(PersistedType type, String name, String... address) throws Exception {
- Pair<PersistedType, String> key = new Pair<PersistedType, String>(type, name);
+ Pair<PersistedType, String> key = new Pair<>(type, name);
long tx = idGenerator.generateID();
@@ -174,7 +174,7 @@ public final class JMSJournalStorageManagerImpl implements JMSStorageManager {
@Override
public void deleteBindings(PersistedType type, String name, String address) throws Exception {
- Pair<PersistedType, String> key = new Pair<PersistedType, String>(type, name);
+ Pair<PersistedType, String> key = new Pair<>(type, name);
long tx = idGenerator.generateID();
@@ -202,7 +202,7 @@ public final class JMSJournalStorageManagerImpl implements JMSStorageManager {
@Override
public void deleteBindings(PersistedType type, String name) throws Exception {
- Pair<PersistedType, String> key = new Pair<PersistedType, String>(type, name);
+ Pair<PersistedType, String> key = new Pair<>(type, name);
PersistedBindings currentBindings = mapBindings.remove(key);
@@ -213,7 +213,7 @@ public final class JMSJournalStorageManagerImpl implements JMSStorageManager {
@Override
public void deleteDestination(final PersistedType type, final String name) throws Exception {
- PersistedDestination destination = destinations.remove(new Pair<PersistedType, String>(type, name));
+ PersistedDestination destination = destinations.remove(new Pair<>(type, name));
if (destination != null) {
jmsJournal.appendDeleteRecord(destination.getId(), false);
}
@@ -243,9 +243,9 @@ public final class JMSJournalStorageManagerImpl implements JMSStorageManager {
public void load() throws Exception {
mapFactories.clear();
- List<RecordInfo> data = new ArrayList<RecordInfo>();
+ List<RecordInfo> data = new ArrayList<>();
- ArrayList<PreparedTransactionInfo> list = new ArrayList<PreparedTransactionInfo>();
+ ArrayList<PreparedTransactionInfo> list = new ArrayList<>();
jmsJournal.load(data, list, null);
@@ -266,13 +266,13 @@ public final class JMSJournalStorageManagerImpl implements JMSStorageManager {
PersistedDestination destination = new PersistedDestination();
destination.decode(buffer);
destination.setId(id);
- destinations.put(new Pair<PersistedType, String>(destination.getType(), destination.getName()), destination);
+ destinations.put(new Pair<>(destination.getType(), destination.getName()), destination);
}
else if (rec == BINDING_RECORD) {
PersistedBindings bindings = new PersistedBindings();
bindings.decode(buffer);
bindings.setId(id);
- Pair<PersistedType, String> key = new Pair<PersistedType, String>(bindings.getType(), bindings.getName());
+ Pair<PersistedType, String> key = new Pair<>(bindings.getType(), bindings.getName());
mapBindings.put(key, bindings);
}
else {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/server/config/impl/ConnectionFactoryConfigurationImpl.java
----------------------------------------------------------------------
diff --git a/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/server/config/impl/ConnectionFactoryConfigurationImpl.java b/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/server/config/impl/ConnectionFactoryConfigurationImpl.java
index 187d6c4..74fcdf4 100644
--- a/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/server/config/impl/ConnectionFactoryConfigurationImpl.java
+++ b/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/server/config/impl/ConnectionFactoryConfigurationImpl.java
@@ -540,7 +540,7 @@ public class ConnectionFactoryConfigurationImpl implements ConnectionFactoryConf
int nConnectors = buffer.readInt();
if (nConnectors > 0) {
- connectorNames = new ArrayList<String>(nConnectors);
+ connectorNames = new ArrayList<>(nConnectors);
for (int i = 0; i < nConnectors; i++) {
SimpleString str = buffer.readSimpleString();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/server/config/impl/JMSConfigurationImpl.java
----------------------------------------------------------------------
diff --git a/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/server/config/impl/JMSConfigurationImpl.java b/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/server/config/impl/JMSConfigurationImpl.java
index eb058c6..406fb3b 100644
--- a/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/server/config/impl/JMSConfigurationImpl.java
+++ b/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/server/config/impl/JMSConfigurationImpl.java
@@ -27,11 +27,11 @@ import org.apache.activemq.artemis.jms.server.config.TopicConfiguration;
public class JMSConfigurationImpl implements JMSConfiguration {
- private List<ConnectionFactoryConfiguration> connectionFactoryConfigurations = new ArrayList<ConnectionFactoryConfiguration>();
+ private List<ConnectionFactoryConfiguration> connectionFactoryConfigurations = new ArrayList<>();
- private List<JMSQueueConfiguration> queueConfigurations = new ArrayList<JMSQueueConfiguration>();
+ private List<JMSQueueConfiguration> queueConfigurations = new ArrayList<>();
- private List<TopicConfiguration> topicConfigurations = new ArrayList<TopicConfiguration>();
+ private List<TopicConfiguration> topicConfigurations = new ArrayList<>();
private String domain = ActiveMQDefaultConfiguration.getDefaultJmxDomain();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/server/config/impl/TransportConfigurationEncodingSupport.java
----------------------------------------------------------------------
diff --git a/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/server/config/impl/TransportConfigurationEncodingSupport.java b/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/server/config/impl/TransportConfigurationEncodingSupport.java
index 858c68b..8fe0739 100644
--- a/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/server/config/impl/TransportConfigurationEncodingSupport.java
+++ b/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/server/config/impl/TransportConfigurationEncodingSupport.java
@@ -32,7 +32,7 @@ public class TransportConfigurationEncodingSupport {
public static List<Pair<TransportConfiguration, TransportConfiguration>> decodeConfigs(ActiveMQBuffer buffer) {
int size = buffer.readInt();
- List<Pair<TransportConfiguration, TransportConfiguration>> configs = new ArrayList<Pair<TransportConfiguration, TransportConfiguration>>(size);
+ List<Pair<TransportConfiguration, TransportConfiguration>> configs = new ArrayList<>(size);
for (int i = 0; i < size; i++) {
TransportConfiguration live = decode(buffer);
@@ -41,7 +41,7 @@ public class TransportConfigurationEncodingSupport {
if (hasBackup) {
backup = decode(buffer);
}
- configs.add(new Pair<TransportConfiguration, TransportConfiguration>(live, backup));
+ configs.add(new Pair<>(live, backup));
}
return configs;
@@ -51,7 +51,7 @@ public class TransportConfigurationEncodingSupport {
String name = BufferHelper.readNullableSimpleStringAsString(buffer);
String factoryClassName = buffer.readSimpleString().toString();
int paramSize = buffer.readInt();
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
for (int i = 0; i < paramSize; i++) {
String key = buffer.readSimpleString().toString();
String value = buffer.readSimpleString().toString();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/server/impl/JMSServerManagerImpl.java
----------------------------------------------------------------------
diff --git a/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/server/impl/JMSServerManagerImpl.java b/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/server/impl/JMSServerManagerImpl.java
index 50c279c..94d7487 100644
--- a/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/server/impl/JMSServerManagerImpl.java
+++ b/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/server/impl/JMSServerManagerImpl.java
@@ -104,20 +104,20 @@ public class JMSServerManagerImpl implements JMSServerManager, ActivateCallback
private BindingRegistry registry;
- private final Map<String, ActiveMQQueue> queues = new HashMap<String, ActiveMQQueue>();
+ private final Map<String, ActiveMQQueue> queues = new HashMap<>();
- private final Map<String, ActiveMQTopic> topics = new HashMap<String, ActiveMQTopic>();
+ private final Map<String, ActiveMQTopic> topics = new HashMap<>();
- private final Map<String, ActiveMQConnectionFactory> connectionFactories = new HashMap<String, ActiveMQConnectionFactory>();
+ private final Map<String, ActiveMQConnectionFactory> connectionFactories = new HashMap<>();
- private final Map<String, List<String>> queueBindings = new HashMap<String, List<String>>();
+ private final Map<String, List<String>> queueBindings = new HashMap<>();
- private final Map<String, List<String>> topicBindings = new HashMap<String, List<String>>();
+ private final Map<String, List<String>> topicBindings = new HashMap<>();
- private final Map<String, List<String>> connectionFactoryBindings = new HashMap<String, List<String>>();
+ private final Map<String, List<String>> connectionFactoryBindings = new HashMap<>();
// We keep things cached if objects are created while the JMS is not active
- private final List<Runnable> cachedCommands = new ArrayList<Runnable>();
+ private final List<Runnable> cachedCommands = new ArrayList<>();
private final ActiveMQServer server;
@@ -133,7 +133,7 @@ public class JMSServerManagerImpl implements JMSServerManager, ActivateCallback
private JMSStorageManager storage;
- private final Map<String, List<String>> unRecoveredBindings = new HashMap<String, List<String>>();
+ private final Map<String, List<String>> unRecoveredBindings = new HashMap<>();
public JMSServerManagerImpl(final ActiveMQServer server) throws Exception {
this.server = server;
@@ -224,7 +224,7 @@ public class JMSServerManagerImpl implements JMSServerManager, ActivateCallback
unbindBindings(connectionFactoryBindings);
- for (String connectionFactory : new HashSet<String>(connectionFactories.keySet())) {
+ for (String connectionFactory : new HashSet<>(connectionFactories.keySet())) {
shutdownConnectionFactory(connectionFactory);
}
@@ -290,7 +290,7 @@ public class JMSServerManagerImpl implements JMSServerManager, ActivateCallback
}
if (bindingsList == null) {
- bindingsList = new ArrayList<String>();
+ bindingsList = new ArrayList<>();
mapBindings.put(name, bindingsList);
}
@@ -336,7 +336,7 @@ public class JMSServerManagerImpl implements JMSServerManager, ActivateCallback
}
if (bindingsList == null) {
- bindingsList = new ArrayList<String>();
+ bindingsList = new ArrayList<>();
mapBindings.put(record.getName(), bindingsList);
}
@@ -494,7 +494,7 @@ public class JMSServerManagerImpl implements JMSServerManager, ActivateCallback
String[] usedBindings = null;
if (bindings != null) {
- ArrayList<String> bindingsToAdd = new ArrayList<String>();
+ ArrayList<String> bindingsToAdd = new ArrayList<>();
for (String bindingsItem : bindings) {
if (bindToBindings(bindingsItem, destination)) {
@@ -546,7 +546,7 @@ public class JMSServerManagerImpl implements JMSServerManager, ActivateCallback
throw new IllegalArgumentException("Queue does not exist");
}
- ArrayList<String> bindingsToAdd = new ArrayList<String>();
+ ArrayList<String> bindingsToAdd = new ArrayList<>();
if (bindings != null) {
for (String bindingsItem : bindings) {
@@ -989,7 +989,7 @@ public class JMSServerManagerImpl implements JMSServerManager, ActivateCallback
ActiveMQConnectionFactory cf = internalCreateCF(cfConfig);
- ArrayList<String> bindingsToAdd = new ArrayList<String>();
+ ArrayList<String> bindingsToAdd = new ArrayList<>();
for (String bindingsItem : bindings) {
if (bindToBindings(bindingsItem, cf)) {
@@ -1302,7 +1302,7 @@ public class JMSServerManagerImpl implements JMSServerManager, ActivateCallback
return "";
}
- ArrayList<Entry<Xid, Long>> xidsSortedByCreationTime = new ArrayList<Map.Entry<Xid, Long>>(xids.entrySet());
+ ArrayList<Entry<Xid, Long>> xidsSortedByCreationTime = new ArrayList<>(xids.entrySet());
Collections.sort(xidsSortedByCreationTime, new Comparator<Entry<Xid, Long>>() {
@Override
public int compare(final Entry<Xid, Long> entry1, final Entry<Xid, Long> entry2) {
@@ -1332,7 +1332,7 @@ public class JMSServerManagerImpl implements JMSServerManager, ActivateCallback
return "<h3>*** Prepared Transaction Details ***</h3><p>No entry.</p>";
}
- ArrayList<Entry<Xid, Long>> xidsSortedByCreationTime = new ArrayList<Map.Entry<Xid, Long>>(xids.entrySet());
+ ArrayList<Entry<Xid, Long>> xidsSortedByCreationTime = new ArrayList<>(xids.entrySet());
Collections.sort(xidsSortedByCreationTime, new Comparator<Entry<Xid, Long>>() {
@Override
public int compare(final Entry<Xid, Long> entry1, final Entry<Xid, Long> entry2) {
@@ -1411,7 +1411,7 @@ public class JMSServerManagerImpl implements JMSServerManager, ActivateCallback
private void addToBindings(Map<String, List<String>> map, String name, String... bindings) {
List<String> list = map.get(name);
if (list == null) {
- list = new ArrayList<String>();
+ list = new ArrayList<>();
map.put(name, list);
}
for (String bindingsItem : bindings) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-journal/src/main/java/org/apache/activemq/artemis/core/io/aio/AIOSequentialFileFactory.java
----------------------------------------------------------------------
diff --git a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/io/aio/AIOSequentialFileFactory.java b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/io/aio/AIOSequentialFileFactory.java
index 92d1b3b..58f7248 100644
--- a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/io/aio/AIOSequentialFileFactory.java
+++ b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/io/aio/AIOSequentialFileFactory.java
@@ -363,7 +363,7 @@ public final class AIOSequentialFileFactory extends AbstractSequentialFileFactor
private volatile long bufferReuseLastTime = System.currentTimeMillis();
- private final ConcurrentLinkedQueue<ByteBuffer> reuseBuffersQueue = new ConcurrentLinkedQueue<ByteBuffer>();
+ private final ConcurrentLinkedQueue<ByteBuffer> reuseBuffersQueue = new ConcurrentLinkedQueue<>();
private boolean stopped = false;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-journal/src/main/java/org/apache/activemq/artemis/core/io/buffer/TimedBuffer.java
----------------------------------------------------------------------
diff --git a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/io/buffer/TimedBuffer.java b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/io/buffer/TimedBuffer.java
index 20761a5..23e0981 100644
--- a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/io/buffer/TimedBuffer.java
+++ b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/io/buffer/TimedBuffer.java
@@ -111,7 +111,7 @@ public class TimedBuffer {
bufferLimit = 0;
- callbacks = new ArrayList<IOCallback>();
+ callbacks = new ArrayList<>();
this.timeout = timeout;
}
@@ -294,7 +294,7 @@ public class TimedBuffer {
pendingSync = false;
// swap the instance as the previous callback list is being used asynchronously
- callbacks = new LinkedList<IOCallback>();
+ callbacks = new LinkedList<>();
buffer.clear();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-journal/src/main/java/org/apache/activemq/artemis/core/io/nio/NIOSequentialFileFactory.java
----------------------------------------------------------------------
diff --git a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/io/nio/NIOSequentialFileFactory.java b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/io/nio/NIOSequentialFileFactory.java
index d949f0b..67c3038 100644
--- a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/io/nio/NIOSequentialFileFactory.java
+++ b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/io/nio/NIOSequentialFileFactory.java
@@ -87,7 +87,7 @@ public class NIOSequentialFileFactory extends AbstractSequentialFileFactory {
// the main portion is outside of the VM heap
// and the JDK will not have any reference about it to take GC into account
// so we force a GC and try again.
- WeakReference<Object> obj = new WeakReference<Object>(new Object());
+ WeakReference<Object> obj = new WeakReference<>(new Object());
try {
long timeout = System.currentTimeMillis() + 5000;
while (System.currentTimeMillis() > timeout && obj.get() != null) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/PreparedTransactionInfo.java
----------------------------------------------------------------------
diff --git a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/PreparedTransactionInfo.java b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/PreparedTransactionInfo.java
index 3d82a23..82abc4f 100644
--- a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/PreparedTransactionInfo.java
+++ b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/PreparedTransactionInfo.java
@@ -25,9 +25,9 @@ public class PreparedTransactionInfo {
public final byte[] extraData;
- public final List<RecordInfo> records = new ArrayList<RecordInfo>();
+ public final List<RecordInfo> records = new ArrayList<>();
- public final List<RecordInfo> recordsToDelete = new ArrayList<RecordInfo>();
+ public final List<RecordInfo> recordsToDelete = new ArrayList<>();
public PreparedTransactionInfo(final long id, final byte[] extraData) {
this.id = id;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/AbstractJournalUpdateTask.java
----------------------------------------------------------------------
diff --git a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/AbstractJournalUpdateTask.java b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/AbstractJournalUpdateTask.java
index 6e9bc69..a8ffebc 100644
--- a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/AbstractJournalUpdateTask.java
+++ b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/AbstractJournalUpdateTask.java
@@ -55,9 +55,9 @@ public abstract class AbstractJournalUpdateTask implements JournalReaderCallback
private ActiveMQBuffer writingChannel;
- private final Set<Long> recordsSnapshot = new ConcurrentHashSet<Long>();
+ private final Set<Long> recordsSnapshot = new ConcurrentHashSet<>();
- protected final List<JournalFile> newDataFiles = new ArrayList<JournalFile>();
+ protected final List<JournalFile> newDataFiles = new ArrayList<>();
// Static --------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/FileWrapperJournal.java
----------------------------------------------------------------------
diff --git a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/FileWrapperJournal.java b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/FileWrapperJournal.java
index ba3807b..cf09fd7 100644
--- a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/FileWrapperJournal.java
+++ b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/FileWrapperJournal.java
@@ -52,7 +52,7 @@ public final class FileWrapperJournal extends JournalBase {
private final ReentrantLock lockAppend = new ReentrantLock();
- private final ConcurrentMap<Long, AtomicInteger> transactions = new ConcurrentHashMap<Long, AtomicInteger>();
+ private final ConcurrentMap<Long, AtomicInteger> transactions = new ConcurrentHashMap<>();
private final JournalImpl journal;
protected volatile JournalFile currentFile;
[07/32] activemq-artemis git commit: Remove redundant type arguments
Posted by cl...@apache.org.
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/paging/MultipleConsumersPageStressTest.java
----------------------------------------------------------------------
diff --git a/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/paging/MultipleConsumersPageStressTest.java b/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/paging/MultipleConsumersPageStressTest.java
index befef1c..a9116a9 100644
--- a/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/paging/MultipleConsumersPageStressTest.java
+++ b/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/paging/MultipleConsumersPageStressTest.java
@@ -71,11 +71,11 @@ public class MultipleConsumersPageStressTest extends ActiveMQTestBase {
private volatile boolean runningConsumer = true;
- ArrayList<TestProducer> producers = new ArrayList<TestProducer>();
+ ArrayList<TestProducer> producers = new ArrayList<>();
- ArrayList<TestConsumer> consumers = new ArrayList<TestConsumer>();
+ ArrayList<TestConsumer> consumers = new ArrayList<>();
- ArrayList<Throwable> exceptions = new ArrayList<Throwable>();
+ ArrayList<Throwable> exceptions = new ArrayList<>();
@Test
public void testOpenConsumerEveryTimeDefaultFlowControl0() throws Throwable {
@@ -96,7 +96,7 @@ public class MultipleConsumersPageStressTest extends ActiveMQTestBase {
public void setUp() throws Exception {
super.setUp();
- HashMap<String, AddressSettings> settings = new HashMap<String, AddressSettings>();
+ HashMap<String, AddressSettings> settings = new HashMap<>();
server = createServer(true, createDefaultInVMConfig(), 10024, 200024, settings);
server.start();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/paging/PageCursorStressTest.java
----------------------------------------------------------------------
diff --git a/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/paging/PageCursorStressTest.java b/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/paging/PageCursorStressTest.java
index d0e127a..febcb45 100644
--- a/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/paging/PageCursorStressTest.java
+++ b/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/paging/PageCursorStressTest.java
@@ -780,7 +780,7 @@ public class PageCursorStressTest extends ActiveMQTestBase {
public void setUp() throws Exception {
super.setUp();
OperationContextImpl.clearContext();
- queueList = new ArrayList<Queue>();
+ queueList = new ArrayList<>();
createServer();
lock = new ReentrantReadWriteLock().readLock();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/paging/PageStressTest.java
----------------------------------------------------------------------
diff --git a/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/paging/PageStressTest.java b/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/paging/PageStressTest.java
index de3d545..a439587 100644
--- a/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/paging/PageStressTest.java
+++ b/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/paging/PageStressTest.java
@@ -48,7 +48,7 @@ public class PageStressTest extends ActiveMQTestBase {
public void testStopDuringDepage() throws Exception {
Configuration config = createDefaultInVMConfig().setJournalSyncNonTransactional(false).setJournalSyncTransactional(false);
- HashMap<String, AddressSettings> settings = new HashMap<String, AddressSettings>();
+ HashMap<String, AddressSettings> settings = new HashMap<>();
AddressSettings setting = new AddressSettings().setMaxSizeBytes(20 * 1024 * 1024);
settings.put("page-adr", setting);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/stomp/StompStressTest.java
----------------------------------------------------------------------
diff --git a/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/stomp/StompStressTest.java b/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/stomp/StompStressTest.java
index 1a7b764..71485ed 100644
--- a/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/stomp/StompStressTest.java
+++ b/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/stomp/StompStressTest.java
@@ -103,7 +103,7 @@ public class StompStressTest extends ActiveMQTestBase {
}
private ActiveMQServer createServer() throws Exception {
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put(TransportConstants.PROTOCOLS_PROP_NAME, StompProtocolManagerFactory.STOMP_PROTOCOL_NAME);
params.put(TransportConstants.PORT_PROP_NAME, TransportConstants.DEFAULT_STOMP_PORT);
TransportConfiguration stompTransport = new TransportConfiguration(NettyAcceptorFactory.class.getName(), params);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/timing-tests/src/test/java/org/apache/activemq/artemis/tests/timing/core/server/impl/QueueConcurrentTest.java
----------------------------------------------------------------------
diff --git a/tests/timing-tests/src/test/java/org/apache/activemq/artemis/tests/timing/core/server/impl/QueueConcurrentTest.java b/tests/timing-tests/src/test/java/org/apache/activemq/artemis/tests/timing/core/server/impl/QueueConcurrentTest.java
index deb32b5..adf97fc 100644
--- a/tests/timing-tests/src/test/java/org/apache/activemq/artemis/tests/timing/core/server/impl/QueueConcurrentTest.java
+++ b/tests/timing-tests/src/test/java/org/apache/activemq/artemis/tests/timing/core/server/impl/QueueConcurrentTest.java
@@ -119,7 +119,7 @@ public class QueueConcurrentTest extends ActiveMQTestBase {
return e;
}
- private final List<MessageReference> refs = new ArrayList<MessageReference>();
+ private final List<MessageReference> refs = new ArrayList<>();
public List<MessageReference> getReferences() {
return refs;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/timing-tests/src/test/java/org/apache/activemq/artemis/tests/timing/core/server/impl/QueueImplTest.java
----------------------------------------------------------------------
diff --git a/tests/timing-tests/src/test/java/org/apache/activemq/artemis/tests/timing/core/server/impl/QueueImplTest.java b/tests/timing-tests/src/test/java/org/apache/activemq/artemis/tests/timing/core/server/impl/QueueImplTest.java
index a2120e8..8fb9b9b 100644
--- a/tests/timing-tests/src/test/java/org/apache/activemq/artemis/tests/timing/core/server/impl/QueueImplTest.java
+++ b/tests/timing-tests/src/test/java/org/apache/activemq/artemis/tests/timing/core/server/impl/QueueImplTest.java
@@ -106,7 +106,7 @@ public class QueueImplTest extends ActiveMQTestBase {
ref8.setScheduledDeliveryTime(now + 6000);
queue.addTail(ref8);
- List<MessageReference> refs = new ArrayList<MessageReference>();
+ List<MessageReference> refs = new ArrayList<>();
// Scheduled refs are added back to *FRONT* of queue - otherwise if there were many messages in the queue
// They may get stranded behind a big backlog
@@ -179,7 +179,7 @@ public class QueueImplTest extends ActiveMQTestBase {
queue.deliverNow();
- List<MessageReference> refs = new ArrayList<MessageReference>();
+ List<MessageReference> refs = new ArrayList<>();
refs.add(ref2);
refs.add(ref3);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/timing-tests/src/test/java/org/apache/activemq/artemis/tests/timing/jms/bridge/impl/JMSBridgeImplTest.java
----------------------------------------------------------------------
diff --git a/tests/timing-tests/src/test/java/org/apache/activemq/artemis/tests/timing/jms/bridge/impl/JMSBridgeImplTest.java b/tests/timing-tests/src/test/java/org/apache/activemq/artemis/tests/timing/jms/bridge/impl/JMSBridgeImplTest.java
index 896fda8..4054c64 100644
--- a/tests/timing-tests/src/test/java/org/apache/activemq/artemis/tests/timing/jms/bridge/impl/JMSBridgeImplTest.java
+++ b/tests/timing-tests/src/test/java/org/apache/activemq/artemis/tests/timing/jms/bridge/impl/JMSBridgeImplTest.java
@@ -319,7 +319,7 @@ public class JMSBridgeImplTest extends ActiveMQTestBase {
Connection targetConn = JMSBridgeImplTest.createConnectionFactory().createConnection();
Session targetSess = targetConn.createSession(false, Session.AUTO_ACKNOWLEDGE);
MessageConsumer consumer = targetSess.createConsumer(targetDF.createDestination());
- final List<Message> messages = new LinkedList<Message>();
+ final List<Message> messages = new LinkedList<>();
MessageListener listener = new MessageListener() {
@Override
@@ -378,7 +378,7 @@ public class JMSBridgeImplTest extends ActiveMQTestBase {
Connection targetConn = JMSBridgeImplTest.createConnectionFactory().createConnection();
Session targetSess = targetConn.createSession(false, Session.AUTO_ACKNOWLEDGE);
MessageConsumer consumer = targetSess.createConsumer(targetDF.createDestination());
- final List<Message> messages = new LinkedList<Message>();
+ final List<Message> messages = new LinkedList<>();
final CountDownLatch latch = new CountDownLatch(numMessages);
MessageListener listener = new MessageListener() {
@Override
@@ -480,7 +480,7 @@ public class JMSBridgeImplTest extends ActiveMQTestBase {
@Test
public void testExceptionOnSourceAndRetrySucceeds() throws Exception {
- final AtomicReference<Connection> sourceConn = new AtomicReference<Connection>();
+ final AtomicReference<Connection> sourceConn = new AtomicReference<>();
ActiveMQJMSConnectionFactory failingSourceCF = new ActiveMQJMSConnectionFactory(false, new TransportConfiguration(InVMConnectorFactory.class.getName())) {
private static final long serialVersionUID = -8866390811966688830L;
@@ -530,7 +530,7 @@ public class JMSBridgeImplTest extends ActiveMQTestBase {
@Test
public void testExceptionOnSourceAndRetryFails() throws Exception {
- final AtomicReference<Connection> sourceConn = new AtomicReference<Connection>();
+ final AtomicReference<Connection> sourceConn = new AtomicReference<>();
ActiveMQJMSConnectionFactory failingSourceCF = new ActiveMQJMSConnectionFactory(false, new TransportConfiguration(INVM_CONNECTOR_FACTORY)) {
private static final long serialVersionUID = 8216804886099984645L;
boolean firstTime = true;
@@ -587,7 +587,7 @@ public class JMSBridgeImplTest extends ActiveMQTestBase {
public void testStartWithSpecificTCCL() throws Exception {
MockContextClassLoader mockTccl = setMockTCCL();
try {
- final AtomicReference<Connection> sourceConn = new AtomicReference<Connection>();
+ final AtomicReference<Connection> sourceConn = new AtomicReference<>();
ActiveMQJMSConnectionFactory failingSourceCF = new ActiveMQJMSConnectionFactory(false, new TransportConfiguration(InVMConnectorFactory.class.getName())) {
private static final long serialVersionUID = -8866390811966688830L;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/asyncio/MultiThreadAsynchronousFileTest.java
----------------------------------------------------------------------
diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/asyncio/MultiThreadAsynchronousFileTest.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/asyncio/MultiThreadAsynchronousFileTest.java
index 469d2a2..4806bf9 100644
--- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/asyncio/MultiThreadAsynchronousFileTest.java
+++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/asyncio/MultiThreadAsynchronousFileTest.java
@@ -109,7 +109,7 @@ public class MultiThreadAsynchronousFileTest extends AIOTestBase {
CountDownLatch latchStart = new CountDownLatch(MultiThreadAsynchronousFileTest.NUMBER_OF_THREADS + 1);
- ArrayList<ThreadProducer> list = new ArrayList<ThreadProducer>(MultiThreadAsynchronousFileTest.NUMBER_OF_THREADS);
+ ArrayList<ThreadProducer> list = new ArrayList<>(MultiThreadAsynchronousFileTest.NUMBER_OF_THREADS);
for (int i = 0; i < MultiThreadAsynchronousFileTest.NUMBER_OF_THREADS; i++) {
ThreadProducer producer = new ThreadProducer("Thread " + i, latchStart, file, sync);
list.add(producer);
@@ -197,7 +197,7 @@ public class MultiThreadAsynchronousFileTest extends AIOTestBase {
latchFinishThread = new CountDownLatch(MultiThreadAsynchronousFileTest.NUMBER_OF_LINES);
}
- LinkedList<CountDownCallback> list = new LinkedList<CountDownCallback>();
+ LinkedList<CountDownCallback> list = new LinkedList<>();
for (int i = 0; i < MultiThreadAsynchronousFileTest.NUMBER_OF_LINES; i++) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/config/impl/ConnectorsServiceTest.java
----------------------------------------------------------------------
diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/config/impl/ConnectorsServiceTest.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/config/impl/ConnectorsServiceTest.java
index 110a621..300f978 100644
--- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/config/impl/ConnectorsServiceTest.java
+++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/config/impl/ConnectorsServiceTest.java
@@ -77,7 +77,7 @@ public class ConnectorsServiceTest extends ActiveMQTestBase {
public void testConnectorsServiceUsesConfiguredConnectorServices() throws Exception {
ConnectorServiceConfiguration connectorServiceConfiguration = new ConnectorServiceConfiguration().setFactoryClassName(FakeConnectorServiceFactory.class.getCanonicalName()).setParams(new HashMap<String, Object>()).setName("myfact");
- List<ConnectorServiceConfiguration> connectorServiceConfigurations = new ArrayList<ConnectorServiceConfiguration>();
+ List<ConnectorServiceConfiguration> connectorServiceConfigurations = new ArrayList<>();
connectorServiceConfigurations.add(connectorServiceConfiguration);
configuration.setConnectorServiceConfigurations(connectorServiceConfigurations);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/config/impl/fakes/FakeConnectorServiceFactory.java
----------------------------------------------------------------------
diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/config/impl/fakes/FakeConnectorServiceFactory.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/config/impl/fakes/FakeConnectorServiceFactory.java
index af7b94d..16bdc7c 100644
--- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/config/impl/fakes/FakeConnectorServiceFactory.java
+++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/config/impl/fakes/FakeConnectorServiceFactory.java
@@ -48,12 +48,12 @@ public class FakeConnectorServiceFactory implements ConnectorServiceFactory {
@Override
public Set<String> getAllowableProperties() {
- return new HashSet<String>();
+ return new HashSet<>();
}
@Override
public Set<String> getRequiredProperties() {
- return new HashSet<String>();
+ return new HashSet<>();
}
public ConnectorService getConnectorService() {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/AlignedJournalImplTest.java
----------------------------------------------------------------------
diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/AlignedJournalImplTest.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/AlignedJournalImplTest.java
index 97cd4fe..e01263b 100644
--- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/AlignedJournalImplTest.java
+++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/AlignedJournalImplTest.java
@@ -1128,7 +1128,7 @@ public class AlignedJournalImplTest extends ActiveMQTestBase {
final CountDownLatch latchReady = new CountDownLatch(2);
final CountDownLatch latchStart = new CountDownLatch(1);
final AtomicInteger finishedOK = new AtomicInteger(0);
- final BlockingQueue<Integer> queueDelete = new LinkedBlockingQueue<Integer>();
+ final BlockingQueue<Integer> queueDelete = new LinkedBlockingQueue<>();
final int NUMBER_OF_ELEMENTS = 500;
@@ -1234,8 +1234,8 @@ public class AlignedJournalImplTest extends ActiveMQTestBase {
addActiveMQComponent(journalImpl);
journalImpl.start();
- ArrayList<RecordInfo> info = new ArrayList<RecordInfo>();
- ArrayList<PreparedTransactionInfo> trans = new ArrayList<PreparedTransactionInfo>();
+ ArrayList<RecordInfo> info = new ArrayList<>();
+ ArrayList<PreparedTransactionInfo> trans = new ArrayList<>();
journalImpl.load(info, trans, null);
@@ -1253,11 +1253,11 @@ public class AlignedJournalImplTest extends ActiveMQTestBase {
public void setUp() throws Exception {
super.setUp();
- records = new ArrayList<RecordInfo>();
+ records = new ArrayList<>();
- transactions = new ArrayList<PreparedTransactionInfo>();
+ transactions = new ArrayList<>();
- incompleteTransactions = new ArrayList<Long>();
+ incompleteTransactions = new ArrayList<>();
factory = null;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/JournalAsyncTest.java
----------------------------------------------------------------------
diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/JournalAsyncTest.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/JournalAsyncTest.java
index 22395e8..f8a907a 100644
--- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/JournalAsyncTest.java
+++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/JournalAsyncTest.java
@@ -173,9 +173,9 @@ public class JournalAsyncTest extends ActiveMQTestBase {
public void setUp() throws Exception {
super.setUp();
- records = new ArrayList<RecordInfo>();
+ records = new ArrayList<>();
- transactions = new ArrayList<PreparedTransactionInfo>();
+ transactions = new ArrayList<>();
factory = null;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/JournalImplTestBase.java
----------------------------------------------------------------------
diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/JournalImplTestBase.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/JournalImplTestBase.java
index 4c6c4e7..e502ff7 100644
--- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/JournalImplTestBase.java
+++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/JournalImplTestBase.java
@@ -42,13 +42,13 @@ import org.junit.Before;
public abstract class JournalImplTestBase extends ActiveMQTestBase {
- protected List<RecordInfo> records = new LinkedList<RecordInfo>();
+ protected List<RecordInfo> records = new LinkedList<>();
protected TestableJournal journal;
protected int recordLength = 1024;
- protected Map<Long, TransactionHolder> transactions = new LinkedHashMap<Long, TransactionHolder>();
+ protected Map<Long, TransactionHolder> transactions = new LinkedHashMap<>();
protected int maxAIO;
@@ -233,9 +233,9 @@ public abstract class JournalImplTestBase extends ActiveMQTestBase {
}
protected void loadAndCheck(final boolean printDebugJournal) throws Exception {
- List<RecordInfo> committedRecords = new ArrayList<RecordInfo>();
+ List<RecordInfo> committedRecords = new ArrayList<>();
- List<PreparedTransactionInfo> preparedTransactions = new ArrayList<PreparedTransactionInfo>();
+ List<PreparedTransactionInfo> preparedTransactions = new ArrayList<>();
journal.load(committedRecords, preparedTransactions, null);
@@ -247,7 +247,7 @@ public abstract class JournalImplTestBase extends ActiveMQTestBase {
// check prepared transactions
- List<PreparedTransactionInfo> prepared = new ArrayList<PreparedTransactionInfo>();
+ List<PreparedTransactionInfo> prepared = new ArrayList<>();
for (Map.Entry<Long, TransactionHolder> entry : transactions.entrySet()) {
if (entry.getValue().prepared) {
@@ -537,9 +537,9 @@ public abstract class JournalImplTestBase extends ActiveMQTestBase {
static final class TransactionHolder {
- List<RecordInfo> records = new ArrayList<RecordInfo>();
+ List<RecordInfo> records = new ArrayList<>();
- List<RecordInfo> deletes = new ArrayList<RecordInfo>();
+ List<RecordInfo> deletes = new ArrayList<>();
boolean prepared;
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/ReclaimerTest.java
----------------------------------------------------------------------
diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/ReclaimerTest.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/ReclaimerTest.java
index 53849c7..39132a5 100644
--- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/ReclaimerTest.java
+++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/ReclaimerTest.java
@@ -722,13 +722,13 @@ public class ReclaimerTest extends ActiveMQTestBase {
static final class MockJournalFile implements JournalFile {
- private final Set<Long> transactionIDs = new HashSet<Long>();
+ private final Set<Long> transactionIDs = new HashSet<>();
- private final Set<Long> transactionTerminationIDs = new HashSet<Long>();
+ private final Set<Long> transactionTerminationIDs = new HashSet<>();
- private final Set<Long> transactionPrepareIDs = new HashSet<Long>();
+ private final Set<Long> transactionPrepareIDs = new HashSet<>();
- private final Map<JournalFile, Integer> negCounts = new HashMap<JournalFile, Integer>();
+ private final Map<JournalFile, Integer> negCounts = new HashMap<>();
private int posCount;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/SequentialFileFactoryTestBase.java
----------------------------------------------------------------------
diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/SequentialFileFactoryTestBase.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/SequentialFileFactoryTestBase.java
index 18b8a9c..5ec0d07 100644
--- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/SequentialFileFactoryTestBase.java
+++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/SequentialFileFactoryTestBase.java
@@ -73,7 +73,7 @@ public abstract class SequentialFileFactoryTestBase extends ActiveMQTestBase {
@Test
public void testCreateAndListFiles() throws Exception {
- List<String> expectedFiles = new ArrayList<String>();
+ List<String> expectedFiles = new ArrayList<>();
final int numFiles = 10;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/TimedBufferTest.java
----------------------------------------------------------------------
diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/TimedBufferTest.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/TimedBufferTest.java
index 537cabf..780c4ed 100644
--- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/TimedBufferTest.java
+++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/TimedBufferTest.java
@@ -59,7 +59,7 @@ public class TimedBufferTest extends ActiveMQTestBase {
@Test
public void testFillBuffer() {
- final ArrayList<ByteBuffer> buffers = new ArrayList<ByteBuffer>();
+ final ArrayList<ByteBuffer> buffers = new ArrayList<>();
final AtomicInteger flushTimes = new AtomicInteger(0);
class TestObserver implements TimedBufferObserver {
@@ -128,7 +128,7 @@ public class TimedBufferTest extends ActiveMQTestBase {
@Test
public void testTimingAndFlush() throws Exception {
- final ArrayList<ByteBuffer> buffers = new ArrayList<ByteBuffer>();
+ final ArrayList<ByteBuffer> buffers = new ArrayList<>();
final AtomicInteger flushTimes = new AtomicInteger(0);
class TestObserver implements TimedBufferObserver {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/fakes/FakeSequentialFileFactory.java
----------------------------------------------------------------------
diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/fakes/FakeSequentialFileFactory.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/fakes/FakeSequentialFileFactory.java
index 7ab0abf..fd44f2b 100644
--- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/fakes/FakeSequentialFileFactory.java
+++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/fakes/FakeSequentialFileFactory.java
@@ -35,7 +35,7 @@ import org.apache.activemq.artemis.core.io.buffer.TimedBuffer;
public class FakeSequentialFileFactory implements SequentialFileFactory {
- private final Map<String, FakeSequentialFile> fileMap = new ConcurrentHashMap<String, FakeSequentialFile>();
+ private final Map<String, FakeSequentialFile> fileMap = new ConcurrentHashMap<>();
private final int alignment;
@@ -52,7 +52,7 @@ public class FakeSequentialFileFactory implements SequentialFileFactory {
public FakeSequentialFileFactory(final int alignment, final boolean supportsCallback) {
this.alignment = alignment;
this.supportsCallback = supportsCallback;
- callbacksInHold = new ArrayList<CallbackRunnable>();
+ callbacksInHold = new ArrayList<>();
}
public FakeSequentialFileFactory() {
@@ -98,7 +98,7 @@ public class FakeSequentialFileFactory implements SequentialFileFactory {
@Override
public List<String> listFiles(final String extension) {
- List<String> files = new ArrayList<String>();
+ List<String> files = new ArrayList<>();
for (String s : fileMap.keySet()) {
if (s.endsWith("." + extension)) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/message/impl/MessageImplTest.java
----------------------------------------------------------------------
diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/message/impl/MessageImplTest.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/message/impl/MessageImplTest.java
index 18f37e6..0178f63 100644
--- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/message/impl/MessageImplTest.java
+++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/message/impl/MessageImplTest.java
@@ -302,7 +302,7 @@ public class MessageImplTest extends ActiveMQTestBase {
}
}
- ArrayList<Thread> threads = new ArrayList<Thread>();
+ ArrayList<Thread> threads = new ArrayList<>();
for (int i = 0; i < T1_number; i++) {
T1 t = new T1();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/paging/impl/PageTest.java
----------------------------------------------------------------------
diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/paging/impl/PageTest.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/paging/impl/PageTest.java
index aa06ea0..d6e0f72 100644
--- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/paging/impl/PageTest.java
+++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/paging/impl/PageTest.java
@@ -193,7 +193,7 @@ public class PageTest extends ActiveMQTestBase {
protected ArrayList<ActiveMQBuffer> addPageElements(final SimpleString simpleDestination,
final Page page,
final int numberOfElements) throws Exception {
- ArrayList<ActiveMQBuffer> buffers = new ArrayList<ActiveMQBuffer>();
+ ArrayList<ActiveMQBuffer> buffers = new ArrayList<>();
int initialNumberOfMessages = page.getNumberOfMessages();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/paging/impl/PagingManagerImplTest.java
----------------------------------------------------------------------
diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/paging/impl/PagingManagerImplTest.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/paging/impl/PagingManagerImplTest.java
index 5f21753..868bdfa 100644
--- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/paging/impl/PagingManagerImplTest.java
+++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/paging/impl/PagingManagerImplTest.java
@@ -50,7 +50,7 @@ public class PagingManagerImplTest extends ActiveMQTestBase {
@Test
public void testPagingManager() throws Exception {
- HierarchicalRepository<AddressSettings> addressSettings = new HierarchicalObjectRepository<AddressSettings>();
+ HierarchicalRepository<AddressSettings> addressSettings = new HierarchicalObjectRepository<>();
addressSettings.setDefault(new AddressSettings().setAddressFullMessagePolicy(AddressFullMessagePolicy.PAGE));
final StorageManager storageManager = new NullStorageManager();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/paging/impl/PagingStoreImplTest.java
----------------------------------------------------------------------
diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/paging/impl/PagingStoreImplTest.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/paging/impl/PagingStoreImplTest.java
index 13908b0..d361ffa 100644
--- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/paging/impl/PagingStoreImplTest.java
+++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/paging/impl/PagingStoreImplTest.java
@@ -141,7 +141,7 @@ public class PagingStoreImplTest extends ActiveMQTestBase {
Assert.assertEquals(1, storeImpl.getNumberOfPages());
- List<ActiveMQBuffer> buffers = new ArrayList<ActiveMQBuffer>();
+ List<ActiveMQBuffer> buffers = new ArrayList<>();
ActiveMQBuffer buffer = createRandomBuffer(0, 10);
@@ -183,7 +183,7 @@ public class PagingStoreImplTest extends ActiveMQTestBase {
storeImpl.startPaging();
- List<ActiveMQBuffer> buffers = new ArrayList<ActiveMQBuffer>();
+ List<ActiveMQBuffer> buffers = new ArrayList<>();
int numMessages = 10;
@@ -247,7 +247,7 @@ public class PagingStoreImplTest extends ActiveMQTestBase {
Assert.assertEquals(1, store.getNumberOfPages());
- List<ActiveMQBuffer> buffers = new ArrayList<ActiveMQBuffer>();
+ List<ActiveMQBuffer> buffers = new ArrayList<>();
for (int i = 0; i < 10; i++) {
@@ -370,9 +370,9 @@ public class PagingStoreImplTest extends ActiveMQTestBase {
final CountDownLatch latchStart = new CountDownLatch(numberOfThreads);
- final ConcurrentHashMap<Long, ServerMessage> buffers = new ConcurrentHashMap<Long, ServerMessage>();
+ final ConcurrentHashMap<Long, ServerMessage> buffers = new ConcurrentHashMap<>();
- final ArrayList<Page> readPages = new ArrayList<Page>();
+ final ArrayList<Page> readPages = new ArrayList<>();
AddressSettings settings = new AddressSettings().setPageSizeBytes(MAX_SIZE).setAddressFullMessagePolicy(AddressFullMessagePolicy.PAGE);
@@ -477,7 +477,7 @@ public class PagingStoreImplTest extends ActiveMQTestBase {
throw consumer.e;
}
- final ConcurrentMap<Long, ServerMessage> buffers2 = new ConcurrentHashMap<Long, ServerMessage>();
+ final ConcurrentMap<Long, ServerMessage> buffers2 = new ConcurrentHashMap<>();
for (Page page : readPages) {
page.open();
@@ -627,7 +627,7 @@ public class PagingStoreImplTest extends ActiveMQTestBase {
final long NUMBER_OF_MESSAGES = 100000;
- final List<Throwable> errors = new ArrayList<Throwable>();
+ final List<Throwable> errors = new ArrayList<>();
class WriterThread extends Thread {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/persistence/impl/BatchIDGeneratorUnitTest.java
----------------------------------------------------------------------
diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/persistence/impl/BatchIDGeneratorUnitTest.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/persistence/impl/BatchIDGeneratorUnitTest.java
index 30d7f2a..554a5e3 100644
--- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/persistence/impl/BatchIDGeneratorUnitTest.java
+++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/persistence/impl/BatchIDGeneratorUnitTest.java
@@ -114,8 +114,8 @@ public class BatchIDGeneratorUnitTest extends ActiveMQTestBase {
}
protected void loadIDs(final Journal journal, final BatchingIDGenerator batch) throws Exception {
- ArrayList<RecordInfo> records = new ArrayList<RecordInfo>();
- ArrayList<PreparedTransactionInfo> tx = new ArrayList<PreparedTransactionInfo>();
+ ArrayList<RecordInfo> records = new ArrayList<>();
+ ArrayList<PreparedTransactionInfo> tx = new ArrayList<>();
journal.start();
journal.load(records, tx, null);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/postoffice/impl/DuplicateDetectionUnitTest.java
----------------------------------------------------------------------
diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/postoffice/impl/DuplicateDetectionUnitTest.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/postoffice/impl/DuplicateDetectionUnitTest.java
index af6fc72..e89510e 100644
--- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/postoffice/impl/DuplicateDetectionUnitTest.java
+++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/postoffice/impl/DuplicateDetectionUnitTest.java
@@ -96,7 +96,7 @@ public class DuplicateDetectionUnitTest extends ActiveMQTestBase {
journal.start();
journal.loadBindingJournal(new ArrayList<QueueBindingInfo>(), new ArrayList<GroupingInfo>());
- HashMap<SimpleString, List<Pair<byte[], Long>>> mapDups = new HashMap<SimpleString, List<Pair<byte[], Long>>>();
+ HashMap<SimpleString, List<Pair<byte[], Long>>> mapDups = new HashMap<>();
FakePagingManager pagingManager = new FakePagingManager();
journal.loadMessageJournal(postOffice, pagingManager, new ResourceManagerImpl(0, 0, scheduledThreadPool), null, mapDups, null, null, new PostOfficeJournalLoader(postOffice, pagingManager, null, null, null, null, null, null));
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/postoffice/impl/WildcardAddressManagerUnitTest.java
----------------------------------------------------------------------
diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/postoffice/impl/WildcardAddressManagerUnitTest.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/postoffice/impl/WildcardAddressManagerUnitTest.java
index 6f17770..23b1c65 100644
--- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/postoffice/impl/WildcardAddressManagerUnitTest.java
+++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/postoffice/impl/WildcardAddressManagerUnitTest.java
@@ -179,7 +179,7 @@ public class WildcardAddressManagerUnitTest extends ActiveMQTestBase {
class BindignsFake implements Bindings {
- ArrayList<Binding> bindings = new ArrayList<Binding>();
+ ArrayList<Binding> bindings = new ArrayList<>();
@Override
public Collection<Binding> getBindings() {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/remoting/impl/invm/InVMConnectorFactoryTest.java
----------------------------------------------------------------------
diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/remoting/impl/invm/InVMConnectorFactoryTest.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/remoting/impl/invm/InVMConnectorFactoryTest.java
index 3fe6af1..0e4e181 100644
--- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/remoting/impl/invm/InVMConnectorFactoryTest.java
+++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/remoting/impl/invm/InVMConnectorFactoryTest.java
@@ -43,7 +43,7 @@ public class InVMConnectorFactoryTest {
assertTrue(tc.getParams().equals(InVMConnector.DEFAULT_CONFIG));
// Test defaults are not set when TransportConfig params are not empty
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put("Foo", "Bar");
tc = new TransportConfiguration(InVMConnectorFactory.class.getName(), params);
assertTrue(tc.getParams().size() == 1);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/remoting/impl/netty/NettyAcceptorFactoryTest.java
----------------------------------------------------------------------
diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/remoting/impl/netty/NettyAcceptorFactoryTest.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/remoting/impl/netty/NettyAcceptorFactoryTest.java
index a8fdfab..ac2ff3c 100644
--- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/remoting/impl/netty/NettyAcceptorFactoryTest.java
+++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/remoting/impl/netty/NettyAcceptorFactoryTest.java
@@ -40,7 +40,7 @@ public class NettyAcceptorFactoryTest extends ActiveMQTestBase {
public void testCreateAcceptor() throws Exception {
NettyAcceptorFactory factory = new NettyAcceptorFactory();
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
BufferHandler handler = new BufferHandler() {
@Override
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/remoting/impl/netty/NettyAcceptorTest.java
----------------------------------------------------------------------
diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/remoting/impl/netty/NettyAcceptorTest.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/remoting/impl/netty/NettyAcceptorTest.java
index 55aae43..f0ea5db 100644
--- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/remoting/impl/netty/NettyAcceptorTest.java
+++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/remoting/impl/netty/NettyAcceptorTest.java
@@ -71,7 +71,7 @@ public class NettyAcceptorTest extends ActiveMQTestBase {
}
};
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
ConnectionLifeCycleListener listener = new ConnectionLifeCycleListener() {
@Override
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/remoting/impl/netty/NettyConnectorFactoryTest.java
----------------------------------------------------------------------
diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/remoting/impl/netty/NettyConnectorFactoryTest.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/remoting/impl/netty/NettyConnectorFactoryTest.java
index b391b2c..e4c7cd7 100644
--- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/remoting/impl/netty/NettyConnectorFactoryTest.java
+++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/remoting/impl/netty/NettyConnectorFactoryTest.java
@@ -43,7 +43,7 @@ public class NettyConnectorFactoryTest {
assertTrue(tc.getParams().equals(NettyConnector.DEFAULT_CONFIG));
// Test defaults are not set when TransportConfig params are not empty
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put("Foo", "Bar");
tc = new TransportConfiguration(NettyConnectorFactory.class.getName(), params);
assertTrue(tc.getParams().size() == 1);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/remoting/impl/netty/NettyConnectorTest.java
----------------------------------------------------------------------
diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/remoting/impl/netty/NettyConnectorTest.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/remoting/impl/netty/NettyConnectorTest.java
index fb6a5d8..1888fb4 100644
--- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/remoting/impl/netty/NettyConnectorTest.java
+++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/remoting/impl/netty/NettyConnectorTest.java
@@ -43,7 +43,7 @@ public class NettyConnectorTest extends ActiveMQTestBase {
public void bufferReceived(final Object connectionID, final ActiveMQBuffer buffer) {
}
};
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
ConnectionLifeCycleListener listener = new ConnectionLifeCycleListener() {
@Override
public void connectionException(final Object connectionID, final ActiveMQException me) {
@@ -79,7 +79,7 @@ public class NettyConnectorTest extends ActiveMQTestBase {
public void bufferReceived(final Object connectionID, final ActiveMQBuffer buffer) {
}
};
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
ConnectionLifeCycleListener listener = new ConnectionLifeCycleListener() {
@Override
public void connectionException(final Object connectionID, final ActiveMQException me) {
@@ -126,7 +126,7 @@ public class NettyConnectorTest extends ActiveMQTestBase {
public void bufferReceived(final Object connectionID, final ActiveMQBuffer buffer) {
}
};
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put(TransportConstants.SSL_ENABLED_PROP_NAME, true);
params.put(TransportConstants.KEYSTORE_PATH_PROP_NAME, "bad path");
params.put(TransportConstants.KEYSTORE_PASSWORD_PROP_NAME, "bad password");
@@ -172,7 +172,7 @@ public class NettyConnectorTest extends ActiveMQTestBase {
public void bufferReceived(final Object connectionID, final ActiveMQBuffer buffer) {
}
};
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put(TransportConstants.SSL_ENABLED_PROP_NAME, true);
params.put(TransportConstants.KEYSTORE_PATH_PROP_NAME, "bad path");
params.put(TransportConstants.KEYSTORE_PASSWORD_PROP_NAME, "bad password");
@@ -223,7 +223,7 @@ public class NettyConnectorTest extends ActiveMQTestBase {
public void bufferReceived(final Object connectionID, final ActiveMQBuffer buffer) {
}
};
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put(TransportConstants.SSL_ENABLED_PROP_NAME, true);
params.put(TransportConstants.ENABLED_CIPHER_SUITES_PROP_NAME, "myBadCipherSuite");
ConnectionLifeCycleListener listener = new ConnectionLifeCycleListener() {
@@ -262,7 +262,7 @@ public class NettyConnectorTest extends ActiveMQTestBase {
public void bufferReceived(final Object connectionID, final ActiveMQBuffer buffer) {
}
};
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put(TransportConstants.SSL_ENABLED_PROP_NAME, true);
params.put(TransportConstants.ENABLED_PROTOCOLS_PROP_NAME, "myBadProtocol");
ConnectionLifeCycleListener listener = new ConnectionLifeCycleListener() {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/security/impl/ActiveMQSecurityManagerImplTest.java
----------------------------------------------------------------------
diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/security/impl/ActiveMQSecurityManagerImplTest.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/security/impl/ActiveMQSecurityManagerImplTest.java
index ea8ca0c..fdd32c0 100644
--- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/security/impl/ActiveMQSecurityManagerImplTest.java
+++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/security/impl/ActiveMQSecurityManagerImplTest.java
@@ -61,22 +61,22 @@ public class ActiveMQSecurityManagerImplTest extends ActiveMQTestBase {
Assert.assertTrue(securityManager.validateUser(null, null));
Assert.assertTrue(securityManager.validateUser("guest", "password"));
Assert.assertFalse(securityManager.validateUser(null, "wrongpass"));
- HashSet<Role> roles = new HashSet<Role>();
+ HashSet<Role> roles = new HashSet<>();
roles.add(new Role("guest", true, true, true, true, true, true, true));
Assert.assertTrue(securityManager.validateUserAndRole(null, null, roles, CheckType.CREATE_DURABLE_QUEUE));
Assert.assertTrue(securityManager.validateUserAndRole(null, null, roles, CheckType.SEND));
Assert.assertTrue(securityManager.validateUserAndRole(null, null, roles, CheckType.CONSUME));
- roles = new HashSet<Role>();
+ roles = new HashSet<>();
roles.add(new Role("guest", true, true, false, true, true, true, true));
Assert.assertFalse(securityManager.validateUserAndRole(null, null, roles, CheckType.CREATE_DURABLE_QUEUE));
Assert.assertTrue(securityManager.validateUserAndRole(null, null, roles, CheckType.SEND));
Assert.assertTrue(securityManager.validateUserAndRole(null, null, roles, CheckType.CONSUME));
- roles = new HashSet<Role>();
+ roles = new HashSet<>();
roles.add(new Role("guest", true, false, false, true, true, true, true));
Assert.assertFalse(securityManager.validateUserAndRole(null, null, roles, CheckType.CREATE_DURABLE_QUEUE));
Assert.assertTrue(securityManager.validateUserAndRole(null, null, roles, CheckType.SEND));
Assert.assertFalse(securityManager.validateUserAndRole(null, null, roles, CheckType.CONSUME));
- roles = new HashSet<Role>();
+ roles = new HashSet<>();
roles.add(new Role("guest", false, false, false, true, true, true, true));
Assert.assertFalse(securityManager.validateUserAndRole(null, null, roles, CheckType.CREATE_DURABLE_QUEUE));
Assert.assertFalse(securityManager.validateUserAndRole(null, null, roles, CheckType.SEND));
@@ -128,19 +128,19 @@ public class ActiveMQSecurityManagerImplTest extends ActiveMQTestBase {
securityManager.getConfiguration().addRole("newuser1", "role2");
securityManager.getConfiguration().addRole("newuser1", "role3");
securityManager.getConfiguration().addRole("newuser1", "role4");
- HashSet<Role> roles = new HashSet<Role>();
+ HashSet<Role> roles = new HashSet<>();
roles.add(new Role("role1", true, true, true, true, true, true, true));
Assert.assertTrue(securityManager.validateUserAndRole("newuser1", "newpassword1", roles, CheckType.SEND));
- roles = new HashSet<Role>();
+ roles = new HashSet<>();
roles.add(new Role("role2", true, true, true, true, true, true, true));
Assert.assertTrue(securityManager.validateUserAndRole("newuser1", "newpassword1", roles, CheckType.SEND));
- roles = new HashSet<Role>();
+ roles = new HashSet<>();
roles.add(new Role("role3", true, true, true, true, true, true, true));
Assert.assertTrue(securityManager.validateUserAndRole("newuser1", "newpassword1", roles, CheckType.SEND));
- roles = new HashSet<Role>();
+ roles = new HashSet<>();
roles.add(new Role("role4", true, true, true, true, true, true, true));
Assert.assertTrue(securityManager.validateUserAndRole("newuser1", "newpassword1", roles, CheckType.SEND));
- roles = new HashSet<Role>();
+ roles = new HashSet<>();
roles.add(new Role("role5", true, true, true, true, true, true, true));
Assert.assertFalse(securityManager.validateUserAndRole("newuser1", "newpassword1", roles, CheckType.SEND));
}
@@ -154,19 +154,19 @@ public class ActiveMQSecurityManagerImplTest extends ActiveMQTestBase {
securityManager.getConfiguration().addRole("newuser1", "role4");
securityManager.getConfiguration().removeRole("newuser1", "role2");
securityManager.getConfiguration().removeRole("newuser1", "role4");
- HashSet<Role> roles = new HashSet<Role>();
+ HashSet<Role> roles = new HashSet<>();
roles.add(new Role("role1", true, true, true, true, true, true, true));
Assert.assertTrue(securityManager.validateUserAndRole("newuser1", "newpassword1", roles, CheckType.SEND));
- roles = new HashSet<Role>();
+ roles = new HashSet<>();
roles.add(new Role("role2", true, true, true, true, true, true, true));
Assert.assertFalse(securityManager.validateUserAndRole("newuser1", "newpassword1", roles, CheckType.SEND));
- roles = new HashSet<Role>();
+ roles = new HashSet<>();
roles.add(new Role("role3", true, true, true, true, true, true, true));
Assert.assertTrue(securityManager.validateUserAndRole("newuser1", "newpassword1", roles, CheckType.SEND));
- roles = new HashSet<Role>();
+ roles = new HashSet<>();
roles.add(new Role("role4", true, true, true, true, true, true, true));
Assert.assertFalse(securityManager.validateUserAndRole("newuser1", "newpassword1", roles, CheckType.SEND));
- roles = new HashSet<Role>();
+ roles = new HashSet<>();
roles.add(new Role("role5", true, true, true, true, true, true, true));
Assert.assertFalse(securityManager.validateUserAndRole("newuser1", "newpassword1", roles, CheckType.SEND));
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/server/impl/QueueImplTest.java
----------------------------------------------------------------------
diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/server/impl/QueueImplTest.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/server/impl/QueueImplTest.java
index 8b4e265..f7ad00d 100644
--- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/server/impl/QueueImplTest.java
+++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/server/impl/QueueImplTest.java
@@ -215,7 +215,7 @@ public class QueueImplTest extends ActiveMQTestBase {
final int numMessages = 10;
- List<MessageReference> refs = new ArrayList<MessageReference>();
+ List<MessageReference> refs = new ArrayList<>();
for (int i = 0; i < numMessages; i++) {
MessageReference ref = generateReference(queue, i);
@@ -258,7 +258,7 @@ public class QueueImplTest extends ActiveMQTestBase {
final int numMessages = 10;
- List<MessageReference> refs = new ArrayList<MessageReference>();
+ List<MessageReference> refs = new ArrayList<>();
for (int i = 0; i < numMessages; i++) {
MessageReference ref = generateReference(queue, i);
@@ -301,7 +301,7 @@ public class QueueImplTest extends ActiveMQTestBase {
final int numMessages = 10;
- List<MessageReference> refs = new ArrayList<MessageReference>();
+ List<MessageReference> refs = new ArrayList<>();
for (int i = 0; i < numMessages; i++) {
MessageReference ref = generateReference(queue, i);
@@ -359,7 +359,7 @@ public class QueueImplTest extends ActiveMQTestBase {
final int numMessages = 10;
- List<MessageReference> refs1 = new ArrayList<MessageReference>();
+ List<MessageReference> refs1 = new ArrayList<>();
for (int i = 0; i < numMessages; i++) {
MessageReference ref = generateReference(queue, i);
@@ -369,7 +369,7 @@ public class QueueImplTest extends ActiveMQTestBase {
queue.addTail(ref);
}
- LinkedList<MessageReference> refs2 = new LinkedList<MessageReference>();
+ LinkedList<MessageReference> refs2 = new LinkedList<>();
for (int i = 0; i < numMessages; i++) {
MessageReference ref = generateReference(queue, i + numMessages);
@@ -379,7 +379,7 @@ public class QueueImplTest extends ActiveMQTestBase {
queue.addHead(ref);
}
- List<MessageReference> refs3 = new ArrayList<MessageReference>();
+ List<MessageReference> refs3 = new ArrayList<>();
for (int i = 0; i < numMessages; i++) {
MessageReference ref = generateReference(queue, i + 2 * numMessages);
@@ -395,7 +395,7 @@ public class QueueImplTest extends ActiveMQTestBase {
queue.deliverNow();
- List<MessageReference> allRefs = new ArrayList<MessageReference>();
+ List<MessageReference> allRefs = new ArrayList<>();
allRefs.addAll(refs2);
allRefs.addAll(refs1);
@@ -410,7 +410,7 @@ public class QueueImplTest extends ActiveMQTestBase {
final int numMessages = 10;
- List<MessageReference> refs = new ArrayList<MessageReference>();
+ List<MessageReference> refs = new ArrayList<>();
for (int i = 0; i < numMessages; i++) {
MessageReference ref = generateReference(queue, i);
@@ -563,7 +563,7 @@ public class QueueImplTest extends ActiveMQTestBase {
final int numMessages = 10;
- List<MessageReference> refs = new ArrayList<MessageReference>();
+ List<MessageReference> refs = new ArrayList<>();
queue.pause();
@@ -616,7 +616,7 @@ public class QueueImplTest extends ActiveMQTestBase {
final int numMessages = 10;
- List<MessageReference> refs = new ArrayList<MessageReference>();
+ List<MessageReference> refs = new ArrayList<>();
for (int i = 0; i < numMessages; i++) {
MessageReference ref = generateReference(queue, i);
@@ -673,7 +673,7 @@ public class QueueImplTest extends ActiveMQTestBase {
final int numMessages = 20;
- List<MessageReference> refs = new ArrayList<MessageReference>();
+ List<MessageReference> refs = new ArrayList<>();
for (int i = 0; i < numMessages; i++) {
MessageReference ref = generateReference(queue, i);
@@ -686,7 +686,7 @@ public class QueueImplTest extends ActiveMQTestBase {
Assert.assertEquals(numMessages, getMessageCount(queue));
Iterator<MessageReference> iterator = queue.iterator();
- List<MessageReference> list = new ArrayList<MessageReference>();
+ List<MessageReference> list = new ArrayList<>();
while (iterator.hasNext()) {
list.add(iterator.next());
}
@@ -712,7 +712,7 @@ public class QueueImplTest extends ActiveMQTestBase {
queue.addConsumer(consumer);
- List<MessageReference> refs = new ArrayList<MessageReference>();
+ List<MessageReference> refs = new ArrayList<>();
MessageReference ref1 = generateReference(queue, 1);
@@ -787,7 +787,7 @@ public class QueueImplTest extends ActiveMQTestBase {
final int numMessages = 10;
- List<MessageReference> refs = new ArrayList<MessageReference>();
+ List<MessageReference> refs = new ArrayList<>();
for (int i = 0; i < numMessages; i++) {
MessageReference ref = generateReference(queue, i);
@@ -826,7 +826,7 @@ public class QueueImplTest extends ActiveMQTestBase {
final int numMessages = 10;
- List<MessageReference> refs = new ArrayList<MessageReference>();
+ List<MessageReference> refs = new ArrayList<>();
for (int i = 0; i < numMessages; i++) {
MessageReference ref = generateReference(queue, i);
@@ -889,7 +889,7 @@ public class QueueImplTest extends ActiveMQTestBase {
QueueImpl queue = getTemporaryQueue();
final int numMessages = 10;
- List<MessageReference> refs = new ArrayList<MessageReference>();
+ List<MessageReference> refs = new ArrayList<>();
for (int i = 0; i < numMessages; i++) {
MessageReference ref = generateReference(queue, i);
@@ -956,7 +956,7 @@ public class QueueImplTest extends ActiveMQTestBase {
queue.addConsumer(consumer);
}
- List<MessageReference> refs = new ArrayList<MessageReference>();
+ List<MessageReference> refs = new ArrayList<>();
MessageReference ref1 = generateReference(queue, 1);
@@ -1105,7 +1105,7 @@ public class QueueImplTest extends ActiveMQTestBase {
final int numMessages = 10;
- List<MessageReference> refs = new ArrayList<MessageReference>();
+ List<MessageReference> refs = new ArrayList<>();
for (int i = 0; i < numMessages; i++) {
MessageReference ref = generateReference(queue, i);
@@ -1166,7 +1166,7 @@ public class QueueImplTest extends ActiveMQTestBase {
final int numMessages = 10;
- List<MessageReference> refs = new ArrayList<MessageReference>();
+ List<MessageReference> refs = new ArrayList<>();
for (int i = 0; i < numMessages; i++) {
MessageReference ref = generateReference(queue, i);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/server/impl/fakes/FakeConsumer.java
----------------------------------------------------------------------
diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/server/impl/fakes/FakeConsumer.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/server/impl/fakes/FakeConsumer.java
index 7355674..a7be2fa 100644
--- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/server/impl/fakes/FakeConsumer.java
+++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/server/impl/fakes/FakeConsumer.java
@@ -33,7 +33,7 @@ public class FakeConsumer implements Consumer {
private int delayCountdown = 0;
- private final LinkedList<MessageReference> references = new LinkedList<MessageReference>();
+ private final LinkedList<MessageReference> references = new LinkedList<>();
private final Filter filter;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/ra/ActiveMQResourceAdapterConfigTest.java
----------------------------------------------------------------------
diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/ra/ActiveMQResourceAdapterConfigTest.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/ra/ActiveMQResourceAdapterConfigTest.java
index 080b837..bfdeaa2 100644
--- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/ra/ActiveMQResourceAdapterConfigTest.java
+++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/ra/ActiveMQResourceAdapterConfigTest.java
@@ -397,7 +397,7 @@ public class ActiveMQResourceAdapterConfigTest extends ActiveMQTestBase {
@Test
public void testConfiguration() throws Exception {
Method[] methods = ActiveMQResourceAdapter.class.getMethods();
- Map<String, Method> methodList = new HashMap<String, Method>();
+ Map<String, Method> methodList = new HashMap<>();
for (Method method : methods) {
if (method.getName().startsWith("set")) {
methodList.put(method.getName(), method);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/ra/ConnectionFactoryPropertiesTest.java
----------------------------------------------------------------------
diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/ra/ConnectionFactoryPropertiesTest.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/ra/ConnectionFactoryPropertiesTest.java
index 7927206..4e617ae 100644
--- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/ra/ConnectionFactoryPropertiesTest.java
+++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/ra/ConnectionFactoryPropertiesTest.java
@@ -39,12 +39,12 @@ public class ConnectionFactoryPropertiesTest extends ActiveMQTestBase {
private static final SortedSet<String> UNSUPPORTED_RA_PROPERTIES;
static {
- UNSUPPORTED_CF_PROPERTIES = new TreeSet<String>();
+ UNSUPPORTED_CF_PROPERTIES = new TreeSet<>();
UNSUPPORTED_CF_PROPERTIES.add("discoveryGroupName");
UNSUPPORTED_CF_PROPERTIES.add("incomingInterceptorList");
UNSUPPORTED_CF_PROPERTIES.add("outgoingInterceptorList");
- UNSUPPORTED_RA_PROPERTIES = new TreeSet<String>();
+ UNSUPPORTED_RA_PROPERTIES = new TreeSet<>();
UNSUPPORTED_RA_PROPERTIES.add("HA");
UNSUPPORTED_RA_PROPERTIES.add("jgroupsChannelName");
UNSUPPORTED_RA_PROPERTIES.add("jgroupsFile");
@@ -83,10 +83,10 @@ public class ConnectionFactoryPropertiesTest extends ActiveMQTestBase {
}
private static void compare(String name1, SortedSet<String> set1, String name2, SortedSet<String> set2) {
- Set<String> onlyInSet1 = new TreeSet<String>(set1);
+ Set<String> onlyInSet1 = new TreeSet<>(set1);
onlyInSet1.removeAll(set2);
- Set<String> onlyInSet2 = new TreeSet<String>(set2);
+ Set<String> onlyInSet2 = new TreeSet<>(set2);
onlyInSet2.removeAll(set1);
if (!onlyInSet1.isEmpty() || !onlyInSet2.isEmpty()) {
@@ -97,7 +97,7 @@ public class ConnectionFactoryPropertiesTest extends ActiveMQTestBase {
}
private SortedSet<String> findAllPropertyNames(Class<?> clazz) throws Exception {
- SortedSet<String> names = new TreeSet<String>();
+ SortedSet<String> names = new TreeSet<>();
for (PropertyDescriptor propDesc : getBeanInfo(clazz).getPropertyDescriptors()) {
if (propDesc == null || propDesc.getWriteMethod() == null) {
continue;
@@ -110,22 +110,22 @@ public class ConnectionFactoryPropertiesTest extends ActiveMQTestBase {
@Test
public void testEquality() throws Exception {
ConnectionFactoryProperties cfp1 = new ConnectionFactoryProperties();
- List<String> connectorClassNames1 = new ArrayList<String>();
+ List<String> connectorClassNames1 = new ArrayList<>();
connectorClassNames1.add("myConnector");
cfp1.setParsedConnectorClassNames(connectorClassNames1);
- List<Map<String, Object>> connectionParameters1 = new ArrayList<Map<String, Object>>();
- Map<String, Object> params1 = new HashMap<String, Object>();
+ List<Map<String, Object>> connectionParameters1 = new ArrayList<>();
+ Map<String, Object> params1 = new HashMap<>();
params1.put("port", "0");
connectionParameters1.add(params1);
cfp1.setParsedConnectionParameters(connectionParameters1);
cfp1.setAutoGroup(true);
ConnectionFactoryProperties cfp2 = new ConnectionFactoryProperties();
- List<String> connectorClassNames2 = new ArrayList<String>();
+ List<String> connectorClassNames2 = new ArrayList<>();
connectorClassNames2.add("myConnector");
cfp2.setParsedConnectorClassNames(connectorClassNames2);
- List<Map<String, Object>> connectionParameters2 = new ArrayList<Map<String, Object>>();
- Map<String, Object> params2 = new HashMap<String, Object>();
+ List<Map<String, Object>> connectionParameters2 = new ArrayList<>();
+ Map<String, Object> params2 = new HashMap<>();
params2.put("port", "0");
connectionParameters2.add(params2);
cfp2.setParsedConnectionParameters(connectionParameters2);
@@ -137,22 +137,22 @@ public class ConnectionFactoryPropertiesTest extends ActiveMQTestBase {
@Test
public void testInequality() throws Exception {
ConnectionFactoryProperties cfp1 = new ConnectionFactoryProperties();
- List<String> connectorClassNames1 = new ArrayList<String>();
+ List<String> connectorClassNames1 = new ArrayList<>();
connectorClassNames1.add("myConnector");
cfp1.setParsedConnectorClassNames(connectorClassNames1);
- List<Map<String, Object>> connectionParameters1 = new ArrayList<Map<String, Object>>();
- Map<String, Object> params1 = new HashMap<String, Object>();
+ List<Map<String, Object>> connectionParameters1 = new ArrayList<>();
+ Map<String, Object> params1 = new HashMap<>();
params1.put("port", "0");
connectionParameters1.add(params1);
cfp1.setParsedConnectionParameters(connectionParameters1);
cfp1.setAutoGroup(true);
ConnectionFactoryProperties cfp2 = new ConnectionFactoryProperties();
- List<String> connectorClassNames2 = new ArrayList<String>();
+ List<String> connectorClassNames2 = new ArrayList<>();
connectorClassNames2.add("myConnector");
cfp2.setParsedConnectorClassNames(connectorClassNames2);
- List<Map<String, Object>> connectionParameters2 = new ArrayList<Map<String, Object>>();
- Map<String, Object> params2 = new HashMap<String, Object>();
+ List<Map<String, Object>> connectionParameters2 = new ArrayList<>();
+ Map<String, Object> params2 = new HashMap<>();
params2.put("port", "1");
connectionParameters2.add(params2);
cfp2.setParsedConnectionParameters(connectionParameters2);
@@ -164,22 +164,22 @@ public class ConnectionFactoryPropertiesTest extends ActiveMQTestBase {
@Test
public void testInequality2() throws Exception {
ConnectionFactoryProperties cfp1 = new ConnectionFactoryProperties();
- List<String> connectorClassNames1 = new ArrayList<String>();
+ List<String> connectorClassNames1 = new ArrayList<>();
connectorClassNames1.add("myConnector");
cfp1.setParsedConnectorClassNames(connectorClassNames1);
- List<Map<String, Object>> connectionParameters1 = new ArrayList<Map<String, Object>>();
- Map<String, Object> params1 = new HashMap<String, Object>();
+ List<Map<String, Object>> connectionParameters1 = new ArrayList<>();
+ Map<String, Object> params1 = new HashMap<>();
params1.put("port", "0");
connectionParameters1.add(params1);
cfp1.setParsedConnectionParameters(connectionParameters1);
cfp1.setAutoGroup(true);
ConnectionFactoryProperties cfp2 = new ConnectionFactoryProperties();
- List<String> connectorClassNames2 = new ArrayList<String>();
+ List<String> connectorClassNames2 = new ArrayList<>();
connectorClassNames2.add("myConnector2");
cfp2.setParsedConnectorClassNames(connectorClassNames2);
- List<Map<String, Object>> connectionParameters2 = new ArrayList<Map<String, Object>>();
- Map<String, Object> params2 = new HashMap<String, Object>();
+ List<Map<String, Object>> connectionParameters2 = new ArrayList<>();
+ Map<String, Object> params2 = new HashMap<>();
params2.put("port", "0");
connectionParameters2.add(params2);
cfp2.setParsedConnectionParameters(connectionParameters2);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/ra/ResourceAdapterTest.java
----------------------------------------------------------------------
diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/ra/ResourceAdapterTest.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/ra/ResourceAdapterTest.java
index b476340..8261249 100644
--- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/ra/ResourceAdapterTest.java
+++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/ra/ResourceAdapterTest.java
@@ -242,7 +242,7 @@ public class ResourceAdapterTest extends ActiveMQTestBase {
ActiveMQResourceAdapter ra = new ActiveMQResourceAdapter();
ra.setConnectorClassName(InVMConnectorFactory.class.getName());
ConnectionFactoryProperties connectionFactoryProperties = new ConnectionFactoryProperties();
- ArrayList<String> value = new ArrayList<String>();
+ ArrayList<String> value = new ArrayList<>();
value.add(NettyConnectorFactory.class.getName());
connectionFactoryProperties.setParsedConnectorClassNames(value);
ActiveMQConnectionFactory factory = ra.createActiveMQConnectionFactory(connectionFactoryProperties);
@@ -311,7 +311,7 @@ public class ResourceAdapterTest extends ActiveMQTestBase {
ActiveMQResourceAdapter ra = new ActiveMQResourceAdapter();
ra.setConnectorClassName(NETTY_CONNECTOR_FACTORY + "," + INVM_CONNECTOR_FACTORY + "," + NETTY_CONNECTOR_FACTORY);
ConnectionFactoryProperties overrideProperties = new ConnectionFactoryProperties();
- ArrayList<String> value = new ArrayList<String>();
+ ArrayList<String> value = new ArrayList<>();
value.add(INVM_CONNECTOR_FACTORY);
value.add(NETTY_CONNECTOR_FACTORY);
value.add(INVM_CONNECTOR_FACTORY);
@@ -334,20 +334,20 @@ public class ResourceAdapterTest extends ActiveMQTestBase {
ra.setConnectorClassName(NETTY_CONNECTOR_FACTORY + "," + INVM_CONNECTOR_FACTORY + "," + NETTY_CONNECTOR_FACTORY);
ra.setConnectionParameters("host=host1;port=61616, serverid=0, host=host2;port=61617");
ConnectionFactoryProperties overrideProperties = new ConnectionFactoryProperties();
- ArrayList<String> value = new ArrayList<String>();
+ ArrayList<String> value = new ArrayList<>();
value.add(INVM_CONNECTOR_FACTORY);
value.add(NETTY_CONNECTOR_FACTORY);
value.add(INVM_CONNECTOR_FACTORY);
overrideProperties.setParsedConnectorClassNames(value);
- ArrayList<Map<String, Object>> connectionParameters = new ArrayList<Map<String, Object>>();
- Map<String, Object> map1 = new HashMap<String, Object>();
+ ArrayList<Map<String, Object>> connectionParameters = new ArrayList<>();
+ Map<String, Object> map1 = new HashMap<>();
map1.put("serverid", "0");
connectionParameters.add(map1);
- Map<String, Object> map2 = new HashMap<String, Object>();
+ Map<String, Object> map2 = new HashMap<>();
map2.put("host", "myhost");
map2.put("port", "61616");
connectionParameters.add(map2);
- Map<String, Object> map3 = new HashMap<String, Object>();
+ Map<String, Object> map3 = new HashMap<>();
map3.put("serverid", "1");
connectionParameters.add(map3);
overrideProperties.setParsedConnectionParameters(connectionParameters);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/util/InVMContext.java
----------------------------------------------------------------------
diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/util/InVMContext.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/util/InVMContext.java
index 6d398f1..fddff5d 100644
--- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/util/InVMContext.java
+++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/util/InVMContext.java
@@ -177,13 +177,13 @@ public class InVMContext implements Context, Serializable {
}
}
- List<Binding> l = new ArrayList<Binding>();
+ List<Binding> l = new ArrayList<>();
for (Object element : map.keySet()) {
String name = (String) element;
Object object = map.get(name);
l.add(new Binding(name, object));
}
- return new NamingEnumerationImpl<Binding>(l.iterator());
+ return new NamingEnumerationImpl<>(l.iterator());
}
@Override
@@ -254,7 +254,7 @@ public class InVMContext implements Context, Serializable {
@Override
public Hashtable<String, String> getEnvironment() throws NamingException {
- Hashtable<String, String> env = new Hashtable<String, String>();
+ Hashtable<String, String> env = new Hashtable<>();
env.put("java.naming.factory.initial", "org.apache.activemq.artemis.jms.tests.tools.container.InVMInitialContextFactory");
return env;
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/util/InVMNamingContext.java
----------------------------------------------------------------------
diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/util/InVMNamingContext.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/util/InVMNamingContext.java
index b323902..10000dc 100644
--- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/util/InVMNamingContext.java
+++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/util/InVMNamingContext.java
@@ -177,13 +177,13 @@ public class InVMNamingContext implements Context, Serializable {
}
}
- List<Binding> l = new ArrayList<Binding>();
+ List<Binding> l = new ArrayList<>();
for (Object element : map.keySet()) {
String name = (String) element;
Object object = map.get(name);
l.add(new Binding(name, object));
}
- return new NamingEnumerationImpl<Binding>(l.iterator());
+ return new NamingEnumerationImpl<>(l.iterator());
}
@Override
@@ -254,7 +254,7 @@ public class InVMNamingContext implements Context, Serializable {
@Override
public Hashtable<String, String> getEnvironment() throws NamingException {
- Hashtable<String, String> env = new Hashtable<String, String>();
+ Hashtable<String, String> env = new Hashtable<>();
env.put("java.naming.factory.initial", "org.apache.activemq.artemis.jms.tests.tools.container.InVMInitialContextFactory");
return env;
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/util/LinkedListTest.java
----------------------------------------------------------------------
diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/util/LinkedListTest.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/util/LinkedListTest.java
index 504d499..d035b01a 100644
--- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/util/LinkedListTest.java
+++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/util/LinkedListTest.java
@@ -37,7 +37,7 @@ public class LinkedListTest extends ActiveMQTestBase {
public void setUp() throws Exception {
super.setUp();
- list = new LinkedListImpl<Integer>();
+ list = new LinkedListImpl<>();
}
@Test
@@ -58,7 +58,7 @@ public class LinkedListTest extends ActiveMQTestBase {
}
}
- LinkedListImpl<MyObject> objs = new LinkedListImpl<MyObject>();
+ LinkedListImpl<MyObject> objs = new LinkedListImpl<>();
// Initial add
for (int i = 0; i < 100; i++) {
@@ -117,7 +117,7 @@ public class LinkedListTest extends ActiveMQTestBase {
}
}
- LinkedListImpl<MyObject> objs = new LinkedListImpl<MyObject>();
+ LinkedListImpl<MyObject> objs = new LinkedListImpl<>();
// Initial add
for (int i = 1000; i >= 0; i--) {
@@ -169,10 +169,10 @@ public class LinkedListTest extends ActiveMQTestBase {
while (timeout > System.currentTimeMillis() && count.get() != expected) {
seqCount++;
if (seqCount > 5) {
- LinkedList<String> toOME = new LinkedList<String>();
+ LinkedList<String> toOME = new LinkedList<>();
int someCount = 0;
try {
- WeakReference<Object> ref = new WeakReference<Object>(new Object());
+ WeakReference<Object> ref = new WeakReference<>(new Object());
while (ref.get() != null) {
toOME.add("sdlfkjshadlfkjhas dlfkjhas dlfkjhads lkjfhads lfkjhads flkjashdf " + someCount++);
}
@@ -1103,7 +1103,7 @@ public class LinkedListTest extends ActiveMQTestBase {
public void testResizing() {
int numIters = 1000;
- List<LinkedListIterator<Integer>> iters = new java.util.LinkedList<LinkedListIterator<Integer>>();
+ List<LinkedListIterator<Integer>> iters = new java.util.LinkedList<>();
int num = 10;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/util/ObjectInputStreamWithClassLoaderTest.java
----------------------------------------------------------------------
diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/util/ObjectInputStreamWithClassLoaderTest.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/util/ObjectInputStreamWithClassLoaderTest.java
index 8e45f5d..19d5586 100644
--- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/util/ObjectInputStreamWithClassLoaderTest.java
+++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/util/ObjectInputStreamWithClassLoaderTest.java
@@ -57,7 +57,7 @@ public class ObjectInputStreamWithClassLoaderTest extends ActiveMQTestBase {
pathIgnore = classLocation.toString();
}
- List<URL> urls = new ArrayList<URL>();
+ List<URL> urls = new ArrayList<>();
while (tokenString.hasMoreElements()) {
String value = tokenString.nextToken();
URL itemLocation = new File(value).toURI().toURL();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/util/SoftValueMapTest.java
----------------------------------------------------------------------
diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/util/SoftValueMapTest.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/util/SoftValueMapTest.java
index 8c0d042..02013a6 100644
--- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/util/SoftValueMapTest.java
+++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/util/SoftValueMapTest.java
@@ -40,7 +40,7 @@ public class SoftValueMapTest extends ActiveMQTestBase {
// each buffer will be 1/10th of the maxMemory
int bufferSize = (int) (maxMemory / 100);
- SoftValueHashMap<Long, Value> softCache = new SoftValueHashMap<Long, Value>(100);
+ SoftValueHashMap<Long, Value> softCache = new SoftValueHashMap<>(100);
final int MAX_ELEMENTS = 1000;
@@ -59,7 +59,7 @@ public class SoftValueMapTest extends ActiveMQTestBase {
public void testEvictionsLeastUsed() {
forceGC();
- SoftValueHashMap<Long, Value> softCache = new SoftValueHashMap<Long, Value>(200);
+ SoftValueHashMap<Long, Value> softCache = new SoftValueHashMap<>(200);
for (long i = 0; i < 100; i++) {
Value v = new Value(new byte[1]);
@@ -99,7 +99,7 @@ public class SoftValueMapTest extends ActiveMQTestBase {
Value two = new Value(new byte[100]);
Value three = new Value(new byte[100]);
- SoftValueHashMap<Integer, Value> softCache = new SoftValueHashMap<Integer, Value>(2);
+ SoftValueHashMap<Integer, Value> softCache = new SoftValueHashMap<>(2);
softCache.put(3, three);
softCache.put(2, two);
softCache.put(1, one);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/util/UUIDTest.java
----------------------------------------------------------------------
diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/util/UUIDTest.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/util/UUIDTest.java
index 62cb3a0..a7f5cd0 100644
--- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/util/UUIDTest.java
+++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/util/UUIDTest.java
@@ -33,7 +33,7 @@ public class UUIDTest extends ActiveMQTestBase {
@Test
public void testManyUUIDs() throws Exception {
- Set<String> uuidsSet = new HashSet<String>();
+ Set<String> uuidsSet = new HashSet<>();
UUIDGenerator gen = UUIDGenerator.getInstance();
for (int i = 0; i < getTimes(); i++) {
[31/32] activemq-artemis git commit: Remove unnecessary
@SuppressWarnings("unchecked")
Posted by cl...@apache.org.
Remove unnecessary @SuppressWarnings("unchecked")
Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/7bf3923c
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/7bf3923c
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/7bf3923c
Branch: refs/heads/master
Commit: 7bf3923ceee9b27e800062cff1dbd6496d48431d
Parents: 96e99e4
Author: Ville Skyttä <vi...@iki.fi>
Authored: Sun Dec 6 02:11:32 2015 +0200
Committer: Ville Skyttä <vi...@iki.fi>
Committed: Mon Dec 7 22:55:05 2015 +0200
----------------------------------------------------------------------
.../src/main/java/org/apache/activemq/artemis/cli/Artemis.java | 1 -
.../apache/activemq/artemis/jms/bridge/impl/JMSBridgeImpl.java | 1 -
.../activemq/artemis/jms/server/impl/JMSServerManagerImpl.java | 1 -
.../artemis/core/management/impl/ActiveMQServerControlImpl.java | 1 -
.../activemq/artemis/core/security/jaas/StubX509Certificate.java | 4 ++--
.../src/test/java/org/apache/activemq/JmsQueueBrowserTest.java | 1 -
.../src/test/java/org/apache/activemq/bugs/AMQ2171Test.java | 1 -
.../org/apache/activemq/console/command/PurgeCommandTest.java | 2 --
.../activemq/jndi/ActiveMQWASInitialContextFactoryTest.java | 1 -
.../activemq/network/BrokerNetworkWithStuckMessagesTest.java | 2 +-
.../activemq/artemis/jms/tests/message/MessageBodyTest.java | 1 -
.../artemis/jms/tests/message/MessageHeaderTestBase.java | 1 -
12 files changed, 3 insertions(+), 14 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/7bf3923c/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/Artemis.java
----------------------------------------------------------------------
diff --git a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/Artemis.java b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/Artemis.java
index 2faccf9..681a745 100644
--- a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/Artemis.java
+++ b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/Artemis.java
@@ -42,7 +42,6 @@ import org.apache.activemq.artemis.cli.commands.tools.XmlDataImporter;
public class Artemis {
- @SuppressWarnings("unchecked")
public static void main(String... args) throws Exception {
execute(null, null, args);
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/7bf3923c/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/bridge/impl/JMSBridgeImpl.java
----------------------------------------------------------------------
diff --git a/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/bridge/impl/JMSBridgeImpl.java b/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/bridge/impl/JMSBridgeImpl.java
index 5cbde39..3a8e519 100644
--- a/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/bridge/impl/JMSBridgeImpl.java
+++ b/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/bridge/impl/JMSBridgeImpl.java
@@ -1554,7 +1554,6 @@ public final class JMSBridgeImpl implements JMSBridge {
* don't lose them!!
*/
private static void copyProperties(final Message msg) throws JMSException {
- @SuppressWarnings("unchecked")
Enumeration<String> en = msg.getPropertyNames();
Map<String, Object> oldProps = null;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/7bf3923c/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/server/impl/JMSServerManagerImpl.java
----------------------------------------------------------------------
diff --git a/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/server/impl/JMSServerManagerImpl.java b/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/server/impl/JMSServerManagerImpl.java
index 94d7487..35f584b 100644
--- a/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/server/impl/JMSServerManagerImpl.java
+++ b/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/server/impl/JMSServerManagerImpl.java
@@ -1374,7 +1374,6 @@ public class JMSServerManagerImpl implements JMSServerManager, ActivateCallback
JSONObject msgJson = msgs.getJSONObject(i);
JSONObject props = msgJson.getJSONObject(TransactionDetail.KEY_MSG_PROPERTIES);
StringBuilder propstr = new StringBuilder();
- @SuppressWarnings("unchecked")
Iterator<String> propkeys = props.keys();
while (propkeys.hasNext()) {
String key = propkeys.next();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/7bf3923c/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/ActiveMQServerControlImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/ActiveMQServerControlImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/ActiveMQServerControlImpl.java
index 5382621..9ee0bb2 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/ActiveMQServerControlImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/ActiveMQServerControlImpl.java
@@ -933,7 +933,6 @@ public class ActiveMQServerControlImpl extends AbstractControl implements Active
JSONObject msgJson = msgs.getJSONObject(i);
JSONObject props = msgJson.getJSONObject(TransactionDetail.KEY_MSG_PROPERTIES);
StringBuilder propstr = new StringBuilder();
- @SuppressWarnings("unchecked")
Iterator<String> propkeys = props.keys();
while (propkeys.hasNext()) {
String key = propkeys.next();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/7bf3923c/artemis-server/src/test/java/org/apache/activemq/artemis/core/security/jaas/StubX509Certificate.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/test/java/org/apache/activemq/artemis/core/security/jaas/StubX509Certificate.java b/artemis-server/src/test/java/org/apache/activemq/artemis/core/security/jaas/StubX509Certificate.java
index d59a12a..9ccaae0 100644
--- a/artemis-server/src/test/java/org/apache/activemq/artemis/core/security/jaas/StubX509Certificate.java
+++ b/artemis-server/src/test/java/org/apache/activemq/artemis/core/security/jaas/StubX509Certificate.java
@@ -136,12 +136,12 @@ public class StubX509Certificate extends X509Certificate {
return false;
}
- @SuppressWarnings({"unchecked", "rawtypes"})
+ @SuppressWarnings("rawtypes")
public Set getCriticalExtensionOIDs() {
return null;
}
- @SuppressWarnings({"unchecked", "rawtypes"})
+ @SuppressWarnings("rawtypes")
public Set getNonCriticalExtensionOIDs() {
return null;
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/7bf3923c/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsQueueBrowserTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsQueueBrowserTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsQueueBrowserTest.java
index b458223..fdba2e3 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsQueueBrowserTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsQueueBrowserTest.java
@@ -360,7 +360,6 @@ public class JmsQueueBrowserTest extends JmsTestSupport {
}
QueueBrowser browser = session2.createBrowser(destinationPrefetch1);
- @SuppressWarnings("unchecked")
Enumeration<Message> browserView = browser.getEnumeration();
List<Message> messages = new ArrayList<>();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/7bf3923c/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2171Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2171Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2171Test.java
index e6026fd..ea794ff 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2171Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2171Test.java
@@ -88,7 +88,6 @@ public class AMQ2171Test implements Thread.UncaughtExceptionHandler {
connection.start();
Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
- @SuppressWarnings("unchecked")
Enumeration<Message> unread = session.createBrowser(destination).getEnumeration();
int count = 0;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/7bf3923c/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/console/command/PurgeCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/console/command/PurgeCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/console/command/PurgeCommandTest.java
index cc30cb0..b238452 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/console/command/PurgeCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/console/command/PurgeCommandTest.java
@@ -147,7 +147,6 @@ public class PurgeCommandTest extends TestCase {
return ManagementFactory.getPlatformMBeanServer();
}
- @SuppressWarnings("unchecked")
public void purgeAllMessages() throws IOException, Exception {
List<ObjectInstance> queueList = JmxMBeansUtil.queryMBeans(createJmxConnection(), "type=Broker,brokerName=localbroker,destinationType=Queue,destinationName=*");
for (ObjectInstance oi : queueList) {
@@ -199,7 +198,6 @@ public class PurgeCommandTest extends TestCase {
*
* @throws Exception
*/
- @SuppressWarnings("unchecked")
public void testQueueViewMbean() throws Exception {
try {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/7bf3923c/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/jndi/ActiveMQWASInitialContextFactoryTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/jndi/ActiveMQWASInitialContextFactoryTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/jndi/ActiveMQWASInitialContextFactoryTest.java
index 0a4fb47..a89c94c 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/jndi/ActiveMQWASInitialContextFactoryTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/jndi/ActiveMQWASInitialContextFactoryTest.java
@@ -22,7 +22,6 @@ import javax.naming.Context;
public class ActiveMQWASInitialContextFactoryTest extends JNDITestSupport {
- @SuppressWarnings("unchecked")
public void testTransformEnvironment() {
Hashtable<Object, Object> originalEnvironment = new Hashtable<>();
originalEnvironment.put("java.naming.connectionFactoryNames", "ConnectionFactory");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/7bf3923c/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/BrokerNetworkWithStuckMessagesTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/BrokerNetworkWithStuckMessagesTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/BrokerNetworkWithStuckMessagesTest.java
index fe6f31c..c483715 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/BrokerNetworkWithStuckMessagesTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/BrokerNetworkWithStuckMessagesTest.java
@@ -477,7 +477,7 @@ public class BrokerNetworkWithStuckMessagesTest {
return connection;
}
- @SuppressWarnings({"unchecked", "unused"})
+ @SuppressWarnings("unused")
private Object[] browseQueueWithJms(BrokerService broker) throws Exception {
Object[] messages = null;
Connection connection = null;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/7bf3923c/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/MessageBodyTest.java
----------------------------------------------------------------------
diff --git a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/MessageBodyTest.java b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/MessageBodyTest.java
index 5bafb64..4614a6e 100644
--- a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/MessageBodyTest.java
+++ b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/MessageBodyTest.java
@@ -571,7 +571,6 @@ public class MessageBodyTest extends MessageBodyTestCase {
ProxyAssertSupport.assertFalse(m2.itemExists("sausages"));
HashSet<String> itemNames = new HashSet<>();
- @SuppressWarnings("unchecked")
Enumeration<String> en = m2.getMapNames();
while (en.hasMoreElements()) {
String propName = en.nextElement();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/7bf3923c/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/MessageHeaderTestBase.java
----------------------------------------------------------------------
diff --git a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/MessageHeaderTestBase.java b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/MessageHeaderTestBase.java
index f57f9b9..219c4c9 100644
--- a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/MessageHeaderTestBase.java
+++ b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/MessageHeaderTestBase.java
@@ -290,7 +290,6 @@ public abstract class MessageHeaderTestBase extends ActiveMQServerTestCase {
}
}
- @SuppressWarnings("unchecked")
public static void ensureEquivalent(final MapMessage m1, final ActiveMQMapMessage m2) throws JMSException {
MessageHeaderTestBase.ensureEquivalent((Message) m1, m2);
[16/32] activemq-artemis git commit: Remove redundant type arguments
Posted by cl...@apache.org.
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/test/java/org/apache/activemq/artemis/core/list/PriorityLinkedListTest.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/test/java/org/apache/activemq/artemis/core/list/PriorityLinkedListTest.java b/artemis-server/src/test/java/org/apache/activemq/artemis/core/list/PriorityLinkedListTest.java
index 7dcf7a0..d464410 100644
--- a/artemis-server/src/test/java/org/apache/activemq/artemis/core/list/PriorityLinkedListTest.java
+++ b/artemis-server/src/test/java/org/apache/activemq/artemis/core/list/PriorityLinkedListTest.java
@@ -79,7 +79,7 @@ public final class PriorityLinkedListTest extends Assert {
private PriorityLinkedListImpl<Wibble> list;
protected PriorityLinkedListImpl<Wibble> getList() {
- return new PriorityLinkedListImpl<Wibble>(10);
+ return new PriorityLinkedListImpl<>(10);
}
@Before
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/test/java/org/apache/activemq/artemis/core/security/jaas/CertificateLoginModuleTest.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/test/java/org/apache/activemq/artemis/core/security/jaas/CertificateLoginModuleTest.java b/artemis-server/src/test/java/org/apache/activemq/artemis/core/security/jaas/CertificateLoginModuleTest.java
index 24069dd..4488973 100644
--- a/artemis-server/src/test/java/org/apache/activemq/artemis/core/security/jaas/CertificateLoginModuleTest.java
+++ b/artemis-server/src/test/java/org/apache/activemq/artemis/core/security/jaas/CertificateLoginModuleTest.java
@@ -37,7 +37,7 @@ import org.junit.Test;
public class CertificateLoginModuleTest extends Assert {
private static final String USER_NAME = "testUser";
- private static final List<String> ROLE_NAMES = new Vector<String>();
+ private static final List<String> ROLE_NAMES = new Vector<>();
private StubCertificateLoginModule loginModule;
@@ -56,7 +56,7 @@ public class CertificateLoginModuleTest extends Assert {
}
private void loginWithCredentials(String userName, Set<String> rolesNames) throws LoginException {
- loginModule = new StubCertificateLoginModule(userName, new HashSet<String>(rolesNames));
+ loginModule = new StubCertificateLoginModule(userName, new HashSet<>(rolesNames));
JaasCallbackHandler callbackHandler = new JaasCallbackHandler(null, null, null);
loginModule.initialize(subject, callbackHandler, null, new HashMap());
@@ -113,7 +113,7 @@ public class CertificateLoginModuleTest extends Assert {
@Test
public void testLoginSuccess() throws IOException {
try {
- loginWithCredentials(USER_NAME, new HashSet<String>(ROLE_NAMES));
+ loginWithCredentials(USER_NAME, new HashSet<>(ROLE_NAMES));
}
catch (Exception e) {
fail("Unable to login: " + e.getMessage());
@@ -141,7 +141,7 @@ public class CertificateLoginModuleTest extends Assert {
@Test
public void testLogOut() throws IOException {
try {
- loginWithCredentials(USER_NAME, new HashSet<String>(ROLE_NAMES));
+ loginWithCredentials(USER_NAME, new HashSet<>(ROLE_NAMES));
}
catch (Exception e) {
fail("Unable to login: " + e.getMessage());
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/test/java/org/apache/activemq/artemis/core/security/jaas/PropertiesLoginModuleRaceConditionTest.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/test/java/org/apache/activemq/artemis/core/security/jaas/PropertiesLoginModuleRaceConditionTest.java b/artemis-server/src/test/java/org/apache/activemq/artemis/core/security/jaas/PropertiesLoginModuleRaceConditionTest.java
index 13907f8..8b24306 100644
--- a/artemis-server/src/test/java/org/apache/activemq/artemis/core/security/jaas/PropertiesLoginModuleRaceConditionTest.java
+++ b/artemis-server/src/test/java/org/apache/activemq/artemis/core/security/jaas/PropertiesLoginModuleRaceConditionTest.java
@@ -93,7 +93,7 @@ public class PropertiesLoginModuleRaceConditionTest {
Subject subject = new Subject();
PropertiesLoginModule module = new PropertiesLoginModule();
- module.initialize(subject, callback, new HashMap<Object, Object>(), options);
+ module.initialize(subject, callback, new HashMap<>(), options);
module.login();
module.commit();
}
@@ -111,14 +111,14 @@ public class PropertiesLoginModuleRaceConditionTest {
createUsers();
createGroups();
- options = new HashMap<String, String>();
+ options = new HashMap<>();
options.put("reload", "true"); // Used to simplify reproduction of the
// race condition
options.put("org.apache.activemq.jaas.properties.user", USERS_FILE);
options.put("org.apache.activemq.jaas.properties.role", ROLES_FILE);
options.put("baseDir", temp.getRoot().getAbsolutePath());
- errors = new ArrayBlockingQueue<Exception>(processorCount());
+ errors = new ArrayBlockingQueue<>(processorCount());
pool = Executors.newFixedThreadPool(processorCount());
callback = new JaasCallbackHandler(USERNAME, PASSWORD, null);
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/test/java/org/apache/activemq/artemis/core/server/group/impl/ClusteredResetMockTest.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/test/java/org/apache/activemq/artemis/core/server/group/impl/ClusteredResetMockTest.java b/artemis-server/src/test/java/org/apache/activemq/artemis/core/server/group/impl/ClusteredResetMockTest.java
index c309db0..3ccb311 100644
--- a/artemis-server/src/test/java/org/apache/activemq/artemis/core/server/group/impl/ClusteredResetMockTest.java
+++ b/artemis-server/src/test/java/org/apache/activemq/artemis/core/server/group/impl/ClusteredResetMockTest.java
@@ -102,7 +102,7 @@ public class ClusteredResetMockTest extends ActiveMQTestBase {
assertTrue(latchSends.await(10, TimeUnit.SECONDS));
- HashSet<SimpleString> codesAsked = new HashSet<SimpleString>();
+ HashSet<SimpleString> codesAsked = new HashSet<>();
for (Notification notification : fake.pendingNotifications) {
codesAsked.add(notification.getProperties().getSimpleStringProperty(ManagementHelper.HDR_PROPOSAL_GROUP_ID));
@@ -172,7 +172,7 @@ public class ClusteredResetMockTest extends ActiveMQTestBase {
class FakeManagement implements ManagementService {
- public ConcurrentHashSet<Notification> pendingNotifications = new ConcurrentHashSet<Notification>();
+ public ConcurrentHashSet<Notification> pendingNotifications = new ConcurrentHashSet<>();
final ReusableLatch latch;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/test/java/org/apache/activemq/artemis/core/server/impl/ScheduledDeliveryHandlerTest.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/test/java/org/apache/activemq/artemis/core/server/impl/ScheduledDeliveryHandlerTest.java b/artemis-server/src/test/java/org/apache/activemq/artemis/core/server/impl/ScheduledDeliveryHandlerTest.java
index c6af9a7..562fbd1 100644
--- a/artemis-server/src/test/java/org/apache/activemq/artemis/core/server/impl/ScheduledDeliveryHandlerTest.java
+++ b/artemis-server/src/test/java/org/apache/activemq/artemis/core/server/impl/ScheduledDeliveryHandlerTest.java
@@ -259,7 +259,7 @@ public class ScheduledDeliveryHandlerTest extends Assert {
private void debugList(boolean fail, ScheduledDeliveryHandlerImpl handler, long numberOfExpectedMessages) {
List<MessageReference> refs = handler.getScheduledReferences();
- HashSet<Long> messages = new HashSet<Long>();
+ HashSet<Long> messages = new HashSet<>();
long lastTime = -1;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/test/java/org/apache/activemq/artemis/core/settings/RepositoryTest.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/test/java/org/apache/activemq/artemis/core/settings/RepositoryTest.java b/artemis-server/src/test/java/org/apache/activemq/artemis/core/settings/RepositoryTest.java
index c738f04..06acede 100644
--- a/artemis-server/src/test/java/org/apache/activemq/artemis/core/settings/RepositoryTest.java
+++ b/artemis-server/src/test/java/org/apache/activemq/artemis/core/settings/RepositoryTest.java
@@ -71,11 +71,11 @@ public class RepositoryTest extends ActiveMQTestBase {
@Test
public void testSingletwo() {
securityRepository.addMatch("queues.another.aq.*", new HashSet<Role>());
- HashSet<Role> roles = new HashSet<Role>(2);
+ HashSet<Role> roles = new HashSet<>(2);
roles.add(new Role("test1", true, true, true, true, true, true, true));
roles.add(new Role("test2", true, true, true, true, true, true, true));
securityRepository.addMatch("queues.aq", roles);
- HashSet<Role> roles2 = new HashSet<Role>(2);
+ HashSet<Role> roles2 = new HashSet<>(2);
roles2.add(new Role("test1", true, true, true, true, true, true, true));
roles2.add(new Role("test2", true, true, true, true, true, true, true));
roles2.add(new Role("test3", true, true, true, true, true, true, true));
@@ -88,7 +88,7 @@ public class RepositoryTest extends ActiveMQTestBase {
@Test
public void testWithoutWildcard() {
securityRepository.addMatch("queues.1.*", new HashSet<Role>());
- HashSet<Role> roles = new HashSet<Role>(2);
+ HashSet<Role> roles = new HashSet<>(2);
roles.add(new Role("test1", true, true, true, true, true, true, true));
roles.add(new Role("test2", true, true, true, true, true, true, true));
securityRepository.addMatch("queues.2.aq", roles);
@@ -98,7 +98,7 @@ public class RepositoryTest extends ActiveMQTestBase {
@Test
public void testMultipleWildcards() {
- HierarchicalRepository<String> repository = new HierarchicalObjectRepository<String>();
+ HierarchicalRepository<String> repository = new HierarchicalObjectRepository<>();
repository.addMatch("#", "#");
repository.addMatch("a", "a");
repository.addMatch("a.#", "a.#");
@@ -142,7 +142,7 @@ public class RepositoryTest extends ActiveMQTestBase {
@Test
public void testRepositoryMerge() {
- HierarchicalRepository<DummyMergeable> repository = new HierarchicalObjectRepository<DummyMergeable>();
+ HierarchicalRepository<DummyMergeable> repository = new HierarchicalObjectRepository<>();
repository.addMatch("#", new DummyMergeable(1));
repository.addMatch("a.#", new DummyMergeable(2));
repository.addMatch("b.#", new DummyMergeable(3));
@@ -172,7 +172,7 @@ public class RepositoryTest extends ActiveMQTestBase {
@Test
public void testAddListener() {
- HierarchicalRepository<String> repository = new HierarchicalObjectRepository<String>();
+ HierarchicalRepository<String> repository = new HierarchicalObjectRepository<>();
repository.addMatch("#", "1");
repository.addMatch("B", "2");
@@ -213,7 +213,7 @@ public class RepositoryTest extends ActiveMQTestBase {
@Test
public void testIllegalMatches() {
- HierarchicalRepository<String> repository = new HierarchicalObjectRepository<String>();
+ HierarchicalRepository<String> repository = new HierarchicalObjectRepository<>();
try {
repository.addMatch("hjhjhjhjh.#.hhh", "test");
fail("expected exception");
@@ -234,13 +234,13 @@ public class RepositoryTest extends ActiveMQTestBase {
static int timesMerged = 0;
- static ArrayList<Integer> merged = new ArrayList<Integer>();
+ static ArrayList<Integer> merged = new ArrayList<>();
private final Integer id;
static void reset() {
DummyMergeable.timesMerged = 0;
- DummyMergeable.merged = new ArrayList<Integer>();
+ DummyMergeable.merged = new ArrayList<>();
}
static boolean contains(final Integer i) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/test/java/org/apache/activemq/artemis/tests/util/ActiveMQTestBase.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/test/java/org/apache/activemq/artemis/tests/util/ActiveMQTestBase.java b/artemis-server/src/test/java/org/apache/activemq/artemis/tests/util/ActiveMQTestBase.java
index b8cd129..34f1ca9 100644
--- a/artemis-server/src/test/java/org/apache/activemq/artemis/tests/util/ActiveMQTestBase.java
+++ b/artemis-server/src/test/java/org/apache/activemq/artemis/tests/util/ActiveMQTestBase.java
@@ -161,16 +161,16 @@ public abstract class ActiveMQTestBase extends Assert {
protected static final long WAIT_TIMEOUT = 30000;
// There is a verification about thread leakages. We only fail a single thread when this happens
- private static Set<Thread> alreadyFailedThread = new HashSet<Thread>();
+ private static Set<Thread> alreadyFailedThread = new HashSet<>();
- private final Collection<ActiveMQServer> servers = new ArrayList<ActiveMQServer>();
- private final Collection<ServerLocator> locators = new ArrayList<ServerLocator>();
- private final Collection<ClientSessionFactory> sessionFactories = new ArrayList<ClientSessionFactory>();
- private final Collection<ClientSession> clientSessions = new HashSet<ClientSession>();
- private final Collection<ClientConsumer> clientConsumers = new HashSet<ClientConsumer>();
- private final Collection<ClientProducer> clientProducers = new HashSet<ClientProducer>();
- private final Collection<ActiveMQComponent> otherComponents = new HashSet<ActiveMQComponent>();
- private final Set<ExecutorService> executorSet = new HashSet<ExecutorService>();
+ private final Collection<ActiveMQServer> servers = new ArrayList<>();
+ private final Collection<ServerLocator> locators = new ArrayList<>();
+ private final Collection<ClientSessionFactory> sessionFactories = new ArrayList<>();
+ private final Collection<ClientSession> clientSessions = new HashSet<>();
+ private final Collection<ClientConsumer> clientConsumers = new HashSet<>();
+ private final Collection<ClientProducer> clientProducers = new HashSet<>();
+ private final Collection<ActiveMQComponent> otherComponents = new HashSet<>();
+ private final Set<ExecutorService> executorSet = new HashSet<>();
private boolean checkThread = true;
private String testDir;
@@ -466,7 +466,7 @@ public abstract class ActiveMQTestBase extends Assert {
}
protected Map<String, Object> generateInVMParams(final int node) {
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put(org.apache.activemq.artemis.core.remoting.impl.invm.TransportConstants.SERVER_ID_PROP_NAME, node);
@@ -547,7 +547,7 @@ public abstract class ActiveMQTestBase extends Assert {
long waitUntil = System.currentTimeMillis() + timeout;
// A loop that will wait GC, using the minimal time as possible
while (ref.get() != null && System.currentTimeMillis() < waitUntil) {
- ArrayList<String> list = new ArrayList<String>();
+ ArrayList<String> list = new ArrayList<>();
for (int i = 0; i < 1000; i++) {
list.add("Some string with garbage with concatenation " + i);
}
@@ -750,7 +750,7 @@ public abstract class ActiveMQTestBase extends Assert {
// The connectors need to be pre-configured at main config object but this method is taking
// TransportConfigurations directly
// So this will first register them at the config and then generate a list of objects
- ArrayList<String> connectors = new ArrayList<String>();
+ ArrayList<String> connectors = new ArrayList<>();
for (TransportConfiguration tnsp : connectorConfigs) {
String name1 = RandomUtil.randomString();
@@ -1017,7 +1017,7 @@ public abstract class ActiveMQTestBase extends Assert {
* You can pass a list of properties to be ignored, as some properties will have a pre-defined domain (not being possible to use random-values on them)
*/
protected void validateGettersAndSetters(final Object pojo, final String... ignoredProperties) throws Exception {
- HashSet<String> ignoreSet = new HashSet<String>();
+ HashSet<String> ignoreSet = new HashSet<>();
for (String ignore : ignoredProperties) {
ignoreSet.add(ignore);
@@ -1186,7 +1186,7 @@ public abstract class ActiveMQTestBase extends Assert {
}
protected static final Map<String, Object> generateParams(final int node, final boolean netty) {
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
if (netty) {
params.put(org.apache.activemq.artemis.core.remoting.impl.netty.TransportConstants.PORT_PROP_NAME, org.apache.activemq.artemis.core.remoting.impl.netty.TransportConstants.DEFAULT_PORT + node);
@@ -1203,7 +1203,7 @@ public abstract class ActiveMQTestBase extends Assert {
return new TransportConfiguration(NETTY_ACCEPTOR_FACTORY);
}
- Map<String, Object> server1Params = new HashMap<String, Object>();
+ Map<String, Object> server1Params = new HashMap<>();
server1Params.put(org.apache.activemq.artemis.core.remoting.impl.netty.TransportConstants.PORT_PROP_NAME, org.apache.activemq.artemis.core.remoting.impl.netty.TransportConstants.DEFAULT_PORT + 1);
@@ -1215,7 +1215,7 @@ public abstract class ActiveMQTestBase extends Assert {
return new TransportConfiguration(NETTY_CONNECTOR_FACTORY);
}
- Map<String, Object> server1Params = new HashMap<String, Object>();
+ Map<String, Object> server1Params = new HashMap<>();
server1Params.put(org.apache.activemq.artemis.core.remoting.impl.netty.TransportConstants.PORT_PROP_NAME, org.apache.activemq.artemis.core.remoting.impl.netty.TransportConstants.DEFAULT_PORT + 1);
return new TransportConfiguration(NETTY_CONNECTOR_FACTORY, server1Params);
@@ -1242,7 +1242,7 @@ public abstract class ActiveMQTestBase extends Assert {
}
}
if (params == null)
- params = new HashMap<String, Object>();
+ params = new HashMap<>();
return new TransportConfiguration(className, params);
}
@@ -1531,7 +1531,7 @@ public abstract class ActiveMQTestBase extends Assert {
* @return
*/
protected final TransportConfiguration createInVMTransportConnectorConfig(final int serverID, String name1) {
- Map<String, Object> server1Params = new HashMap<String, Object>();
+ Map<String, Object> server1Params = new HashMap<>();
if (serverID != 0) {
server1Params.put(TransportConstants.SERVER_ID_PROP_NAME, serverID);
@@ -1631,14 +1631,14 @@ public abstract class ActiveMQTestBase extends Assert {
SequentialFileFactory messagesFF = new NIOSequentialFileFactory(new File(getJournalDir()), null, 1);
messagesJournal = new JournalImpl(config.getJournalFileSize(), config.getJournalMinFiles(), 0, 0, messagesFF, "activemq-data", "amq", 1);
- final List<RecordInfo> committedRecords = new LinkedList<RecordInfo>();
- final List<PreparedTransactionInfo> preparedTransactions = new LinkedList<PreparedTransactionInfo>();
+ final List<RecordInfo> committedRecords = new LinkedList<>();
+ final List<PreparedTransactionInfo> preparedTransactions = new LinkedList<>();
messagesJournal.start();
messagesJournal.load(committedRecords, preparedTransactions, null, false);
- return new Pair<List<RecordInfo>, List<PreparedTransactionInfo>>(committedRecords, preparedTransactions);
+ return new Pair<>(committedRecords, preparedTransactions);
}
finally {
try {
@@ -1661,7 +1661,7 @@ public abstract class ActiveMQTestBase extends Assert {
* @throws Exception
*/
protected HashMap<Integer, AtomicInteger> countJournal(Configuration config) throws Exception {
- final HashMap<Integer, AtomicInteger> recordsType = new HashMap<Integer, AtomicInteger>();
+ final HashMap<Integer, AtomicInteger> recordsType = new HashMap<>();
SequentialFileFactory messagesFF = new NIOSequentialFileFactory(config.getJournalLocation(), null, 1);
JournalImpl messagesJournal = new JournalImpl(config.getJournalFileSize(), config.getJournalMinFiles(), 0, 0, messagesFF, "activemq-data", "amq", 1);
@@ -1694,7 +1694,7 @@ public abstract class ActiveMQTestBase extends Assert {
*/
protected HashMap<Integer, AtomicInteger> internalCountJournalLivingRecords(Configuration config,
boolean messageJournal) throws Exception {
- final HashMap<Integer, AtomicInteger> recordsType = new HashMap<Integer, AtomicInteger>();
+ final HashMap<Integer, AtomicInteger> recordsType = new HashMap<>();
SequentialFileFactory ff;
JournalImpl journal;
@@ -1709,8 +1709,8 @@ public abstract class ActiveMQTestBase extends Assert {
}
journal.start();
- final List<RecordInfo> committedRecords = new LinkedList<RecordInfo>();
- final List<PreparedTransactionInfo> preparedTransactions = new LinkedList<PreparedTransactionInfo>();
+ final List<RecordInfo> committedRecords = new LinkedList<>();
+ final List<PreparedTransactionInfo> preparedTransactions = new LinkedList<>();
journal.load(committedRecords, preparedTransactions, null, false);
@@ -2251,7 +2251,7 @@ public abstract class ActiveMQTestBase extends Assert {
private List<QueueBinding> getLocalQueueBindings(final PostOffice postOffice,
final String address) throws Exception {
- ArrayList<QueueBinding> bindingsFound = new ArrayList<QueueBinding>();
+ ArrayList<QueueBinding> bindingsFound = new ArrayList<>();
Bindings bindings = postOffice.getBindingsForAddress(new SimpleString(address));
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-service-extensions/src/main/java/org/apache/activemq/artemis/service/extensions/xa/recovery/ActiveMQXAResourceRecovery.java
----------------------------------------------------------------------
diff --git a/artemis-service-extensions/src/main/java/org/apache/activemq/artemis/service/extensions/xa/recovery/ActiveMQXAResourceRecovery.java b/artemis-service-extensions/src/main/java/org/apache/activemq/artemis/service/extensions/xa/recovery/ActiveMQXAResourceRecovery.java
index 3b2b3e7..f22f295 100644
--- a/artemis-service-extensions/src/main/java/org/apache/activemq/artemis/service/extensions/xa/recovery/ActiveMQXAResourceRecovery.java
+++ b/artemis-service-extensions/src/main/java/org/apache/activemq/artemis/service/extensions/xa/recovery/ActiveMQXAResourceRecovery.java
@@ -172,7 +172,7 @@ public class ActiveMQXAResourceRecovery {
}
// other tokens are for connector configurations
- connectorParameters = new HashMap<String, Object>();
+ connectorParameters = new HashMap<>();
if (strings.length >= 3) {
for (int i = 3; i < strings.length; i++) {
String[] str = strings[i].split("=");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-service-extensions/src/test/java/org/apache/activemq/artemis/service/extensions/tests/xa/ActiveMQXAResourceWrapperImplTest.java
----------------------------------------------------------------------
diff --git a/artemis-service-extensions/src/test/java/org/apache/activemq/artemis/service/extensions/tests/xa/ActiveMQXAResourceWrapperImplTest.java b/artemis-service-extensions/src/test/java/org/apache/activemq/artemis/service/extensions/tests/xa/ActiveMQXAResourceWrapperImplTest.java
index eff8533..3d7f37e 100644
--- a/artemis-service-extensions/src/test/java/org/apache/activemq/artemis/service/extensions/tests/xa/ActiveMQXAResourceWrapperImplTest.java
+++ b/artemis-service-extensions/src/test/java/org/apache/activemq/artemis/service/extensions/tests/xa/ActiveMQXAResourceWrapperImplTest.java
@@ -35,7 +35,7 @@ public class ActiveMQXAResourceWrapperImplTest {
String nodeId = "0";
XAResource xaResource = new MockXAResource();
- Map<String, Object> xaResourceWrapperProperties = new HashMap<String, Object>();
+ Map<String, Object> xaResourceWrapperProperties = new HashMap<>();
xaResourceWrapperProperties.put(ActiveMQXAResourceWrapper.ACTIVEMQ_JNDI_NAME, jndiName);
xaResourceWrapperProperties.put(ActiveMQXAResourceWrapper.ACTIVEMQ_NODE_ID, nodeId);
xaResourceWrapperProperties.put(ActiveMQXAResourceWrapper.ACTIVEMQ_PRODUCT_VERSION, "6");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/examples/features/clustered/clustered-jgroups/src/main/java/org/apache/activemq/artemis/jms/example/ClusteredJgroupsExample.java
----------------------------------------------------------------------
diff --git a/examples/features/clustered/clustered-jgroups/src/main/java/org/apache/activemq/artemis/jms/example/ClusteredJgroupsExample.java b/examples/features/clustered/clustered-jgroups/src/main/java/org/apache/activemq/artemis/jms/example/ClusteredJgroupsExample.java
index f8016b1..5f956b5 100644
--- a/examples/features/clustered/clustered-jgroups/src/main/java/org/apache/activemq/artemis/jms/example/ClusteredJgroupsExample.java
+++ b/examples/features/clustered/clustered-jgroups/src/main/java/org/apache/activemq/artemis/jms/example/ClusteredJgroupsExample.java
@@ -42,7 +42,7 @@ public class ClusteredJgroupsExample {
try {
// Step 1. Get an initial context for looking up JNDI from server 0
- Hashtable<String, Object> properties = new Hashtable<String, Object>();
+ Hashtable<String, Object> properties = new Hashtable<>();
properties.put("java.naming.factory.initial", "org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory");
properties.put("connectionFactory.ConnectionFactory", "tcp://localhost:61616");
properties.put("queue.queue/exampleQueue", "exampleQueue");
@@ -55,7 +55,7 @@ public class ClusteredJgroupsExample {
ConnectionFactory cf0 = (ConnectionFactory) ic0.lookup("ConnectionFactory");
// Step 4. Get an initial context for looking up JNDI from server 1
- properties = new Hashtable<String, Object>();
+ properties = new Hashtable<>();
properties.put("java.naming.factory.initial", "org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory");
properties.put("connectionFactory.ConnectionFactory", "tcp://localhost:61617");
ic1 = new InitialContext(properties);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/examples/features/ha/colocated-failover-scale-down/src/main/java/org/apache/activemq/artemis/jms/example/ColocatedFailoverScaleDownExample.java
----------------------------------------------------------------------
diff --git a/examples/features/ha/colocated-failover-scale-down/src/main/java/org/apache/activemq/artemis/jms/example/ColocatedFailoverScaleDownExample.java b/examples/features/ha/colocated-failover-scale-down/src/main/java/org/apache/activemq/artemis/jms/example/ColocatedFailoverScaleDownExample.java
index 08683ab..ee592f9 100644
--- a/examples/features/ha/colocated-failover-scale-down/src/main/java/org/apache/activemq/artemis/jms/example/ColocatedFailoverScaleDownExample.java
+++ b/examples/features/ha/colocated-failover-scale-down/src/main/java/org/apache/activemq/artemis/jms/example/ColocatedFailoverScaleDownExample.java
@@ -54,12 +54,12 @@ public class ColocatedFailoverScaleDownExample {
Thread.sleep(3000);
// Step 1. Get an initial context for looking up JNDI for both servers
- Hashtable<String, Object> properties = new Hashtable<String, Object>();
+ Hashtable<String, Object> properties = new Hashtable<>();
properties.put("java.naming.factory.initial", "org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory");
properties.put("connectionFactory.ConnectionFactory", "tcp://localhost:61617");
initialContext1 = new InitialContext(properties);
- properties = new Hashtable<String, Object>();
+ properties = new Hashtable<>();
properties.put("java.naming.factory.initial", "org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory");
properties.put("connectionFactory.ConnectionFactory", "tcp://localhost:61616?ha=true&retryInterval=1000&retryIntervalMultiplier=1.0&reconnectAttempts=-1");
properties.put("queue.queue/exampleQueue", "exampleQueue");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/examples/features/ha/colocated-failover/src/main/java/org/apache/activemq/artemis/jms/example/ColocatedFailoverExample.java
----------------------------------------------------------------------
diff --git a/examples/features/ha/colocated-failover/src/main/java/org/apache/activemq/artemis/jms/example/ColocatedFailoverExample.java b/examples/features/ha/colocated-failover/src/main/java/org/apache/activemq/artemis/jms/example/ColocatedFailoverExample.java
index ac88238..5bf32f5 100644
--- a/examples/features/ha/colocated-failover/src/main/java/org/apache/activemq/artemis/jms/example/ColocatedFailoverExample.java
+++ b/examples/features/ha/colocated-failover/src/main/java/org/apache/activemq/artemis/jms/example/ColocatedFailoverExample.java
@@ -53,13 +53,13 @@ public class ColocatedFailoverExample {
Thread.sleep(3000);
// Step 1. Get an initial context for looking up JNDI for both servers
- Hashtable<String, Object> properties = new Hashtable<String, Object>();
+ Hashtable<String, Object> properties = new Hashtable<>();
properties.put("java.naming.factory.initial", "org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory");
properties.put("connectionFactory.ConnectionFactory", "tcp://localhost:61616?ha=true&retryInterval=1000&retryIntervalMultiplier=1.0&reconnectAttempts=-1");
properties.put("queue.queue/exampleQueue", "exampleQueue");
initialContext = new InitialContext(properties);
- properties = new Hashtable<String, Object>();
+ properties = new Hashtable<>();
properties.put("java.naming.factory.initial", "org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory");
properties.put("connectionFactory.ConnectionFactory", "tcp://localhost:61617");
initialContext1 = new InitialContext(properties);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/examples/features/ha/ha-policy-autobackup/src/main/java/org/apache/activemq/artemis/jms/example/HAPolicyAutoBackupExample.java
----------------------------------------------------------------------
diff --git a/examples/features/ha/ha-policy-autobackup/src/main/java/org/apache/activemq/artemis/jms/example/HAPolicyAutoBackupExample.java b/examples/features/ha/ha-policy-autobackup/src/main/java/org/apache/activemq/artemis/jms/example/HAPolicyAutoBackupExample.java
index 0df8bfd..0401617 100644
--- a/examples/features/ha/ha-policy-autobackup/src/main/java/org/apache/activemq/artemis/jms/example/HAPolicyAutoBackupExample.java
+++ b/examples/features/ha/ha-policy-autobackup/src/main/java/org/apache/activemq/artemis/jms/example/HAPolicyAutoBackupExample.java
@@ -136,7 +136,7 @@ public class HAPolicyAutoBackupExample {
private static void waitForBackups(ConnectionFactory cf0, int backups) throws InterruptedException {
final CountDownLatch latch = new CountDownLatch(backups);
((ActiveMQConnectionFactory) cf0).getServerLocator().addClusterTopologyListener(new ClusterTopologyListener() {
- List<TransportConfiguration> backups = new ArrayList<TransportConfiguration>();
+ List<TransportConfiguration> backups = new ArrayList<>();
@Override
public void nodeUP(TopologyMember member, boolean last) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/examples/features/ha/scale-down/src/main/java/org/apache/activemq/artemis/jms/example/ScaleDownExample.java
----------------------------------------------------------------------
diff --git a/examples/features/ha/scale-down/src/main/java/org/apache/activemq/artemis/jms/example/ScaleDownExample.java b/examples/features/ha/scale-down/src/main/java/org/apache/activemq/artemis/jms/example/ScaleDownExample.java
index 3d81a38..4383b28 100644
--- a/examples/features/ha/scale-down/src/main/java/org/apache/activemq/artemis/jms/example/ScaleDownExample.java
+++ b/examples/features/ha/scale-down/src/main/java/org/apache/activemq/artemis/jms/example/ScaleDownExample.java
@@ -51,13 +51,13 @@ public class ScaleDownExample {
server1 = ServerUtil.startServer(args[1], ScaleDownExample.class.getSimpleName() + "1", 1, 5000);
// Step 1. Get an initial context for looking up JNDI for both servers
- Hashtable<String, Object> properties = new Hashtable<String, Object>();
+ Hashtable<String, Object> properties = new Hashtable<>();
properties.put("java.naming.factory.initial", "org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory");
properties.put("connectionFactory.ConnectionFactory", "tcp://localhost:61616?ha=true&retryInterval=1000&retryIntervalMultiplier=1.0&reconnectAttempts=-1");
properties.put("queue.queue/exampleQueue", "exampleQueue");
initialContext = new InitialContext(properties);
- properties = new Hashtable<String, Object>();
+ properties = new Hashtable<>();
properties.put("java.naming.factory.initial", "org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory");
properties.put("connectionFactory.ConnectionFactory", "tcp://localhost:61617?ha=true&retryInterval=1000&retryIntervalMultiplier=1.0&reconnectAttempts=-1");
initialContext1 = new InitialContext(properties);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/examples/features/standard/bridge/src/main/java/org/apache/activemq/artemis/jms/example/BridgeExample.java
----------------------------------------------------------------------
diff --git a/examples/features/standard/bridge/src/main/java/org/apache/activemq/artemis/jms/example/BridgeExample.java b/examples/features/standard/bridge/src/main/java/org/apache/activemq/artemis/jms/example/BridgeExample.java
index 0fa17c2..4c0e3b9 100644
--- a/examples/features/standard/bridge/src/main/java/org/apache/activemq/artemis/jms/example/BridgeExample.java
+++ b/examples/features/standard/bridge/src/main/java/org/apache/activemq/artemis/jms/example/BridgeExample.java
@@ -44,7 +44,7 @@ public class BridgeExample {
try {
// Step 1 - we create an initial context for looking up JNDI on node 0
- Hashtable<String, Object> properties = new Hashtable<String, Object>();
+ Hashtable<String, Object> properties = new Hashtable<>();
properties.put("java.naming.factory.initial", "org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory");
properties.put("connectionFactory.ConnectionFactory", "tcp://127.0.0.1:61616");
properties.put("queue.queue/sausage-factory", "sausage-factory");
@@ -60,7 +60,7 @@ public class BridgeExample {
// Step 4 - we create an initial context for looking up JNDI on node 1
- properties = new Hashtable<String, Object>();
+ properties = new Hashtable<>();
properties.put("java.naming.factory.initial", "org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory");
properties.put("connectionFactory.ConnectionFactory", "tcp://127.0.0.1:61617");
properties.put("queue.queue/mincing-machine", "mincing-machine");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/examples/features/standard/client-kickoff/src/main/java/org/apache/activemq/artemis/jms/example/ClientKickoffExample.java
----------------------------------------------------------------------
diff --git a/examples/features/standard/client-kickoff/src/main/java/org/apache/activemq/artemis/jms/example/ClientKickoffExample.java b/examples/features/standard/client-kickoff/src/main/java/org/apache/activemq/artemis/jms/example/ClientKickoffExample.java
index 14e9f37..bf70e96 100644
--- a/examples/features/standard/client-kickoff/src/main/java/org/apache/activemq/artemis/jms/example/ClientKickoffExample.java
+++ b/examples/features/standard/client-kickoff/src/main/java/org/apache/activemq/artemis/jms/example/ClientKickoffExample.java
@@ -54,7 +54,7 @@ public class ClientKickoffExample {
connection = cf.createQueueConnection();
// Step 4. Set an exception listener on the connection to be notified after a problem occurred
- final AtomicReference<JMSException> exception = new AtomicReference<JMSException>();
+ final AtomicReference<JMSException> exception = new AtomicReference<>();
connection.setExceptionListener(new ExceptionListener() {
@Override
public void onException(final JMSException e) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/examples/features/standard/embedded-simple/src/main/java/org/apache/activemq/artemis/jms/example/EmbeddedExample.java
----------------------------------------------------------------------
diff --git a/examples/features/standard/embedded-simple/src/main/java/org/apache/activemq/artemis/jms/example/EmbeddedExample.java b/examples/features/standard/embedded-simple/src/main/java/org/apache/activemq/artemis/jms/example/EmbeddedExample.java
index 334c58f..526f870 100644
--- a/examples/features/standard/embedded-simple/src/main/java/org/apache/activemq/artemis/jms/example/EmbeddedExample.java
+++ b/examples/features/standard/embedded-simple/src/main/java/org/apache/activemq/artemis/jms/example/EmbeddedExample.java
@@ -53,7 +53,7 @@ public class EmbeddedExample {
System.out.println("Started Embedded JMS Server");
JMSServerManager jmsServerManager = jmsServer.getJMSServerManager();
- List<String> connectors = new ArrayList<String>();
+ List<String> connectors = new ArrayList<>();
connectors.add("in-vm");
jmsServerManager.createConnectionFactory("ConnectionFactory", false, JMSFactoryType.CF, connectors, "ConnectionFactory");
jmsServerManager.createQueue(false, "exampleQueue", null, false, "queue/exampleQueue");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/examples/features/standard/embedded/src/main/java/org/apache/activemq/artemis/jms/example/EmbeddedExample.java
----------------------------------------------------------------------
diff --git a/examples/features/standard/embedded/src/main/java/org/apache/activemq/artemis/jms/example/EmbeddedExample.java b/examples/features/standard/embedded/src/main/java/org/apache/activemq/artemis/jms/example/EmbeddedExample.java
index cb39fd0..9cdc504 100644
--- a/examples/features/standard/embedded/src/main/java/org/apache/activemq/artemis/jms/example/EmbeddedExample.java
+++ b/examples/features/standard/embedded/src/main/java/org/apache/activemq/artemis/jms/example/EmbeddedExample.java
@@ -60,7 +60,7 @@ public final class EmbeddedExample {
JMSConfiguration jmsConfig = new JMSConfigurationImpl();
// Step 3. Configure the JMS ConnectionFactory
- ArrayList<String> connectorNames = new ArrayList<String>();
+ ArrayList<String> connectorNames = new ArrayList<>();
connectorNames.add("connector");
ConnectionFactoryConfiguration cfConfig = new ConnectionFactoryConfigurationImpl().setName("cf").setConnectorNames(connectorNames).setBindings("cf");
jmsConfig.getConnectionFactoryConfigurations().add(cfConfig);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/examples/features/standard/jms-bridge/src/main/java/org/apache/activemq/artemis/jms/example/JMSBridgeExample.java
----------------------------------------------------------------------
diff --git a/examples/features/standard/jms-bridge/src/main/java/org/apache/activemq/artemis/jms/example/JMSBridgeExample.java b/examples/features/standard/jms-bridge/src/main/java/org/apache/activemq/artemis/jms/example/JMSBridgeExample.java
index 8a65cd5..f15db57 100644
--- a/examples/features/standard/jms-bridge/src/main/java/org/apache/activemq/artemis/jms/example/JMSBridgeExample.java
+++ b/examples/features/standard/jms-bridge/src/main/java/org/apache/activemq/artemis/jms/example/JMSBridgeExample.java
@@ -126,7 +126,7 @@ public class JMSBridgeExample {
}
private static Hashtable<String, String> createJndiParams(String server) {
- Hashtable<String, String> jndiProps = new Hashtable<String, String>();
+ Hashtable<String, String> jndiProps = new Hashtable<>();
jndiProps.put("connectionFactory.ConnectionFactory", server);
jndiProps.put("java.naming.factory.initial", "org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory");
jndiProps.put("queue.target/queue", "target");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/examples/features/standard/message-group/src/main/java/org/apache/activemq/artemis/jms/example/MessageGroupExample.java
----------------------------------------------------------------------
diff --git a/examples/features/standard/message-group/src/main/java/org/apache/activemq/artemis/jms/example/MessageGroupExample.java b/examples/features/standard/message-group/src/main/java/org/apache/activemq/artemis/jms/example/MessageGroupExample.java
index 88b75e4..4db7618 100644
--- a/examples/features/standard/message-group/src/main/java/org/apache/activemq/artemis/jms/example/MessageGroupExample.java
+++ b/examples/features/standard/message-group/src/main/java/org/apache/activemq/artemis/jms/example/MessageGroupExample.java
@@ -37,7 +37,7 @@ import org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory;
public class MessageGroupExample {
public static void main(final String[] args) throws Exception {
- final Map<String, String> messageReceiverMap = new ConcurrentHashMap<String, String>();
+ final Map<String, String> messageReceiverMap = new ConcurrentHashMap<>();
Connection connection = null;
try {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/examples/features/standard/message-group2/src/main/java/org/apache/activemq/artemis/jms/example/MessageGroup2Example.java
----------------------------------------------------------------------
diff --git a/examples/features/standard/message-group2/src/main/java/org/apache/activemq/artemis/jms/example/MessageGroup2Example.java b/examples/features/standard/message-group2/src/main/java/org/apache/activemq/artemis/jms/example/MessageGroup2Example.java
index db104f7..717c454 100644
--- a/examples/features/standard/message-group2/src/main/java/org/apache/activemq/artemis/jms/example/MessageGroup2Example.java
+++ b/examples/features/standard/message-group2/src/main/java/org/apache/activemq/artemis/jms/example/MessageGroup2Example.java
@@ -39,7 +39,7 @@ public class MessageGroup2Example {
private boolean result = true;
public static void main(String[] args) throws Exception {
- final Map<String, String> messageReceiverMap = new ConcurrentHashMap<String, String>();
+ final Map<String, String> messageReceiverMap = new ConcurrentHashMap<>();
Connection connection = null;
try {
//Step 2. Perform a lookup on the queue
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/examples/features/standard/message-priority/src/main/java/org/apache/activemq/artemis/jms/example/MessagePriorityExample.java
----------------------------------------------------------------------
diff --git a/examples/features/standard/message-priority/src/main/java/org/apache/activemq/artemis/jms/example/MessagePriorityExample.java b/examples/features/standard/message-priority/src/main/java/org/apache/activemq/artemis/jms/example/MessagePriorityExample.java
index b9257c0..b879615 100644
--- a/examples/features/standard/message-priority/src/main/java/org/apache/activemq/artemis/jms/example/MessagePriorityExample.java
+++ b/examples/features/standard/message-priority/src/main/java/org/apache/activemq/artemis/jms/example/MessagePriorityExample.java
@@ -41,7 +41,7 @@ public class MessagePriorityExample {
public static void main(final String[] args) throws Exception {
AtomicBoolean result = new AtomicBoolean(true);
- final ArrayList<TextMessage> msgReceived = new ArrayList<TextMessage>();
+ final ArrayList<TextMessage> msgReceived = new ArrayList<>();
Connection connection = null;
try {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/examples/features/standard/request-reply/src/main/java/org/apache/activemq/artemis/jms/example/RequestReplyExample.java
----------------------------------------------------------------------
diff --git a/examples/features/standard/request-reply/src/main/java/org/apache/activemq/artemis/jms/example/RequestReplyExample.java b/examples/features/standard/request-reply/src/main/java/org/apache/activemq/artemis/jms/example/RequestReplyExample.java
index afdd738..edab71c 100644
--- a/examples/features/standard/request-reply/src/main/java/org/apache/activemq/artemis/jms/example/RequestReplyExample.java
+++ b/examples/features/standard/request-reply/src/main/java/org/apache/activemq/artemis/jms/example/RequestReplyExample.java
@@ -44,7 +44,7 @@ import javax.naming.InitialContext;
public class RequestReplyExample {
public static void main(final String[] args) throws Exception {
- final Map<String, TextMessage> requestMap = new HashMap<String, TextMessage>();
+ final Map<String, TextMessage> requestMap = new HashMap<>();
Connection connection = null;
InitialContext initialContext = null;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/examples/features/standard/xa-heuristic/src/main/java/org/apache/activemq/artemis/jms/example/XAHeuristicExample.java
----------------------------------------------------------------------
diff --git a/examples/features/standard/xa-heuristic/src/main/java/org/apache/activemq/artemis/jms/example/XAHeuristicExample.java b/examples/features/standard/xa-heuristic/src/main/java/org/apache/activemq/artemis/jms/example/XAHeuristicExample.java
index f6f8b9c..1299f8e 100644
--- a/examples/features/standard/xa-heuristic/src/main/java/org/apache/activemq/artemis/jms/example/XAHeuristicExample.java
+++ b/examples/features/standard/xa-heuristic/src/main/java/org/apache/activemq/artemis/jms/example/XAHeuristicExample.java
@@ -51,7 +51,7 @@ public class XAHeuristicExample {
public static void main(final String[] args) throws Exception {
Boolean result = true;
- final ArrayList<String> receiveHolder = new ArrayList<String>();
+ final ArrayList<String> receiveHolder = new ArrayList<>();
XAConnection connection = null;
InitialContext initialContext = null;
try {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/examples/features/standard/xa-send/src/main/java/org/apache/activemq/artemis/jms/example/XASendExample.java
----------------------------------------------------------------------
diff --git a/examples/features/standard/xa-send/src/main/java/org/apache/activemq/artemis/jms/example/XASendExample.java b/examples/features/standard/xa-send/src/main/java/org/apache/activemq/artemis/jms/example/XASendExample.java
index 9835f54..53fed86 100644
--- a/examples/features/standard/xa-send/src/main/java/org/apache/activemq/artemis/jms/example/XASendExample.java
+++ b/examples/features/standard/xa-send/src/main/java/org/apache/activemq/artemis/jms/example/XASendExample.java
@@ -43,7 +43,7 @@ public class XASendExample {
public static void main(final String[] args) throws Exception {
AtomicBoolean result = new AtomicBoolean(true);
- final ArrayList<String> receiveHolder = new ArrayList<String>();
+ final ArrayList<String> receiveHolder = new ArrayList<>();
XAConnection connection = null;
InitialContext initialContext = null;
try {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/integration/activemq-vertx-integration/src/main/java/org/apache/activemq/artemis/integration/vertx/VertxConstants.java
----------------------------------------------------------------------
diff --git a/integration/activemq-vertx-integration/src/main/java/org/apache/activemq/artemis/integration/vertx/VertxConstants.java b/integration/activemq-vertx-integration/src/main/java/org/apache/activemq/artemis/integration/vertx/VertxConstants.java
index 209dda5..e0d1537 100644
--- a/integration/activemq-vertx-integration/src/main/java/org/apache/activemq/artemis/integration/vertx/VertxConstants.java
+++ b/integration/activemq-vertx-integration/src/main/java/org/apache/activemq/artemis/integration/vertx/VertxConstants.java
@@ -56,7 +56,7 @@ public class VertxConstants {
public static final String VERTX_MESSAGE_TYPE = "VertxMessageType";
static {
- ALLOWABLE_INCOMING_CONNECTOR_KEYS = new HashSet<String>();
+ ALLOWABLE_INCOMING_CONNECTOR_KEYS = new HashSet<>();
ALLOWABLE_INCOMING_CONNECTOR_KEYS.add(PORT);
ALLOWABLE_INCOMING_CONNECTOR_KEYS.add(HOST);
ALLOWABLE_INCOMING_CONNECTOR_KEYS.add(QUEUE_NAME);
@@ -64,10 +64,10 @@ public class VertxConstants {
ALLOWABLE_INCOMING_CONNECTOR_KEYS.add(VERTX_QUORUM_SIZE);
ALLOWABLE_INCOMING_CONNECTOR_KEYS.add(VERTX_HA_GROUP);
- REQUIRED_INCOMING_CONNECTOR_KEYS = new HashSet<String>();
+ REQUIRED_INCOMING_CONNECTOR_KEYS = new HashSet<>();
REQUIRED_INCOMING_CONNECTOR_KEYS.add(QUEUE_NAME);
- ALLOWABLE_OUTGOING_CONNECTOR_KEYS = new HashSet<String>();
+ ALLOWABLE_OUTGOING_CONNECTOR_KEYS = new HashSet<>();
ALLOWABLE_OUTGOING_CONNECTOR_KEYS.add(PORT);
ALLOWABLE_OUTGOING_CONNECTOR_KEYS.add(HOST);
ALLOWABLE_OUTGOING_CONNECTOR_KEYS.add(QUEUE_NAME);
@@ -76,7 +76,7 @@ public class VertxConstants {
ALLOWABLE_OUTGOING_CONNECTOR_KEYS.add(VERTX_QUORUM_SIZE);
ALLOWABLE_OUTGOING_CONNECTOR_KEYS.add(VERTX_HA_GROUP);
- REQUIRED_OUTGOING_CONNECTOR_KEYS = new HashSet<String>();
+ REQUIRED_OUTGOING_CONNECTOR_KEYS = new HashSet<>();
REQUIRED_OUTGOING_CONNECTOR_KEYS.add(QUEUE_NAME);
}
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/ActiveMQConnectionFactory.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/ActiveMQConnectionFactory.java b/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/ActiveMQConnectionFactory.java
index e6d835e..02e5c62 100644
--- a/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/ActiveMQConnectionFactory.java
+++ b/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/ActiveMQConnectionFactory.java
@@ -250,7 +250,7 @@ public class ActiveMQConnectionFactory extends JNDIBaseStorable implements Conne
Map<String, String> params = URISupport.parseParameters(uri);
//EMPTY_MAP is immutable, so use a normal map instead.
if (params == Collections.EMPTY_MAP) {
- params = new HashMap<String, String>();
+ params = new HashMap<>();
}
params.put("invmBrokerId", uri.getHost() == null ? "localhost" : uri.getHost());
defaultTcpUri = URISupport.createRemainingURI(defaultTcpUri, params);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/broker/BrokerService.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/broker/BrokerService.java b/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/broker/BrokerService.java
index e50fdf8..ffdfc6e 100644
--- a/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/broker/BrokerService.java
+++ b/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/broker/BrokerService.java
@@ -91,9 +91,9 @@ public class BrokerService implements Service {
private BrokerId brokerId;
private Throwable startException = null;
private boolean startAsync = false;
- public Set<Integer> extraConnectors = new HashSet<Integer>();
+ public Set<Integer> extraConnectors = new HashSet<>();
- private List<TransportConnector> transportConnectors = new ArrayList<TransportConnector>();
+ private List<TransportConnector> transportConnectors = new ArrayList<>();
private File dataDirectoryFile;
private PolicyMap destinationPolicy;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/broker/artemiswrapper/ArtemisBrokerWrapper.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/broker/artemiswrapper/ArtemisBrokerWrapper.java b/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/broker/artemiswrapper/ArtemisBrokerWrapper.java
index 14b93c6..61d6250 100644
--- a/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/broker/artemiswrapper/ArtemisBrokerWrapper.java
+++ b/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/broker/artemiswrapper/ArtemisBrokerWrapper.java
@@ -43,7 +43,7 @@ import org.apache.activemq.broker.region.policy.PolicyMap;
public class ArtemisBrokerWrapper extends ArtemisBrokerBase {
- protected final Map<String, SimpleString> testQueues = new HashMap<String, SimpleString>();
+ protected final Map<String, SimpleString> testQueues = new HashMap<>();
protected JMSServerManagerImpl jmsServer;
public ArtemisBrokerWrapper(BrokerService brokerService) {
@@ -56,7 +56,7 @@ public class ArtemisBrokerWrapper extends ArtemisBrokerBase {
clearDataRecreateServerDirs();
server = createServer(realStore, true);
server.getConfiguration().getAcceptorConfigurations().clear();
- HashMap<String, Object> params = new HashMap<String, Object>();
+ HashMap<String, Object> params = new HashMap<>();
params.put(TransportConstants.PORT_PROP_NAME, "61616");
params.put(TransportConstants.PROTOCOLS_PROP_NAME, "OPENWIRE,CORE");
TransportConfiguration transportConfiguration = new TransportConfiguration(NETTY_ACCEPTOR_FACTORY, params);
@@ -84,7 +84,7 @@ public class ArtemisBrokerWrapper extends ArtemisBrokerBase {
serverConfig.getAcceptorConfigurations().add(transportConfiguration);
if (this.bservice.enableSsl()) {
- params = new HashMap<String, Object>();
+ params = new HashMap<>();
params.put(TransportConstants.SSL_ENABLED_PROP_NAME, true);
params.put(TransportConstants.PORT_PROP_NAME, 61611);
params.put(TransportConstants.PROTOCOLS_PROP_NAME, "OPENWIRE");
@@ -104,7 +104,7 @@ public class ArtemisBrokerWrapper extends ArtemisBrokerBase {
for (Integer port : bservice.extraConnectors) {
if (port.intValue() != 61616) {
//extra port
- params = new HashMap<String, Object>();
+ params = new HashMap<>();
params.put(TransportConstants.PORT_PROP_NAME, port.intValue());
params.put(TransportConstants.PROTOCOLS_PROP_NAME, "OPENWIRE");
TransportConfiguration extraTransportConfiguration = new TransportConfiguration(NETTY_ACCEPTOR_FACTORY, params);
@@ -143,12 +143,12 @@ public class ArtemisBrokerWrapper extends ArtemisBrokerBase {
Map<String, Set<Role>> settings = server.getConfiguration().getSecurityRoles();
if (settings == null) {
- settings = new HashMap<String, Set<Role>>();
+ settings = new HashMap<>();
server.getConfiguration().setSecurityRoles(settings);
}
Set<Role> anySet = settings.get("#");
if (anySet == null) {
- anySet = new HashSet<Role>();
+ anySet = new HashSet<>();
settings.put("#", anySet);
}
anySet.add(senderRole);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/broker/artemiswrapper/InVMNamingContext.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/broker/artemiswrapper/InVMNamingContext.java b/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/broker/artemiswrapper/InVMNamingContext.java
index f77a413..27b9f72 100644
--- a/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/broker/artemiswrapper/InVMNamingContext.java
+++ b/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/broker/artemiswrapper/InVMNamingContext.java
@@ -175,13 +175,13 @@ public class InVMNamingContext implements Context, Serializable {
}
}
- List<Binding> l = new ArrayList<Binding>();
+ List<Binding> l = new ArrayList<>();
for (Object element : map.keySet()) {
String name = (String) element;
Object object = map.get(name);
l.add(new Binding(name, object));
}
- return new NamingEnumerationImpl<Binding>(l.iterator());
+ return new NamingEnumerationImpl<>(l.iterator());
}
@Override
@@ -252,7 +252,7 @@ public class InVMNamingContext implements Context, Serializable {
@Override
public Hashtable<String, String> getEnvironment() throws NamingException {
- Hashtable<String, String> env = new Hashtable<String, String>();
+ Hashtable<String, String> env = new Hashtable<>();
env.put("java.naming.factory.initial", "org.apache.activemq.artemis.jms.tests.tools.container.InVMInitialContextFactory");
return env;
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/transport/tcp/TcpTransportFactory.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/transport/tcp/TcpTransportFactory.java b/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/transport/tcp/TcpTransportFactory.java
index 58d51ca..34babf8 100644
--- a/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/transport/tcp/TcpTransportFactory.java
+++ b/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/transport/tcp/TcpTransportFactory.java
@@ -72,7 +72,7 @@ public class TcpTransportFactory extends TransportFactory {
@Override
public TransportServer doBind(final URI location) throws IOException {
try {
- Map<String, String> options = new HashMap<String, String>(URISupport.parseParameters(location));
+ Map<String, String> options = new HashMap<>(URISupport.parseParameters(location));
ServerSocketFactory serverSocketFactory = createServerSocketFactory();
TcpTransportServer server = createTcpTransportServer(location, serverSocketFactory);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/usage/SystemUsage.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/usage/SystemUsage.java b/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/usage/SystemUsage.java
index e36ab87..f6b4cde 100644
--- a/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/usage/SystemUsage.java
+++ b/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/usage/SystemUsage.java
@@ -46,7 +46,7 @@ public class SystemUsage implements Service {
private boolean sendFailIfNoSpaceAfterTimeoutExplicitySet;
private long sendFailIfNoSpaceAfterTimeout = 0;
- private final List<SystemUsage> children = new CopyOnWriteArrayList<SystemUsage>();
+ private final List<SystemUsage> children = new CopyOnWriteArrayList<>();
public SystemUsage() {
this("default", null, null, null);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/ActiveMQMessageAuditTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/ActiveMQMessageAuditTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/ActiveMQMessageAuditTest.java
index 2bd8382..d63d3c4 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/ActiveMQMessageAuditTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/ActiveMQMessageAuditTest.java
@@ -70,7 +70,7 @@ public class ActiveMQMessageAuditTest extends TestCase {
ActiveMQMessageAudit audit = new ActiveMQMessageAudit();
IdGenerator idGen = new IdGenerator();
// add to a list
- List<String> list = new ArrayList<String>();
+ List<String> list = new ArrayList<>();
for (int i = 0; i < count; i++) {
String id = idGen.generateId();
list.add(id);
@@ -86,7 +86,7 @@ public class ActiveMQMessageAuditTest extends TestCase {
int count = 10000;
ActiveMQMessageAudit audit = new ActiveMQMessageAudit();
// add to a list
- List<MessageReference> list = new ArrayList<MessageReference>();
+ List<MessageReference> list = new ArrayList<>();
for (int i = 0; i < count; i++) {
ProducerId pid = new ProducerId();
pid.setConnectionId("test");
@@ -111,7 +111,7 @@ public class ActiveMQMessageAuditTest extends TestCase {
ActiveMQMessageAudit audit = new ActiveMQMessageAudit();
IdGenerator idGen = new IdGenerator();
// add to a list
- List<String> list = new ArrayList<String>();
+ List<String> list = new ArrayList<>();
for (int i = 0; i < count; i++) {
String id = idGen.generateId();
if (i == 0) {
@@ -136,7 +136,7 @@ public class ActiveMQMessageAuditTest extends TestCase {
LOG.debug("Length: " + bytes.length);
audit = recover(bytes);
- List<MessageReference> list = new ArrayList<MessageReference>();
+ List<MessageReference> list = new ArrayList<>();
for (int j = 0; j < 1000; j++) {
ProducerId pid = new ProducerId();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/CombinationTestSupport.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/CombinationTestSupport.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/CombinationTestSupport.java
index 2b1b3bb..d7caafa 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/CombinationTestSupport.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/CombinationTestSupport.java
@@ -67,7 +67,7 @@ public abstract class CombinationTestSupport extends AutoFailTestSupport {
private static final Logger LOG = LoggerFactory.getLogger(CombinationTestSupport.class);
- private final HashMap<String, ComboOption> comboOptions = new HashMap<String, ComboOption>();
+ private final HashMap<String, ComboOption> comboOptions = new HashMap<>();
private boolean combosEvaluated;
private Map<String, Object> options;
protected File basedir;
@@ -85,7 +85,7 @@ public abstract class CombinationTestSupport extends AutoFailTestSupport {
static class ComboOption {
final String attribute;
- final LinkedHashSet<Object> values = new LinkedHashSet<Object>();
+ final LinkedHashSet<Object> values = new LinkedHashSet<>();
public ComboOption(String attribute, Collection<Object> options) {
this.attribute = attribute;
@@ -206,8 +206,8 @@ public abstract class CombinationTestSupport extends AutoFailTestSupport {
}
try {
- ArrayList<HashMap<String, Object>> expandedOptions = new ArrayList<HashMap<String, Object>>();
- expandCombinations(new ArrayList<ComboOption>(comboOptions.values()), expandedOptions);
+ ArrayList<HashMap<String, Object>> expandedOptions = new ArrayList<>();
+ expandCombinations(new ArrayList<>(comboOptions.values()), expandedOptions);
if (expandedOptions.isEmpty()) {
combosEvaluated = true;
@@ -215,7 +215,7 @@ public abstract class CombinationTestSupport extends AutoFailTestSupport {
}
else {
- ArrayList<CombinationTestSupport> result = new ArrayList<CombinationTestSupport>();
+ ArrayList<CombinationTestSupport> result = new ArrayList<>();
// Run the test case for each possible combination
for (Iterator<HashMap<String, Object>> iter = expandedOptions.iterator(); iter.hasNext(); ) {
CombinationTestSupport combo = (CombinationTestSupport) TestSuite.createTest(getClass(), name);
@@ -240,14 +240,14 @@ public abstract class CombinationTestSupport extends AutoFailTestSupport {
if (!optionsLeft.isEmpty()) {
HashMap<String, Object> map;
if (comboOptions.size() == optionsLeft.size()) {
- map = new HashMap<String, Object>();
+ map = new HashMap<>();
expandedCombos.add(map);
}
else {
map = expandedCombos.get(expandedCombos.size() - 1);
}
- LinkedList<ComboOption> l = new LinkedList<ComboOption>(optionsLeft);
+ LinkedList<ComboOption> l = new LinkedList<>(optionsLeft);
ComboOption comboOption = l.removeLast();
int i = 0;
if (comboOption.values.isEmpty() && !l.isEmpty()) {
@@ -257,7 +257,7 @@ public abstract class CombinationTestSupport extends AutoFailTestSupport {
for (Iterator<Object> iter = comboOption.values.iterator(); iter.hasNext(); ) {
Object value = iter.next();
if (i != 0) {
- map = new HashMap<String, Object>(map);
+ map = new HashMap<>(map);
expandedCombos.add(map);
}
map.put(comboOption.attribute, value);
@@ -271,7 +271,7 @@ public abstract class CombinationTestSupport extends AutoFailTestSupport {
public static Test suite(Class<? extends CombinationTestSupport> clazz) {
TestSuite suite = new TestSuite();
- ArrayList<String> names = new ArrayList<String>();
+ ArrayList<String> names = new ArrayList<>();
Method[] methods = clazz.getMethods();
for (int i = 0; i < methods.length; i++) {
String name = methods[i].getName();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JMSMessageTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JMSMessageTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JMSMessageTest.java
index 61a5de5..e38f92f 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JMSMessageTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JMSMessageTest.java
@@ -271,7 +271,7 @@ public class JMSMessageTest extends JmsTestSupport {
private long expiration;
private int priority;
private String text;
- private final HashMap<String, Object> props = new HashMap<String, Object>();
+ private final HashMap<String, Object> props = new HashMap<>();
@Override
public String getJMSMessageID() throws JMSException {
@@ -438,7 +438,7 @@ public class JMSMessageTest extends JmsTestSupport {
@Override
public Enumeration<?> getPropertyNames() throws JMSException {
- return new Vector<String>(props.keySet()).elements();
+ return new Vector<>(props.keySet()).elements();
}
@Override
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsConnectionStartStopTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsConnectionStartStopTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsConnectionStartStopTest.java
index 0bf2799..e599071 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsConnectionStartStopTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsConnectionStartStopTest.java
@@ -115,7 +115,7 @@ public class JmsConnectionStartStopTest extends TestSupport {
public void testConcurrentSessionCreateWithStart() throws Exception {
ThreadPoolExecutor executor = new ThreadPoolExecutor(50, Integer.MAX_VALUE, 60L, TimeUnit.SECONDS, new SynchronousQueue<Runnable>());
- final Vector<Throwable> exceptions = new Vector<Throwable>();
+ final Vector<Throwable> exceptions = new Vector<>();
final Random rand = new Random();
Runnable createSessionTask = new Runnable() {
@Override
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsConsumerResetActiveListenerTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsConsumerResetActiveListenerTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsConsumerResetActiveListenerTest.java
index 1a80ac9..1361b79 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsConsumerResetActiveListenerTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsConsumerResetActiveListenerTest.java
@@ -65,7 +65,7 @@ public class JmsConsumerResetActiveListenerTest extends TestCase {
final CountDownLatch latch = new CountDownLatch(2);
final AtomicBoolean first = new AtomicBoolean(true);
- final Vector<Object> results = new Vector<Object>();
+ final Vector<Object> results = new Vector<>();
consumer.setMessageListener(new MessageListener() {
@Override
@@ -116,7 +116,7 @@ public class JmsConsumerResetActiveListenerTest extends TestCase {
final CountDownLatch latch = new CountDownLatch(2);
final AtomicBoolean first = new AtomicBoolean(true);
- final Vector<Object> results = new Vector<Object>();
+ final Vector<Object> results = new Vector<>();
consumer.setMessageListener(new MessageListener() {
@Override
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsMultipleBrokersTestSupport.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsMultipleBrokersTestSupport.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsMultipleBrokersTestSupport.java
index 7848d6c..a826b0a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsMultipleBrokersTestSupport.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsMultipleBrokersTestSupport.java
@@ -514,8 +514,8 @@ public class JmsMultipleBrokersTestSupport extends CombinationTestSupport {
@Override
protected void setUp() throws Exception {
super.setUp();
- brokers = new HashMap<String, BrokerItem>();
- destinations = new HashMap<String, Destination>();
+ brokers = new HashMap<>();
+ destinations = new HashMap<>();
}
@Override
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsMultipleClientsTestSupport.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsMultipleClientsTestSupport.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsMultipleClientsTestSupport.java
index 233e9e0..5ee575e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsMultipleClientsTestSupport.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsMultipleClientsTestSupport.java
@@ -63,7 +63,7 @@ public class JmsMultipleClientsTestSupport {
protected static final Logger LOG = LoggerFactory.getLogger(JmsMultipleClientsTestSupport.class);
- protected Map<MessageConsumer, MessageIdList> consumers = new HashMap<MessageConsumer, MessageIdList>(); // Map of consumer with messages
+ protected Map<MessageConsumer, MessageIdList> consumers = new HashMap<>(); // Map of consumer with messages
// received
protected int consumerCount = 1;
protected int producerCount = 1;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsQueueBrowserTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsQueueBrowserTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsQueueBrowserTest.java
index 059ec2c..b458223 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsQueueBrowserTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsQueueBrowserTest.java
@@ -363,7 +363,7 @@ public class JmsQueueBrowserTest extends JmsTestSupport {
@SuppressWarnings("unchecked")
Enumeration<Message> browserView = browser.getEnumeration();
- List<Message> messages = new ArrayList<Message>();
+ List<Message> messages = new ArrayList<>();
for (int i = 0; i < numMessages; i++) {
Message m1 = consumer.receive(5000);
assertNotNull("m1 is null for index: " + i, m1);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsQueueSendReceiveTwoConnectionsStartBeforeBrokerTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsQueueSendReceiveTwoConnectionsStartBeforeBrokerTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsQueueSendReceiveTwoConnectionsStartBeforeBrokerTest.java
index 412577e..b60c091 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsQueueSendReceiveTwoConnectionsStartBeforeBrokerTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsQueueSendReceiveTwoConnectionsStartBeforeBrokerTest.java
@@ -30,7 +30,7 @@ public class JmsQueueSendReceiveTwoConnectionsStartBeforeBrokerTest extends JmsQ
private static final Logger LOG = LoggerFactory.getLogger(JmsQueueSendReceiveTwoConnectionsStartBeforeBrokerTest.class);
- private Queue<Exception> errors = new ConcurrentLinkedQueue<Exception>();
+ private Queue<Exception> errors = new ConcurrentLinkedQueue<>();
private int delayBeforeStartingBroker = 1000;
private BrokerService broker;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsRollbackRedeliveryTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsRollbackRedeliveryTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsRollbackRedeliveryTest.java
index 3c50c62..5b99ad9 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsRollbackRedeliveryTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsRollbackRedeliveryTest.java
@@ -111,7 +111,7 @@ public class JmsRollbackRedeliveryTest {
// Consume messages and rollback transactions
{
AtomicInteger received = new AtomicInteger();
- Map<String, Boolean> rolledback = new ConcurrentHashMap<String, Boolean>();
+ Map<String, Boolean> rolledback = new ConcurrentHashMap<>();
while (received.get() < nbMessages) {
Session session = connection.createSession(true, Session.AUTO_ACKNOWLEDGE);
Destination destination = session.createQueue(destinationName);
@@ -148,7 +148,7 @@ public class JmsRollbackRedeliveryTest {
// Consume messages and rollback transactions
{
AtomicInteger received = new AtomicInteger();
- Map<String, Boolean> rolledback = new ConcurrentHashMap<String, Boolean>();
+ Map<String, Boolean> rolledback = new ConcurrentHashMap<>();
Session session = connection.createSession(true, Session.AUTO_ACKNOWLEDGE);
Destination destination = session.createQueue(destinationName);
MessageConsumer consumer = session.createConsumer(destination);
@@ -183,7 +183,7 @@ public class JmsRollbackRedeliveryTest {
// Consume messages and rollback transactions
{
AtomicInteger received = new AtomicInteger();
- Map<String, Boolean> rolledback = new ConcurrentHashMap<String, Boolean>();
+ Map<String, Boolean> rolledback = new ConcurrentHashMap<>();
Session session = connection.createSession(true, Session.AUTO_ACKNOWLEDGE);
Destination destination = session.createQueue(destinationName);
while (received.get() < nbMessages) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsSendReceiveWithMessageExpirationTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsSendReceiveWithMessageExpirationTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsSendReceiveWithMessageExpirationTest.java
index 19290c0..5932c06 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsSendReceiveWithMessageExpirationTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsSendReceiveWithMessageExpirationTest.java
@@ -145,7 +145,7 @@ public class JmsSendReceiveWithMessageExpirationTest extends TestSupport {
producerNormal.send(producerDestination, message);
}
- Vector<Message> messages = new Vector<Message>();
+ Vector<Message> messages = new Vector<>();
Message received;
while ((received = consumer.receive(1000)) != null) {
messages.add(received);
@@ -158,7 +158,7 @@ public class JmsSendReceiveWithMessageExpirationTest extends TestSupport {
assertEquals("got all (normal plus one with ttl) messages", messageCount + 1, messages.size());
- Vector<Message> dlqMessages = new Vector<Message>();
+ Vector<Message> dlqMessages = new Vector<>();
while ((received = dlqConsumer.receive(1000)) != null) {
dlqMessages.add(received);
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsTempDestinationTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsTempDestinationTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsTempDestinationTest.java
index c1d75a4..9d04bf1 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsTempDestinationTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsTempDestinationTest.java
@@ -178,7 +178,7 @@ public class JmsTempDestinationTest extends TestCase {
int count = 500;
int dataSize = 1024;
- ArrayList<BytesMessage> list = new ArrayList<BytesMessage>(count);
+ ArrayList<BytesMessage> list = new ArrayList<>(count);
Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
Queue queue = session.createTemporaryQueue();
MessageProducer producer = session.createProducer(queue);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsTopicRequestReplyTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsTopicRequestReplyTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsTopicRequestReplyTest.java
index ce73a83..ad94f09 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsTopicRequestReplyTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsTopicRequestReplyTest.java
@@ -48,7 +48,7 @@ public class JmsTopicRequestReplyTest extends TestSupport implements MessageList
private MessageProducer replyProducer;
private Session serverSession;
private Destination requestDestination;
- private List<JMSException> failures = new Vector<JMSException>();
+ private List<JMSException> failures = new Vector<>();
private boolean dynamicallyCreateProducer;
private String clientSideClientID;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/MessageEvictionTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/MessageEvictionTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/MessageEvictionTest.java
index 2a091b1..d95350e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/MessageEvictionTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/MessageEvictionTest.java
@@ -250,7 +250,7 @@ public class MessageEvictionTest {
// spooling to disk early so topic memory limit is not reached
brokerService.getSystemUsage().getMemoryUsage().setLimit(500 * 1024);
- final List<PolicyEntry> policyEntries = new ArrayList<PolicyEntry>();
+ final List<PolicyEntry> policyEntries = new ArrayList<>();
final PolicyEntry entry = new PolicyEntry();
entry.setTopic(">");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/MessageListenerRedeliveryTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/MessageListenerRedeliveryTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/MessageListenerRedeliveryTest.java
index f2db097..80744bd 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/MessageListenerRedeliveryTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/MessageListenerRedeliveryTest.java
@@ -263,7 +263,7 @@ public class MessageListenerRedeliveryTest extends TestCase {
final CountDownLatch gotMessage = new CountDownLatch(2);
final AtomicInteger count = new AtomicInteger(0);
final int maxDeliveries = getRedeliveryPolicy().getMaximumRedeliveries();
- final ArrayList<String> received = new ArrayList<String>();
+ final ArrayList<String> received = new ArrayList<>();
consumer.setMessageListener(new MessageListener() {
@Override
public void onMessage(Message message) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/SpringTestSupport.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/SpringTestSupport.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/SpringTestSupport.java
index f8cc498..3418bf9 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/SpringTestSupport.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/SpringTestSupport.java
@@ -57,7 +57,7 @@ public abstract class SpringTestSupport extends TestCase {
}
protected void assertSetEquals(String description, Object[] expected, Set<?> actual) {
- Set<Object> expectedSet = new HashSet<Object>();
+ Set<Object> expectedSet = new HashSet<>();
expectedSet.addAll(Arrays.asList(expected));
assertEquals(description, expectedSet, actual);
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/advisory/AdvisoryTempDestinationTests.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/advisory/AdvisoryTempDestinationTests.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/advisory/AdvisoryTempDestinationTests.java
index 65b5243..5889689 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/advisory/AdvisoryTempDestinationTests.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/advisory/AdvisoryTempDestinationTests.java
@@ -201,7 +201,7 @@ public class AdvisoryTempDestinationTests extends TestCase {
tempTopicEntry.setTempTopic(true);
PolicyMap pMap = new PolicyMap();
- final List<PolicyEntry> policyEntries = new ArrayList<PolicyEntry>();
+ final List<PolicyEntry> policyEntries = new ArrayList<>();
policyEntries.add(tempQueueEntry);
policyEntries.add(tempTopicEntry);
pMap.setPolicyEntries(policyEntries);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/advisory/ConsumerListenerTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/advisory/ConsumerListenerTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/advisory/ConsumerListenerTest.java
index 8a9871e..feb9bc8 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/advisory/ConsumerListenerTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/advisory/ConsumerListenerTest.java
@@ -44,7 +44,7 @@ public class ConsumerListenerTest extends EmbeddedBrokerTestSupport implements C
protected Session consumerSession2;
protected int consumerCounter;
protected ConsumerEventSource consumerEventSource;
- protected BlockingQueue<ConsumerEvent> eventQueue = new ArrayBlockingQueue<ConsumerEvent>(1000);
+ protected BlockingQueue<ConsumerEvent> eventQueue = new ArrayBlockingQueue<>(1000);
private Connection connection;
public void testConsumerEvents() throws Exception {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/advisory/DestinationListenerTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/advisory/DestinationListenerTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/advisory/DestinationListenerTest.java
index 0f0e118..1f00df7 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/advisory/DestinationListenerTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/advisory/DestinationListenerTest.java
@@ -45,7 +45,7 @@ public class DestinationListenerTest extends EmbeddedBrokerTestSupport implement
protected ActiveMQConnection connection;
protected ActiveMQQueue sampleQueue = new ActiveMQQueue("foo.bar");
protected ActiveMQTopic sampleTopic = new ActiveMQTopic("cheese");
- protected List<ActiveMQDestination> newDestinations = new ArrayList<ActiveMQDestination>();
+ protected List<ActiveMQDestination> newDestinations = new ArrayList<>();
public void testDestiationSourceHasInitialDestinations() throws Exception {
Thread.sleep(1000);
[15/32] activemq-artemis git commit: Remove redundant type arguments
Posted by cl...@apache.org.
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/advisory/ProducerListenerTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/advisory/ProducerListenerTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/advisory/ProducerListenerTest.java
index fa12fd5..3f443e6 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/advisory/ProducerListenerTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/advisory/ProducerListenerTest.java
@@ -42,7 +42,7 @@ public class ProducerListenerTest extends EmbeddedBrokerTestSupport implements P
protected Session consumerSession2;
protected int consumerCounter;
protected ProducerEventSource producerEventSource;
- protected BlockingQueue<ProducerEvent> eventQueue = new ArrayBlockingQueue<ProducerEvent>(1000);
+ protected BlockingQueue<ProducerEvent> eventQueue = new ArrayBlockingQueue<>(1000);
private Connection connection;
public void testProducerEvents() throws Exception {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/advisory/TempDestDeleteTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/advisory/TempDestDeleteTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/advisory/TempDestDeleteTest.java
index 4d84c02..958acd5 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/advisory/TempDestDeleteTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/advisory/TempDestDeleteTest.java
@@ -45,7 +45,7 @@ public class TempDestDeleteTest extends EmbeddedBrokerTestSupport implements Con
protected int consumerCounter;
protected ConsumerEventSource topicConsumerEventSource;
- protected BlockingQueue<ConsumerEvent> eventQueue = new ArrayBlockingQueue<ConsumerEvent>(1000);
+ protected BlockingQueue<ConsumerEvent> eventQueue = new ArrayBlockingQueue<>(1000);
private ConsumerEventSource queueConsumerEventSource;
private Connection connection;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/advisory/TempQueueMemoryTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/advisory/TempQueueMemoryTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/advisory/TempQueueMemoryTest.java
index ce9efc9..04be79a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/advisory/TempQueueMemoryTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/advisory/TempQueueMemoryTest.java
@@ -114,7 +114,7 @@ public class TempQueueMemoryTest extends EmbeddedBrokerTestSupport {
}
}
}
- Vector<Thread> threads = new Vector<Thread>(numProducers);
+ Vector<Thread> threads = new Vector<>(numProducers);
for (int i = 0; i < numProducers; i++) {
threads.add(new Producer(messagesToSend / numProducers));
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/blob/FTPTestSupport.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/blob/FTPTestSupport.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/blob/FTPTestSupport.java
index 467f0e0..0793b04 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/blob/FTPTestSupport.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/blob/FTPTestSupport.java
@@ -68,7 +68,7 @@ public abstract class FTPTestSupport extends EmbeddedBrokerTestSupport {
user.setHomeDirectory(ftpHomeDirFile.getParent());
// authorize user
- List<Authority> auths = new ArrayList<Authority>();
+ List<Authority> auths = new ArrayList<>();
Authority auth = new WritePermission();
auths.add(auth);
user.setAuthorities(auths);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/AMQ4351Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/AMQ4351Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/AMQ4351Test.java
index 1c6a6c1..1e2448a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/AMQ4351Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/AMQ4351Test.java
@@ -229,7 +229,7 @@ public class AMQ4351Test extends BrokerTestSupport {
listener2.start();
listener3.start();
- List<ConsumingClient> subscribers = new ArrayList<ConsumingClient>(subs);
+ List<ConsumingClient> subscribers = new ArrayList<>(subs);
for (int i = 4; i < subs; i++) {
ConsumingClient client = new ConsumingClient("subscriber-" + i, startedLatch, shutdownLatch);
subscribers.add(client);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/BrokerTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/BrokerTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/BrokerTest.java
index 8ec55b7..1e83319 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/BrokerTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/BrokerTest.java
@@ -137,7 +137,7 @@ public class BrokerTest extends BrokerTestSupport {
connection2.send(sessionInfo2);
connection2.request(consumerInfo2);
- List<Message> messages = new ArrayList<Message>();
+ List<Message> messages = new ArrayList<>();
for (int i = 0; i < 4; i++) {
Message m1 = receiveMessage(connection1);
@@ -197,7 +197,7 @@ public class BrokerTest extends BrokerTestSupport {
//one to ensure they arrive in the order we want
connection1.request(createMessage(producerInfo, destination, deliveryMode));
- List<Message> messages = new ArrayList<Message>();
+ List<Message> messages = new ArrayList<>();
for (int i = 0; i < 4; i++) {
Message m1 = receiveMessage(connection1);
@@ -249,7 +249,7 @@ public class BrokerTest extends BrokerTestSupport {
//one to ensure they arrive in the order we want
connection1.request(createMessage(producerInfo, destination, deliveryMode));
- List<Message> messages = new ArrayList<Message>();
+ List<Message> messages = new ArrayList<>();
for (int i = 0; i < 4; i++) {
Message m1 = receiveMessage(connection1);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/BrokerTestSupport.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/BrokerTestSupport.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/BrokerTestSupport.java
index dd247d3..4ded65e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/BrokerTestSupport.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/BrokerTestSupport.java
@@ -250,7 +250,7 @@ public class BrokerTestSupport extends CombinationTestSupport {
consumerInfo.setBrowser(true);
connection.send(consumerInfo);
- ArrayList<Object> skipped = new ArrayList<Object>();
+ ArrayList<Object> skipped = new ArrayList<>();
// Now get the messages.
Object m = connection.getDispatchQueue().poll(maxWait, TimeUnit.MILLISECONDS);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/NioQueueSubscriptionTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/NioQueueSubscriptionTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/NioQueueSubscriptionTest.java
index 3126491..3d0f54a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/NioQueueSubscriptionTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/NioQueueSubscriptionTest.java
@@ -62,7 +62,7 @@ public class NioQueueSubscriptionTest extends QueueSubscriptionTest {
answer.getManagementContext().setCreateConnector(false);
answer.setUseJmx(false);
answer.setDeleteAllMessagesOnStartup(true);
- final List<PolicyEntry> policyEntries = new ArrayList<PolicyEntry>();
+ final List<PolicyEntry> policyEntries = new ArrayList<>();
final PolicyEntry entry = new PolicyEntry();
entry.setQueue(">");
entry.setOptimizedDispatch(true);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/QueueMbeanRestartTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/QueueMbeanRestartTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/QueueMbeanRestartTest.java
index 886e38c..5e2839c 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/QueueMbeanRestartTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/QueueMbeanRestartTest.java
@@ -49,7 +49,7 @@ public class QueueMbeanRestartTest extends TestSupport {
TestSupport.PersistenceAdapterChoice[] kahaDb = {TestSupport.PersistenceAdapterChoice.KahaDB};
TestSupport.PersistenceAdapterChoice[] levelDb = {TestSupport.PersistenceAdapterChoice.LevelDB};
TestSupport.PersistenceAdapterChoice[] jdbc = {TestSupport.PersistenceAdapterChoice.JDBC};
- List<TestSupport.PersistenceAdapterChoice[]> choices = new ArrayList<TestSupport.PersistenceAdapterChoice[]>();
+ List<TestSupport.PersistenceAdapterChoice[]> choices = new ArrayList<>();
choices.add(kahaDb);
choices.add(levelDb);
choices.add(jdbc);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/RecoveryBrokerTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/RecoveryBrokerTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/RecoveryBrokerTest.java
index 65612fe..da79961 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/RecoveryBrokerTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/RecoveryBrokerTest.java
@@ -53,9 +53,9 @@ public class RecoveryBrokerTest extends BrokerRestartTestSupport {
ActiveMQDestination dest3 = new ActiveMQTopic("TEST.C");
ActiveMQDestination wildDest = new ActiveMQTopic("TEST.>");
- ArrayList<MessageId> sentBeforeRestart = new ArrayList<MessageId>();
- ArrayList<MessageId> sentBeforeCreateConsumer = new ArrayList<MessageId>();
- ArrayList<MessageId> sentAfterCreateConsumer = new ArrayList<MessageId>();
+ ArrayList<MessageId> sentBeforeRestart = new ArrayList<>();
+ ArrayList<MessageId> sentBeforeCreateConsumer = new ArrayList<>();
+ ArrayList<MessageId> sentAfterCreateConsumer = new ArrayList<>();
// Setup a first connection
{
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/StubBroker.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/StubBroker.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/StubBroker.java
index fd84bee..cc9627a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/StubBroker.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/StubBroker.java
@@ -23,8 +23,8 @@ import org.apache.activemq.command.ConnectionInfo;
public class StubBroker extends EmptyBroker {
- public LinkedList<AddConnectionData> addConnectionData = new LinkedList<AddConnectionData>();
- public LinkedList<RemoveConnectionData> removeConnectionData = new LinkedList<RemoveConnectionData>();
+ public LinkedList<AddConnectionData> addConnectionData = new LinkedList<>();
+ public LinkedList<RemoveConnectionData> removeConnectionData = new LinkedList<>();
public class AddConnectionData {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/StubConnection.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/StubConnection.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/StubConnection.java
index 531cc4c..4d6e59a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/StubConnection.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/StubConnection.java
@@ -36,12 +36,12 @@ import org.apache.activemq.util.ServiceSupport;
public class StubConnection implements Service {
- private final BlockingQueue<Object> dispatchQueue = new LinkedBlockingQueue<Object>();
+ private final BlockingQueue<Object> dispatchQueue = new LinkedBlockingQueue<>();
private Connection connection;
private Transport transport;
private boolean shuttingDown;
private TransportListener listener;
- public AtomicReference<Throwable> error = new AtomicReference<Throwable>();
+ public AtomicReference<Throwable> error = new AtomicReference<>();
public StubConnection(BrokerService broker) throws Exception {
this(TransportFactory.connect(broker.getVmConnectorURI()));
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/XARecoveryBrokerTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/XARecoveryBrokerTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/XARecoveryBrokerTest.java
index 9032f37..3a008dc 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/XARecoveryBrokerTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/XARecoveryBrokerTest.java
@@ -902,7 +902,7 @@ public class XARecoveryBrokerTest extends BrokerRestartTestSupport {
// consumer (PrefetchSubscription) cannot handle in a tx
// atm. The matching is based on messageId rather than messageId
// and destination
- Set<ConsumerInfo> consumerInfos = new HashSet<ConsumerInfo>();
+ Set<ConsumerInfo> consumerInfos = new HashSet<>();
for (ActiveMQDestination dest : destinationList(destination)) {
ConsumerInfo consumerInfo = createConsumerInfo(sessionInfo, dest);
consumerInfo.setPrefetchSize(numMessages);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/ft/QueueMasterSlaveTestSupport.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/ft/QueueMasterSlaveTestSupport.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/ft/QueueMasterSlaveTestSupport.java
index d3e1a71..c7d571a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/ft/QueueMasterSlaveTestSupport.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/ft/QueueMasterSlaveTestSupport.java
@@ -44,7 +44,7 @@ abstract public class QueueMasterSlaveTestSupport extends JmsTopicSendReceiveWit
private static final transient Logger LOG = LoggerFactory.getLogger(QueueMasterSlaveTestSupport.class);
protected BrokerService master;
- protected AtomicReference<BrokerService> slave = new AtomicReference<BrokerService>();
+ protected AtomicReference<BrokerService> slave = new AtomicReference<>();
protected CountDownLatch slaveStarted = new CountDownLatch(1);
protected int inflightMessageCount;
protected int failureCount = 50;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/jmx/MBeanTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/jmx/MBeanTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/jmx/MBeanTest.java
index a156393..be9e222 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/jmx/MBeanTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/jmx/MBeanTest.java
@@ -419,7 +419,7 @@ public class MBeanTest extends EmbeddedBrokerTestSupport {
for (int i = 0; i < count; i++) {
String body = "message:" + i;
- Map<String, Object> headers = new HashMap<String, Object>();
+ Map<String, Object> headers = new HashMap<>();
headers.put("JMSCorrelationID", "MyCorrId");
headers.put("JMSDeliveryMode", Boolean.FALSE);
headers.put("JMSXGroupID", "MyGroupID");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/AbortSlowConsumerBase.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/AbortSlowConsumerBase.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/AbortSlowConsumerBase.java
index 28cb1ee..b6944c2 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/AbortSlowConsumerBase.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/AbortSlowConsumerBase.java
@@ -54,7 +54,7 @@ public class AbortSlowConsumerBase extends JmsMultipleClientsTestSupport impleme
protected boolean abortConnection = false;
protected long checkPeriod = 2 * 1000;
protected long maxSlowDuration = 5 * 1000;
- protected final List<Throwable> exceptions = new ArrayList<Throwable>();
+ protected final List<Throwable> exceptions = new ArrayList<>();
@Override
@Before
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/PriorityNetworkDispatchPolicyTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/PriorityNetworkDispatchPolicyTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/PriorityNetworkDispatchPolicyTest.java
index 9367184..0d318cb 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/PriorityNetworkDispatchPolicyTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/PriorityNetworkDispatchPolicyTest.java
@@ -63,7 +63,7 @@ public class PriorityNetworkDispatchPolicyTest {
@Test
public void testRemoveLowerPriorityDup() throws Exception {
- List<Subscription> consumers = new ArrayList<Subscription>();
+ List<Subscription> consumers = new ArrayList<>();
for (int i = 0; i < 3; i++) {
ConsumerInfo instance = info.copy();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/QueueDuplicatesFromStoreTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/QueueDuplicatesFromStoreTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/QueueDuplicatesFromStoreTest.java
index 252b703..c85a678 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/QueueDuplicatesFromStoreTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/QueueDuplicatesFromStoreTest.java
@@ -122,7 +122,7 @@ public class QueueDuplicatesFromStoreTest extends TestCase {
final CountDownLatch receivedLatch = new CountDownLatch(count);
final AtomicLong ackedCount = new AtomicLong(0);
final AtomicLong enqueueCounter = new AtomicLong(0);
- final Vector<String> errors = new Vector<String>();
+ final Vector<String> errors = new Vector<>();
// populate the queue store, exceed memory limit so that cache is disabled
for (int i = 0; i < count; i++) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/SubscriptionAddRemoveQueueTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/SubscriptionAddRemoveQueueTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/SubscriptionAddRemoveQueueTest.java
index a2ec1f7..b38a965 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/SubscriptionAddRemoveQueueTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/SubscriptionAddRemoveQueueTest.java
@@ -69,7 +69,7 @@ public class SubscriptionAddRemoveQueueTest extends TestCase {
Queue queue;
ConsumerInfo info = new ConsumerInfo();
- List<SimpleImmediateDispatchSubscription> subs = new ArrayList<SimpleImmediateDispatchSubscription>();
+ List<SimpleImmediateDispatchSubscription> subs = new ArrayList<>();
ConnectionContext context = new ConnectionContext();
ProducerBrokerExchange producerBrokerExchange = new ProducerBrokerExchange();
ProducerInfo producerInfo = new ProducerInfo();
@@ -354,7 +354,7 @@ public class SubscriptionAddRemoveQueueTest extends TestCase {
@Override
public List<MessageReference> remove(ConnectionContext context, Destination destination) throws Exception {
- return new ArrayList<MessageReference>(dispatched);
+ return new ArrayList<>(dispatched);
}
@Override
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/UniquePropertyMessageEvictionStrategyTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/UniquePropertyMessageEvictionStrategyTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/UniquePropertyMessageEvictionStrategyTest.java
index 4779e91..9c13f83 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/UniquePropertyMessageEvictionStrategyTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/UniquePropertyMessageEvictionStrategyTest.java
@@ -33,7 +33,7 @@ public class UniquePropertyMessageEvictionStrategyTest extends EmbeddedBrokerTes
@Override
protected BrokerService createBroker() throws Exception {
BrokerService broker = super.createBroker();
- final List<PolicyEntry> policyEntries = new ArrayList<PolicyEntry>();
+ final List<PolicyEntry> policyEntries = new ArrayList<>();
final PolicyEntry entry = new PolicyEntry();
entry.setTopic(">");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/cursors/CursorSupport.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/cursors/CursorSupport.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/cursors/CursorSupport.java
index 4ffb73d..59dadca 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/cursors/CursorSupport.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/cursors/CursorSupport.java
@@ -65,7 +65,7 @@ public abstract class CursorSupport extends CombinationTestSupport {
producerConnection.start();
Session session = producerConnection.createSession(false, Session.AUTO_ACKNOWLEDGE);
MessageProducer producer = session.createProducer(getDestination(session));
- List<Message> senderList = new ArrayList<Message>();
+ List<Message> senderList = new ArrayList<>();
for (int i = 0; i < MESSAGE_COUNT; i++) {
Message msg = session.createTextMessage("test" + i);
senderList.add(msg);
@@ -76,7 +76,7 @@ public abstract class CursorSupport extends CombinationTestSupport {
consumerConnection = getConsumerConnection(factory);
// create durable subs
consumer = getConsumer(consumerConnection);
- List<Message> consumerList = new ArrayList<Message>();
+ List<Message> consumerList = new ArrayList<>();
for (int i = 0; i < MESSAGE_COUNT; i++) {
Message msg = consumer.receive(1000 * 5);
assertNotNull("Message " + i + " was missing.", msg);
@@ -101,7 +101,7 @@ public abstract class CursorSupport extends CombinationTestSupport {
producerConnection.start();
Session session = producerConnection.createSession(false, Session.AUTO_ACKNOWLEDGE);
MessageProducer producer = session.createProducer(getDestination(session));
- List<TextMessage> senderList = new ArrayList<TextMessage>();
+ List<TextMessage> senderList = new ArrayList<>();
for (int i = 0; i < MESSAGE_COUNT / 10; i++) {
TextMessage msg = session.createTextMessage("test" + i);
senderList.add(msg);
@@ -111,7 +111,7 @@ public abstract class CursorSupport extends CombinationTestSupport {
consumerConnection = getConsumerConnection(factory);
// create durable subs
consumer = getConsumer(consumerConnection);
- final List<Message> consumerList = new ArrayList<Message>();
+ final List<Message> consumerList = new ArrayList<>();
final CountDownLatch latch = new CountDownLatch(1);
consumer.setMessageListener(new MessageListener() {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/cursors/NegativeQueueTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/cursors/NegativeQueueTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/cursors/NegativeQueueTest.java
index a0b67ac..ab388f0 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/cursors/NegativeQueueTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/cursors/NegativeQueueTest.java
@@ -158,7 +158,7 @@ public class NegativeQueueTest extends AutoFailTestSupport {
Session session = producerConnection.createSession(TRANSACTED, Session.AUTO_ACKNOWLEDGE);
Destination queue = session.createQueue(QUEUE_1_NAME);
MessageProducer producer = session.createProducer(queue);
- List<TextMessage> senderList = new ArrayList<TextMessage>();
+ List<TextMessage> senderList = new ArrayList<>();
for (int i = 0; i < MESSAGE_COUNT; i++) {
TextMessage msg = session.createTextMessage(i + " " + formatter.format(new Date()));
senderList.add(msg);
@@ -183,10 +183,10 @@ public class NegativeQueueTest extends AutoFailTestSupport {
final CountDownLatch latch1 = new CountDownLatch(1);
final CountDownLatch latch2 = new CountDownLatch(1);
Connection[] consumerConnections1 = new Connection[NUM_CONSUMERS];
- List<Message> consumerList1 = new ArrayList<Message>();
+ List<Message> consumerList1 = new ArrayList<>();
Connection[] consumerConnections2 = new Connection[NUM_CONSUMERS];
Connection[] producerConnections2 = new Connection[NUM_CONSUMERS];
- List<Message> consumerList2 = new ArrayList<Message>();
+ List<Message> consumerList2 = new ArrayList<>();
for (int ix = 0; ix < NUM_CONSUMERS; ix++) {
producerConnections2[ix] = factory.createConnection();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/cursors/OrderPendingListTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/cursors/OrderPendingListTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/cursors/OrderPendingListTest.java
index 634f382..0dafbf6 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/cursors/OrderPendingListTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/cursors/OrderPendingListTest.java
@@ -270,7 +270,7 @@ public class OrderPendingListTest {
static class TestPendingList implements PendingList {
- private final LinkedList<MessageReference> theList = new LinkedList<MessageReference>();
+ private final LinkedList<MessageReference> theList = new LinkedList<>();
@Override
public boolean isEmpty() {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/scheduler/JobSchedulerStoreTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/scheduler/JobSchedulerStoreTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/scheduler/JobSchedulerStoreTest.java
index c816d45..2afa60e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/scheduler/JobSchedulerStoreTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/scheduler/JobSchedulerStoreTest.java
@@ -42,7 +42,7 @@ public class JobSchedulerStoreTest {
store.setDirectory(directory);
final int NUMBER = 1000;
store.start();
- List<ByteSequence> list = new ArrayList<ByteSequence>();
+ List<ByteSequence> list = new ArrayList<>();
for (int i = 0; i < NUMBER; i++) {
ByteSequence buff = new ByteSequence(new String("testjob" + i).getBytes());
list.add(buff);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/scheduler/KahaDBSchedulerMissingJournalLogsTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/scheduler/KahaDBSchedulerMissingJournalLogsTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/scheduler/KahaDBSchedulerMissingJournalLogsTest.java
index 852d4c6..338e471 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/scheduler/KahaDBSchedulerMissingJournalLogsTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/scheduler/KahaDBSchedulerMissingJournalLogsTest.java
@@ -105,7 +105,7 @@ public class KahaDBSchedulerMissingJournalLogsTest {
int jobCount = schedulerStore.getJobScheduler("JMS").getAllJobs().size();
LOG.info("There are {} jobs in the store.", jobCount);
- List<File> toDelete = new ArrayList<File>();
+ List<File> toDelete = new ArrayList<>();
Map<Integer, DataFile> files = schedulerStore.getJournal().getFileMap();
for (int i = files.size(); i > files.size() / 2; i--) {
toDelete.add(files.get(i).getFile());
@@ -134,7 +134,7 @@ public class KahaDBSchedulerMissingJournalLogsTest {
int jobCount = schedulerStore.getJobScheduler("JMS").getAllJobs().size();
LOG.info("There are {} jobs in the store.", jobCount);
- List<File> toDelete = new ArrayList<File>();
+ List<File> toDelete = new ArrayList<>();
Map<Integer, DataFile> files = schedulerStore.getJournal().getFileMap();
for (int i = files.size() - 1; i > files.size() / 2; i--) {
toDelete.add(files.get(i).getFile());
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/scheduler/memory/InMemoryJobSchedulerStoreTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/scheduler/memory/InMemoryJobSchedulerStoreTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/scheduler/memory/InMemoryJobSchedulerStoreTest.java
index 06146a6..6bf8b0f 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/scheduler/memory/InMemoryJobSchedulerStoreTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/scheduler/memory/InMemoryJobSchedulerStoreTest.java
@@ -46,7 +46,7 @@ public class InMemoryJobSchedulerStoreTest {
store.setDirectory(directory);
final int NUMBER = 1000;
store.start();
- List<ByteSequence> list = new ArrayList<ByteSequence>();
+ List<ByteSequence> list = new ArrayList<>();
for (int i = 0; i < NUMBER; i++) {
ByteSequence buff = new ByteSequence(new String("testjob" + i).getBytes());
list.add(buff);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/store/RecoverExpiredMessagesTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/store/RecoverExpiredMessagesTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/store/RecoverExpiredMessagesTest.java
index 0ec435a..77c06f6 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/store/RecoverExpiredMessagesTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/store/RecoverExpiredMessagesTest.java
@@ -45,7 +45,7 @@ import org.apache.activemq.util.IOHelper;
public class RecoverExpiredMessagesTest extends BrokerRestartTestSupport {
- final ArrayList<String> expected = new ArrayList<String>();
+ final ArrayList<String> expected = new ArrayList<>();
final ActiveMQDestination destination = new ActiveMQQueue("TEST");
public PendingQueueMessageStoragePolicy queuePendingPolicy;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/virtual/MirroredQueueCorrectMemoryUsageTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/virtual/MirroredQueueCorrectMemoryUsageTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/virtual/MirroredQueueCorrectMemoryUsageTest.java
index 47fa95f..5ca00b7 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/virtual/MirroredQueueCorrectMemoryUsageTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/virtual/MirroredQueueCorrectMemoryUsageTest.java
@@ -88,7 +88,7 @@ public class MirroredQueueCorrectMemoryUsageTest extends EmbeddedBrokerTestSuppo
broker.setDestinationInterceptors(destinationInterceptors);
// Create the destination policy for the topics and queues
PolicyMap policyMap = new PolicyMap();
- List<PolicyEntry> entries = new LinkedList<PolicyEntry>();
+ List<PolicyEntry> entries = new LinkedList<>();
// Create Topic policy entry
PolicyEntry policyEntry = new PolicyEntry();
super.useTopic = true;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualDestPerfTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualDestPerfTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualDestPerfTest.java
index bcbf28b..6cca500 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualDestPerfTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualDestPerfTest.java
@@ -71,7 +71,7 @@ public class VirtualDestPerfTest {
messageCount = 22000;
messageSize = 10 * 1024;
- LinkedHashMap<Integer, Long> results = new LinkedHashMap<Integer, Long>();
+ LinkedHashMap<Integer, Long> results = new LinkedHashMap<>();
final ActiveMQQueue queue = new ActiveMQQueue("targetQ");
for (Integer numThreads : new Integer[]{1, 2}) {
@@ -117,8 +117,8 @@ public class VirtualDestPerfTest {
@Test
@Ignore("comparison test - takes too long and really needs a peek at the graph")
public void testPerf() throws Exception {
- LinkedHashMap<Integer, Long> resultsT = new LinkedHashMap<Integer, Long>();
- LinkedHashMap<Integer, Long> resultsF = new LinkedHashMap<Integer, Long>();
+ LinkedHashMap<Integer, Long> resultsT = new LinkedHashMap<>();
+ LinkedHashMap<Integer, Long> resultsF = new LinkedHashMap<>();
for (int i = 2; i < 11; i++) {
for (Boolean concurrent : new Boolean[]{true, false}) {
@@ -180,7 +180,7 @@ public class VirtualDestPerfTest {
route.setName("target");
route.setForwardOnly(true);
route.setConcurrentSend(concurrentSend);
- Collection<ActiveMQQueue> routes = new ArrayList<ActiveMQQueue>();
+ Collection<ActiveMQQueue> routes = new ArrayList<>();
for (int i = 0; i < fanoutCount; i++) {
routes.add(new ActiveMQQueue("route." + i));
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicPubSubTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicPubSubTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicPubSubTest.java
index e203fb9..0f2af0a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicPubSubTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicPubSubTest.java
@@ -38,7 +38,7 @@ import org.apache.activemq.spring.ConsumerBean;
*/
public class VirtualTopicPubSubTest extends EmbeddedBrokerTestSupport {
- private Vector<Connection> connections = new Vector<Connection>();
+ private Vector<Connection> connections = new Vector<>();
public int ackMode = Session.AUTO_ACKNOWLEDGE;
public static Test suite() {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1853Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1853Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1853Test.java
index 86326de..2f7b8fe 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1853Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1853Test.java
@@ -96,7 +96,7 @@ public class AMQ1853Test {
public void testConsumerMessagesAreNotOrdered() throws Exception {
TestConsumer consumerAllFail = null;
- messageList = new Hashtable<String, AtomicInteger>();
+ messageList = new Hashtable<>();
try {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1866.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1866.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1866.java
index 4b960c4..ad12f71 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1866.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1866.java
@@ -49,7 +49,7 @@ public class AMQ1866 extends TestCase {
private static final Logger log = LoggerFactory.getLogger(ConsumerThread.class);
private BrokerService brokerService;
- private ArrayList<Thread> threads = new ArrayList<Thread>();
+ private ArrayList<Thread> threads = new ArrayList<>();
private final String ACTIVEMQ_BROKER_BIND = "tcp://localhost:0";
private String ACTIVEMQ_BROKER_URI;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1917Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1917Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1917Test.java
index 3ae47ad..a7eb699 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1917Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1917Test.java
@@ -70,7 +70,7 @@ public class AMQ1917Test extends TestCase {
connectionUri = broker.getTransportConnectors().get(0).getPublishableConnectString();
- BlockingQueue<Runnable> queue = new ArrayBlockingQueue<Runnable>(10000);
+ BlockingQueue<Runnable> queue = new ArrayBlockingQueue<>(10000);
tpe = new ThreadPoolExecutor(NUM_THREADS, NUM_THREADS, 60000, TimeUnit.MILLISECONDS, queue);
ThreadFactory limitedthreadFactory = new LimitedThreadFactory(tpe.getThreadFactory());
tpe.setThreadFactory(limitedthreadFactory);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1936Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1936Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1936Test.java
index d96fbfc..345fb69 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1936Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1936Test.java
@@ -148,7 +148,7 @@ public class AMQ1936Test extends TestCase {
}
public void testForDuplicateMessages() throws Exception {
- final ConcurrentHashMap<String, String> messages = new ConcurrentHashMap<String, String>();
+ final ConcurrentHashMap<String, String> messages = new ConcurrentHashMap<>();
final Object lock = new Object();
final CountDownLatch duplicateSignal = new CountDownLatch(1);
final AtomicInteger messageCount = new AtomicInteger(0);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2021Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2021Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2021Test.java
index b2f9495..7236581 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2021Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2021Test.java
@@ -57,7 +57,7 @@ public class AMQ2021Test implements ExceptionListener, UncaughtExceptionHandler
private static final Logger log = LoggerFactory.getLogger(AMQ2021Test.class);
BrokerService brokerService;
- ArrayList<Thread> threads = new ArrayList<Thread>();
+ ArrayList<Thread> threads = new ArrayList<>();
Vector<Throwable> exceptions;
@Rule
@@ -88,7 +88,7 @@ public class AMQ2021Test implements ExceptionListener, UncaughtExceptionHandler
brokerService.addConnector(ACTIVEMQ_BROKER_BIND);
brokerService.start();
destination = new ActiveMQTopic(name.getMethodName());
- exceptions = new Vector<Throwable>();
+ exceptions = new Vector<>();
CONSUMER_BROKER_URL = brokerService.getTransportConnectors().get(0).getPublishableConnectString() + CONSUMER_BROKER_URL;
PRODUCER_BROKER_URL = brokerService.getTransportConnectors().get(0).getPublishableConnectString();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2149Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2149Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2149Test.java
index ae8ca8c..ce9bebe 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2149Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2149Test.java
@@ -85,7 +85,7 @@ public class AMQ2149Test {
int numBrokerRestarts = 0;
final static int MAX_BROKER_RESTARTS = 4;
BrokerService broker;
- Vector<Throwable> exceptions = new Vector<Throwable>();
+ Vector<Throwable> exceptions = new Vector<>();
protected File dataDirFile;
final LoggingBrokerPlugin[] plugins = new LoggingBrokerPlugin[]{new LoggingBrokerPlugin()};
@@ -145,7 +145,7 @@ public class AMQ2149Test {
return stringBuilder.toString();
}
- HashSet<Connection> connections = new HashSet<Connection>();
+ HashSet<Connection> connections = new HashSet<>();
private class Receiver implements MessageListener {
@@ -535,8 +535,8 @@ public class AMQ2149Test {
int concurrentPairs,
boolean transactional) throws Exception {
- Vector<Thread> threads = new Vector<Thread>();
- Vector<Receiver> receivers = new Vector<Receiver>();
+ Vector<Thread> threads = new Vector<>();
+ Vector<Receiver> receivers = new Vector<>();
for (int i = 0; i < concurrentPairs; ++i) {
final javax.jms.Destination destination = ActiveMQDestination.createDestination("test.dest." + i, destinationType);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2171Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2171Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2171Test.java
index 52ee09b..e6026fd 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2171Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2171Test.java
@@ -43,7 +43,7 @@ public class AMQ2171Test implements Thread.UncaughtExceptionHandler {
private String brokerUri;
private String brokerUriNoPrefetch;
- private Collection<Throwable> exceptions = new CopyOnWriteArrayList<Throwable>();
+ private Collection<Throwable> exceptions = new CopyOnWriteArrayList<>();
@Before
public void setUp() throws Exception {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2401Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2401Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2401Test.java
index c0979aa..9fdc2e0 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2401Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2401Test.java
@@ -56,7 +56,7 @@ public class AMQ2401Test extends TestCase implements MessageListener {
private static final Logger LOG = LoggerFactory.getLogger(AMQ2401Test.class);
- private final ArrayList<Service> services = new ArrayList<Service>(CONSUMER_COUNT + PRODUCER_COUNT);
+ private final ArrayList<Service> services = new ArrayList<>(CONSUMER_COUNT + PRODUCER_COUNT);
private int count = 0;
private CountDownLatch latch;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2413Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2413Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2413Test.java
index ac5ecdb..3216215 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2413Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2413Test.java
@@ -69,7 +69,7 @@ public class AMQ2413Test extends CombinationTestSupport implements MessageListen
public boolean useVMCursor = false;
public boolean useOptimizeAcks = false;
- private final ArrayList<Service> services = new ArrayList<Service>(CONSUMER_COUNT + PRODUCER_COUNT);
+ private final ArrayList<Service> services = new ArrayList<>(CONSUMER_COUNT + PRODUCER_COUNT);
AtomicInteger count = new AtomicInteger(0);
Semaphore receivedMessages;
AtomicBoolean running = new AtomicBoolean(false);
@@ -180,7 +180,7 @@ public class AMQ2413Test extends CombinationTestSupport implements MessageListen
}
- HashMap<ProducerId, boolean[]> tracker = new HashMap<ProducerId, boolean[]>();
+ HashMap<ProducerId, boolean[]> tracker = new HashMap<>();
private synchronized void track(Message message) {
try {
@@ -224,7 +224,7 @@ public class AMQ2413Test extends CombinationTestSupport implements MessageListen
}
private void verifyTracking() {
- Vector<MessageId> missing = new Vector<MessageId>();
+ Vector<MessageId> missing = new Vector<>();
for (ProducerId pid : tracker.keySet()) {
boolean[] ids = tracker.get(pid);
for (int i = 1; i < TO_SEND + 1; i++) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2489Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2489Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2489Test.java
index cc9630f..bcd2db1 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2489Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2489Test.java
@@ -99,7 +99,7 @@ public class AMQ2489Test extends TestSupport {
final TestExceptionListener exceptionListener = new TestExceptionListener();
connection.setExceptionListener(exceptionListener);
try {
- consumers = new ArrayList<Consumer>();
+ consumers = new ArrayList<>();
// start customers
for (int i = 0; i < CONSUMERS_CNT; i++) {
consumers.add(new Consumer(acknowledgmentMode));
@@ -209,7 +209,7 @@ public class AMQ2489Test extends TestSupport {
public final class TestExceptionListener implements ExceptionListener {
- private final java.util.Queue<Exception> exceptions = new ConcurrentLinkedQueue<Exception>();
+ private final java.util.Queue<Exception> exceptions = new ConcurrentLinkedQueue<>();
@Override
public void onException(JMSException e) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2512Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2512Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2512Test.java
index d950459..b18a7b4 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2512Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2512Test.java
@@ -68,7 +68,7 @@ public class AMQ2512Test extends EmbeddedBrokerTestSupport {
final long startTime = System.nanoTime();
- final List<Consumer> consumers = new ArrayList<Consumer>();
+ final List<Consumer> consumers = new ArrayList<>();
for (int i = 0; i < 20; i++) {
consumers.add(new Consumer("worker-" + i));
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2584ConcurrentDlqTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2584ConcurrentDlqTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2584ConcurrentDlqTest.java
index 35ac1f8..3b7a11b 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2584ConcurrentDlqTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2584ConcurrentDlqTest.java
@@ -59,7 +59,7 @@ public class AMQ2584ConcurrentDlqTest extends org.apache.activemq.TestSupport {
Session consumerSession;
Session producerSession;
MessageProducer producer;
- Vector<TopicSubscriber> duralbeSubs = new Vector<TopicSubscriber>();
+ Vector<TopicSubscriber> duralbeSubs = new Vector<>();
final int numMessages = 1000;
final int numDurableSubs = 2;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2584Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2584Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2584Test.java
index e772fe8..14760d9 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2584Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2584Test.java
@@ -67,7 +67,7 @@ public class AMQ2584Test extends org.apache.activemq.TestSupport {
public static Collection<TestSupport.PersistenceAdapterChoice[]> getTestParameters() {
TestSupport.PersistenceAdapterChoice[] kahaDb = {TestSupport.PersistenceAdapterChoice.KahaDB};
TestSupport.PersistenceAdapterChoice[] levelDb = {TestSupport.PersistenceAdapterChoice.LevelDB};
- List<TestSupport.PersistenceAdapterChoice[]> choices = new ArrayList<TestSupport.PersistenceAdapterChoice[]>();
+ List<TestSupport.PersistenceAdapterChoice[]> choices = new ArrayList<>();
choices.add(kahaDb);
choices.add(levelDb);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2616Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2616Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2616Test.java
index 3181e4b..f22ff48 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2616Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2616Test.java
@@ -40,7 +40,7 @@ public class AMQ2616Test extends TestCase {
private static final int NUMBER = 2000;
private BrokerService brokerService;
- private final ArrayList<Thread> threads = new ArrayList<Thread>();
+ private final ArrayList<Thread> threads = new ArrayList<>();
private final String ACTIVEMQ_BROKER_BIND = "tcp://0.0.0.0:0";
private final AtomicBoolean shutdown = new AtomicBoolean();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2801Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2801Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2801Test.java
index 02b2811..43394dc 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2801Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2801Test.java
@@ -90,7 +90,7 @@ public class AMQ2801Test {
memoryManager.getTempUsage().setLimit(3221225472L);
broker.setSystemUsage(memoryManager);
- final List<PolicyEntry> policyEntries = new ArrayList<PolicyEntry>();
+ final List<PolicyEntry> policyEntries = new ArrayList<>();
final PolicyEntry entry = new PolicyEntry();
entry.setQueue(">");
entry.setProducerFlowControl(false);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2870Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2870Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2870Test.java
index fc3ae3b..b4f0a33 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2870Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2870Test.java
@@ -65,7 +65,7 @@ public class AMQ2870Test extends org.apache.activemq.TestSupport {
LOG.info("Running on [" + osName + "]");
PersistenceAdapterChoice[] kahaDb = {PersistenceAdapterChoice.KahaDB};
PersistenceAdapterChoice[] levelDb = {PersistenceAdapterChoice.LevelDB};
- List<PersistenceAdapterChoice[]> choices = new ArrayList<PersistenceAdapterChoice[]>();
+ List<PersistenceAdapterChoice[]> choices = new ArrayList<>();
choices.add(kahaDb);
if (!osName.equalsIgnoreCase("AIX") && !osName.equalsIgnoreCase("SunOS")) {
choices.add(levelDb);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2910Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2910Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2910Test.java
index 5205fbf..362fa5c 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2910Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2910Test.java
@@ -39,7 +39,7 @@ public class AMQ2910Test extends JmsMultipleClientsTestSupport {
final int maxConcurrency = 60;
final int msgCount = 200;
- final Vector<Throwable> exceptions = new Vector<Throwable>();
+ final Vector<Throwable> exceptions = new Vector<>();
@Override
protected BrokerService createBroker() throws Exception {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2983Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2983Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2983Test.java
index fe3a971..8714477 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2983Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2983Test.java
@@ -126,7 +126,7 @@ public class AMQ2983Test {
@Test
public void testNoStickyKahaDbLogFilesOnConcurrentTransactionalConsumer() throws Exception {
- List<Thread> consumerThreads = new ArrayList<Thread>();
+ List<Thread> consumerThreads = new ArrayList<>();
for (int i = 0; i < MAX_CONSUMER; i++) {
ConsumerThread thread = new ConsumerThread();
thread.start();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3140Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3140Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3140Test.java
index edc7bd8..621b421 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3140Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3140Test.java
@@ -122,7 +122,7 @@ public class AMQ3140Test {
}
});
- List<Sender> senderThreads = new ArrayList<Sender>();
+ List<Sender> senderThreads = new ArrayList<>();
for (int i = 0; i < THREAD_COUNT; i++) {
Sender sender = new Sender();
senderThreads.add(sender);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3167Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3167Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3167Test.java
index c0855ab..6fd81b2 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3167Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3167Test.java
@@ -133,7 +133,7 @@ public class AMQ3167Test {
PolicyEntry pol_ent;
ArrayList<PolicyEntry> ent_list;
- ent_list = new ArrayList<PolicyEntry>();
+ ent_list = new ArrayList<>();
//
// QUEUES
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3274Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3274Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3274Test.java
index 6c2405c..74c19b7 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3274Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3274Test.java
@@ -518,7 +518,7 @@ public class AMQ3274Test {
excl_dest = ActiveMQDestination.createDestination(">", ActiveMQDestination.TOPIC_TYPE);
}
- excludes = new ArrayList<ActiveMQDestination>();
+ excludes = new ArrayList<>();
excludes.add(excl_dest);
nw_conn.setExcludedDestinations(excludes);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3622Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3622Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3622Test.java
index 7abe33f..7556def 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3622Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3622Test.java
@@ -71,7 +71,7 @@ public class AMQ3622Test {
policy.setPendingSubscriberPolicy(new FilePendingSubscriberMessageStoragePolicy());
policy.setSubscriptionRecoveryPolicy(new LastImageSubscriptionRecoveryPolicy());
policy.setExpireMessagesPeriod(500);
- List<PolicyEntry> entries = new ArrayList<PolicyEntry>();
+ List<PolicyEntry> entries = new ArrayList<>();
entries.add(policy);
PolicyMap pMap = new PolicyMap();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3732Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3732Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3732Test.java
index e702804..d0f6692 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3732Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3732Test.java
@@ -86,7 +86,7 @@ public class AMQ3732Test {
Queue queue = session.createQueue("AMQ3732Test");
- final LinkedBlockingQueue<Message> workQueue = new LinkedBlockingQueue<Message>();
+ final LinkedBlockingQueue<Message> workQueue = new LinkedBlockingQueue<>();
final MessageConsumer consumer1 = session.createConsumer(queue);
final MessageConsumer consumer2 = session.createConsumer(queue);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3841Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3841Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3841Test.java
index ca19869..4824855 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3841Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3841Test.java
@@ -106,7 +106,7 @@ public class AMQ3841Test {
if (deleteAllMessages) {
multiKahaDBPersistenceAdapter.deleteAllMessages();
}
- ArrayList<FilteredKahaDBPersistenceAdapter> adapters = new ArrayList<FilteredKahaDBPersistenceAdapter>();
+ ArrayList<FilteredKahaDBPersistenceAdapter> adapters = new ArrayList<>();
FilteredKahaDBPersistenceAdapter template = new FilteredKahaDBPersistenceAdapter();
template.setPersistenceAdapter(createStore(deleteAllMessages));
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3961Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3961Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3961Test.java
index df7a942..c39cabf 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3961Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3961Test.java
@@ -111,8 +111,8 @@ public class AMQ3961Test {
}
public static final int MESSAGE_COUNT = 16;
- private final List<TestServerSession> processedSessions = new LinkedList<TestServerSession>();
- private final List<TestServerSession> committedSessions = new LinkedList<TestServerSession>();
+ private final List<TestServerSession> processedSessions = new LinkedList<>();
+ private final List<TestServerSession> committedSessions = new LinkedList<>();
@Test
public void testPrefetchInDurableSubscription() throws Exception {
@@ -162,7 +162,7 @@ public class AMQ3961Test {
final LinkedList<TestServerSession> collected;
synchronized (processedSessions) {
- collected = new LinkedList<TestServerSession>(processedSessions);
+ collected = new LinkedList<>(processedSessions);
processedSessions.clear();
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4083Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4083Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4083Test.java
index c655a22..1e4d062 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4083Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4083Test.java
@@ -484,7 +484,7 @@ public class AMQ4083Test {
producerNormal.send(queue, message);
}
- ArrayList<Message> messages = new ArrayList<Message>();
+ ArrayList<Message> messages = new ArrayList<>();
Message received;
while ((received = consumer.receive(1000)) != null) {
messages.add(received);
@@ -497,7 +497,7 @@ public class AMQ4083Test {
assertEquals("got messages", messageCount + 1, messages.size());
- ArrayList<Message> dlqMessages = new ArrayList<Message>();
+ ArrayList<Message> dlqMessages = new ArrayList<>();
while ((received = dlqConsumer.receive(1000)) != null) {
dlqMessages.add(received);
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4092Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4092Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4092Test.java
index 633d246..e894b70 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4092Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4092Test.java
@@ -61,7 +61,7 @@ public class AMQ4092Test extends TestCase {
private BrokerService brokerService;
private ActiveMQQueue destination;
- private HashMap<Thread, Throwable> exceptions = new HashMap<Thread, Throwable>();
+ private HashMap<Thread, Throwable> exceptions = new HashMap<>();
private ExceptionListener exceptionListener = new ExceptionListener() {
@Override
public void onException(JMSException exception) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4157Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4157Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4157Test.java
index d9caf7f..f932a49 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4157Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4157Test.java
@@ -55,7 +55,7 @@ public class AMQ4157Test {
private final int parallelProducer = 20;
private final int parallelConsumer = 100;
- private final Vector<Exception> exceptions = new Vector<Exception>();
+ private final Vector<Exception> exceptions = new Vector<>();
long toSend = 1000;
@Test
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4220Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4220Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4220Test.java
index 3e1e863..7433b18 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4220Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4220Test.java
@@ -106,7 +106,7 @@ public class AMQ4220Test {
if (deleteAllMessages) {
multiKahaDBPersistenceAdapter.deleteAllMessages();
}
- ArrayList<FilteredKahaDBPersistenceAdapter> adapters = new ArrayList<FilteredKahaDBPersistenceAdapter>();
+ ArrayList<FilteredKahaDBPersistenceAdapter> adapters = new ArrayList<>();
FilteredKahaDBPersistenceAdapter template = new FilteredKahaDBPersistenceAdapter();
template.setPersistenceAdapter(createStore(deleteAllMessages));
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4221Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4221Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4221Test.java
index 5a6c630..0e9c488 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4221Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4221Test.java
@@ -72,7 +72,7 @@ public class AMQ4221Test extends TestSupport {
final byte[] payload = new byte[PAYLOAD_SIZE_BYTES];
final AtomicInteger counter = new AtomicInteger(0);
- final HashSet<Throwable> exceptions = new HashSet<Throwable>();
+ final HashSet<Throwable> exceptions = new HashSet<>();
BrokerService brokerService;
private String brokerUrlString;
ExecutorService executorService = Executors.newCachedThreadPool();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4361Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4361Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4361Test.java
index 69c1e1d..27c4f64 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4361Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4361Test.java
@@ -95,8 +95,8 @@ public class AMQ4361Test {
producer.setTimeToLive(0);
producer.setDeliveryMode(DeliveryMode.NON_PERSISTENT);
- final AtomicReference<Exception> publishException = new AtomicReference<Exception>(null);
- final AtomicReference<Exception> closeException = new AtomicReference<Exception>(null);
+ final AtomicReference<Exception> publishException = new AtomicReference<>(null);
+ final AtomicReference<Exception> closeException = new AtomicReference<>(null);
final AtomicLong lastLoop = new AtomicLong(System.currentTimeMillis() + 100);
Thread pubThread = new Thread(new Runnable() {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4407Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4407Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4407Test.java
index c0cf07a..38a9398 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4407Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4407Test.java
@@ -123,7 +123,7 @@ public class AMQ4407Test {
if (deleteAllMessages) {
multiKahaDBPersistenceAdapter.deleteAllMessages();
}
- ArrayList<FilteredKahaDBPersistenceAdapter> adapters = new ArrayList<FilteredKahaDBPersistenceAdapter>();
+ ArrayList<FilteredKahaDBPersistenceAdapter> adapters = new ArrayList<>();
adapters.add(createFilteredKahaDBByDestinationPrefix(PREFIX_DESTINATION_NAME, deleteAllMessages));
adapters.add(createFilteredKahaDBByDestinationPrefix(PREFIX_DESTINATION_NAME + "2", deleteAllMessages));
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4413Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4413Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4413Test.java
index dab48cb..cd3ed95 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4413Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4413Test.java
@@ -235,7 +235,7 @@ public class AMQ4413Test {
}
};
- ArrayList<Future<Boolean>> results = new ArrayList<Future<Boolean>>();
+ ArrayList<Future<Boolean>> results = new ArrayList<>();
results.add(threadPool.submit(publisher));
results.add(threadPool.submit(durableSubscriber));
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4475Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4475Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4475Test.java
index 0e528bd..558bc08 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4475Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4475Test.java
@@ -112,7 +112,7 @@ public class AMQ4475Test {
long startTime = System.nanoTime();
// Produce to network
- List<Future<ProducerTask>> tasks = new ArrayList<Future<ProducerTask>>();
+ List<Future<ProducerTask>> tasks = new ArrayList<>();
for (int index = 0; index < 1; index++) {
ProducerTask p = new ProducerTask(connectionUri, original, NUM_MSGS);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4485LowLimitTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4485LowLimitTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4485LowLimitTest.java
index ba64b8b..a034b37 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4485LowLimitTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4485LowLimitTest.java
@@ -71,8 +71,8 @@ public class AMQ4485LowLimitTest extends JmsMultipleBrokersTestSupport {
final int numMessages = 1000;
final int consumerSleepTime = 40;
StringBuilder brokersUrl = new StringBuilder();
- HashMap<ActiveMQQueue, AtomicInteger> accumulators = new HashMap<ActiveMQQueue, AtomicInteger>();
- private ArrayList<Throwable> exceptions = new ArrayList<Throwable>();
+ HashMap<ActiveMQQueue, AtomicInteger> accumulators = new HashMap<>();
+ private ArrayList<Throwable> exceptions = new ArrayList<>();
protected void buildUrlList() throws Exception {
for (int i = 0; i < numBrokers; i++) {
@@ -330,7 +330,7 @@ public class AMQ4485LowLimitTest extends JmsMultipleBrokersTestSupport {
}
private List<ConsumerState> startAllGWConsumers(int nBrokers) throws Exception {
- List<ConsumerState> consumerStates = new LinkedList<ConsumerState>();
+ List<ConsumerState> consumerStates = new LinkedList<>();
for (int id = 0; id < nBrokers; id++) {
ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory("failover:(tcp://localhost:" + (portBase + id) + ")");
connectionFactory.setWatchTopicAdvisories(false);
@@ -437,7 +437,7 @@ public class AMQ4485LowLimitTest extends JmsMultipleBrokersTestSupport {
}
});
LOG.info("verify infos " + broker.getBrokerName() + ", len: " + regionBroker.getPeerBrokerInfos().length);
- List<String> missing = new ArrayList<String>();
+ List<String> missing = new ArrayList<>();
for (int i = 0; i < max; i++) {
missing.add("B" + i);
}
@@ -469,6 +469,6 @@ public class AMQ4485LowLimitTest extends JmsMultipleBrokersTestSupport {
String brokerName;
QueueReceiver receiver;
ActiveMQDestination destination;
- ConcurrentLinkedQueue<Integer> expected = new ConcurrentLinkedQueue<Integer>();
+ ConcurrentLinkedQueue<Integer> expected = new ConcurrentLinkedQueue<>();
}
}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4485NetworkOfXBrokersWithNDestsFanoutTransactionTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4485NetworkOfXBrokersWithNDestsFanoutTransactionTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4485NetworkOfXBrokersWithNDestsFanoutTransactionTest.java
index add1526..5ddb14f 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4485NetworkOfXBrokersWithNDestsFanoutTransactionTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4485NetworkOfXBrokersWithNDestsFanoutTransactionTest.java
@@ -67,8 +67,8 @@ public class AMQ4485NetworkOfXBrokersWithNDestsFanoutTransactionTest extends Jms
final int numMessages = 800;
final int consumerSleepTime = 20;
StringBuilder brokersUrl = new StringBuilder();
- HashMap<ActiveMQQueue, AtomicInteger> accumulators = new HashMap<ActiveMQQueue, AtomicInteger>();
- private ArrayList<Throwable> exceptions = new ArrayList<Throwable>();
+ HashMap<ActiveMQQueue, AtomicInteger> accumulators = new HashMap<>();
+ private ArrayList<Throwable> exceptions = new ArrayList<>();
protected void buildUrlList() throws Exception {
for (int i = 0; i < numBrokers; i++) {
@@ -216,7 +216,7 @@ public class AMQ4485NetworkOfXBrokersWithNDestsFanoutTransactionTest extends Jms
}
private List<ConsumerState> startAllGWConsumers(int nBrokers) throws Exception {
- List<ConsumerState> consumerStates = new LinkedList<ConsumerState>();
+ List<ConsumerState> consumerStates = new LinkedList<>();
for (int id = 0; id < nBrokers; id++) {
ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory("failover:(tcp://localhost:" + (portBase + id) + ")");
connectionFactory.setWatchTopicAdvisories(false);
@@ -321,7 +321,7 @@ public class AMQ4485NetworkOfXBrokersWithNDestsFanoutTransactionTest extends Jms
}
});
LOG.info("verify infos " + broker.getBrokerName() + ", len: " + regionBroker.getPeerBrokerInfos().length);
- List<String> missing = new ArrayList<String>();
+ List<String> missing = new ArrayList<>();
for (int i = 0; i < max; i++) {
missing.add("B" + i);
}
@@ -353,6 +353,6 @@ public class AMQ4485NetworkOfXBrokersWithNDestsFanoutTransactionTest extends Jms
String brokerName;
QueueReceiver receiver;
ActiveMQDestination destination;
- Vector<Integer> expected = new Vector<Integer>();
+ Vector<Integer> expected = new Vector<>();
}
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4485Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4485Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4485Test.java
index c9176da..777d582 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4485Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4485Test.java
@@ -57,7 +57,7 @@ public class AMQ4485Test extends TestCase {
final int messageCount = 20;
int memoryLimit = 40 * 1024;
final ActiveMQQueue destination = new ActiveMQQueue("QUEUE." + this.getClass().getName());
- final Vector<Throwable> exceptions = new Vector<Throwable>();
+ final Vector<Throwable> exceptions = new Vector<>();
final CountDownLatch slowSendResume = new CountDownLatch(1);
protected void configureBroker(long memoryLimit) throws Exception {
@@ -109,8 +109,8 @@ public class AMQ4485Test extends TestCase {
public void testOutOfOrderTransactionCompletionOnMemoryLimit() throws Exception {
- Set<Integer> expected = new HashSet<Integer>();
- final Vector<Session> sessionVector = new Vector<Session>();
+ Set<Integer> expected = new HashSet<>();
+ final Vector<Session> sessionVector = new Vector<>();
ExecutorService executorService = Executors.newCachedThreadPool();
for (int i = 1; i <= messageCount; i++) {
sessionVector.add(send(i, 1, true));
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4607Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4607Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4607Test.java
index 841f463..527309b 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4607Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4607Test.java
@@ -52,7 +52,7 @@ public class AMQ4607Test extends JmsMultipleBrokersTestSupport implements Uncaug
public boolean duplex = true;
protected Map<String, MessageConsumer> consumerMap;
- final Map<Thread, Throwable> unhandeledExceptions = new HashMap<Thread, Throwable>();
+ final Map<Thread, Throwable> unhandeledExceptions = new HashMap<>();
private void assertNoUnhandeledExceptions() {
for (Entry<Thread, Throwable> e : unhandeledExceptions.entrySet()) {
@@ -242,7 +242,7 @@ public class AMQ4607Test extends JmsMultipleBrokersTestSupport implements Uncaug
createBroker(new URI("broker:(tcp://localhost:6161" + i + ")/Broker" + i + "?persistent=false&useJmx=true"));
}
- consumerMap = new LinkedHashMap<String, MessageConsumer>();
+ consumerMap = new LinkedHashMap<>();
}
@Override
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4853Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4853Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4853Test.java
index c6b3227..ad04d96 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4853Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4853Test.java
@@ -89,7 +89,7 @@ public class AMQ4853Test {
public void test() throws Exception {
// Create a stable set of consumers to fill in the advisory broker's consumer list.
- ArrayList<Consumer> fixedConsumers = new ArrayList<Consumer>(100);
+ ArrayList<Consumer> fixedConsumers = new ArrayList<>(100);
for (int i = 0; i < 200; ++i) {
fixedConsumers.add(new Consumer());
}
[21/32] activemq-artemis git commit: Remove redundant type arguments
Posted by cl...@apache.org.
Remove redundant type arguments
Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/f8a1c5ba
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/f8a1c5ba
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/f8a1c5ba
Branch: refs/heads/master
Commit: f8a1c5ba8efb1dd85a70e263839f3ff7151a2168
Parents: 3b5ee6c
Author: Ville Skyttä <vi...@iki.fi>
Authored: Sun Dec 6 01:57:02 2015 +0200
Committer: Ville Skyttä <vi...@iki.fi>
Committed: Mon Dec 7 22:55:05 2015 +0200
----------------------------------------------------------------------
.../apache/activemq/artemis/boot/Artemis.java | 6 +-
.../activemq/artemis/cli/commands/Create.java | 4 +-
.../cli/commands/tools/DecodeJournal.java | 2 +-
.../artemis/cli/commands/tools/PrintData.java | 12 +-
.../artemis/integration/FileBroker.java | 2 +-
.../artemis/api/core/ActiveMQExceptionType.java | 2 +-
.../activemq/artemis/api/core/SimpleString.java | 2 +-
.../artemis/utils/ConcurrentHashSet.java | 2 +-
.../activemq/artemis/utils/FactoryFinder.java | 2 +-
.../apache/activemq/artemis/utils/FileUtil.java | 2 +-
.../artemis/utils/PasswordMaskingUtil.java | 2 +-
.../activemq/artemis/utils/TypedProperties.java | 8 +-
.../apache/activemq/artemis/utils/UTF8Util.java | 6 +-
.../activemq/artemis/utils/UUIDGenerator.java | 4 +-
.../activemq/artemis/utils/uri/URISchema.java | 2 +-
.../apache/activemq/artemis/utils/PairTest.java | 2 +-
.../api/core/JGroupsBroadcastEndpoint.java | 4 +-
.../api/core/TransportConfiguration.java | 2 +-
.../api/core/management/ManagementHelper.java | 4 +-
.../core/client/impl/AddressQueryImpl.java | 2 +-
.../core/client/impl/ClientConsumerImpl.java | 2 +-
.../impl/ClientProducerCreditManagerImpl.java | 4 +-
.../client/impl/ClientSessionFactoryImpl.java | 18 +--
.../core/client/impl/ClientSessionImpl.java | 12 +-
.../core/client/impl/DelegatingSession.java | 2 +-
.../core/client/impl/ServerLocatorImpl.java | 14 +-
.../artemis/core/client/impl/Topology.java | 2 +-
.../core/client/impl/TopologyMemberImpl.java | 2 +-
.../artemis/core/cluster/DiscoveryGroup.java | 8 +-
.../artemis/core/message/impl/MessageImpl.java | 2 +-
.../core/protocol/core/impl/ChannelImpl.java | 2 +-
.../core/impl/RemotingConnectionImpl.java | 4 +-
.../ClusterTopologyChangeMessage.java | 2 +-
.../ClusterTopologyChangeMessage_V2.java | 2 +-
.../SessionBindingQueryResponseMessage.java | 2 +-
.../SessionXAGetInDoubtXidsResponseMessage.java | 2 +-
.../impl/TransportConfigurationUtil.java | 2 +-
.../remoting/impl/netty/NettyConnection.java | 2 +-
.../remoting/impl/netty/NettyConnector.java | 4 +-
.../impl/netty/SharedNioEventLoopGroup.java | 2 +-
.../remoting/impl/netty/TransportConstants.java | 4 +-
.../activemq/artemis/reader/MessageUtil.java | 4 +-
.../protocol/AbstractRemotingConnection.java | 12 +-
.../artemis/utils/ConfigurationHelper.java | 4 +-
.../activemq/artemis/utils/LinkedListImpl.java | 6 +-
.../activemq/artemis/utils/MemorySize.java | 2 +-
.../artemis/utils/OrderedExecutorFactory.java | 2 +-
.../artemis/utils/PriorityLinkedListImpl.java | 2 +-
.../artemis/utils/SecurityFormatter.java | 6 +-
.../artemis/utils/SoftValueHashMap.java | 12 +-
.../activemq/artemis/utils/VersionLoader.java | 2 +-
.../apache/activemq/artemis/utils/XMLUtil.java | 2 +-
.../activemq/artemis/utils/json/JSONArray.java | 6 +-
.../artemis/util/CompressionUtilTest.java | 6 +-
.../artemis/util/ConcurrentHashSetTest.java | 2 +-
.../util/TimeAndCounterIDGeneratorTest.java | 2 +-
.../artemis/jms/client/ActiveMQConnection.java | 12 +-
.../jms/client/ActiveMQConnectionMetaData.java | 2 +-
.../artemis/jms/client/ActiveMQDestination.java | 2 +-
.../artemis/jms/client/ActiveMQJMSProducer.java | 2 +-
.../artemis/jms/client/ActiveMQMapMessage.java | 2 +-
.../artemis/jms/client/ActiveMQMessage.java | 4 +-
.../artemis/jms/client/ActiveMQSession.java | 4 +-
.../artemis/jms/client/SelectorTranslator.java | 2 +-
.../artemis/jms/client/ThreadAwareContext.java | 2 +-
.../activemq/artemis/jndi/ReadOnlyContext.java | 22 +--
.../artemis/uri/ConnectionFactoryURITest.java | 2 +-
.../artemis/jms/bridge/impl/JMSBridgeImpl.java | 4 +-
.../management/impl/JMSQueueControlImpl.java | 2 +-
.../management/impl/JMSServerControlImpl.java | 10 +-
.../management/impl/JMSTopicControlImpl.java | 4 +-
.../persistence/config/PersistedBindings.java | 4 +-
.../journal/JMSJournalStorageManagerImpl.java | 30 ++--
.../ConnectionFactoryConfigurationImpl.java | 2 +-
.../config/impl/JMSConfigurationImpl.java | 6 +-
.../TransportConfigurationEncodingSupport.java | 6 +-
.../jms/server/impl/JMSServerManagerImpl.java | 34 ++--
.../core/io/aio/AIOSequentialFileFactory.java | 2 +-
.../artemis/core/io/buffer/TimedBuffer.java | 4 +-
.../core/io/nio/NIOSequentialFileFactory.java | 2 +-
.../core/journal/PreparedTransactionInfo.java | 4 +-
.../journal/impl/AbstractJournalUpdateTask.java | 4 +-
.../core/journal/impl/FileWrapperJournal.java | 2 +-
.../core/journal/impl/JournalCompactor.java | 12 +-
.../core/journal/impl/JournalFileImpl.java | 2 +-
.../journal/impl/JournalFilesRepository.java | 6 +-
.../artemis/core/journal/impl/JournalImpl.java | 30 ++--
.../core/journal/impl/JournalRecord.java | 4 +-
.../core/journal/impl/JournalTransaction.java | 14 +-
.../artemis/maven/ArtemisAbstractPlugin.java | 2 +-
.../converter/jms/ServerJMSMapMessage.java | 2 +-
.../hornetq/util/HQPropertiesConverter.java | 2 +-
.../core/protocol/mqtt/MQTTConnection.java | 4 +-
.../protocol/mqtt/MQTTConnectionManager.java | 2 +-
.../core/protocol/mqtt/MQTTSessionState.java | 4 +-
.../protocol/openwire/OpenWireConnection.java | 22 +--
.../openwire/OpenWireProtocolManager.java | 14 +-
.../core/protocol/openwire/amq/AMQConsumer.java | 2 +-
.../protocol/openwire/amq/AMQServerSession.java | 6 +-
.../core/protocol/openwire/amq/AMQSession.java | 2 +-
.../context/AbstractProtonSessionContext.java | 4 +-
.../server/ProtonServerSessionContext.java | 2 +-
.../org/proton/plug/test/AbstractJMSTest.java | 2 +-
.../protocol/stomp/ActiveMQStompException.java | 2 +-
.../core/protocol/stomp/StompConnection.java | 14 +-
.../core/protocol/stomp/StompDecoder.java | 2 +-
.../artemis/core/protocol/stomp/StompFrame.java | 2 +-
.../protocol/stomp/StompProtocolManager.java | 6 +-
.../core/protocol/stomp/StompSession.java | 6 +-
.../artemis/core/protocol/stomp/StompUtils.java | 2 +-
.../core/protocol/stomp/v11/StompFrameV11.java | 2 +-
.../ra/ActiveMQRAConnectionMetaData.java | 2 +-
.../artemis/ra/ActiveMQRAManagedConnection.java | 2 +-
.../ra/ActiveMQRAManagedConnectionFactory.java | 2 +-
.../activemq/artemis/ra/ActiveMQRASession.java | 4 +-
.../ra/ActiveMQRASessionFactoryImpl.java | 6 +-
.../activemq/artemis/ra/ActiveMQRaUtils.java | 8 +-
.../artemis/ra/ActiveMQResourceAdapter.java | 12 +-
.../artemis/ra/inflow/ActiveMQActivation.java | 8 +-
.../ra/inflow/ActiveMQActivationSpec.java | 4 +-
.../ra/inflow/ActiveMQMessageHandler.java | 2 +-
.../artemis/ra/recovery/RecoveryManager.java | 2 +-
.../artemis/rest/MessageServiceManager.java | 2 +-
.../artemis/rest/queue/ConsumersResource.java | 2 +-
.../artemis/rest/queue/PostMessage.java | 2 +-
.../rest/queue/QueueDestinationsResource.java | 2 +-
.../artemis/rest/queue/QueueServiceManager.java | 2 +-
.../artemis/rest/queue/push/FilePushStore.java | 8 +-
.../artemis/rest/queue/push/PushConsumer.java | 4 +-
.../rest/queue/push/PushConsumerResource.java | 2 +-
.../rest/queue/push/xml/PushRegistration.java | 2 +-
.../artemis/rest/topic/FileTopicPushStore.java | 2 +-
.../rest/topic/PushSubscriptionsResource.java | 2 +-
.../rest/topic/SubscriptionsResource.java | 2 +-
.../rest/topic/TopicDestinationsResource.java | 2 +-
.../artemis/rest/topic/TopicServiceManager.java | 2 +-
.../activemq/artemis/rest/util/TimeoutTask.java | 10 +-
.../activemq/artemis/rest/test/RawAckTest.java | 2 +-
.../selector/filter/ComparisonExpression.java | 4 +-
.../selector/filter/UnaryExpression.java | 2 +-
.../activemq/artemis/selector/SelectorTest.java | 2 +-
.../activemq/artemis/osgi/OsgiBroker.java | 4 +-
.../activemq/artemis/osgi/ProtocolTracker.java | 4 +-
.../core/config/impl/ConfigurationImpl.java | 30 ++--
.../core/config/impl/SecurityConfiguration.java | 4 +-
.../deployers/impl/FileConfigurationParser.java | 36 ++---
.../impl/ActiveMQServerControlImpl.java | 12 +-
.../management/impl/AddressControlImpl.java | 4 +-
.../core/management/impl/MBeanInfoHelper.java | 2 +-
.../core/management/impl/QueueControlImpl.java | 6 +-
.../core/messagecounter/MessageCounter.java | 4 +-
.../impl/MessageCounterManagerImpl.java | 4 +-
.../core/paging/cursor/PagedReferenceImpl.java | 4 +-
.../paging/cursor/impl/LivePageCacheImpl.java | 2 +-
.../cursor/impl/PageCursorProviderImpl.java | 8 +-
.../impl/PageSubscriptionCounterImpl.java | 14 +-
.../cursor/impl/PageSubscriptionImpl.java | 18 +--
.../activemq/artemis/core/paging/impl/Page.java | 4 +-
.../artemis/core/paging/impl/PageSyncTimer.java | 2 +-
.../paging/impl/PageTransactionInfoImpl.java | 2 +-
.../core/paging/impl/PagingManagerImpl.java | 4 +-
.../core/paging/impl/PagingStoreFactoryNIO.java | 2 +-
.../core/paging/impl/PagingStoreImpl.java | 6 +-
.../impl/journal/DescribeJournal.java | 10 +-
.../impl/journal/JournalStorageManager.java | 50 +++---
.../impl/journal/OperationContextImpl.java | 4 +-
.../core/postoffice/impl/AddressImpl.java | 2 +-
.../core/postoffice/impl/BindingsImpl.java | 10 +-
.../postoffice/impl/DuplicateIDCacheImpl.java | 8 +-
.../core/postoffice/impl/PostOfficeImpl.java | 20 +--
.../postoffice/impl/SimpleAddressManager.java | 6 +-
.../postoffice/impl/WildcardAddressManager.java | 4 +-
.../protocol/core/impl/CoreProtocolManager.java | 8 +-
.../BackupReplicationStartFailedMessage.java | 2 +-
.../core/registry/MapBindingRegistry.java | 2 +-
.../core/remoting/impl/invm/InVMAcceptor.java | 2 +-
.../core/remoting/impl/invm/InVMConnection.java | 2 +-
.../core/remoting/impl/invm/InVMConnector.java | 4 +-
.../core/remoting/impl/invm/InVMRegistry.java | 2 +-
.../impl/netty/HttpAcceptorHandler.java | 4 +-
.../impl/netty/HttpKeepAliveRunnable.java | 2 +-
.../core/remoting/impl/netty/NettyAcceptor.java | 2 +-
.../server/impl/RemotingServiceImpl.java | 12 +-
.../core/replication/ReplicationEndpoint.java | 10 +-
.../core/replication/ReplicationManager.java | 6 +-
.../core/security/impl/SecurityStoreImpl.java | 4 +-
.../core/server/cluster/ClusterManager.java | 12 +-
.../core/server/cluster/impl/BridgeImpl.java | 6 +-
.../server/cluster/impl/BroadcastGroupImpl.java | 2 +-
.../cluster/impl/ClusterConnectionBridge.java | 6 +-
.../cluster/impl/ClusterConnectionImpl.java | 12 +-
.../cluster/impl/RemoteQueueBindingImpl.java | 4 +-
.../server/group/impl/LocalGroupingHandler.java | 16 +-
.../group/impl/RemoteGroupingHandler.java | 6 +-
.../core/server/impl/ActiveMQServerImpl.java | 18 +--
.../impl/AnyLiveNodeLocatorForReplication.java | 6 +-
.../core/server/impl/ConnectorsService.java | 2 +-
.../core/server/impl/LastValueQueue.java | 2 +-
.../impl/LegacyLDAPSecuritySettingPlugin.java | 4 +-
.../NamedLiveNodeLocatorForReplication.java | 2 +-
.../impl/NamedLiveNodeLocatorForScaleDown.java | 2 +-
.../server/impl/PostOfficeJournalLoader.java | 6 +-
.../artemis/core/server/impl/QueueImpl.java | 22 +--
.../artemis/core/server/impl/RefsOperation.java | 12 +-
.../core/server/impl/RoutingContextImpl.java | 6 +-
.../core/server/impl/ScaleDownHandler.java | 2 +-
.../impl/ScheduledDeliveryHandlerImpl.java | 8 +-
.../core/server/impl/ServerConsumerImpl.java | 6 +-
.../core/server/impl/ServerSessionImpl.java | 26 +--
.../management/impl/ManagementServiceImpl.java | 16 +-
.../impl/HierarchicalObjectRepository.java | 18 +--
.../transaction/impl/ResourceManagerImpl.java | 12 +-
.../core/transaction/impl/TransactionImpl.java | 6 +-
.../security/jaas/CertificateLoginModule.java | 2 +-
.../core/security/jaas/GuestLoginModule.java | 2 +-
.../spi/core/security/jaas/InVMLoginModule.java | 2 +-
.../spi/core/security/jaas/LDAPLoginModule.java | 14 +-
.../core/security/jaas/PropertiesLoader.java | 2 +-
.../security/jaas/PropertiesLoginModule.java | 2 +-
.../jaas/TextFileCertificateLoginModule.java | 2 +-
.../impl/FileConfigurationParserTest.java | 2 +-
.../core/list/PriorityLinkedListTest.java | 2 +-
.../jaas/CertificateLoginModuleTest.java | 8 +-
.../PropertiesLoginModuleRaceConditionTest.java | 6 +-
.../group/impl/ClusteredResetMockTest.java | 4 +-
.../impl/ScheduledDeliveryHandlerTest.java | 2 +-
.../artemis/core/settings/RepositoryTest.java | 18 +--
.../artemis/tests/util/ActiveMQTestBase.java | 52 +++---
.../xa/recovery/ActiveMQXAResourceRecovery.java | 2 +-
.../xa/ActiveMQXAResourceWrapperImplTest.java | 2 +-
.../jms/example/ClusteredJgroupsExample.java | 4 +-
.../ColocatedFailoverScaleDownExample.java | 4 +-
.../jms/example/ColocatedFailoverExample.java | 4 +-
.../jms/example/HAPolicyAutoBackupExample.java | 2 +-
.../artemis/jms/example/ScaleDownExample.java | 4 +-
.../artemis/jms/example/BridgeExample.java | 4 +-
.../jms/example/ClientKickoffExample.java | 2 +-
.../artemis/jms/example/EmbeddedExample.java | 2 +-
.../artemis/jms/example/EmbeddedExample.java | 2 +-
.../artemis/jms/example/JMSBridgeExample.java | 2 +-
.../jms/example/MessageGroupExample.java | 2 +-
.../jms/example/MessageGroup2Example.java | 2 +-
.../jms/example/MessagePriorityExample.java | 2 +-
.../jms/example/RequestReplyExample.java | 2 +-
.../artemis/jms/example/XAHeuristicExample.java | 2 +-
.../artemis/jms/example/XASendExample.java | 2 +-
.../integration/vertx/VertxConstants.java | 8 +-
.../activemq/ActiveMQConnectionFactory.java | 2 +-
.../apache/activemq/broker/BrokerService.java | 4 +-
.../artemiswrapper/ArtemisBrokerWrapper.java | 12 +-
.../artemiswrapper/InVMNamingContext.java | 6 +-
.../transport/tcp/TcpTransportFactory.java | 2 +-
.../org/apache/activemq/usage/SystemUsage.java | 2 +-
.../activemq/ActiveMQMessageAuditTest.java | 8 +-
.../apache/activemq/CombinationTestSupport.java | 18 +--
.../org/apache/activemq/JMSMessageTest.java | 4 +-
.../activemq/JmsConnectionStartStopTest.java | 2 +-
.../JmsConsumerResetActiveListenerTest.java | 4 +-
.../activemq/JmsMultipleBrokersTestSupport.java | 4 +-
.../activemq/JmsMultipleClientsTestSupport.java | 2 +-
.../apache/activemq/JmsQueueBrowserTest.java | 2 +-
...eiveTwoConnectionsStartBeforeBrokerTest.java | 2 +-
.../activemq/JmsRollbackRedeliveryTest.java | 6 +-
...JmsSendReceiveWithMessageExpirationTest.java | 4 +-
.../apache/activemq/JmsTempDestinationTest.java | 2 +-
.../activemq/JmsTopicRequestReplyTest.java | 2 +-
.../apache/activemq/MessageEvictionTest.java | 2 +-
.../activemq/MessageListenerRedeliveryTest.java | 2 +-
.../org/apache/activemq/SpringTestSupport.java | 2 +-
.../advisory/AdvisoryTempDestinationTests.java | 2 +-
.../activemq/advisory/ConsumerListenerTest.java | 2 +-
.../advisory/DestinationListenerTest.java | 2 +-
.../activemq/advisory/ProducerListenerTest.java | 2 +-
.../activemq/advisory/TempDestDeleteTest.java | 2 +-
.../activemq/advisory/TempQueueMemoryTest.java | 2 +-
.../apache/activemq/blob/FTPTestSupport.java | 2 +-
.../org/apache/activemq/broker/AMQ4351Test.java | 2 +-
.../org/apache/activemq/broker/BrokerTest.java | 6 +-
.../activemq/broker/BrokerTestSupport.java | 2 +-
.../broker/NioQueueSubscriptionTest.java | 2 +-
.../activemq/broker/QueueMbeanRestartTest.java | 2 +-
.../activemq/broker/RecoveryBrokerTest.java | 6 +-
.../org/apache/activemq/broker/StubBroker.java | 4 +-
.../apache/activemq/broker/StubConnection.java | 4 +-
.../activemq/broker/XARecoveryBrokerTest.java | 2 +-
.../broker/ft/QueueMasterSlaveTestSupport.java | 2 +-
.../apache/activemq/broker/jmx/MBeanTest.java | 2 +-
.../broker/policy/AbortSlowConsumerBase.java | 2 +-
.../PriorityNetworkDispatchPolicyTest.java | 2 +-
.../region/QueueDuplicatesFromStoreTest.java | 2 +-
.../region/SubscriptionAddRemoveQueueTest.java | 4 +-
...iquePropertyMessageEvictionStrategyTest.java | 2 +-
.../broker/region/cursors/CursorSupport.java | 8 +-
.../region/cursors/NegativeQueueTest.java | 6 +-
.../region/cursors/OrderPendingListTest.java | 2 +-
.../broker/scheduler/JobSchedulerStoreTest.java | 2 +-
.../KahaDBSchedulerMissingJournalLogsTest.java | 4 +-
.../memory/InMemoryJobSchedulerStoreTest.java | 2 +-
.../store/RecoverExpiredMessagesTest.java | 2 +-
.../MirroredQueueCorrectMemoryUsageTest.java | 2 +-
.../broker/virtual/VirtualDestPerfTest.java | 8 +-
.../broker/virtual/VirtualTopicPubSubTest.java | 2 +-
.../org/apache/activemq/bugs/AMQ1853Test.java | 2 +-
.../java/org/apache/activemq/bugs/AMQ1866.java | 2 +-
.../org/apache/activemq/bugs/AMQ1917Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ1936Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ2021Test.java | 4 +-
.../org/apache/activemq/bugs/AMQ2149Test.java | 8 +-
.../org/apache/activemq/bugs/AMQ2171Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ2401Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ2413Test.java | 6 +-
.../org/apache/activemq/bugs/AMQ2489Test.java | 4 +-
.../org/apache/activemq/bugs/AMQ2512Test.java | 2 +-
.../activemq/bugs/AMQ2584ConcurrentDlqTest.java | 2 +-
.../org/apache/activemq/bugs/AMQ2584Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ2616Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ2801Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ2870Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ2910Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ2983Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ3140Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ3167Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ3274Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ3622Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ3732Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ3841Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ3961Test.java | 6 +-
.../org/apache/activemq/bugs/AMQ4083Test.java | 4 +-
.../org/apache/activemq/bugs/AMQ4092Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ4157Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ4220Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ4221Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ4361Test.java | 4 +-
.../org/apache/activemq/bugs/AMQ4407Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ4413Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ4475Test.java | 2 +-
.../activemq/bugs/AMQ4485LowLimitTest.java | 10 +-
...XBrokersWithNDestsFanoutTransactionTest.java | 10 +-
.../org/apache/activemq/bugs/AMQ4485Test.java | 6 +-
.../org/apache/activemq/bugs/AMQ4607Test.java | 4 +-
.../org/apache/activemq/bugs/AMQ4853Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ4952Test.java | 6 +-
.../activemq/bugs/AMQ5266SingleDestTest.java | 10 +-
.../bugs/AMQ5266StarvedConsumerTest.java | 10 +-
.../org/apache/activemq/bugs/AMQ5266Test.java | 10 +-
.../org/apache/activemq/bugs/AMQ5450Test.java | 2 +-
.../activemq/bugs/DurableConsumerTest.java | 4 +-
.../bugs/MemoryUsageBlockResumeTest.java | 2 +-
.../activemq/bugs/QueueWorkerPrefetchTest.java | 2 +-
.../bugs/RawRollbackSharedConsumerTests.java | 2 +-
.../apache/activemq/bugs/RawRollbackTests.java | 2 +-
.../bugs/TrapMessageInJDBCStoreTest.java | 4 +-
.../activemq/bugs/amq1095/ActiveMQTestCase.java | 2 +-
.../command/ActiveMQDestinationTest.java | 4 +-
.../config/BrokerXmlConfigFromJNDITest.java | 2 +-
.../activemq/console/command/AMQ3410Test.java | 10 +-
.../activemq/console/command/AMQ3411Test.java | 10 +-
.../console/command/PurgeCommandTest.java | 10 +-
.../ActiveMQWASInitialContextFactoryTest.java | 2 +-
.../apache/activemq/jndi/JNDITestSupport.java | 2 +-
.../activemq/joramtests/ActiveMQAdmin.java | 2 +-
.../BrokerNetworkWithStuckMessagesTest.java | 8 +-
.../CheckDuplicateMessagesOnDuplexTest.java | 4 +-
.../network/FailoverStaticNetworkTest.java | 12 +-
.../network/NetworkDestinationFilterTest.java | 2 +-
.../activemq/network/NetworkLoadTest.java | 4 +-
.../activemq/network/NetworkReconnectTest.java | 2 +-
.../activemq/network/NetworkTestSupport.java | 2 +-
.../network/SSHTunnelNetworkReconnectTest.java | 2 +-
.../jms/QueueBridgeStandaloneReconnectTest.java | 2 +-
.../jms/QueueOutboundBridgeReconnectTest.java | 2 +-
.../jms/TopicBridgeStandaloneReconnectTest.java | 2 +-
.../jms/TopicOutboundBridgeReconnectTest.java | 2 +-
.../activemq/openwire/DataFileGenerator.java | 2 +-
.../openwire/DataFileGeneratorTestSupport.java | 2 +-
.../activemq/perf/ConnectionChurnTest.java | 2 +-
.../SimpleNonPersistentQueueNetworkTest.java | 2 +-
.../perf/SimpleNonPersistentQueueTest.java | 2 +-
.../org/apache/activemq/proxy/AMQ4889Test.java | 4 +-
.../apache/activemq/proxy/ProxyTestSupport.java | 2 +-
...actCachedLDAPAuthorizationMapLegacyTest.java | 2 +-
.../activemq/security/AuthorizationMapTest.java | 6 +-
...JaasCertificateAuthenticationBrokerTest.java | 10 +-
.../JaasDualAuthenticationBrokerTest.java | 4 +-
.../security/LDAPAuthorizationMapTest.java | 2 +-
.../activemq/security/SecurityJMXTest.java | 2 +-
.../SimpleSecurityBrokerSystemTest.java | 10 +-
.../apache/activemq/spring/ConsumerBean.java | 4 +-
.../store/AutoStorePerDestinationTest.java | 2 +-
.../activemq/store/StorePerDestinationTest.java | 6 +-
.../jdbc/JDBCIOExceptionHandlerMockeryTest.java | 2 +-
.../store/jdbc/JDBCIOExceptionHandlerTest.java | 2 +-
.../store/jdbc/JDBCMessagePriorityTest.java | 6 +-
.../store/jdbc/JDBCTablePrefixAssignedTest.java | 2 +-
.../store/jdbc/LeaseDatabaseLockerTest.java | 2 +-
.../store/kahadb/KahaDBFastEnqueueTest.java | 2 +-
.../kahadb/KahaDBStoreRecoveryBrokerTest.java | 2 +-
.../activemq/store/kahadb/KahaDBStoreTest.java | 2 +-
.../activemq/store/kahadb/plist/PListTest.java | 14 +-
.../activemq/streams/JMSInputStreamTest.java | 4 +-
.../message/NestedMapAndListPropertyTest.java | 4 +-
.../test/message/NestedMapMessageTest.java | 4 +-
.../transport/StubCompositeTransport.java | 2 +-
.../activemq/transport/StubTransport.java | 2 +-
.../transport/StubTransportListener.java | 4 +-
.../activemq/transport/TopicClusterTest.java | 2 +-
.../transport/TransportBrokerTestSupport.java | 2 +-
.../DiscoveryNetworkReconnectTest.java | 4 +-
.../DiscoveryTransportNoBrokerTest.java | 2 +-
.../transport/failover/AMQ1925Test.java | 2 +-
.../failover/ConnectionHangOnStartupTest.java | 4 +-
.../transport/failover/FailoverClusterTest.java | 6 +-
.../failover/FailoverClusterTestSupport.java | 10 +-
.../FailoverConsumerOutstandingCommitTest.java | 2 +-
.../FailoverConsumerUnconsumedTest.java | 4 +-
.../failover/FailoverPrefetchZeroTest.java | 2 +-
.../failover/FailoverPriorityTest.java | 2 +-
.../failover/FailoverTransactionTest.java | 12 +-
.../transport/failover/SlowConnectionTest.java | 2 +-
.../tcp/QualityOfServiceUtilsTest.java | 2 +-
.../transport/tcp/SocketTstFactory.java | 2 +-
.../transport/tcp/SslTransportFactoryTest.java | 2 +-
.../tcp/TcpFaultyTransportFactory.java | 2 +-
.../tcp/WireformatNegociationTest.java | 6 +-
.../transport/vm/VMTransportThreadSafeTest.java | 4 +-
.../vm/VmTransportNetworkBrokerTest.java | 2 +-
.../activemq/usecases/AMQStackOverFlowTest.java | 2 +-
.../usecases/ChangeSentMessageTest.java | 2 +-
.../ConcurrentDestinationCreationTest.java | 2 +-
.../ConcurrentProducerDurableConsumerTest.java | 6 +-
.../ConcurrentProducerQueueConsumerTest.java | 4 +-
.../usecases/ConsumeTopicPrefetchTest.java | 2 +-
.../DurableSubDelayedUnsubscribeTest.java | 8 +-
...ConcurrentCommitActivateNoDuplicateTest.java | 12 +-
.../DurableSubProcessMultiRestartTest.java | 2 +-
.../usecases/DurableSubProcessTest.java | 12 +-
.../DurableSubProcessWithRestartTest.java | 12 +-
...neSelectorConcurrentConsumeIndexUseTest.java | 2 +-
.../DurableSubsOfflineSelectorIndexUseTest.java | 2 +-
.../DurableSubscriptionOffline1Test.java | 4 +-
.../DurableSubscriptionOffline2Test.java | 2 +-
.../DurableSubscriptionOffline3Test.java | 2 +-
.../DurableSubscriptionOffline4Test.java | 2 +-
.../DurableSubscriptionOfflineTest.java | 2 +-
.../DurableSubscriptionOfflineTestBase.java | 2 +-
.../usecases/ExceptionListenerTest.java | 2 +-
.../usecases/JdbcDurableSubDupTest.java | 2 +-
.../usecases/MessageGroupCloseTest.java | 8 +-
.../usecases/MessageGroupDelayedTest.java | 4 +-
.../usecases/MessageGroupLateArrivalsTest.java | 6 +-
.../MessageGroupReconnectDistributionTest.java | 4 +-
.../usecases/MultiBrokersMultiClientsTest.java | 4 +-
.../MultiBrokersMultiClientsUsingTcpTest.java | 2 +-
.../NetworkBridgeProducerFlowControlTest.java | 2 +-
.../usecases/NoDuplicateOnTopicNetworkTest.java | 4 +-
.../NonBlockingConsumerRedeliveryTest.java | 26 +--
.../ObjectMessageNotSerializableTest.java | 4 +-
.../activemq/usecases/QueueDuplicatesTest.java | 2 +-
.../QueueMemoryFullMultiBrokersTest.java | 2 +-
.../RequestReplyNoAdvisoryNetworkTest.java | 2 +-
...estReplyTempDestRemovalAdvisoryRaceTest.java | 12 +-
...uestReplyToTopicViaThreeNetworkHopsTest.java | 2 +-
.../usecases/ThreeBrokerQueueNetworkTest.java | 4 +-
.../ThreeBrokerQueueNetworkUsingTcpTest.java | 2 +-
.../usecases/ThreeBrokerTopicNetworkTest.java | 2 +-
.../ThreeBrokerTopicNetworkUsingTcpTest.java | 2 +-
.../usecases/TopicDurableConnectStatsTest.java | 2 +-
.../usecases/TransactionRollbackOrderTest.java | 8 +-
.../usecases/TwoBrokerTopicSendReceiveTest.java | 2 +-
.../TwoBrokerVirtualTopicForwardingTest.java | 2 +-
.../activemq/usecases/UnlimitedEnqueueTest.java | 2 +-
.../VerifyNetworkConsumersDisconnectTest.java | 6 +-
.../org/apache/activemq/util/MessageIdList.java | 6 +-
.../activemq/util/ReflectionSupportTest.java | 6 +-
.../org/apache/activemq/util/SimplePojo.java | 6 +-
.../xbean/ManagementContextXBeanConfigTest.java | 4 +-
.../BridgeServerLocatorConfigurationTest.java | 14 +-
.../byteman/ConcurrentDeliveryCancelTest.java | 6 +-
.../HierarchicalObjectRepositoryTest.java | 2 +-
.../tests/extras/byteman/MessageCopyTest.java | 2 +-
.../tests/extras/byteman/PagingLeakTest.java | 4 +-
.../tests/extras/jms/bridge/BridgeTestBase.java | 4 +-
.../jms/bridge/ClusteredBridgeTestBase.java | 6 +-
.../tests/extras/jms/bridge/JMSBridgeTest.java | 8 +-
...MDBMultipleHandlersServerDisconnectTest.java | 4 +-
.../protocols/hornetq/HornetQProtocolTest.java | 6 +-
.../integration/SimpleNotificationService.java | 4 +-
.../client/AutoCreateJmsQueueTest.java | 4 +-
.../tests/integration/client/ConsumerTest.java | 2 +-
.../client/ConsumerWindowSizeTest.java | 12 +-
.../client/DeadLetterAddressTest.java | 2 +-
.../integration/client/HangConsumerTest.java | 2 +-
.../client/JmsNettyNioStressTest.java | 4 +-
.../integration/client/JournalCrashTest.java | 4 +-
.../integration/client/LargeMessageTest.java | 6 +-
.../client/MessageConcurrencyTest.java | 10 +-
.../client/MessageConsumerRollbackTest.java | 2 +-
.../MessageGroupingConnectionFactoryTest.java | 2 +-
.../integration/client/MessageGroupingTest.java | 2 +-
.../tests/integration/client/NIOvsOIOTest.java | 4 +-
.../tests/integration/client/PagingTest.java | 28 ++--
.../client/ProducerFlowControlTest.java | 2 +-
.../client/SessionCloseOnGCTest.java | 32 ++--
.../integration/cluster/NodeManagerTest.java | 2 +-
.../cluster/RealNodeManagerTest.java | 2 +-
.../cluster/bridge/BridgeFailoverTest.java | 6 +-
.../cluster/bridge/BridgeReconnectTest.java | 52 +++---
.../cluster/bridge/BridgeStartTest.java | 56 +++----
.../integration/cluster/bridge/BridgeTest.java | 162 +++++++++----------
.../BridgeWithDiscoveryGroupStartTest.java | 16 +-
.../cluster/distribution/ClusterTestBase.java | 26 +--
.../distribution/ClusteredGroupingTest.java | 2 +-
.../distribution/MessageRedistributionTest.java | 2 +-
.../MessageRedistributionWithDiscoveryTest.java | 2 +-
.../failover/AsynchronousFailoverTest.java | 6 +-
.../cluster/failover/BackupSyncJournalTest.java | 4 +-
.../failover/BackupSyncLargeMessageTest.java | 2 +-
.../cluster/failover/BackupSyncPagingTest.java | 2 +-
.../ClusterWithBackupFailoverTestBase.java | 2 +-
.../cluster/failover/FailoverListenerTest.java | 2 +-
.../failover/FailoverOnFlowControlTest.java | 2 +-
.../cluster/failover/FailoverTest.java | 8 +-
.../cluster/failover/FailoverTestBase.java | 4 +-
...ultipleLivesMultipleBackupsFailoverTest.java | 2 +-
.../MultipleServerFailoverTestBase.java | 20 +--
.../cluster/failover/NettyFailoverTest.java | 2 +-
.../cluster/failover/QuorumFailOverTest.java | 4 +-
...dMultipleServerFailoverExtraBackupsTest.java | 2 +-
.../cluster/failover/SecurityFailoverTest.java | 2 +-
.../SingleLiveMultipleBackupsFailoverTest.java | 2 +-
.../MultiThreadRandomReattachTestBase.java | 46 +++---
.../MultiThreadReattachSupportTestBase.java | 2 +-
.../cluster/reattach/OrderReattachTest.java | 8 +-
.../cluster/reattach/RandomReattachTest.java | 42 ++---
.../cluster/topology/IsolatedTopologyTest.java | 16 +-
.../cluster/topology/NonHATopologyTest.java | 2 +-
.../cluster/util/MultiServerTestBase.java | 6 +-
.../discovery/DiscoveryBaseTest.java | 6 +-
.../http/CoreClientOverHttpTest.java | 2 +-
.../jms/ActiveMQConnectionFactoryTest.java | 6 +-
.../tests/integration/jms/FloodServerTest.java | 2 +-
.../ManualReconnectionToSingleServerTest.java | 2 +-
.../integration/jms/SimpleJNDIClientTest.java | 6 +-
.../jms/client/ReSendMessageTest.java | 4 +-
...onClosedOnRemotingConnectionFailureTest.java | 2 +-
.../integration/jms/client/StoreConfigTest.java | 6 +-
.../jms/cluster/JMSFailoverListenerTest.java | 2 +-
.../jms/cluster/JMSFailoverTest.java | 2 +-
.../jms/connection/CloseConnectionOnGCTest.java | 14 +-
.../ConnectionFactorySerializationTest.java | 8 +-
.../jms/connection/InvalidConnectorTest.java | 4 +-
.../JmsProducerCompletionListenerTest.java | 2 +-
.../jms/server/JMSServerStartStopTest.java | 2 +-
.../jms/server/config/JMSConfigurationTest.java | 2 +-
.../ConnectionFactoryControlTest.java | 2 +-
.../server/management/JMSQueueControlTest.java | 2 +-
.../server/management/JMSServerControlTest.java | 6 +-
.../jms/server/management/TopicControlTest.java | 2 +-
.../journal/NIOJournalCompactTest.java | 48 +++---
.../management/AddressControlTest.java | 4 +-
.../management/AddressControlUsingCoreTest.java | 2 +-
.../management/BridgeControlTest.java | 4 +-
.../management/BridgeControlUsingCoreTest.java | 4 +-
.../management/BroadcastGroupControlTest.java | 2 +-
.../ClusterConnectionControl2Test.java | 4 +-
.../ClusterConnectionControlTest.java | 4 +-
.../integration/management/JMXDomainTest.java | 2 +-
.../management/ManagementActivationTest.java | 2 +-
.../management/ManagementHelperTest.java | 8 +-
.../management/ManagementWithStompTest.java | 2 +-
.../management/SecurityNotificationTest.java | 4 +-
.../integration/mqtt/imported/MQTTTest.java | 10 +-
.../mqtt/imported/MQTTTestSupport.java | 6 +-
.../integration/mqtt/imported/PahoMQTTTest.java | 2 +-
.../util/ResourceLoadingSslContext.java | 4 +-
.../integration/openwire/BasicOpenWireTest.java | 2 +-
.../integration/openwire/OpenWireTestBase.java | 6 +-
.../openwire/amq/JMSMessageTest.java | 4 +-
.../amq/JmsConnectionStartStopTest.java | 2 +-
.../amq/JmsConsumerResetActiveListenerTest.java | 4 +-
.../openwire/amq/JmsTopicRequestReplyTest.java | 2 +-
.../openwire/amq/JmsTransactionTestSupport.java | 18 +--
.../amq/MessageListenerRedeliveryTest.java | 2 +-
.../paging/MultipleProducersPagingTest.java | 2 +-
.../integration/paging/PagingSendTest.java | 4 +-
.../paging/SpawnedServerSupport.java | 4 +-
...AddressSettingsConfigurationStorageTest.java | 2 +-
.../DeleteMessagesOnStartupTest.java | 4 +-
...nnectionFactoryConfigurationStorageTest.java | 14 +-
.../persistence/JMSDynamicConfigTest.java | 2 +-
.../integration/persistence/RestartSMTest.java | 8 +-
.../RolesConfigurationStorageTest.java | 2 +-
...ansportConfigurationEncodingSupportTest.java | 12 +-
.../tests/integration/proton/ProtonTest.java | 2 +-
.../ra/ActiveMQMessageHandlerSecurityTest.java | 2 +-
.../tests/integration/ra/JMSContextTest.java | 2 +-
.../integration/ra/OutgoingConnectionTest.java | 2 +-
.../ra/OutgoingConnectionTestJTA.java | 2 +-
.../integration/ra/ResourceAdapterTest.java | 2 +-
.../integration/remoting/BatchDelayTest.java | 4 +-
.../integration/remoting/DirectDeliverTest.java | 2 +-
.../remoting/NetworkAddressTestBase.java | 8 +-
.../integration/remoting/ReconnectTest.java | 4 +-
.../replication/ReplicationTest.java | 4 +-
.../scheduling/ScheduledMessageTest.java | 2 +-
.../integration/security/SecurityTest.java | 60 +++----
.../integration/server/ExpiryRunnerTest.java | 2 +-
.../integration/server/FakeStorageManager.java | 4 +-
.../integration/server/PredefinedQueueTest.java | 4 +-
.../ssl/CoreClientOverOneWaySSLTest.java | 2 +-
.../ssl/CoreClientOverTwoWaySSLTest.java | 2 +-
.../tests/integration/stomp/ExtraStompTest.java | 20 +--
.../tests/integration/stomp/StompTestBase.java | 2 +-
.../integration/stomp/StompWebSocketTest.java | 2 +-
.../stomp/util/AbstractClientStompFrame.java | 6 +-
.../util/AbstractStompClientConnection.java | 4 +-
.../integration/stomp/v11/StompV11TestBase.java | 2 +-
.../netty/ActiveMQFrameDecoder2Test.java | 2 +-
.../NettyConnectorWithHTTPUpgradeTest.java | 4 +-
.../vertx/ActiveMQVertxUnitTest.java | 10 +-
.../integration/xa/BasicXaRecoveryTest.java | 2 +-
.../tests/integration/xa/BasicXaTest.java | 2 +-
.../tests/integration/xa/XaTimeoutTest.java | 4 +-
.../artemis/tests/util/JMSTestBase.java | 4 +-
.../tests/util/TransportConfigurationUtils.java | 10 +-
.../jms/tests/ActiveMQServerTestCase.java | 10 +-
.../artemis/jms/tests/CTSMiscellaneousTest.java | 2 +-
.../jms/tests/ConnectionFactoryTest.java | 2 +-
.../activemq/artemis/jms/tests/JMSTest.java | 4 +-
.../activemq/artemis/jms/tests/JMSTestCase.java | 2 +-
.../activemq/artemis/jms/tests/QueueTest.java | 2 +-
.../tests/message/BodyIsAssignableFromTest.java | 2 +-
.../jms/tests/message/MessageBodyTest.java | 2 +-
.../jms/tests/message/MessageHeaderTest.java | 2 +-
.../jms/tests/message/ObjectMessageTest.java | 6 +-
.../jms/tests/message/SimpleJMSMessage.java | 2 +-
.../tests/message/SimpleJMSStreamMessage.java | 2 +-
.../jms/tests/selector/SelectorTest.java | 4 +-
.../jms/tests/tools/ServerManagement.java | 2 +-
.../jms/tests/tools/container/InVMContext.java | 4 +-
.../container/InVMInitialContextFactory.java | 2 +-
.../tests/tools/container/LocalTestServer.java | 8 +-
.../activemq/artemis/jms/ActiveMQAdmin.java | 2 +-
.../paging/MeasurePagingMultiThreadTest.java | 2 +-
.../sends/AbstractSendReceivePerfTest.java | 2 +-
.../tests/soak/client/ClientSoakTest.java | 2 +-
.../stress/journal/AddAndRemoveStressTest.java | 8 +-
.../JournalCleanupCompactStressTest.java | 6 +-
.../journal/JournalRestartStressTest.java | 2 +-
.../journal/MultiThreadConsumerStressTest.java | 2 +-
.../NIOMultiThreadCompactorStressTest.java | 6 +-
.../paging/MultipleConsumersPageStressTest.java | 8 +-
.../stress/paging/PageCursorStressTest.java | 2 +-
.../tests/stress/paging/PageStressTest.java | 2 +-
.../tests/stress/stomp/StompStressTest.java | 2 +-
.../core/server/impl/QueueConcurrentTest.java | 2 +-
.../timing/core/server/impl/QueueImplTest.java | 4 +-
.../jms/bridge/impl/JMSBridgeImplTest.java | 10 +-
.../MultiThreadAsynchronousFileTest.java | 4 +-
.../core/config/impl/ConnectorsServiceTest.java | 2 +-
.../impl/fakes/FakeConnectorServiceFactory.java | 4 +-
.../journal/impl/AlignedJournalImplTest.java | 12 +-
.../core/journal/impl/JournalAsyncTest.java | 4 +-
.../core/journal/impl/JournalImplTestBase.java | 14 +-
.../unit/core/journal/impl/ReclaimerTest.java | 8 +-
.../impl/SequentialFileFactoryTestBase.java | 2 +-
.../unit/core/journal/impl/TimedBufferTest.java | 4 +-
.../impl/fakes/FakeSequentialFileFactory.java | 6 +-
.../unit/core/message/impl/MessageImplTest.java | 2 +-
.../tests/unit/core/paging/impl/PageTest.java | 2 +-
.../core/paging/impl/PagingManagerImplTest.java | 2 +-
.../core/paging/impl/PagingStoreImplTest.java | 14 +-
.../impl/BatchIDGeneratorUnitTest.java | 4 +-
.../impl/DuplicateDetectionUnitTest.java | 2 +-
.../impl/WildcardAddressManagerUnitTest.java | 2 +-
.../impl/invm/InVMConnectorFactoryTest.java | 2 +-
.../impl/netty/NettyAcceptorFactoryTest.java | 2 +-
.../remoting/impl/netty/NettyAcceptorTest.java | 2 +-
.../impl/netty/NettyConnectorFactoryTest.java | 2 +-
.../remoting/impl/netty/NettyConnectorTest.java | 12 +-
.../impl/ActiveMQSecurityManagerImplTest.java | 28 ++--
.../unit/core/server/impl/QueueImplTest.java | 38 ++---
.../core/server/impl/fakes/FakeConsumer.java | 2 +-
.../ra/ActiveMQResourceAdapterConfigTest.java | 2 +-
.../ra/ConnectionFactoryPropertiesTest.java | 46 +++---
.../tests/unit/ra/ResourceAdapterTest.java | 14 +-
.../artemis/tests/unit/util/InVMContext.java | 6 +-
.../tests/unit/util/InVMNamingContext.java | 6 +-
.../artemis/tests/unit/util/LinkedListTest.java | 12 +-
.../ObjectInputStreamWithClassLoaderTest.java | 2 +-
.../tests/unit/util/SoftValueMapTest.java | 6 +-
.../artemis/tests/unit/util/UUIDTest.java | 2 +-
692 files changed, 1947 insertions(+), 1947 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-boot/src/main/java/org/apache/activemq/artemis/boot/Artemis.java
----------------------------------------------------------------------
diff --git a/artemis-boot/src/main/java/org/apache/activemq/artemis/boot/Artemis.java b/artemis-boot/src/main/java/org/apache/activemq/artemis/boot/Artemis.java
index b0458a2..bc2910d 100644
--- a/artemis-boot/src/main/java/org/apache/activemq/artemis/boot/Artemis.java
+++ b/artemis-boot/src/main/java/org/apache/activemq/artemis/boot/Artemis.java
@@ -53,7 +53,7 @@ public class Artemis {
/** This is a good method for booting an embedded command */
public static Object execute(File fileHome, File fileInstance, String ... args) throws Throwable {
- ArrayList<File> dirs = new ArrayList<File>();
+ ArrayList<File> dirs = new ArrayList<>();
if (fileHome != null) {
dirs.add(new File(fileHome, "lib"));
}
@@ -62,7 +62,7 @@ public class Artemis {
}
- ArrayList<URL> urls = new ArrayList<URL>();
+ ArrayList<URL> urls = new ArrayList<>();
// Without the etc on the config, things like JGroups configuration wouldn't be loaded
if (fileInstance != null) {
@@ -79,7 +79,7 @@ public class Artemis {
if (bootdir.exists() && bootdir.isDirectory()) {
// Find the jar files in the directory..
- ArrayList<File> files = new ArrayList<File>();
+ ArrayList<File> files = new ArrayList<>();
for (File f : bootdir.listFiles()) {
if (f.getName().endsWith(".jar") || f.getName().endsWith(".zip")) {
files.add(f);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/Create.java
----------------------------------------------------------------------
diff --git a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/Create.java b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/Create.java
index cd7eb5d..cb1ae12 100644
--- a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/Create.java
+++ b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/Create.java
@@ -460,7 +460,7 @@ public class Create extends InputAbstract {
context.out.println(String.format("Creating ActiveMQ Artemis instance at: %s", directory.getCanonicalPath()));
- HashMap<String, String> filters = new HashMap<String, String>();
+ HashMap<String, String> filters = new HashMap<>();
filters.put("${master-slave}", isSlave() ? "slave" : "master");
@@ -681,7 +681,7 @@ public class Create extends InputAbstract {
String writesPerMillisecondStr = new DecimalFormat("###.##").format(writesPerMillisecond);
- HashMap<String, String> syncFilter = new HashMap<String, String>();
+ HashMap<String, String> syncFilter = new HashMap<>();
syncFilter.put("${nanoseconds}", Long.toString(nanoseconds));
syncFilter.put("${writesPerMillisecond}", writesPerMillisecondStr);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/tools/DecodeJournal.java
----------------------------------------------------------------------
diff --git a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/tools/DecodeJournal.java b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/tools/DecodeJournal.java
index 88c761f..f2c20d9 100644
--- a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/tools/DecodeJournal.java
+++ b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/tools/DecodeJournal.java
@@ -122,7 +122,7 @@ public class DecodeJournal extends LockAbstract {
String line;
- HashMap<Long, AtomicInteger> txCounters = new HashMap<Long, AtomicInteger>();
+ HashMap<Long, AtomicInteger> txCounters = new HashMap<>();
long lineNumber = 0;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/tools/PrintData.java
----------------------------------------------------------------------
diff --git a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/tools/PrintData.java b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/tools/PrintData.java
index 4cd4716..c148484 100644
--- a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/tools/PrintData.java
+++ b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/tools/PrintData.java
@@ -148,7 +148,7 @@ public class PrintData extends LockAbstract {
};
final StorageManager sm = new NullStorageManager();
PagingStoreFactory pageStoreFactory = new PagingStoreFactoryNIO(sm, pageDirectory, 1000L, scheduled, execfactory, false, null);
- HierarchicalRepository<AddressSettings> addressSettingsRepository = new HierarchicalObjectRepository<AddressSettings>();
+ HierarchicalRepository<AddressSettings> addressSettingsRepository = new HierarchicalObjectRepository<>();
addressSettingsRepository.setDefault(new AddressSettings());
PagingManager manager = new PagingManagerImpl(pageStoreFactory, addressSettingsRepository);
@@ -241,7 +241,7 @@ public class PrintData extends LockAbstract {
Set<PagePosition> set = cursorInfo.getCursorRecords().get(encoding.queueID);
if (set == null) {
- set = new HashSet<PagePosition>();
+ set = new HashSet<>();
cursorInfo.getCursorRecords().put(encoding.queueID, set);
}
@@ -281,11 +281,11 @@ public class PrintData extends LockAbstract {
private static class PageCursorsInfo {
- private final Map<Long, Set<PagePosition>> cursorRecords = new HashMap<Long, Set<PagePosition>>();
+ private final Map<Long, Set<PagePosition>> cursorRecords = new HashMap<>();
- private final Set<Long> pgTXs = new HashSet<Long>();
+ private final Set<Long> pgTXs = new HashSet<>();
- private final Map<Long, Set<Long>> completePages = new HashMap<Long, Set<Long>>();
+ private final Map<Long, Set<Long>> completePages = new HashMap<>();
public PageCursorsInfo() {
}
@@ -315,7 +315,7 @@ public class PrintData extends LockAbstract {
Set<Long> completePagesSet = completePages.get(queueID);
if (completePagesSet == null) {
- completePagesSet = new HashSet<Long>();
+ completePagesSet = new HashSet<>();
completePages.put(queueID, completePagesSet);
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-cli/src/main/java/org/apache/activemq/artemis/integration/FileBroker.java
----------------------------------------------------------------------
diff --git a/artemis-cli/src/main/java/org/apache/activemq/artemis/integration/FileBroker.java b/artemis-cli/src/main/java/org/apache/activemq/artemis/integration/FileBroker.java
index 04f658f..8ae5729 100644
--- a/artemis-cli/src/main/java/org/apache/activemq/artemis/integration/FileBroker.java
+++ b/artemis-cli/src/main/java/org/apache/activemq/artemis/integration/FileBroker.java
@@ -95,7 +95,7 @@ public class FileBroker implements Broker {
* will need impproving if we get more.
* */
public ArrayList<ActiveMQComponent> getComponentsByStartOrder(Map<String, ActiveMQComponent> components) {
- ArrayList<ActiveMQComponent> activeMQComponents = new ArrayList<ActiveMQComponent>();
+ ArrayList<ActiveMQComponent> activeMQComponents = new ArrayList<>();
ActiveMQComponent jmsComponent = components.get("jms");
if (jmsComponent != null) {
activeMQComponents.add(jmsComponent);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-commons/src/main/java/org/apache/activemq/artemis/api/core/ActiveMQExceptionType.java
----------------------------------------------------------------------
diff --git a/artemis-commons/src/main/java/org/apache/activemq/artemis/api/core/ActiveMQExceptionType.java b/artemis-commons/src/main/java/org/apache/activemq/artemis/api/core/ActiveMQExceptionType.java
index 6aca1d0..f135653 100644
--- a/artemis-commons/src/main/java/org/apache/activemq/artemis/api/core/ActiveMQExceptionType.java
+++ b/artemis-commons/src/main/java/org/apache/activemq/artemis/api/core/ActiveMQExceptionType.java
@@ -206,7 +206,7 @@ public enum ActiveMQExceptionType {
private static final Map<Integer, ActiveMQExceptionType> TYPE_MAP;
static {
- HashMap<Integer, ActiveMQExceptionType> map = new HashMap<Integer, ActiveMQExceptionType>();
+ HashMap<Integer, ActiveMQExceptionType> map = new HashMap<>();
for (ActiveMQExceptionType type : EnumSet.allOf(ActiveMQExceptionType.class)) {
map.put(type.getCode(), type);
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-commons/src/main/java/org/apache/activemq/artemis/api/core/SimpleString.java
----------------------------------------------------------------------
diff --git a/artemis-commons/src/main/java/org/apache/activemq/artemis/api/core/SimpleString.java b/artemis-commons/src/main/java/org/apache/activemq/artemis/api/core/SimpleString.java
index b9f8861..70cf4cf 100644
--- a/artemis-commons/src/main/java/org/apache/activemq/artemis/api/core/SimpleString.java
+++ b/artemis-commons/src/main/java/org/apache/activemq/artemis/api/core/SimpleString.java
@@ -262,7 +262,7 @@ public final class SimpleString implements CharSequence, Serializable, Comparabl
// For that reason I'm allocating the ArrayList with 2 already
// I have thought about using LinkedList here but I think this will be good enough already
// Note by Clebert
- all = new ArrayList<SimpleString>(2);
+ all = new ArrayList<>(2);
}
all.add(new SimpleString(bytes));
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/ConcurrentHashSet.java
----------------------------------------------------------------------
diff --git a/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/ConcurrentHashSet.java b/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/ConcurrentHashSet.java
index 9a3ae8c..1b4e5d7 100644
--- a/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/ConcurrentHashSet.java
+++ b/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/ConcurrentHashSet.java
@@ -33,7 +33,7 @@ public class ConcurrentHashSet<E> extends AbstractSet<E> implements ConcurrentSe
private static final Object dummy = new Object();
public ConcurrentHashSet() {
- theMap = new ConcurrentHashMap<E, Object>();
+ theMap = new ConcurrentHashMap<>();
}
@Override
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/FactoryFinder.java
----------------------------------------------------------------------
diff --git a/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/FactoryFinder.java b/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/FactoryFinder.java
index 748006d..70b9c83 100644
--- a/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/FactoryFinder.java
+++ b/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/FactoryFinder.java
@@ -52,7 +52,7 @@ public class FactoryFinder {
*/
protected static class StandaloneObjectFactory implements ObjectFactory {
- final ConcurrentMap<String, Class> classMap = new ConcurrentHashMap<String, Class>();
+ final ConcurrentMap<String, Class> classMap = new ConcurrentHashMap<>();
@Override
public Object create(final String path) throws InstantiationException, IllegalAccessException, ClassNotFoundException, IOException {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/FileUtil.java
----------------------------------------------------------------------
diff --git a/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/FileUtil.java b/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/FileUtil.java
index 9ec689c..81008af 100644
--- a/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/FileUtil.java
+++ b/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/FileUtil.java
@@ -37,7 +37,7 @@ public class FileUtil {
public static void makeExec(File file) throws IOException {
try {
- Files.setPosixFilePermissions(file.toPath(), new HashSet<PosixFilePermission>(Arrays.asList(OWNER_READ, OWNER_WRITE, OWNER_EXECUTE, GROUP_READ, GROUP_WRITE, GROUP_EXECUTE, OTHERS_READ, OTHERS_EXECUTE)));
+ Files.setPosixFilePermissions(file.toPath(), new HashSet<>(Arrays.asList(OWNER_READ, OWNER_WRITE, OWNER_EXECUTE, GROUP_READ, GROUP_WRITE, GROUP_EXECUTE, OTHERS_READ, OTHERS_EXECUTE)));
}
catch (Throwable ignore) {
// Our best effort was not good enough :)
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/PasswordMaskingUtil.java
----------------------------------------------------------------------
diff --git a/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/PasswordMaskingUtil.java b/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/PasswordMaskingUtil.java
index 99c4cba..6be5e05 100644
--- a/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/PasswordMaskingUtil.java
+++ b/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/PasswordMaskingUtil.java
@@ -63,7 +63,7 @@ public class PasswordMaskingUtil {
});
if (parts.length > 1) {
- Map<String, String> props = new HashMap<String, String>();
+ Map<String, String> props = new HashMap<>();
for (int i = 1; i < parts.length; i++) {
String[] keyVal = parts[i].split("=");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/TypedProperties.java
----------------------------------------------------------------------
diff --git a/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/TypedProperties.java b/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/TypedProperties.java
index 432e46f..5bff66f 100644
--- a/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/TypedProperties.java
+++ b/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/TypedProperties.java
@@ -71,7 +71,7 @@ public final class TypedProperties {
}
public TypedProperties(final TypedProperties other) {
- properties = other.properties == null ? null : new HashMap<SimpleString, PropertyValue>(other.properties);
+ properties = other.properties == null ? null : new HashMap<>(other.properties);
size = other.size;
}
@@ -376,7 +376,7 @@ public final class TypedProperties {
else {
int numHeaders = buffer.readInt();
- properties = new HashMap<SimpleString, PropertyValue>(numHeaders);
+ properties = new HashMap<>(numHeaders);
size = 0;
for (int i = 0; i < numHeaders; i++) {
@@ -546,7 +546,7 @@ public final class TypedProperties {
private void checkCreateProperties() {
if (properties == null) {
- properties = new HashMap<SimpleString, PropertyValue>();
+ properties = new HashMap<>();
}
}
@@ -935,7 +935,7 @@ public final class TypedProperties {
}
public Map<String, Object> getMap() {
- Map<String, Object> m = new HashMap<String, Object>();
+ Map<String, Object> m = new HashMap<>();
for (Entry<SimpleString, PropertyValue> entry : properties.entrySet()) {
Object val = entry.getValue().getValue();
if (val instanceof SimpleString) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/UTF8Util.java
----------------------------------------------------------------------
diff --git a/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/UTF8Util.java b/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/UTF8Util.java
index 18dca84..5af507e 100644
--- a/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/UTF8Util.java
+++ b/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/UTF8Util.java
@@ -35,7 +35,7 @@ public final class UTF8Util {
private static final boolean isTrace = ActiveMQUtilLogger.LOGGER.isTraceEnabled();
- private static final ThreadLocal<SoftReference<StringUtilBuffer>> currenBuffer = new ThreadLocal<SoftReference<StringUtilBuffer>>();
+ private static final ThreadLocal<SoftReference<StringUtilBuffer>> currenBuffer = new ThreadLocal<>();
public static void saveUTF(final ActiveMQBuffer out, final String str) {
StringUtilBuffer buffer = UTF8Util.getThreadLocalBuffer();
@@ -149,7 +149,7 @@ public final class UTF8Util {
StringUtilBuffer value;
if (softReference == null) {
value = new StringUtilBuffer();
- softReference = new SoftReference<StringUtilBuffer>(value);
+ softReference = new SoftReference<>(value);
UTF8Util.currenBuffer.set(softReference);
}
else {
@@ -158,7 +158,7 @@ public final class UTF8Util {
if (value == null) {
value = new StringUtilBuffer();
- softReference = new SoftReference<StringUtilBuffer>(value);
+ softReference = new SoftReference<>(value);
UTF8Util.currenBuffer.set(softReference);
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/UUIDGenerator.java
----------------------------------------------------------------------
diff --git a/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/UUIDGenerator.java b/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/UUIDGenerator.java
index df9607b..e9878d1 100644
--- a/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/UUIDGenerator.java
+++ b/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/UUIDGenerator.java
@@ -258,7 +258,7 @@ public final class UUIDGenerator {
try {
networkInterfaces = NetworkInterface.getNetworkInterfaces();
- List<NetworkInterface> ifaces = new ArrayList<NetworkInterface>();
+ List<NetworkInterface> ifaces = new ArrayList<>();
while (networkInterfaces.hasMoreElements()) {
ifaces.add(networkInterfaces.nextElement());
}
@@ -275,7 +275,7 @@ public final class UUIDGenerator {
final Method isLoopbackMethod,
final Method isVirtualMethod) {
ExecutorService executor = Executors.newFixedThreadPool(ifaces.size());
- Collection<Callable<byte[]>> tasks = new ArrayList<Callable<byte[]>>(ifaces.size());
+ Collection<Callable<byte[]>> tasks = new ArrayList<>(ifaces.size());
for (final NetworkInterface networkInterface : ifaces) {
tasks.add(new Callable<byte[]>() {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/uri/URISchema.java
----------------------------------------------------------------------
diff --git a/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/uri/URISchema.java b/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/uri/URISchema.java
index 3358331..b76ceb1 100644
--- a/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/uri/URISchema.java
+++ b/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/uri/URISchema.java
@@ -108,7 +108,7 @@ public abstract class URISchema<T, P> {
public static Map<String, String> parseQuery(String uri,
Map<String, String> propertyOverrides) throws URISyntaxException {
try {
- Map<String, String> rc = new HashMap<String, String>();
+ Map<String, String> rc = new HashMap<>();
if (uri != null && !uri.isEmpty()) {
String[] parameters = uri.split("&");
for (int i = 0; i < parameters.length; i++) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/PairTest.java
----------------------------------------------------------------------
diff --git a/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/PairTest.java b/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/PairTest.java
index b441c7b..a45886e 100644
--- a/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/PairTest.java
+++ b/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/PairTest.java
@@ -25,7 +25,7 @@ public class PairTest extends Assert {
@Test
public void testPair() {
- Pair<Integer, Integer> p = new Pair<Integer, Integer>(Integer.valueOf(12), Integer.valueOf(13));
+ Pair<Integer, Integer> p = new Pair<>(Integer.valueOf(12), Integer.valueOf(13));
int hash = p.hashCode();
p.setA(null);
assertTrue(hash != p.hashCode());
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/JGroupsBroadcastEndpoint.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/JGroupsBroadcastEndpoint.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/JGroupsBroadcastEndpoint.java
index e419dfc..5bcddbc 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/JGroupsBroadcastEndpoint.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/JGroupsBroadcastEndpoint.java
@@ -134,7 +134,7 @@ public abstract class JGroupsBroadcastEndpoint implements BroadcastEndpoint {
*/
private static final class JGroupsReceiver extends ReceiverAdapter {
- private final BlockingQueue<byte[]> dequeue = new LinkedBlockingDeque<byte[]>();
+ private final BlockingQueue<byte[]> dequeue = new LinkedBlockingDeque<>();
@Override
public void receive(org.jgroups.Message msg) {
@@ -160,7 +160,7 @@ public abstract class JGroupsBroadcastEndpoint implements BroadcastEndpoint {
int refCount = 1;
JChannel channel;
String channelName;
- final List<JGroupsReceiver> receivers = new ArrayList<JGroupsReceiver>();
+ final List<JGroupsReceiver> receivers = new ArrayList<>();
public JChannelWrapper(String channelName, JChannel channel) throws Exception {
this.refCount = 1;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/TransportConfiguration.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/TransportConfiguration.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/TransportConfiguration.java
index 3ad7a73..6f91537 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/TransportConfiguration.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/TransportConfiguration.java
@@ -310,7 +310,7 @@ public class TransportConfiguration implements Serializable {
if (params == null) {
if (num > 0) {
- params = new HashMap<String, Object>();
+ params = new HashMap<>();
}
}
else {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/management/ManagementHelper.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/management/ManagementHelper.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/management/ManagementHelper.java
index 8cd7e2e..fb7d88b 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/management/ManagementHelper.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/management/ManagementHelper.java
@@ -209,7 +209,7 @@ public final class ManagementHelper {
else if (val instanceof JSONObject) {
JSONObject jsonObject = (JSONObject) val;
- Map<String, Object> map = new HashMap<String, Object>();
+ Map<String, Object> map = new HashMap<>();
Iterator<String> iter = jsonObject.keys();
@@ -222,7 +222,7 @@ public final class ManagementHelper {
innerVal = ManagementHelper.fromJSONArray(((JSONArray) innerVal));
}
else if (innerVal instanceof JSONObject) {
- Map<String, Object> innerMap = new HashMap<String, Object>();
+ Map<String, Object> innerMap = new HashMap<>();
JSONObject o = (JSONObject) innerVal;
Iterator it = o.keys();
while (it.hasNext()) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/AddressQueryImpl.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/AddressQueryImpl.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/AddressQueryImpl.java
index aeec614..3a1f62b 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/AddressQueryImpl.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/AddressQueryImpl.java
@@ -34,7 +34,7 @@ public class AddressQueryImpl implements ClientSession.AddressQuery {
final List<SimpleString> queueNames,
final boolean autoCreateJmsQueues) {
this.exists = exists;
- this.queueNames = new ArrayList<SimpleString>(queueNames);
+ this.queueNames = new ArrayList<>(queueNames);
this.autoCreateJmsQueues = autoCreateJmsQueues;
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/ClientConsumerImpl.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/ClientConsumerImpl.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/ClientConsumerImpl.java
index 727ba74..8013b72 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/ClientConsumerImpl.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/ClientConsumerImpl.java
@@ -87,7 +87,7 @@ public final class ClientConsumerImpl implements ClientConsumerInternal {
private final int ackBatchSize;
- private final PriorityLinkedList<ClientMessageInternal> buffer = new PriorityLinkedListImpl<ClientMessageInternal>(ClientConsumerImpl.NUM_PRIORITIES);
+ private final PriorityLinkedList<ClientMessageInternal> buffer = new PriorityLinkedListImpl<>(ClientConsumerImpl.NUM_PRIORITIES);
private final Runner runner = new Runner();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/ClientProducerCreditManagerImpl.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/ClientProducerCreditManagerImpl.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/ClientProducerCreditManagerImpl.java
index 229dc82..982ce29 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/ClientProducerCreditManagerImpl.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/ClientProducerCreditManagerImpl.java
@@ -27,9 +27,9 @@ public class ClientProducerCreditManagerImpl implements ClientProducerCreditMana
public static final int MAX_UNREFERENCED_CREDITS_CACHE_SIZE = 1000;
- private final Map<SimpleString, ClientProducerCredits> producerCredits = new LinkedHashMap<SimpleString, ClientProducerCredits>();
+ private final Map<SimpleString, ClientProducerCredits> producerCredits = new LinkedHashMap<>();
- private final Map<SimpleString, ClientProducerCredits> unReferencedCredits = new LinkedHashMap<SimpleString, ClientProducerCredits>();
+ private final Map<SimpleString, ClientProducerCredits> unReferencedCredits = new LinkedHashMap<>();
private final ClientSessionInternal session;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/ClientSessionFactoryImpl.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/ClientSessionFactoryImpl.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/ClientSessionFactoryImpl.java
index 1a67dff..3b36345 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/ClientSessionFactoryImpl.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/ClientSessionFactoryImpl.java
@@ -97,7 +97,7 @@ public class ClientSessionFactoryImpl implements ClientSessionFactoryInternal, C
private final long connectionTTL;
- private final Set<ClientSessionInternal> sessions = new HashSet<ClientSessionInternal>();
+ private final Set<ClientSessionInternal> sessions = new HashSet<>();
private final Object createSessionLock = new Object();
@@ -123,9 +123,9 @@ public class ClientSessionFactoryImpl implements ClientSessionFactoryInternal, C
private int reconnectAttempts;
- private final Set<SessionFailureListener> listeners = new ConcurrentHashSet<SessionFailureListener>();
+ private final Set<SessionFailureListener> listeners = new ConcurrentHashSet<>();
- private final Set<FailoverEventListener> failoverListeners = new ConcurrentHashSet<FailoverEventListener>();
+ private final Set<FailoverEventListener> failoverListeners = new ConcurrentHashSet<>();
private Connector connector;
@@ -222,7 +222,7 @@ public class ClientSessionFactoryImpl implements ClientSessionFactoryInternal, C
confirmationWindowWarning = new ConfirmationWindowWarning(serverLocator.getConfirmationWindowSize() < 0);
- lifeCycleListeners = new HashSet<ConnectionLifeCycleListener>();
+ lifeCycleListeners = new HashSet<>();
connectionReadyForWrites = true;
}
@@ -456,7 +456,7 @@ public class ClientSessionFactoryImpl implements ClientSessionFactoryInternal, C
private void closeCleanSessions(boolean close) {
HashSet<ClientSessionInternal> sessionsToClose;
synchronized (sessions) {
- sessionsToClose = new HashSet<ClientSessionInternal>(sessions);
+ sessionsToClose = new HashSet<>(sessions);
}
// work on a copied set. the session will be removed from sessions when session.close() is
// called
@@ -633,7 +633,7 @@ public class ClientSessionFactoryImpl implements ClientSessionFactoryInternal, C
if (connection == null) {
synchronized (sessions) {
- sessionsToClose = new HashSet<ClientSessionInternal>(sessions);
+ sessionsToClose = new HashSet<>(sessions);
}
callFailoverListeners(FailoverEventType.FAILOVER_FAILED);
callSessionFailureListeners(me, true, false, scaleDownTargetNodeID);
@@ -697,7 +697,7 @@ public class ClientSessionFactoryImpl implements ClientSessionFactoryInternal, C
final boolean afterReconnect,
final boolean failedOver,
final String scaleDownTargetNodeID) {
- final List<SessionFailureListener> listenersClone = new ArrayList<SessionFailureListener>(listeners);
+ final List<SessionFailureListener> listenersClone = new ArrayList<>(listeners);
for (final SessionFailureListener listener : listenersClone) {
try {
@@ -741,7 +741,7 @@ public class ClientSessionFactoryImpl implements ClientSessionFactoryInternal, C
final ActiveMQException cause) {
HashSet<ClientSessionInternal> sessionsToFailover;
synchronized (sessions) {
- sessionsToFailover = new HashSet<ClientSessionInternal>(sessions);
+ sessionsToFailover = new HashSet<>(sessions);
}
for (ClientSessionInternal session : sessionsToFailover) {
@@ -1195,7 +1195,7 @@ public class ClientSessionFactoryImpl implements ClientSessionFactoryInternal, C
private final WeakReference<PingRunnable> pingRunnable;
ActualScheduledPinger(final PingRunnable runnable) {
- pingRunnable = new WeakReference<PingRunnable>(runnable);
+ pingRunnable = new WeakReference<>(runnable);
}
@Override
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/ClientSessionImpl.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/ClientSessionImpl.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/ClientSessionImpl.java
index 2942b8c..ca7e767 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/ClientSessionImpl.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/ClientSessionImpl.java
@@ -54,7 +54,7 @@ import org.apache.activemq.artemis.utils.XidCodecSupport;
public final class ClientSessionImpl implements ClientSessionInternal, FailureListener {
- private final Map<String, String> metadata = new HashMap<String, String>();
+ private final Map<String, String> metadata = new HashMap<>();
private final ClientSessionFactoryInternal sessionFactory;
@@ -74,10 +74,10 @@ public final class ClientSessionImpl implements ClientSessionInternal, FailureLi
/**
* All access to producers are guarded (i.e. synchronized) on itself.
*/
- private final Set<ClientProducerInternal> producers = new HashSet<ClientProducerInternal>();
+ private final Set<ClientProducerInternal> producers = new HashSet<>();
// Consumers must be an ordered map so if we fail we recreate them in the same order with the same ids
- private final Map<ConsumerContext, ClientConsumerInternal> consumers = new LinkedHashMap<ConsumerContext, ClientConsumerInternal>();
+ private final Map<ConsumerContext, ClientConsumerInternal> consumers = new LinkedHashMap<>();
private volatile boolean closed;
@@ -1012,7 +1012,7 @@ public final class ClientSessionImpl implements ClientSessionInternal, FailureLi
HashMap<String, String> metaDataToSend;
synchronized (metadata) {
- metaDataToSend = new HashMap<String, String>(metadata);
+ metaDataToSend = new HashMap<>(metadata);
}
sessionContext.resetMetadata(metaDataToSend);
@@ -1652,7 +1652,7 @@ public final class ClientSessionImpl implements ClientSessionInternal, FailureLi
Set<ClientProducerInternal> producersClone;
synchronized (producers) {
- producersClone = new HashSet<ClientProducerInternal>(producers);
+ producersClone = new HashSet<>(producers);
}
return producersClone;
}
@@ -1664,7 +1664,7 @@ public final class ClientSessionImpl implements ClientSessionInternal, FailureLi
*/
public Set<ClientConsumerInternal> cloneConsumers() {
synchronized (consumers) {
- return new HashSet<ClientConsumerInternal>(consumers.values());
+ return new HashSet<>(consumers.values());
}
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/DelegatingSession.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/DelegatingSession.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/DelegatingSession.java
index 95bb26f..dde59d2 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/DelegatingSession.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/DelegatingSession.java
@@ -51,7 +51,7 @@ public class DelegatingSession implements ClientSessionInternal {
private volatile boolean closed;
- private static Set<DelegatingSession> sessions = new ConcurrentHashSet<DelegatingSession>();
+ private static Set<DelegatingSession> sessions = new ConcurrentHashSet<>();
public static volatile boolean debug;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/ServerLocatorImpl.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/ServerLocatorImpl.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/ServerLocatorImpl.java
index 0a608a1..a483f5d 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/ServerLocatorImpl.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/ServerLocatorImpl.java
@@ -90,9 +90,9 @@ public final class ServerLocatorImpl implements ServerLocatorInternal, Discovery
private transient String identity;
- private final Set<ClientSessionFactoryInternal> factories = new HashSet<ClientSessionFactoryInternal>();
+ private final Set<ClientSessionFactoryInternal> factories = new HashSet<>();
- private final Set<ClientSessionFactoryInternal> connectingFactories = new HashSet<ClientSessionFactoryInternal>();
+ private final Set<ClientSessionFactoryInternal> connectingFactories = new HashSet<>();
private volatile TransportConfiguration[] initialConnectors;
@@ -183,9 +183,9 @@ public final class ServerLocatorImpl implements ServerLocatorInternal, Discovery
private transient STATE state;
private transient CountDownLatch latch;
- private final List<Interceptor> incomingInterceptors = new CopyOnWriteArrayList<Interceptor>();
+ private final List<Interceptor> incomingInterceptors = new CopyOnWriteArrayList<>();
- private final List<Interceptor> outgoingInterceptors = new CopyOnWriteArrayList<Interceptor>();
+ private final List<Interceptor> outgoingInterceptors = new CopyOnWriteArrayList<>();
private static ExecutorService globalThreadPool;
@@ -1427,7 +1427,7 @@ public final class ServerLocatorImpl implements ServerLocatorInternal, Discovery
Set<ClientSessionFactoryInternal> clonedFactory;
synchronized (factories) {
- clonedFactory = new HashSet<ClientSessionFactoryInternal>(factories);
+ clonedFactory = new HashSet<>(factories);
factories.clear();
}
@@ -1536,7 +1536,7 @@ public final class ServerLocatorImpl implements ServerLocatorInternal, Discovery
TopologyMember actMember = topology.getMember(nodeID);
if (actMember != null && actMember.getLive() != null && actMember.getBackup() != null) {
- HashSet<ClientSessionFactory> clonedFactories = new HashSet<ClientSessionFactory>();
+ HashSet<ClientSessionFactory> clonedFactories = new HashSet<>();
synchronized (factories) {
clonedFactories.addAll(factories);
}
@@ -1802,7 +1802,7 @@ public final class ServerLocatorImpl implements ServerLocatorInternal, Discovery
}
}
}
- connectors = new ArrayList<Connector>();
+ connectors = new ArrayList<>();
if (initialConnectors != null) {
for (TransportConfiguration initialConnector : initialConnectors) {
ClientSessionFactoryInternal factory = new ClientSessionFactoryImpl(ServerLocatorImpl.this, initialConnector, callTimeout, callFailoverTimeout, clientFailureCheckPeriod, connectionTTL, retryInterval, retryIntervalMultiplier, maxRetryInterval, reconnectAttempts, threadPool, scheduledThreadPool, incomingInterceptors, outgoingInterceptors);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/Topology.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/Topology.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/Topology.java
index 35bfb5d..526d9f0 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/Topology.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/Topology.java
@@ -345,7 +345,7 @@ public final class Topology {
final Map<String, TopologyMemberImpl> copy;
synchronized (Topology.this) {
- copy = new HashMap<String, TopologyMemberImpl>(topology);
+ copy = new HashMap<>(topology);
}
for (Map.Entry<String, TopologyMemberImpl> entry : copy.entrySet()) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/TopologyMemberImpl.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/TopologyMemberImpl.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/TopologyMemberImpl.java
index 1696efc..50bb50b 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/TopologyMemberImpl.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/TopologyMemberImpl.java
@@ -46,7 +46,7 @@ public final class TopologyMemberImpl implements TopologyMember {
this.nodeId = nodeId;
this.backupGroupName = backupGroupName;
this.scaleDownGroupName = scaleDownGroupName;
- this.connector = new Pair<TransportConfiguration, TransportConfiguration>(a, b);
+ this.connector = new Pair<>(a, b);
uniqueEventID = System.currentTimeMillis();
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/cluster/DiscoveryGroup.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/cluster/DiscoveryGroup.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/cluster/DiscoveryGroup.java
index 4a91f65..40b48a6 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/cluster/DiscoveryGroup.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/cluster/DiscoveryGroup.java
@@ -49,7 +49,7 @@ public final class DiscoveryGroup implements ActiveMQComponent {
private static final boolean isTrace = ActiveMQClientLogger.LOGGER.isTraceEnabled();
- private final List<DiscoveryListener> listeners = new ArrayList<DiscoveryListener>();
+ private final List<DiscoveryListener> listeners = new ArrayList<>();
private final String name;
@@ -59,7 +59,7 @@ public final class DiscoveryGroup implements ActiveMQComponent {
private final Object waitLock = new Object();
- private final Map<String, DiscoveryEntry> connectors = new ConcurrentHashMap<String, DiscoveryEntry>();
+ private final Map<String, DiscoveryEntry> connectors = new ConcurrentHashMap<>();
private final long timeout;
@@ -67,7 +67,7 @@ public final class DiscoveryGroup implements ActiveMQComponent {
private final String nodeID;
- private final Map<String, String> uniqueIDMap = new HashMap<String, String>();
+ private final Map<String, String> uniqueIDMap = new HashMap<>();
private final BroadcastEndpoint endpoint;
@@ -192,7 +192,7 @@ public final class DiscoveryGroup implements ActiveMQComponent {
}
public synchronized List<DiscoveryEntry> getDiscoveryEntries() {
- List<DiscoveryEntry> list = new ArrayList<DiscoveryEntry>(connectors.values());
+ List<DiscoveryEntry> list = new ArrayList<>(connectors.values());
return list;
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/message/impl/MessageImpl.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/message/impl/MessageImpl.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/message/impl/MessageImpl.java
index 1d82bee..f27402e 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/message/impl/MessageImpl.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/message/impl/MessageImpl.java
@@ -408,7 +408,7 @@ public abstract class MessageImpl implements MessageInternal {
@Override
public Map<String, Object> toMap() {
- Map<String, Object> map = new HashMap<String, Object>();
+ Map<String, Object> map = new HashMap<>();
map.put("messageID", messageID);
if (userID != null) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/ChannelImpl.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/ChannelImpl.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/ChannelImpl.java
index b152156..a0985fc 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/ChannelImpl.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/ChannelImpl.java
@@ -130,7 +130,7 @@ public final class ChannelImpl implements Channel {
this.confWindowSize = confWindowSize;
if (confWindowSize != -1) {
- resendCache = new ConcurrentLinkedQueue<Packet>();
+ resendCache = new ConcurrentLinkedQueue<>();
}
else {
resendCache = null;
[29/32] activemq-artemis git commit: Convert mac linefeeds to unix
Posted by cl...@apache.org.
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/IntegerResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/IntegerResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/IntegerResponseTest.java
index 343cd57..806f9b1 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/IntegerResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/IntegerResponseTest.java
@@ -1 +1,54 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for IntegerResponse
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class IntegerResponseTest extends ResponseTest {
public static IntegerResponseTest SINGLETON = new IntegerResponseTest();
@Override
public Object createObject() throws Exception {
IntegerResponse info = new IntegerResponse();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
IntegerResponse info = (IntegerResponse) object;
info.setResult(1);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for IntegerResponse
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class IntegerResponseTest extends ResponseTest {
+
+ public static IntegerResponseTest SINGLETON = new IntegerResponseTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ IntegerResponse info = new IntegerResponse();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ IntegerResponse info = (IntegerResponse) object;
+
+ info.setResult(1);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalQueueAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalQueueAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalQueueAckTest.java
index 7d34ce9..d9b138e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalQueueAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalQueueAckTest.java
@@ -1 +1,55 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for JournalQueueAck
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class JournalQueueAckTest extends DataFileGeneratorTestSupport {
public static JournalQueueAckTest SINGLETON = new JournalQueueAckTest();
@Override
public Object createObject() throws Exception {
JournalQueueAck info = new JournalQueueAck();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
JournalQueueAck info = (JournalQueueAck) object;
info.setDestination(createActiveMQDestination("Destination:1"));
info.setMessageAck(createMessageAck("MessageAck:2"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for JournalQueueAck
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class JournalQueueAckTest extends DataFileGeneratorTestSupport {
+
+ public static JournalQueueAckTest SINGLETON = new JournalQueueAckTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ JournalQueueAck info = new JournalQueueAck();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ JournalQueueAck info = (JournalQueueAck) object;
+
+ info.setDestination(createActiveMQDestination("Destination:1"));
+ info.setMessageAck(createMessageAck("MessageAck:2"));
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTopicAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTopicAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTopicAckTest.java
index a2491d0..50a4d85 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTopicAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTopicAckTest.java
@@ -1 +1,59 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for JournalTopicAck
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class JournalTopicAckTest extends DataFileGeneratorTestSupport {
public static JournalTopicAckTest SINGLETON = new JournalTopicAckTest();
@Override
public Object createObject() throws Exception {
JournalTopicAck info = new JournalTopicAck();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
JournalTopicAck info = (JournalTopicAck) object;
info.setDestination(createActiveMQDestination("Destination:1"));
info.setMessageId(createMessageId("MessageId:2"));
info.setMessageSequenceId(1);
info.setSubscri
tionName("SubscritionName:3");
info.setClientId("ClientId:4");
info.setTransactionId(createTransactionId("TransactionId:5"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for JournalTopicAck
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class JournalTopicAckTest extends DataFileGeneratorTestSupport {
+
+ public static JournalTopicAckTest SINGLETON = new JournalTopicAckTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ JournalTopicAck info = new JournalTopicAck();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ JournalTopicAck info = (JournalTopicAck) object;
+
+ info.setDestination(createActiveMQDestination("Destination:1"));
+ info.setMessageId(createMessageId("MessageId:2"));
+ info.setMessageSequenceId(1);
+ info.setSubscritionName("SubscritionName:3");
+ info.setClientId("ClientId:4");
+ info.setTransactionId(createTransactionId("TransactionId:5"));
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTraceTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTraceTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTraceTest.java
index 9d8bfc4..dc8d141 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTraceTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTraceTest.java
@@ -1 +1,54 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for JournalTrace
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class JournalTraceTest extends DataFileGeneratorTestSupport {
public static JournalTraceTest SINGLETON = new JournalTraceTest();
@Override
public Object createObject() throws Exception {
JournalTrace info = new JournalTrace();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
JournalTrace info = (JournalTrace) object;
info.setMessage("Message:1");
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for JournalTrace
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class JournalTraceTest extends DataFileGeneratorTestSupport {
+
+ public static JournalTraceTest SINGLETON = new JournalTraceTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ JournalTrace info = new JournalTrace();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ JournalTrace info = (JournalTrace) object;
+
+ info.setMessage("Message:1");
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTransactionTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTransactionTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTransactionTest.java
index 7ca2728..8e2a80b 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTransactionTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTransactionTest.java
@@ -1 +1,56 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for JournalTransaction
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class JournalTransactionTest extends DataFileGeneratorTestSupport {
public static JournalTransactionTest SINGLETON = new JournalTransactionTest();
@Override
public Object createObject() throws Exception {
JournalTransaction info = new JournalTransaction();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
JournalTransaction info = (JournalTransaction) object;
info.setTransactionId(createTransactionId("TransactionId:1"));
info.setType((byte) 1);
info.setWasPrepared(true);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for JournalTransaction
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class JournalTransactionTest extends DataFileGeneratorTestSupport {
+
+ public static JournalTransactionTest SINGLETON = new JournalTransactionTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ JournalTransaction info = new JournalTransaction();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ JournalTransaction info = (JournalTransaction) object;
+
+ info.setTransactionId(createTransactionId("TransactionId:1"));
+ info.setType((byte) 1);
+ info.setWasPrepared(true);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/KeepAliveInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/KeepAliveInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/KeepAliveInfoTest.java
index 70833e6..505f731 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/KeepAliveInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/KeepAliveInfoTest.java
@@ -1 +1,53 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for KeepAliveInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class KeepAliveInfoTest extends BaseCommandTestSupport {
public static KeepAliveInfoTest SINGLETON = new KeepAliveInfoTest();
@Override
public Object createObject() throws Exception {
KeepAliveInfo info = new KeepAliveInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
KeepAliveInfo info = (KeepAliveInfo) object;
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for KeepAliveInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class KeepAliveInfoTest extends BaseCommandTestSupport {
+
+ public static KeepAliveInfoTest SINGLETON = new KeepAliveInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ KeepAliveInfo info = new KeepAliveInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ KeepAliveInfo info = (KeepAliveInfo) object;
+
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/LastPartialCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/LastPartialCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/LastPartialCommandTest.java
index d5c403b..f006bf5 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/LastPartialCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/LastPartialCommandTest.java
@@ -1 +1,53 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for LastPartialCommand
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class LastPartialCommandTest extends PartialCommandTest {
public static LastPartialCommandTest SINGLETON = new LastPartialCommandTest();
@Override
public Object createObject() throws Exception {
LastPartialCommand info = new LastPartialCommand();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
LastPartialCommand info = (LastPartialCommand) object;
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for LastPartialCommand
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class LastPartialCommandTest extends PartialCommandTest {
+
+ public static LastPartialCommandTest SINGLETON = new LastPartialCommandTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ LastPartialCommand info = new LastPartialCommand();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ LastPartialCommand info = (LastPartialCommand) object;
+
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/LocalTransactionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/LocalTransactionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/LocalTransactionIdTest.java
index 51ea095..96914d5 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/LocalTransactionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/LocalTransactionIdTest.java
@@ -1 +1,55 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for LocalTransactionId
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class LocalTransactionIdTest extends TransactionIdTestSupport {
public static LocalTransactionIdTest SINGLETON = new LocalTransactionIdTest();
@Override
public Object createObject() throws Exception {
LocalTransactionId info = new LocalTransactionId();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
LocalTransactionId info = (LocalTransactionId) object;
info.setValue(1);
info.setConnectionId(createConnectionId("ConnectionId:1"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for LocalTransactionId
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class LocalTransactionIdTest extends TransactionIdTestSupport {
+
+ public static LocalTransactionIdTest SINGLETON = new LocalTransactionIdTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ LocalTransactionId info = new LocalTransactionId();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ LocalTransactionId info = (LocalTransactionId) object;
+
+ info.setValue(1);
+ info.setConnectionId(createConnectionId("ConnectionId:1"));
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageAckTest.java
index 74dc8d6..529f77d 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageAckTest.java
@@ -1 +1,61 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for MessageAck
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class MessageAckTest extends BaseCommandTestSupport {
public static MessageAckTest SINGLETON = new MessageAckTest();
@Override
public Object createObject() throws Exception {
MessageAck info = new MessageAck();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
MessageAck info = (MessageAck) object;
info.setDestination(createActiveMQDestination("Destination:1"));
info.setTransactionId(createTransactionId("TransactionId:2"));
info.setConsumerId(createConsumerId("ConsumerId:3"));
info.setAckType((byte) 1)
;
info.setFirstMessageId(createMessageId("FirstMessageId:4"));
info.setLastMessageId(createMessageId("LastMessageId:5"));
info.setMessageCount(1);
info.setPoisonCause(createThrowable("PoisonCause:6"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for MessageAck
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class MessageAckTest extends BaseCommandTestSupport {
+
+ public static MessageAckTest SINGLETON = new MessageAckTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ MessageAck info = new MessageAck();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ MessageAck info = (MessageAck) object;
+
+ info.setDestination(createActiveMQDestination("Destination:1"));
+ info.setTransactionId(createTransactionId("TransactionId:2"));
+ info.setConsumerId(createConsumerId("ConsumerId:3"));
+ info.setAckType((byte) 1);
+ info.setFirstMessageId(createMessageId("FirstMessageId:4"));
+ info.setLastMessageId(createMessageId("LastMessageId:5"));
+ info.setMessageCount(1);
+ info.setPoisonCause(createThrowable("PoisonCause:6"));
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageDispatchNotificationTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageDispatchNotificationTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageDispatchNotificationTest.java
index 92b64ab..14da029 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageDispatchNotificationTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageDispatchNotificationTest.java
@@ -1 +1,57 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for MessageDispatchNotification
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class MessageDispatchNotificationTest extends BaseCommandTestSupport {
public static MessageDispatchNotificationTest SINGLETON = new MessageDispatchNotificationTest();
@Override
public Object createObject() throws Exception {
MessageDispatchNotification info = new MessageDispatchNotification();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
MessageDispatchNotification info = (MessageDispatchNotification) object;
info.setConsumerId(createConsumerId("ConsumerId:1"));
info.setDestination(createAct
iveMQDestination("Destination:2"));
info.setDeliverySequenceId(1);
info.setMessageId(createMessageId("MessageId:3"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for MessageDispatchNotification
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class MessageDispatchNotificationTest extends BaseCommandTestSupport {
+
+ public static MessageDispatchNotificationTest SINGLETON = new MessageDispatchNotificationTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ MessageDispatchNotification info = new MessageDispatchNotification();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ MessageDispatchNotification info = (MessageDispatchNotification) object;
+
+ info.setConsumerId(createConsumerId("ConsumerId:1"));
+ info.setDestination(createActiveMQDestination("Destination:2"));
+ info.setDeliverySequenceId(1);
+ info.setMessageId(createMessageId("MessageId:3"));
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageDispatchTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageDispatchTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageDispatchTest.java
index 61fc433..5a77e34 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageDispatchTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageDispatchTest.java
@@ -1 +1,57 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for MessageDispatch
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class MessageDispatchTest extends BaseCommandTestSupport {
public static MessageDispatchTest SINGLETON = new MessageDispatchTest();
@Override
public Object createObject() throws Exception {
MessageDispatch info = new MessageDispatch();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
MessageDispatch info = (MessageDispatch) object;
info.setConsumerId(createConsumerId("ConsumerId:1"));
info.setDestination(createActiveMQDestination("Destination:2"));
info.setMessage(createMessage("Message:3"));
inf
o.setRedeliveryCounter(1);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for MessageDispatch
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class MessageDispatchTest extends BaseCommandTestSupport {
+
+ public static MessageDispatchTest SINGLETON = new MessageDispatchTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ MessageDispatch info = new MessageDispatch();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ MessageDispatch info = (MessageDispatch) object;
+
+ info.setConsumerId(createConsumerId("ConsumerId:1"));
+ info.setDestination(createActiveMQDestination("Destination:2"));
+ info.setMessage(createMessage("Message:3"));
+ info.setRedeliveryCounter(1);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageIdTest.java
index 4709ae3..3602cf2 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageIdTest.java
@@ -1 +1,56 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for MessageId
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class MessageIdTest extends DataFileGeneratorTestSupport {
public static MessageIdTest SINGLETON = new MessageIdTest();
@Override
public Object createObject() throws Exception {
MessageId info = new MessageId();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
MessageId info = (MessageId) object;
info.setProducerId(createProducerId("ProducerId:1"));
info.setProducerSequenceId(1);
info.setBrokerSequenceId(2);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for MessageId
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class MessageIdTest extends DataFileGeneratorTestSupport {
+
+ public static MessageIdTest SINGLETON = new MessageIdTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ MessageId info = new MessageId();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ MessageId info = (MessageId) object;
+
+ info.setProducerId(createProducerId("ProducerId:1"));
+ info.setProducerSequenceId(1);
+ info.setBrokerSequenceId(2);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessagePullTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessagePullTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessagePullTest.java
index b12bdb5..57eaf1e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessagePullTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessagePullTest.java
@@ -1 +1,58 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for MessagePull
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class MessagePullTest extends BaseCommandTestSupport {
public static MessagePullTest SINGLETON = new MessagePullTest();
@Override
public Object createObject() throws Exception {
MessagePull info = new MessagePull();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
MessagePull info = (MessagePull) object;
info.setConsumerId(createConsumerId("ConsumerId:1"));
info.setDestination(createActiveMQDestination("Destination:2"));
info.setTimeout(1);
info.setCorrelationId("CorrelationId:3");
info.setMess
ageId(createMessageId("MessageId:4"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for MessagePull
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class MessagePullTest extends BaseCommandTestSupport {
+
+ public static MessagePullTest SINGLETON = new MessagePullTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ MessagePull info = new MessagePull();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ MessagePull info = (MessagePull) object;
+
+ info.setConsumerId(createConsumerId("ConsumerId:1"));
+ info.setDestination(createActiveMQDestination("Destination:2"));
+ info.setTimeout(1);
+ info.setCorrelationId("CorrelationId:3");
+ info.setMessageId(createMessageId("MessageId:4"));
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageTestSupport.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageTestSupport.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageTestSupport.java
index ad9f357..eb28e15 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageTestSupport.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageTestSupport.java
@@ -1 +1,86 @@
-/**
*
* 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.openwire.v7;
import org.apache.activemq.command.*;
/**
* Test case for the OpenWire marshalling for Message
*
*
* NOTE!: This file is auto generated - do not mod
ify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public abstract class MessageTestSupport extends BaseCommandTestSupport {
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
Message info = (Message) object;
info.setProducerId(createProducerId("ProducerId:1"));
info.setDestination(createActiveMQDestination("Destination:2"));
info.setTransactionId(createTransactionId("TransactionId:3"));
info.setOriginalDestination(createActiveMQDestination("OriginalDestination:4"));
info.setMessageId(createMessageId("MessageId:5"));
info.setOriginalTransactionId(createTransactionId("OriginalTransactionId:6"));
info.setGroupID("GroupID:7");
info.setGroupSequence(1);
info.setCorrelationId("CorrelationId:8");
info.setPersistent(true);
inf
o.setExpiration(1);
info.setPriority((byte) 1);
info.setReplyTo(createActiveMQDestination("ReplyTo:9"));
info.setTimestamp(2);
info.setType("Type:10");
{
byte data[] = "Content:11".getBytes();
info.setContent(new org.apache.activemq.util.ByteSequence(data, 0, data.length));
}
{
byte data[] = "MarshalledProperties:12".getBytes();
info.setMarshalledProperties(new org.apache.activemq.util.ByteSequence(data, 0, data.length));
}
info.setDataStructure(createDataStructure("DataStructure:13"));
info.setTargetConsumerId(createConsumerId("TargetConsumerId:14"));
info.setCompressed(false);
info.setRedeliveryCounter(2);
{
BrokerId value[] = new BrokerId[2];
for (int i = 0; i < 2; i++) {
value[i] = createBrokerId("BrokerPath:15");
}
info.setBrokerPath(value);
}
info.setArrival(3);
info.setUserID("UserID:16");
inf
o.setRecievedByDFBridge(true);
info.setDroppable(false);
{
BrokerId value[] = new BrokerId[2];
for (int i = 0; i < 2; i++) {
value[i] = createBrokerId("Cluster:17");
}
info.setCluster(value);
}
info.setBrokerInTime(4);
info.setBrokerOutTime(5);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for Message
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public abstract class MessageTestSupport extends BaseCommandTestSupport {
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ Message info = (Message) object;
+
+ info.setProducerId(createProducerId("ProducerId:1"));
+ info.setDestination(createActiveMQDestination("Destination:2"));
+ info.setTransactionId(createTransactionId("TransactionId:3"));
+ info.setOriginalDestination(createActiveMQDestination("OriginalDestination:4"));
+ info.setMessageId(createMessageId("MessageId:5"));
+ info.setOriginalTransactionId(createTransactionId("OriginalTransactionId:6"));
+ info.setGroupID("GroupID:7");
+ info.setGroupSequence(1);
+ info.setCorrelationId("CorrelationId:8");
+ info.setPersistent(true);
+ info.setExpiration(1);
+ info.setPriority((byte) 1);
+ info.setReplyTo(createActiveMQDestination("ReplyTo:9"));
+ info.setTimestamp(2);
+ info.setType("Type:10");
+ {
+ byte data[] = "Content:11".getBytes();
+ info.setContent(new org.apache.activemq.util.ByteSequence(data, 0, data.length));
+ }
+ {
+ byte data[] = "MarshalledProperties:12".getBytes();
+ info.setMarshalledProperties(new org.apache.activemq.util.ByteSequence(data, 0, data.length));
+ }
+ info.setDataStructure(createDataStructure("DataStructure:13"));
+ info.setTargetConsumerId(createConsumerId("TargetConsumerId:14"));
+ info.setCompressed(false);
+ info.setRedeliveryCounter(2);
+ {
+ BrokerId value[] = new BrokerId[2];
+ for (int i = 0; i < 2; i++) {
+ value[i] = createBrokerId("BrokerPath:15");
+ }
+ info.setBrokerPath(value);
+ }
+ info.setArrival(3);
+ info.setUserID("UserID:16");
+ info.setRecievedByDFBridge(true);
+ info.setDroppable(false);
+ {
+ BrokerId value[] = new BrokerId[2];
+ for (int i = 0; i < 2; i++) {
+ value[i] = createBrokerId("Cluster:17");
+ }
+ info.setCluster(value);
+ }
+ info.setBrokerInTime(4);
+ info.setBrokerOutTime(5);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/NetworkBridgeFilterTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/NetworkBridgeFilterTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/NetworkBridgeFilterTest.java
index c67fe1d..810c01c 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/NetworkBridgeFilterTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/NetworkBridgeFilterTest.java
@@ -1 +1,55 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for NetworkBridgeFilter
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class NetworkBridgeFilterTest extends DataFileGeneratorTestSupport {
public static NetworkBridgeFilterTest SINGLETON = new NetworkBridgeFilterTest();
@Override
public Object createObject() throws Exception {
NetworkBridgeFilter info = new NetworkBridgeFilter();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
NetworkBridgeFilter info = (NetworkBridgeFilter) object;
info.setNetworkTTL(1);
info.setNetworkBrokerId(createBrokerId("NetworkBrokerId:1"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for NetworkBridgeFilter
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class NetworkBridgeFilterTest extends DataFileGeneratorTestSupport {
+
+ public static NetworkBridgeFilterTest SINGLETON = new NetworkBridgeFilterTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ NetworkBridgeFilter info = new NetworkBridgeFilter();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ NetworkBridgeFilter info = (NetworkBridgeFilter) object;
+
+ info.setNetworkTTL(1);
+ info.setNetworkBrokerId(createBrokerId("NetworkBrokerId:1"));
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/PartialCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/PartialCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/PartialCommandTest.java
index b6529a6..b55769d 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/PartialCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/PartialCommandTest.java
@@ -1 +1,55 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for PartialCommand
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class PartialCommandTest extends DataFileGeneratorTestSupport {
public static PartialCommandTest SINGLETON = new PartialCommandTest();
@Override
public Object createObject() throws Exception {
PartialCommand info = new PartialCommand();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
PartialCommand info = (PartialCommand) object;
info.setCommandId(1);
info.setData("Data:1".getBytes());
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for PartialCommand
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class PartialCommandTest extends DataFileGeneratorTestSupport {
+
+ public static PartialCommandTest SINGLETON = new PartialCommandTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ PartialCommand info = new PartialCommand();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ PartialCommand info = (PartialCommand) object;
+
+ info.setCommandId(1);
+ info.setData("Data:1".getBytes());
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerAckTest.java
index 47ff8d8..95a340d 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerAckTest.java
@@ -1 +1,55 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ProducerAck
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ProducerAckTest extends BaseCommandTestSupport {
public static ProducerAckTest SINGLETON = new ProducerAckTest();
@Override
public Object createObject() throws Exception {
ProducerAck info = new ProducerAck();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ProducerAck info = (ProducerAck) object;
info.setProducerId(createProducerId("ProducerId:1"));
info.setSize(1);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ProducerAck
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ProducerAckTest extends BaseCommandTestSupport {
+
+ public static ProducerAckTest SINGLETON = new ProducerAckTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ProducerAck info = new ProducerAck();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ProducerAck info = (ProducerAck) object;
+
+ info.setProducerId(createProducerId("ProducerId:1"));
+ info.setSize(1);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerIdTest.java
index 1926ebb..babada7 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerIdTest.java
@@ -1 +1,56 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ProducerId
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ProducerIdTest extends DataFileGeneratorTestSupport {
public static ProducerIdTest SINGLETON = new ProducerIdTest();
@Override
public Object createObject() throws Exception {
ProducerId info = new ProducerId();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ProducerId info = (ProducerId) object;
info.setConnectionId("ConnectionId:1");
info.setValue(1);
info.setSessionId(2);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ProducerId
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ProducerIdTest extends DataFileGeneratorTestSupport {
+
+ public static ProducerIdTest SINGLETON = new ProducerIdTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ProducerId info = new ProducerId();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ProducerId info = (ProducerId) object;
+
+ info.setConnectionId("ConnectionId:1");
+ info.setValue(1);
+ info.setSessionId(2);
+ }
+}
[02/32] activemq-artemis git commit: Remove unnecessary casts
Posted by cl...@apache.org.
Remove unnecessary casts
Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/3b5ee6c7
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/3b5ee6c7
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/3b5ee6c7
Branch: refs/heads/master
Commit: 3b5ee6c7ea8c071c5a335c343b8e44002b5b3ec4
Parents: b0007c4
Author: Ville Skyttä <vi...@iki.fi>
Authored: Sun Dec 6 01:43:01 2015 +0200
Committer: Ville Skyttä <vi...@iki.fi>
Committed: Mon Dec 7 22:53:42 2015 +0200
----------------------------------------------------------------------
.../apache/activemq/artemis/boot/Artemis.java | 2 +-
.../apache/activemq/artemis/cli/Artemis.java | 2 +-
.../core/protocol/proton/TestConversions.java | 2 +-
.../protocol/openwire/OpenWireConnection.java | 2 +-
.../protocol/openwire/amq/AMQServerSession.java | 2 +-
.../selector/filter/UnaryExpression.java | 2 +-
.../activemq/artemis/selector/SelectorTest.java | 8 ++++----
.../core/server/impl/ServerSessionImpl.java | 2 +-
.../jms-to-rest/src/main/java/JmsReceive.java | 2 +-
.../rest/jms-to-rest/src/main/java/JmsSend.java | 2 +-
.../rest/push/src/main/java/PostOrder.java | 2 +-
.../push/src/main/java/ReceiveShipping.java | 2 +-
.../transport/tcp/TcpTransportFactory.java | 2 +-
.../ActiveMQXAConnectionFactoryTest.java | 2 +-
.../activemq/JmsMultipleBrokersTestSupport.java | 2 +-
.../org/apache/activemq/LoadTestBurnIn.java | 2 +-
.../activemq/MessageTransformationTest.java | 20 ++++++++++----------
.../activemq/PerDestinationStoreLimitTest.java | 2 +-
.../activemq/ProducerFlowControlTest.java | 2 +-
.../DurablePersistentFalseRestartTest.java | 2 +-
.../activemq/broker/MarshallingBrokerTest.java | 2 +-
.../broker/advisory/AdvisoryJmxTest.java | 2 +-
.../broker/jmx/MBeanOperationTimeoutTest.java | 2 +-
.../apache/activemq/broker/jmx/PurgeTest.java | 12 ++++++------
.../broker/policy/NoConsumerDeadLetterTest.java | 8 ++++----
.../policy/StrictOrderDispatchPolicyTest.java | 4 ++--
.../DestinationInterceptorDurableSubTest.java | 2 +-
.../broker/virtual/VirtualTopicDLQTest.java | 2 +-
.../org/apache/activemq/bugs/AMQ1853Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ2103Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ2171Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ3274Test.java | 4 ++--
.../org/apache/activemq/bugs/AMQ3674Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ4950Test.java | 2 +-
.../OptimizeAcknowledgeWithExpiredMsgsTest.java | 2 +-
.../bugs/RawRollbackSharedConsumerTests.java | 2 +-
.../apache/activemq/bugs/RawRollbackTests.java | 2 +-
.../command/ActiveMQMapMessageTest.java | 2 +-
.../command/ActiveMQStreamMessageTest.java | 2 +-
.../org/apache/activemq/spring/SpringTest.java | 2 +-
.../discovery/DiscoveryTransportBrokerTest.java | 2 +-
.../fanout/FanoutTransportBrokerTest.java | 2 +-
...ableSubscriberWithNetworkDisconnectTest.java | 2 +-
.../usecases/MultiBrokersMultiClientsTest.java | 2 +-
.../MulticastDiscoveryOnFaultyNetworkTest.java | 2 +-
.../ObjectMessageNotSerializableTest.java | 12 ++++++------
.../activemq/usecases/TopicRedeliverTest.java | 2 +-
.../usecases/TwoBrokerQueueSendReceiveTest.java | 2 +-
.../TwoBrokerTopicSendReceiveUsingTcpTest.java | 4 ++--
.../tests/extras/byteman/TimeoutXATest.java | 2 +-
.../interceptors/InterceptorTest.java | 4 ++--
.../jms/client/TopicCleanupTest.java | 2 +-
.../openwire/amq/JMSConsumer3Test.java | 2 +-
.../openwire/amq/JmsResourceProvider.java | 4 ++--
.../openwire/amq/JmsTopicRedeliverTest.java | 2 +-
.../openwire/amq/JmsTransactionTestSupport.java | 2 +-
.../openwire/amq/ProducerFlowControlTest.java | 2 +-
.../openwire/interop/GeneralInteropTest.java | 4 ++--
.../PagingWithFailoverAndCountersTest.java | 2 +-
.../persistence/XmlImportExportTest.java | 2 +-
60 files changed, 91 insertions(+), 91 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/artemis-boot/src/main/java/org/apache/activemq/artemis/boot/Artemis.java
----------------------------------------------------------------------
diff --git a/artemis-boot/src/main/java/org/apache/activemq/artemis/boot/Artemis.java b/artemis-boot/src/main/java/org/apache/activemq/artemis/boot/Artemis.java
index f2ee36f..b0458a2 100644
--- a/artemis-boot/src/main/java/org/apache/activemq/artemis/boot/Artemis.java
+++ b/artemis-boot/src/main/java/org/apache/activemq/artemis/boot/Artemis.java
@@ -48,7 +48,7 @@ public class Artemis {
/** This is a good method for booting an embedded command */
public static Object execute(File artemisHome, File artemisInstance, List<String> args) throws Throwable {
- return execute(artemisHome, artemisInstance, (String[]) args.toArray(new String[args.size()]));
+ return execute(artemisHome, artemisInstance, args.toArray(new String[args.size()]));
}
/** This is a good method for booting an embedded command */
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/Artemis.java
----------------------------------------------------------------------
diff --git a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/Artemis.java b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/Artemis.java
index ace192e..2faccf9 100644
--- a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/Artemis.java
+++ b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/Artemis.java
@@ -52,7 +52,7 @@ public class Artemis {
}
public static Object execute(File artemisHome, File artemisInstance, List<String> args) throws Exception {
- return execute(artemisHome, artemisInstance, (String[]) args.toArray(new String[args.size()]));
+ return execute(artemisHome, artemisInstance, args.toArray(new String[args.size()]));
}
public static Object execute(File artemisHome, File artemisInstance, String... args) throws Exception {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/artemis-protocols/artemis-amqp-protocol/src/test/java/org/apache/activemq/artemis/core/protocol/proton/TestConversions.java
----------------------------------------------------------------------
diff --git a/artemis-protocols/artemis-amqp-protocol/src/test/java/org/apache/activemq/artemis/core/protocol/proton/TestConversions.java b/artemis-protocols/artemis-amqp-protocol/src/test/java/org/apache/activemq/artemis/core/protocol/proton/TestConversions.java
index b563e61..de514bb 100644
--- a/artemis-protocols/artemis-amqp-protocol/src/test/java/org/apache/activemq/artemis/core/protocol/proton/TestConversions.java
+++ b/artemis-protocols/artemis-amqp-protocol/src/test/java/org/apache/activemq/artemis/core/protocol/proton/TestConversions.java
@@ -133,7 +133,7 @@ public class TestConversions extends Assert {
AmqpValue value = (AmqpValue) outMessage.getBody();
Map mapoutput = (Map) value.getValue();
- assertEquals(Integer.valueOf(1), (Integer) mapoutput.get("someint"));
+ assertEquals(Integer.valueOf(1), mapoutput.get("someint"));
System.out.println("output = " + obj);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/OpenWireConnection.java
----------------------------------------------------------------------
diff --git a/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/OpenWireConnection.java b/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/OpenWireConnection.java
index 4f1f0f6..0de5990 100644
--- a/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/OpenWireConnection.java
+++ b/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/OpenWireConnection.java
@@ -230,7 +230,7 @@ public class OpenWireConnection implements RemotingConnection, CommandVisitor, S
}
else {
try {
- response = ((Command) command).visit(this);
+ response = command.visit(this);
}
catch (Exception e) {
if (responseRequired) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/amq/AMQServerSession.java
----------------------------------------------------------------------
diff --git a/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/amq/AMQServerSession.java b/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/amq/AMQServerSession.java
index 2a39e03..08cb1ee 100644
--- a/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/amq/AMQServerSession.java
+++ b/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/amq/AMQServerSession.java
@@ -355,7 +355,7 @@ public class AMQServerSession extends ServerSessionImpl {
ManagementService managementService2,
boolean supportLargeMessage,
Integer credits) throws Exception {
- return new AMQServerConsumer(consumerID, this, (QueueBinding) binding, filter, started, browseOnly, storageManager, callback, preAcknowledge, strictUpdateDeliveryCount, managementService, supportLargeMessage, credits);
+ return new AMQServerConsumer(consumerID, this, binding, filter, started, browseOnly, storageManager, callback, preAcknowledge, strictUpdateDeliveryCount, managementService, supportLargeMessage, credits);
}
public AMQServerConsumer getConsumer(long nativeId) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/artemis-selector/src/main/java/org/apache/activemq/artemis/selector/filter/UnaryExpression.java
----------------------------------------------------------------------
diff --git a/artemis-selector/src/main/java/org/apache/activemq/artemis/selector/filter/UnaryExpression.java b/artemis-selector/src/main/java/org/apache/activemq/artemis/selector/filter/UnaryExpression.java
index 6df808e..0c1e66f 100755
--- a/artemis-selector/src/main/java/org/apache/activemq/artemis/selector/filter/UnaryExpression.java
+++ b/artemis-selector/src/main/java/org/apache/activemq/artemis/selector/filter/UnaryExpression.java
@@ -105,7 +105,7 @@ public abstract class UnaryExpression implements Expression {
int count = 0;
for (Iterator<Object> i = inList.iterator(); i.hasNext(); ) {
- Object o = (Object) i.next();
+ Object o = i.next();
if (count != 0) {
answer.append(", ");
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/artemis-selector/src/test/java/org/apache/activemq/artemis/selector/SelectorTest.java
----------------------------------------------------------------------
diff --git a/artemis-selector/src/test/java/org/apache/activemq/artemis/selector/SelectorTest.java b/artemis-selector/src/test/java/org/apache/activemq/artemis/selector/SelectorTest.java
index 6808bdd..55c306c 100755
--- a/artemis-selector/src/test/java/org/apache/activemq/artemis/selector/SelectorTest.java
+++ b/artemis-selector/src/test/java/org/apache/activemq/artemis/selector/SelectorTest.java
@@ -466,10 +466,10 @@ public class SelectorTest {
message.setByteProperty("byteProp", (byte) 123);
message.setByteProperty("byteProp2", (byte) 33);
message.setShortProperty("shortProp", (short) 123);
- message.setIntProperty("intProp", (int) 123);
- message.setLongProperty("longProp", (long) 123);
- message.setFloatProperty("floatProp", (float) 123);
- message.setDoubleProperty("doubleProp", (double) 123);
+ message.setIntProperty("intProp", 123);
+ message.setLongProperty("longProp", 123);
+ message.setFloatProperty("floatProp", 123);
+ message.setDoubleProperty("doubleProp", 123);
message.setIntProperty("rank", 123);
message.setIntProperty("version", 2);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ServerSessionImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ServerSessionImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ServerSessionImpl.java
index 77345e3..26d9bb4 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ServerSessionImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ServerSessionImpl.java
@@ -464,7 +464,7 @@ public class ServerSessionImpl implements ServerSession, FailureListener {
ManagementService managementService2,
boolean supportLargeMessage,
Integer credits) throws Exception {
- return new ServerConsumerImpl(consumerID, this, (QueueBinding) binding, filter, started, browseOnly, storageManager, callback, preAcknowledge, strictUpdateDeliveryCount, managementService, supportLargeMessage, credits);
+ return new ServerConsumerImpl(consumerID, this, binding, filter, started, browseOnly, storageManager, callback, preAcknowledge, strictUpdateDeliveryCount, managementService, supportLargeMessage, credits);
}
@Override
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/examples/features/standard/rest/jms-to-rest/src/main/java/JmsReceive.java
----------------------------------------------------------------------
diff --git a/examples/features/standard/rest/jms-to-rest/src/main/java/JmsReceive.java b/examples/features/standard/rest/jms-to-rest/src/main/java/JmsReceive.java
index d3c05b2..e5fa8ee 100644
--- a/examples/features/standard/rest/jms-to-rest/src/main/java/JmsReceive.java
+++ b/examples/features/standard/rest/jms-to-rest/src/main/java/JmsReceive.java
@@ -31,7 +31,7 @@ public class JmsReceive {
public static void main(String[] args) throws Exception {
System.out.println("Receive Setup...");
ConnectionFactory factory = JmsHelper.createConnectionFactory("activemq-client.xml");
- Destination destination = (ActiveMQDestination) ActiveMQDestination.fromAddress("jms.queue.orders");
+ Destination destination = ActiveMQDestination.fromAddress("jms.queue.orders");
Connection conn = factory.createConnection();
try {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/examples/features/standard/rest/jms-to-rest/src/main/java/JmsSend.java
----------------------------------------------------------------------
diff --git a/examples/features/standard/rest/jms-to-rest/src/main/java/JmsSend.java b/examples/features/standard/rest/jms-to-rest/src/main/java/JmsSend.java
index bf3370e..e3f9317 100644
--- a/examples/features/standard/rest/jms-to-rest/src/main/java/JmsSend.java
+++ b/examples/features/standard/rest/jms-to-rest/src/main/java/JmsSend.java
@@ -28,7 +28,7 @@ public class JmsSend {
public static void main(String[] args) throws Exception {
ConnectionFactory factory = JmsHelper.createConnectionFactory("activemq-client.xml");
- Destination destination = (ActiveMQDestination) ActiveMQDestination.fromAddress("jms.queue.orders");
+ Destination destination = ActiveMQDestination.fromAddress("jms.queue.orders");
Connection conn = factory.createConnection();
try {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/examples/features/standard/rest/push/src/main/java/PostOrder.java
----------------------------------------------------------------------
diff --git a/examples/features/standard/rest/push/src/main/java/PostOrder.java b/examples/features/standard/rest/push/src/main/java/PostOrder.java
index 96786e6..ed128dd 100644
--- a/examples/features/standard/rest/push/src/main/java/PostOrder.java
+++ b/examples/features/standard/rest/push/src/main/java/PostOrder.java
@@ -28,7 +28,7 @@ public class PostOrder {
public static void main(String[] args) throws Exception {
ConnectionFactory factory = JmsHelper.createConnectionFactory("activemq-client.xml");
- Destination destination = (ActiveMQDestination) ActiveMQDestination.fromAddress("jms.queue.orders");
+ Destination destination = ActiveMQDestination.fromAddress("jms.queue.orders");
Connection conn = factory.createConnection();
try {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/examples/features/standard/rest/push/src/main/java/ReceiveShipping.java
----------------------------------------------------------------------
diff --git a/examples/features/standard/rest/push/src/main/java/ReceiveShipping.java b/examples/features/standard/rest/push/src/main/java/ReceiveShipping.java
index 80a3892..679e94d 100644
--- a/examples/features/standard/rest/push/src/main/java/ReceiveShipping.java
+++ b/examples/features/standard/rest/push/src/main/java/ReceiveShipping.java
@@ -30,7 +30,7 @@ public class ReceiveShipping {
public static void main(String[] args) throws Exception {
ConnectionFactory factory = JmsHelper.createConnectionFactory("activemq-client.xml");
- Destination destination = (ActiveMQDestination) ActiveMQDestination.fromAddress("jms.queue.shipping");
+ Destination destination = ActiveMQDestination.fromAddress("jms.queue.shipping");
Connection conn = factory.createConnection();
try {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/transport/tcp/TcpTransportFactory.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/transport/tcp/TcpTransportFactory.java b/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/transport/tcp/TcpTransportFactory.java
index 73fbdcd..58d51ca 100644
--- a/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/transport/tcp/TcpTransportFactory.java
+++ b/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/transport/tcp/TcpTransportFactory.java
@@ -98,7 +98,7 @@ public class TcpTransportFactory extends TransportFactory {
@SuppressWarnings("rawtypes")
public Transport compositeConfigure(Transport transport, WireFormat format, Map options) {
- TcpTransport tcpTransport = (TcpTransport) transport.narrow(TcpTransport.class);
+ TcpTransport tcpTransport = transport.narrow(TcpTransport.class);
IntrospectionSupport.setProperties(tcpTransport, options);
Map<String, Object> socketOptions = IntrospectionSupport.extractProperties(options, "socket.");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/ActiveMQXAConnectionFactoryTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/ActiveMQXAConnectionFactoryTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/ActiveMQXAConnectionFactoryTest.java
index 3ee3e85..9424598 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/ActiveMQXAConnectionFactoryTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/ActiveMQXAConnectionFactoryTest.java
@@ -491,7 +491,7 @@ public class ActiveMQXAConnectionFactoryTest extends CombinationTestSupport {
private void assertTransactionGoneFromFailoverState(ActiveMQXAConnection connection1, Xid tid) throws Exception {
- FailoverTransport transport = (FailoverTransport) connection1.getTransport().narrow(FailoverTransport.class);
+ FailoverTransport transport = connection1.getTransport().narrow(FailoverTransport.class);
TransactionInfo info = new TransactionInfo(connection1.getConnectionInfo().getConnectionId(), new XATransactionId(tid), TransactionInfo.COMMIT_ONE_PHASE);
assertNull("transaction should not exist in the state tracker", transport.getStateTracker().processCommitTransactionOnePhase(info));
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsMultipleBrokersTestSupport.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsMultipleBrokersTestSupport.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsMultipleBrokersTestSupport.java
index 6e2d284..7848d6c 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsMultipleBrokersTestSupport.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsMultipleBrokersTestSupport.java
@@ -619,7 +619,7 @@ public class JmsMultipleBrokersTestSupport extends CombinationTestSupport {
}
public MessageConsumer createDurableSubscriber(Topic dest, Session sess, String name) throws Exception {
- MessageConsumer client = sess.createDurableSubscriber((Topic) dest, name);
+ MessageConsumer client = sess.createDurableSubscriber(dest, name);
MessageIdList messageIdList = new MessageIdList();
messageIdList.setParent(allMessages);
client.setMessageListener(messageIdList);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/LoadTestBurnIn.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/LoadTestBurnIn.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/LoadTestBurnIn.java
index 94bd3d5..2504765 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/LoadTestBurnIn.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/LoadTestBurnIn.java
@@ -94,7 +94,7 @@ public class LoadTestBurnIn extends JmsTestSupport {
@Override
protected ConnectionFactory createConnectionFactory() throws URISyntaxException, IOException {
- return new ActiveMQConnectionFactory(((TransportConnector) broker.getTransportConnectors().get(0)).getServer().getConnectURI());
+ return new ActiveMQConnectionFactory(broker.getTransportConnectors().get(0).getServer().getConnectURI());
}
public void initCombosForTestSendReceive() {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/MessageTransformationTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/MessageTransformationTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/MessageTransformationTest.java
index 25a8fad..7ab95b3 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/MessageTransformationTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/MessageTransformationTest.java
@@ -64,30 +64,30 @@ public class MessageTransformationTest extends TestCase {
* implementation.
*/
public void testTransformDestination() throws Exception {
- assertTrue("Transforming a TempQueue destination to an ActiveMQTempQueue", ActiveMQMessageTransformation.transformDestination((TemporaryQueue) new ActiveMQTempQueue()) instanceof ActiveMQTempQueue);
+ assertTrue("Transforming a TempQueue destination to an ActiveMQTempQueue", ActiveMQMessageTransformation.transformDestination(new ActiveMQTempQueue()) instanceof ActiveMQTempQueue);
- assertTrue("Transforming a TempTopic destination to an ActiveMQTempTopic", ActiveMQMessageTransformation.transformDestination((TemporaryTopic) new ActiveMQTempTopic()) instanceof ActiveMQTempTopic);
+ assertTrue("Transforming a TempTopic destination to an ActiveMQTempTopic", ActiveMQMessageTransformation.transformDestination(new ActiveMQTempTopic()) instanceof ActiveMQTempTopic);
- assertTrue("Transforming a Queue destination to an ActiveMQQueue", ActiveMQMessageTransformation.transformDestination((Queue) new ActiveMQQueue()) instanceof ActiveMQQueue);
+ assertTrue("Transforming a Queue destination to an ActiveMQQueue", ActiveMQMessageTransformation.transformDestination(new ActiveMQQueue()) instanceof ActiveMQQueue);
- assertTrue("Transforming a Topic destination to an ActiveMQTopic", ActiveMQMessageTransformation.transformDestination((Topic) new ActiveMQTopic()) instanceof ActiveMQTopic);
+ assertTrue("Transforming a Topic destination to an ActiveMQTopic", ActiveMQMessageTransformation.transformDestination(new ActiveMQTopic()) instanceof ActiveMQTopic);
- assertTrue("Transforming a Destination to an ActiveMQDestination", ActiveMQMessageTransformation.transformDestination((ActiveMQDestination) new ActiveMQTopic()) instanceof ActiveMQDestination);
+ assertTrue("Transforming a Destination to an ActiveMQDestination", ActiveMQMessageTransformation.transformDestination(new ActiveMQTopic()) instanceof ActiveMQDestination);
}
/**
* Tests transforming messages into ActiveMQ's message implementation.
*/
public void testTransformMessage() throws Exception {
- assertTrue("Transforming a BytesMessage message into an ActiveMQBytesMessage", ActiveMQMessageTransformation.transformMessage((BytesMessage) new ActiveMQBytesMessage(), null) instanceof ActiveMQBytesMessage);
+ assertTrue("Transforming a BytesMessage message into an ActiveMQBytesMessage", ActiveMQMessageTransformation.transformMessage(new ActiveMQBytesMessage(), null) instanceof ActiveMQBytesMessage);
- assertTrue("Transforming a MapMessage message to an ActiveMQMapMessage", ActiveMQMessageTransformation.transformMessage((MapMessage) new ActiveMQMapMessage(), null) instanceof ActiveMQMapMessage);
+ assertTrue("Transforming a MapMessage message to an ActiveMQMapMessage", ActiveMQMessageTransformation.transformMessage(new ActiveMQMapMessage(), null) instanceof ActiveMQMapMessage);
- assertTrue("Transforming an ObjectMessage message to an ActiveMQObjectMessage", ActiveMQMessageTransformation.transformMessage((ObjectMessage) new ActiveMQObjectMessage(), null) instanceof ActiveMQObjectMessage);
+ assertTrue("Transforming an ObjectMessage message to an ActiveMQObjectMessage", ActiveMQMessageTransformation.transformMessage(new ActiveMQObjectMessage(), null) instanceof ActiveMQObjectMessage);
- assertTrue("Transforming a StreamMessage message to an ActiveMQStreamMessage", ActiveMQMessageTransformation.transformMessage((StreamMessage) new ActiveMQStreamMessage(), null) instanceof ActiveMQStreamMessage);
+ assertTrue("Transforming a StreamMessage message to an ActiveMQStreamMessage", ActiveMQMessageTransformation.transformMessage(new ActiveMQStreamMessage(), null) instanceof ActiveMQStreamMessage);
- assertTrue("Transforming a TextMessage message to an ActiveMQTextMessage", ActiveMQMessageTransformation.transformMessage((TextMessage) new ActiveMQTextMessage(), null) instanceof ActiveMQTextMessage);
+ assertTrue("Transforming a TextMessage message to an ActiveMQTextMessage", ActiveMQMessageTransformation.transformMessage(new ActiveMQTextMessage(), null) instanceof ActiveMQTextMessage);
assertTrue("Transforming an ActiveMQMessage message to an ActiveMQMessage", ActiveMQMessageTransformation.transformMessage(new ActiveMQMessage(), null) instanceof ActiveMQMessage);
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/PerDestinationStoreLimitTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/PerDestinationStoreLimitTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/PerDestinationStoreLimitTest.java
index f55dee2..0f70d8f 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/PerDestinationStoreLimitTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/PerDestinationStoreLimitTest.java
@@ -190,7 +190,7 @@ public class PerDestinationStoreLimitTest extends JmsTestSupport {
@Override
protected void tearDown() throws Exception {
if (connection != null) {
- TcpTransport t = (TcpTransport) connection.getTransport().narrow(TcpTransport.class);
+ TcpTransport t = connection.getTransport().narrow(TcpTransport.class);
t.getTransportListener().onException(new IOException("Disposed."));
connection.getTransport().stop();
super.tearDown();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/ProducerFlowControlTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/ProducerFlowControlTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/ProducerFlowControlTest.java
index ea4bc16..0c6433e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/ProducerFlowControlTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/ProducerFlowControlTest.java
@@ -346,7 +346,7 @@ public class ProducerFlowControlTest extends JmsTestSupport {
@Override
protected void tearDown() throws Exception {
if (connection != null) {
- TcpTransport t = (TcpTransport) connection.getTransport().narrow(TcpTransport.class);
+ TcpTransport t = connection.getTransport().narrow(TcpTransport.class);
t.getTransportListener().onException(new IOException("Disposed."));
connection.getTransport().stop();
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/DurablePersistentFalseRestartTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/DurablePersistentFalseRestartTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/DurablePersistentFalseRestartTest.java
index a9bb7a9..1d1c7cf 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/DurablePersistentFalseRestartTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/DurablePersistentFalseRestartTest.java
@@ -59,7 +59,7 @@ public class DurablePersistentFalseRestartTest extends BrokerRestartTestSupport
restartBroker();
// make failover aware of the restarted auto assigned port
- ((FailoverTransport) connection.getTransport().narrow(FailoverTransport.class)).add(true, broker.getTransportConnectors().get(0).getPublishableConnectString());
+ connection.getTransport().narrow(FailoverTransport.class).add(true, broker.getTransportConnectors().get(0).getPublishableConnectString());
TextMessage msg = (TextMessage) consumer.receive(4000);
assertNull("did not get a message when persistent=false, message: " + msg, msg);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/MarshallingBrokerTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/MarshallingBrokerTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/MarshallingBrokerTest.java
index ea37fb3..36c5e71 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/MarshallingBrokerTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/MarshallingBrokerTest.java
@@ -60,7 +60,7 @@ public class MarshallingBrokerTest extends BrokerTest {
}
protected void dispatch(Command command) throws InterruptedException, IOException {
- super.dispatch((Command) wireFormat.unmarshal(wireFormat.marshal(command)));
+ super.dispatch(wireFormat.unmarshal(wireFormat.marshal(command)));
}
;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/advisory/AdvisoryJmxTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/advisory/AdvisoryJmxTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/advisory/AdvisoryJmxTest.java
index ae41515..ca73238 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/advisory/AdvisoryJmxTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/advisory/AdvisoryJmxTest.java
@@ -50,7 +50,7 @@ public class AdvisoryJmxTest extends EmbeddedBrokerTestSupport {
connector.connect();
MBeanServerConnection connection = connector.getMBeanServerConnection();
ObjectName name = new ObjectName("org.apache.activemq:type=Broker,brokerName=localhost");
- BrokerViewMBean brokerMbean = (BrokerViewMBean) MBeanServerInvocationHandler.newProxyInstance(connection, name, BrokerViewMBean.class, true);
+ BrokerViewMBean brokerMbean = MBeanServerInvocationHandler.newProxyInstance(connection, name, BrokerViewMBean.class, true);
Connection conn = createConnection();
Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
MessageConsumer consumer = sess.createConsumer(sess.createTopic("ActiveMQ.Advisory.Queue"));
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/jmx/MBeanOperationTimeoutTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/jmx/MBeanOperationTimeoutTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/jmx/MBeanOperationTimeoutTest.java
index cb26d86..5747efe 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/jmx/MBeanOperationTimeoutTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/jmx/MBeanOperationTimeoutTest.java
@@ -66,7 +66,7 @@ public class MBeanOperationTimeoutTest {
objectNameStr += ",destinationType=Queue,destinationName=" + destinationName;
ObjectName queueViewMBeanName = assertRegisteredObjectName(objectNameStr);
- QueueViewMBean proxy = (QueueViewMBean) MBeanServerInvocationHandler.newProxyInstance(mbeanServer, queueViewMBeanName, QueueViewMBean.class, true);
+ QueueViewMBean proxy = MBeanServerInvocationHandler.newProxyInstance(mbeanServer, queueViewMBeanName, QueueViewMBean.class, true);
long count = proxy.getQueueSize();
assertEquals("Queue size", count, messageCount);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/jmx/PurgeTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/jmx/PurgeTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/jmx/PurgeTest.java
index 24878a2..54e5793 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/jmx/PurgeTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/jmx/PurgeTest.java
@@ -81,7 +81,7 @@ public class PurgeTest extends EmbeddedBrokerTestSupport {
String objectNameStr = broker.getBrokerObjectName().toString();
objectNameStr += ",destinationType=Queue,destinationName=" + getDestinationString();
ObjectName queueViewMBeanName = assertRegisteredObjectName(objectNameStr);
- QueueViewMBean proxy = (QueueViewMBean) MBeanServerInvocationHandler.newProxyInstance(mbeanServer, queueViewMBeanName, QueueViewMBean.class, true);
+ QueueViewMBean proxy = MBeanServerInvocationHandler.newProxyInstance(mbeanServer, queueViewMBeanName, QueueViewMBean.class, true);
long count = proxy.getQueueSize();
assertEquals("Queue size", count, messageCount);
@@ -130,7 +130,7 @@ public class PurgeTest extends EmbeddedBrokerTestSupport {
assertEquals(message, received);
ObjectName brokerViewMBeanName = assertRegisteredObjectName(domain + ":type=Broker,brokerName=localhost");
- BrokerViewMBean brokerProxy = (BrokerViewMBean) MBeanServerInvocationHandler.newProxyInstance(mbeanServer, brokerViewMBeanName, BrokerViewMBean.class, true);
+ BrokerViewMBean brokerProxy = MBeanServerInvocationHandler.newProxyInstance(mbeanServer, brokerViewMBeanName, BrokerViewMBean.class, true);
brokerProxy.removeQueue(getDestinationString());
producer.send(message);
@@ -153,10 +153,10 @@ public class PurgeTest extends EmbeddedBrokerTestSupport {
// Now get the QueueViewMBean and purge
ObjectName queueViewMBeanName = assertRegisteredObjectName(domain + ":type=Broker,brokerName=localhost,destinationType=Queue,destinationName=" + getDestinationString());
- QueueViewMBean queueProxy = (QueueViewMBean) MBeanServerInvocationHandler.newProxyInstance(mbeanServer, queueViewMBeanName, QueueViewMBean.class, true);
+ QueueViewMBean queueProxy = MBeanServerInvocationHandler.newProxyInstance(mbeanServer, queueViewMBeanName, QueueViewMBean.class, true);
ObjectName brokerViewMBeanName = assertRegisteredObjectName(domain + ":type=Broker,brokerName=localhost");
- BrokerViewMBean brokerProxy = (BrokerViewMBean) MBeanServerInvocationHandler.newProxyInstance(mbeanServer, brokerViewMBeanName, BrokerViewMBean.class, true);
+ BrokerViewMBean brokerProxy = MBeanServerInvocationHandler.newProxyInstance(mbeanServer, brokerViewMBeanName, BrokerViewMBean.class, true);
long count = queueProxy.getQueueSize();
assertEquals("Queue size", count, messageCount);
@@ -166,7 +166,7 @@ public class PurgeTest extends EmbeddedBrokerTestSupport {
sendMessages(session, messageCount);
queueViewMBeanName = assertRegisteredObjectName(domain + ":type=Broker,brokerName=localhost,destinationType=Queue,destinationName=" + getDestinationString());
- queueProxy = (QueueViewMBean) MBeanServerInvocationHandler.newProxyInstance(mbeanServer, queueViewMBeanName, QueueViewMBean.class, true);
+ queueProxy = MBeanServerInvocationHandler.newProxyInstance(mbeanServer, queueViewMBeanName, QueueViewMBean.class, true);
count = queueProxy.getQueueSize();
assertEquals("Queue size", count, messageCount);
@@ -186,7 +186,7 @@ public class PurgeTest extends EmbeddedBrokerTestSupport {
sendMessages(session, messageCount);
queueViewMBeanName = assertRegisteredObjectName(domain + ":type=Broker,brokerName=localhost,destinationType=Queue,destinationName=" + getDestinationString());
- queueProxy = (QueueViewMBean) MBeanServerInvocationHandler.newProxyInstance(mbeanServer, queueViewMBeanName, QueueViewMBean.class, true);
+ queueProxy = MBeanServerInvocationHandler.newProxyInstance(mbeanServer, queueViewMBeanName, QueueViewMBean.class, true);
count = queueProxy.getQueueSize();
assertEquals("Queue size", count, messageCount);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/NoConsumerDeadLetterTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/NoConsumerDeadLetterTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/NoConsumerDeadLetterTest.java
index 7258f42..3e4f0e4 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/NoConsumerDeadLetterTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/NoConsumerDeadLetterTest.java
@@ -60,8 +60,8 @@ public class NoConsumerDeadLetterTest extends DeadLetterTestSupport {
public void testConsumerReceivesMessages() throws Exception {
this.topic = false;
- ActiveMQConnectionFactory factory = (ActiveMQConnectionFactory) createConnectionFactory();
- connection = (ActiveMQConnection) factory.createConnection();
+ ActiveMQConnectionFactory factory = createConnectionFactory();
+ connection = factory.createConnection();
connection.start();
Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
@@ -79,8 +79,8 @@ public class NoConsumerDeadLetterTest extends DeadLetterTestSupport {
Thread.sleep(1000);
- factory = (ActiveMQConnectionFactory) createConnectionFactory();
- connection = (ActiveMQConnection) factory.createConnection();
+ factory = createConnectionFactory();
+ connection = factory.createConnection();
connection.start();
session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/StrictOrderDispatchPolicyTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/StrictOrderDispatchPolicyTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/StrictOrderDispatchPolicyTest.java
index 395c2ec..c655a48 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/StrictOrderDispatchPolicyTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/StrictOrderDispatchPolicyTest.java
@@ -122,10 +122,10 @@ public class StrictOrderDispatchPolicyTest extends TopicSubscriptionTest {
// Get basis of order
Iterator<MessageConsumer> i = consumers.keySet().iterator();
- MessageIdList messageOrder = (MessageIdList) consumers.get(i.next());
+ MessageIdList messageOrder = consumers.get(i.next());
for (; i.hasNext(); ) {
- MessageIdList messageIdList = (MessageIdList) consumers.get(i.next());
+ MessageIdList messageIdList = consumers.get(i.next());
assertTrue("Messages are not ordered.", messageOrder.equals(messageIdList));
}
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/virtual/DestinationInterceptorDurableSubTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/virtual/DestinationInterceptorDurableSubTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/virtual/DestinationInterceptorDurableSubTest.java
index 205a7b9..39e9d2a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/virtual/DestinationInterceptorDurableSubTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/virtual/DestinationInterceptorDurableSubTest.java
@@ -173,7 +173,7 @@ public class DestinationInterceptorDurableSubTest extends EmbeddedBrokerTestSupp
// AMQ-4571 only removed the latter not the former on unsubscribe(), so we need
// to check against both.
ObjectName[] names = (ObjectName[]) mbsc.getAttribute(new ObjectName(JMX_CONTEXT_BASE_NAME + topicName), "Subscriptions");
- ObjectInstance instance = (ObjectInstance) mbsc.getObjectInstance(new ObjectName(JMX_CONTEXT_BASE_NAME +
+ ObjectInstance instance = mbsc.getObjectInstance(new ObjectName(JMX_CONTEXT_BASE_NAME +
topicName +
",endpoint=Consumer,clientId=myId1,consumerId=Durable(myId1_" +
subName +
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicDLQTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicDLQTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicDLQTest.java
index 9e8974b..d05a5c7 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicDLQTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualTopicDLQTest.java
@@ -265,7 +265,7 @@ public class VirtualTopicDLQTest extends TestCase {
producer.setDeliveryMode(DeliveryMode.NON_PERSISTENT);
for (int i = 0; i < numberMessages; i++) {
- TextMessage message = (TextMessage) session.createTextMessage("I am a message :: " + String.valueOf(i));
+ TextMessage message = session.createTextMessage("I am a message :: " + String.valueOf(i));
try {
producer.send(message);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1853Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1853Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1853Test.java
index 85d6c83..86326de 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1853Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1853Test.java
@@ -194,7 +194,7 @@ public class AMQ1853Test {
producer.setDeliveryMode(DeliveryMode.NON_PERSISTENT);
for (int i = 0; i < (producerMessages); i++) {
- TextMessage message = (TextMessage) session.createTextMessage();
+ TextMessage message = session.createTextMessage();
message.setLongProperty("TestTime", (System.currentTimeMillis()));
try {
producer.send(message);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2103Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2103Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2103Test.java
index 2cb6ad0..906257a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2103Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2103Test.java
@@ -75,7 +75,7 @@ public class AMQ2103Test extends BrokerTestSupport {
factory.setCopyMessageOnSend(false);
Connection connection = factory.createConnection();
- Session session = (ActiveMQSession) connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
+ Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
ActiveMQDestination destination = new ActiveMQQueue("testQ");
MessageConsumer consumer = session.createConsumer(destination);
connection.start();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2171Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2171Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2171Test.java
index 510ccb1..52ee09b 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2171Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2171Test.java
@@ -89,7 +89,7 @@ public class AMQ2171Test implements Thread.UncaughtExceptionHandler {
Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
@SuppressWarnings("unchecked")
- Enumeration<Message> unread = (Enumeration<Message>) session.createBrowser(destination).getEnumeration();
+ Enumeration<Message> unread = session.createBrowser(destination).getEnumeration();
int count = 0;
while (unread.hasMoreElements()) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3274Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3274Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3274Test.java
index 08c2f78..6c2405c 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3274Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3274Test.java
@@ -372,7 +372,7 @@ public class AMQ3274Test {
org.apache.activemq.command.ActiveMQDestination dest;
if (conn instanceof org.apache.activemq.ActiveMQConnection) {
- dest = org.apache.activemq.command.ActiveMQDestination.createDestination(dest_name, (byte) org.apache.activemq.command.ActiveMQDestination.QUEUE_TYPE);
+ dest = org.apache.activemq.command.ActiveMQDestination.createDestination(dest_name, org.apache.activemq.command.ActiveMQDestination.QUEUE_TYPE);
((org.apache.activemq.ActiveMQConnection) conn).destroyDestination(dest);
}
}
@@ -381,7 +381,7 @@ public class AMQ3274Test {
org.apache.activemq.command.ActiveMQDestination dest;
if (conn instanceof org.apache.activemq.ActiveMQConnection) {
- dest = org.apache.activemq.command.ActiveMQDestination.createDestination(dest_name, (byte) org.apache.activemq.command.ActiveMQDestination.TOPIC_TYPE);
+ dest = org.apache.activemq.command.ActiveMQDestination.createDestination(dest_name, org.apache.activemq.command.ActiveMQDestination.TOPIC_TYPE);
((org.apache.activemq.ActiveMQConnection) conn).destroyDestination(dest);
}
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3674Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3674Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3674Test.java
index 8fc15dc..c691c42 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3674Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3674Test.java
@@ -56,7 +56,7 @@ public class AMQ3674Test {
consumerConnection.setClientID("subscriber1");
Session consumerMQSession = consumerConnection.createSession(false, Session.CLIENT_ACKNOWLEDGE);
- TopicSubscriber activeConsumer = (TopicSubscriber) consumerMQSession.createDurableSubscriber(destination, "myTopic");
+ TopicSubscriber activeConsumer = consumerMQSession.createDurableSubscriber(destination, "myTopic");
consumerConnection.start();
Session session = producerConnection.createSession(false, Session.AUTO_ACKNOWLEDGE);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4950Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4950Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4950Test.java
index 1f4edc0..74d0817 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4950Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4950Test.java
@@ -161,7 +161,7 @@ public class AMQ4950Test extends BrokerRestartTestSupport {
private void assertTransactionGoneFromFailoverState(ActiveMQXAConnection connection1, Xid tid) throws Exception {
- FailoverTransport transport = (FailoverTransport) connection1.getTransport().narrow(FailoverTransport.class);
+ FailoverTransport transport = connection1.getTransport().narrow(FailoverTransport.class);
TransactionInfo info = new TransactionInfo(connection1.getConnectionInfo().getConnectionId(), new XATransactionId(tid), TransactionInfo.COMMIT_ONE_PHASE);
assertNull("transaction should not exist in the state tracker", transport.getStateTracker().processCommitTransactionOnePhase(info));
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/OptimizeAcknowledgeWithExpiredMsgsTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/OptimizeAcknowledgeWithExpiredMsgsTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/OptimizeAcknowledgeWithExpiredMsgsTest.java
index 6b624e2..4bc92ad 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/OptimizeAcknowledgeWithExpiredMsgsTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/OptimizeAcknowledgeWithExpiredMsgsTest.java
@@ -114,7 +114,7 @@ public class OptimizeAcknowledgeWithExpiredMsgsTest {
MessageConsumer consumer = session.createConsumer(destination);
final MyMessageListener listener = new MyMessageListener();
- connection.setExceptionListener((ExceptionListener) listener);
+ connection.setExceptionListener(listener);
// ***** Producer Code *****
MessageProducer producer = session.createProducer(destination);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/RawRollbackSharedConsumerTests.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/RawRollbackSharedConsumerTests.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/RawRollbackSharedConsumerTests.java
index 56f0f6e..d458348 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/RawRollbackSharedConsumerTests.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/RawRollbackSharedConsumerTests.java
@@ -108,7 +108,7 @@ public class RawRollbackSharedConsumerTests {
List<String> msgs = new ArrayList<String>();
MessageConsumer consumer = session.createConsumer(queue);
while (next != null) {
- next = (String) receiveAndConvert(consumer);
+ next = receiveAndConvert(consumer);
if (next != null)
msgs.add(next);
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/RawRollbackTests.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/RawRollbackTests.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/RawRollbackTests.java
index f3a48ac..3c25220 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/RawRollbackTests.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/RawRollbackTests.java
@@ -108,7 +108,7 @@ public class RawRollbackTests {
String next = "";
List<String> msgs = new ArrayList<String>();
while (next != null) {
- next = (String) receiveAndConvert(session);
+ next = receiveAndConvert(session);
if (next != null)
msgs.add(next);
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQMapMessageTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQMapMessageTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQMapMessageTest.java
index 4bc17a9..d180700 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQMapMessageTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQMapMessageTest.java
@@ -88,7 +88,7 @@ public class ActiveMQMapMessageTest extends TestCase {
// Test with a 1Meg String
StringBuffer bigSB = new StringBuffer(1024 * 1024);
for (int i = 0; i < 1024 * 1024; i++) {
- bigSB.append((char) 'a' + i % 26);
+ bigSB.append('a' + i % 26);
}
String bigString = bigSB.toString();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQStreamMessageTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQStreamMessageTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQStreamMessageTest.java
index 34ceb14..7cc5cc8 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQStreamMessageTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQStreamMessageTest.java
@@ -678,7 +678,7 @@ public class ActiveMQStreamMessageTest extends TestCase {
// Test with a 1Meg String
StringBuffer bigSB = new StringBuffer(1024 * 1024);
for (int i = 0; i < 1024 * 1024; i++) {
- bigSB.append((char) 'a' + i % 26);
+ bigSB.append('a' + i % 26);
}
String bigString = bigSB.toString();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/spring/SpringTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/spring/SpringTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/spring/SpringTest.java
index fb48a5f..0d8886d 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/spring/SpringTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/spring/SpringTest.java
@@ -92,7 +92,7 @@ public class SpringTest extends SpringTestSupport {
String config = "spring-start-false.xml";
Thread.currentThread().setContextClassLoader(SpringTest.class.getClassLoader());
context = new ClassPathXmlApplicationContext(config);
- BrokerService broker = (BrokerService) context.getBean(BrokerService.class);
+ BrokerService broker = context.getBean(BrokerService.class);
assertFalse("Broker is started", broker.isStarted());
}
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/discovery/DiscoveryTransportBrokerTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/discovery/DiscoveryTransportBrokerTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/discovery/DiscoveryTransportBrokerTest.java
index e9bca3b..1238eac 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/discovery/DiscoveryTransportBrokerTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/discovery/DiscoveryTransportBrokerTest.java
@@ -86,7 +86,7 @@ public class DiscoveryTransportBrokerTest extends NetworkTestSupport {
connection3.request(createMessage(producerInfo3, destination, deliveryMode));
// The message will be sent to one of the brokers.
- FailoverTransport ft = (FailoverTransport) connection3.getTransport().narrow(FailoverTransport.class);
+ FailoverTransport ft = connection3.getTransport().narrow(FailoverTransport.class);
// See which broker we were connected to.
StubConnection connectionA;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/fanout/FanoutTransportBrokerTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/fanout/FanoutTransportBrokerTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/fanout/FanoutTransportBrokerTest.java
index a60325a..7e52f13 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/fanout/FanoutTransportBrokerTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/fanout/FanoutTransportBrokerTest.java
@@ -150,7 +150,7 @@ public class FanoutTransportBrokerTest extends NetworkTestSupport {
// The MockTransport is on the remote connection.
// Slip in a new transport filter after the MockTransport
- MockTransport mt = (MockTransport) connection3.getTransport().narrow(MockTransport.class);
+ MockTransport mt = connection3.getTransport().narrow(MockTransport.class);
mt.install(new TransportFilter(mt.getNext()) {
@Override
public void oneway(Object command) throws IOException {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriberWithNetworkDisconnectTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriberWithNetworkDisconnectTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriberWithNetworkDisconnectTest.java
index 39a8e74..be0d631 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriberWithNetworkDisconnectTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriberWithNetworkDisconnectTest.java
@@ -211,7 +211,7 @@ public class DurableSubscriberWithNetworkDisconnectTest extends JmsMultipleBroke
List<TransportConnector> transportConnectors = remoteBroker.getTransportConnectors();
URI remoteURI;
if (!transportConnectors.isEmpty()) {
- remoteURI = ((TransportConnector) transportConnectors.get(0)).getConnectUri();
+ remoteURI = transportConnectors.get(0).getConnectUri();
if (useSocketProxy) {
socketProxy = new SocketProxy(remoteURI);
remoteURI = socketProxy.getUrl();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MultiBrokersMultiClientsTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MultiBrokersMultiClientsTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MultiBrokersMultiClientsTest.java
index 5a7a427..0888ca2 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MultiBrokersMultiClientsTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MultiBrokersMultiClientsTest.java
@@ -82,7 +82,7 @@ public class MultiBrokersMultiClientsTest extends JmsMultipleBrokersTestSupport
// Get message count
for (int i = 1; i <= BROKER_COUNT; i++) {
for (int j = 0; j < CONSUMER_COUNT; j++) {
- MessageIdList msgs = getConsumerMessages("Broker" + i, (MessageConsumer) consumerMap.get("Consumer:" + i + ":" + j));
+ MessageIdList msgs = getConsumerMessages("Broker" + i, consumerMap.get("Consumer:" + i + ":" + j));
assertEquals(BROKER_COUNT * PRODUCER_COUNT * MESSAGE_COUNT, msgs.getMessageCount());
}
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MulticastDiscoveryOnFaultyNetworkTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MulticastDiscoveryOnFaultyNetworkTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MulticastDiscoveryOnFaultyNetworkTest.java
index 72c854a..d1e18e6 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MulticastDiscoveryOnFaultyNetworkTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MulticastDiscoveryOnFaultyNetworkTest.java
@@ -122,7 +122,7 @@ public class MulticastDiscoveryOnFaultyNetworkTest extends JmsMultipleBrokersTes
if (!useStaticDiscovery) {
List<TransportConnector> transportConnectors = remoteBroker.getTransportConnectors();
if (!transportConnectors.isEmpty()) {
- TransportConnector mCastTrpConnector = ((TransportConnector) transportConnectors.get(0));
+ TransportConnector mCastTrpConnector = (transportConnectors.get(0));
mCastTrpConnector.setDiscoveryUri(new URI("multicast://default?group=TESTERIC"));
}
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ObjectMessageNotSerializableTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ObjectMessageNotSerializableTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ObjectMessageNotSerializableTest.java
index d47c48e..ab21c0b 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ObjectMessageNotSerializableTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ObjectMessageNotSerializableTest.java
@@ -77,7 +77,7 @@ public class ObjectMessageNotSerializableTest extends CombinationTestSupport {
factory.setCopyMessageOnSend(false);
Connection connection = factory.createConnection();
- Session session = (ActiveMQSession) connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
+ Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
MessageConsumer consumer = session.createConsumer(destination);
connection.start();
consumerStarted.countDown();
@@ -106,7 +106,7 @@ public class ObjectMessageNotSerializableTest extends CombinationTestSupport {
factory.setCopyMessageOnSend(false);
Connection connection = factory.createConnection();
- Session session = (ActiveMQSession) connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
+ Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
MessageProducer producer = session.createProducer(destination);
ActiveMQObjectMessage message = (ActiveMQObjectMessage) session.createObjectMessage();
message.setObject(obj);
@@ -149,7 +149,7 @@ public class ObjectMessageNotSerializableTest extends CombinationTestSupport {
factory.setCopyMessageOnSend(false);
Connection connection = factory.createConnection();
- Session session = (ActiveMQSession) connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
+ Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
MessageConsumer consumer = session.createConsumer(destination);
connection.start();
consumerStarted.countDown();
@@ -177,7 +177,7 @@ public class ObjectMessageNotSerializableTest extends CombinationTestSupport {
factory.setOptimizedMessageDispatch(true);
Connection connection = factory.createConnection();
- Session session = (ActiveMQSession) connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
+ Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
MessageConsumer consumer = session.createConsumer(destination);
connection.start();
consumerStarted.countDown();
@@ -207,7 +207,7 @@ public class ObjectMessageNotSerializableTest extends CombinationTestSupport {
factory.setCopyMessageOnSend(false);
Connection connection = factory.createConnection();
- Session session = (ActiveMQSession) connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
+ Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
MessageConsumer consumer = session.createConsumer(destination);
connection.start();
consumerStarted.countDown();
@@ -236,7 +236,7 @@ public class ObjectMessageNotSerializableTest extends CombinationTestSupport {
factory.setCopyMessageOnSend(false);
Connection connection = factory.createConnection();
- Session session = (ActiveMQSession) connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
+ Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
MessageProducer producer = session.createProducer(destination);
ActiveMQObjectMessage message = (ActiveMQObjectMessage) session.createObjectMessage();
message.setObject(obj);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TopicRedeliverTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TopicRedeliverTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TopicRedeliverTest.java
index 0d86bbf..2c8f958 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TopicRedeliverTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TopicRedeliverTest.java
@@ -165,7 +165,7 @@ public class TopicRedeliverTest extends TestSupport {
Session consumerSession = connection.createSession(true, Session.CLIENT_ACKNOWLEDGE);
MessageConsumer consumer = null;
if (topic) {
- consumer = consumerSession.createConsumer((Topic) destination);
+ consumer = consumerSession.createConsumer(destination);
}
else {
consumer = consumerSession.createConsumer(destination);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerQueueSendReceiveTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerQueueSendReceiveTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerQueueSendReceiveTest.java
index c8bf46d..b7b5205 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerQueueSendReceiveTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerQueueSendReceiveTest.java
@@ -46,7 +46,7 @@ public class TwoBrokerQueueSendReceiveTest extends TwoBrokerTopicSendReceiveTest
waitForMessagesToBeDelivered();
assertEquals("Got all messages", data.length, messages.size());
- BrokerService broker = (BrokerService) brokers.get("receiver");
+ BrokerService broker = brokers.get("receiver");
final DemandForwardingBridgeSupport bridge = (DemandForwardingBridgeSupport) broker.getNetworkConnectors().get(0).activeBridges().toArray()[0];
assertTrue("No extra, size:" + bridge.getLocalSubscriptionMap().size(), Wait.waitFor(new Wait.Condition() {
@Override
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerTopicSendReceiveUsingTcpTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerTopicSendReceiveUsingTcpTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerTopicSendReceiveUsingTcpTest.java
index 987a534..fb91684 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerTopicSendReceiveUsingTcpTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerTopicSendReceiveUsingTcpTest.java
@@ -62,7 +62,7 @@ public class TwoBrokerTopicSendReceiveUsingTcpTest extends TwoBrokerTopicSendRec
@Override
protected ActiveMQConnectionFactory createReceiverConnectionFactory() throws JMSException {
try {
- ActiveMQConnectionFactory fac = new ActiveMQConnectionFactory(((TransportConnector) receiverBroker.getTransportConnectors().get(0)).getConnectUri());
+ ActiveMQConnectionFactory fac = new ActiveMQConnectionFactory(receiverBroker.getTransportConnectors().get(0).getConnectUri());
return fac;
}
catch (Exception e) {
@@ -74,7 +74,7 @@ public class TwoBrokerTopicSendReceiveUsingTcpTest extends TwoBrokerTopicSendRec
@Override
protected ActiveMQConnectionFactory createSenderConnectionFactory() throws JMSException {
try {
- ActiveMQConnectionFactory fac = new ActiveMQConnectionFactory(((TransportConnector) senderBroker.getTransportConnectors().get(0)).getConnectUri());
+ ActiveMQConnectionFactory fac = new ActiveMQConnectionFactory(senderBroker.getTransportConnectors().get(0).getConnectUri());
return fac;
}
catch (Exception e) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/TimeoutXATest.java
----------------------------------------------------------------------
diff --git a/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/TimeoutXATest.java b/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/TimeoutXATest.java
index 462e9be..22611bc 100644
--- a/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/TimeoutXATest.java
+++ b/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/TimeoutXATest.java
@@ -97,7 +97,7 @@ public class TimeoutXATest extends ActiveMQTestBase {
action = "afterRollback()")})
public void testTimeoutOnTX2() throws Exception {
ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory();
- XAConnection connection = (XAConnection)connectionFactory.createXAConnection();
+ XAConnection connection = connectionFactory.createXAConnection();
Connection connction2 = connectionFactory.createConnection();
Session session = connection.createSession(true, Session.SESSION_TRANSACTED);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/interceptors/InterceptorTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/interceptors/InterceptorTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/interceptors/InterceptorTest.java
index 79d6c72..a894acb 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/interceptors/InterceptorTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/interceptors/InterceptorTest.java
@@ -507,8 +507,8 @@ public class InterceptorTest extends ActiveMQTestBase {
@Test
public void testInterceptUsernameOnConsumer() throws Exception {
ActiveMQJAASSecurityManager securityManager = (ActiveMQJAASSecurityManager) server.getSecurityManager();
- ((SecurityConfiguration)securityManager.getConfiguration()).addUser("dumb", "dumber");
- ((SecurityConfiguration)securityManager.getConfiguration()).addUser("an", "other");
+ securityManager.getConfiguration().addUser("dumb", "dumber");
+ securityManager.getConfiguration().addUser("an", "other");
server.getRemotingService().addIncomingInterceptor(new InterceptUserOnCreateConsumer());
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/client/TopicCleanupTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/client/TopicCleanupTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/client/TopicCleanupTest.java
index 8ce9ced..3d27f12 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/client/TopicCleanupTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/client/TopicCleanupTest.java
@@ -131,7 +131,7 @@ public class TopicCleanupTest extends JMSTestBase {
conn.close();
boolean foundStrayRoutingBinding = false;
- Bindings bindings = server.getPostOffice().getBindingsForAddress(new SimpleString(((ActiveMQTopic) topic).getAddress()));
+ Bindings bindings = server.getPostOffice().getBindingsForAddress(new SimpleString(topic.getAddress()));
Map<SimpleString, List<Binding>> routingNames = ((BindingsImpl) bindings).getRoutingNameBindingMap();
for (SimpleString key : routingNames.keySet()) {
if (!key.toString().equals(topic.getAddress())) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JMSConsumer3Test.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JMSConsumer3Test.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JMSConsumer3Test.java
index cc680f7..ae88bf8 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JMSConsumer3Test.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JMSConsumer3Test.java
@@ -58,7 +58,7 @@ public class JMSConsumer3Test extends BasicOpenWireTest {
@Test
public void testMutiReceiveWithPrefetch1() throws Exception {
// Set prefetch to 1
- ((ActiveMQConnection) connection).getPrefetchPolicy().setAll(1);
+ connection.getPrefetchPolicy().setAll(1);
connection.start();
// Use all the ack modes
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsResourceProvider.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsResourceProvider.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsResourceProvider.java
index ceeb6b9..47bdb23 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsResourceProvider.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsResourceProvider.java
@@ -106,10 +106,10 @@ public class JmsResourceProvider {
*/
public Destination createDestination(Session session, JmsTransactionTestSupport support) throws JMSException {
if (isTopic) {
- return (Destination) support.createDestination(session, ActiveMQDestination.TOPIC_TYPE);
+ return support.createDestination(session, ActiveMQDestination.TOPIC_TYPE);
}
else {
- return (Destination) support.createDestination(session, ActiveMQDestination.QUEUE_TYPE);
+ return support.createDestination(session, ActiveMQDestination.QUEUE_TYPE);
}
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsTopicRedeliverTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsTopicRedeliverTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsTopicRedeliverTest.java
index a758be7..cb018af 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsTopicRedeliverTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsTopicRedeliverTest.java
@@ -52,7 +52,7 @@ public class JmsTopicRedeliverTest extends BasicOpenWireTest {
public void setUp() throws Exception {
super.setUp();
- initRedeliveryDelay = ((ActiveMQConnection) connection).getRedeliveryPolicy().getInitialRedeliveryDelay();
+ initRedeliveryDelay = connection.getRedeliveryPolicy().getInitialRedeliveryDelay();
if (durable) {
connection.setClientID(getClass().getName());
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsTransactionTestSupport.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsTransactionTestSupport.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsTransactionTestSupport.java
index 173fe0b..21e0444 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsTransactionTestSupport.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsTransactionTestSupport.java
@@ -613,7 +613,7 @@ public abstract class JmsTransactionTestSupport extends BasicOpenWireTest implem
}
protected ActiveMQPrefetchPolicy getPrefetchPolicy() {
- return ((ActiveMQConnection) connection).getPrefetchPolicy();
+ return connection.getPrefetchPolicy();
}
// This test won't work with xa tx so no beginTx() has been added.
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/ProducerFlowControlTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/ProducerFlowControlTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/ProducerFlowControlTest.java
index 49feb26..c468773 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/ProducerFlowControlTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/ProducerFlowControlTest.java
@@ -341,7 +341,7 @@ public class ProducerFlowControlTest extends BasicOpenWireTest {
public void tearDown() throws Exception {
try {
if (flowControlConnection != null) {
- TcpTransport t = (TcpTransport) flowControlConnection.getTransport().narrow(TcpTransport.class);
+ TcpTransport t = flowControlConnection.getTransport().narrow(TcpTransport.class);
try {
flowControlConnection.getTransport().stop();
flowControlConnection.close();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/interop/GeneralInteropTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/interop/GeneralInteropTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/interop/GeneralInteropTest.java
index 3f2b7b6..c186ed5 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/interop/GeneralInteropTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/interop/GeneralInteropTest.java
@@ -289,7 +289,7 @@ public class GeneralInteropTest extends BasicOpenWireTest {
msg.writeByte((byte) 2);
msg.writeBytes(new byte[]{6, 7});
msg.writeChar('b');
- msg.writeDouble((double) 6.5);
+ msg.writeDouble(6.5);
msg.writeFloat((float) 93.9);
msg.writeInt(7657);
msg.writeLong(239999L);
@@ -566,7 +566,7 @@ public class GeneralInteropTest extends BasicOpenWireTest {
streamMessage.writeByte((byte) 2);
streamMessage.writeBytes(new byte[]{6, 7});
streamMessage.writeChar('b');
- streamMessage.writeDouble((double) 6.5);
+ streamMessage.writeDouble(6.5);
streamMessage.writeFloat((float) 93.9);
streamMessage.writeInt(7657);
streamMessage.writeLong(239999L);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3b5ee6c7/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/PagingWithFailoverAndCountersTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/PagingWithFailoverAndCountersTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/PagingWithFailoverAndCountersTest.java
index 88730f3..1bc5ef6 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/PagingWithFailoverAndCountersTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/PagingWithFailoverAndCountersTest.java
@@ -357,7 +357,7 @@ public class PagingWithFailoverAndCountersTest extends ActiveMQTestBase {
waitForServerToStart(server);
Queue queue = server.locateQueue(SimpleString.toSimpleString("cons2"));
- int messageCount = (int) getMessageCount(queue);
+ int messageCount = getMessageCount(queue);
assertTrue(messageCount >= 0);
[06/32] activemq-artemis git commit: Remove unused imports
Posted by cl...@apache.org.
Remove unused imports
Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/6288f370
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/6288f370
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/6288f370
Branch: refs/heads/master
Commit: 6288f370644107ac74b11fc7fab29230a35d752e
Parents: d0223af
Author: Ville Skyttä <vi...@iki.fi>
Authored: Sun Dec 6 21:10:26 2015 +0200
Committer: Ville Skyttä <vi...@iki.fi>
Committed: Mon Dec 7 22:55:05 2015 +0200
----------------------------------------------------------------------
.../org/apache/activemq/artemis/utils/FileUtil.java | 1 -
.../apache/activemq/broker/SslBrokerService.java | 3 ---
.../artemiswrapper/NonSerializableFactory.java | 1 -
.../apache/activemq/ActiveMQInputStreamTest.java | 2 --
.../org/apache/activemq/JmsRedeliveredTest.java | 2 --
.../java/org/apache/activemq/LoadTestBurnIn.java | 1 -
.../apache/activemq/MessageTransformationTest.java | 10 ----------
.../activemq/broker/BrokerRedeliveryTest.java | 1 -
.../apache/activemq/broker/OutOfOrderXMLTest.java | 1 -
.../activemq/broker/TopicSubscriptionTest.java | 6 ------
.../broker/ft/JDBCQueueMasterSlaveTest.java | 6 ------
.../broker/mLevelDBXARecoveryBrokerTest.java | 1 -
.../broker/policy/AbortSlowAckConsumer0Test.java | 1 -
.../broker/policy/AbortSlowConsumer0Test.java | 1 -
.../broker/policy/AbortSlowConsumerBase.java | 16 ----------------
.../broker/policy/NoConsumerDeadLetterTest.java | 1 -
.../broker/region/QueueDuplicatesFromStoreTest.java | 1 -
.../region/QueueResendDuringShutdownTest.java | 3 ---
.../StoreQueueCursorLevelDBNoDuplicateTest.java | 3 ---
.../broker/virtual/VirtualDestPerfTest.java | 3 ---
.../java/org/apache/activemq/bugs/AMQ2103Test.java | 1 -
.../java/org/apache/activemq/bugs/AMQ2149Test.java | 1 -
.../java/org/apache/activemq/bugs/AMQ3625Test.java | 1 -
.../java/org/apache/activemq/bugs/AMQ4062Test.java | 1 -
.../java/org/apache/activemq/bugs/AMQ4677Test.java | 2 --
.../activemq/bugs/AMQ5266StarvedConsumerTest.java | 4 ----
.../java/org/apache/activemq/bugs/AMQ5266Test.java | 1 -
.../activemq/bugs/MemoryUsageBlockResumeTest.java | 2 --
.../activemq/bugs/TrapMessageInJDBCStoreTest.java | 3 ---
.../activemq/command/ActiveMQMapMessageTest.java | 1 -
.../activemq/command/ActiveMQStreamMessageTest.java | 2 --
.../apache/activemq/openwire/v4/BrokerIdTest.java | 4 ----
.../apache/activemq/openwire/v4/BrokerInfoTest.java | 5 -----
.../activemq/openwire/v4/ConnectionControlTest.java | 5 -----
.../activemq/openwire/v4/ConnectionErrorTest.java | 5 -----
.../activemq/openwire/v4/ConnectionIdTest.java | 4 ----
.../activemq/openwire/v4/ConnectionInfoTest.java | 5 -----
.../activemq/openwire/v4/ConsumerControlTest.java | 5 -----
.../apache/activemq/openwire/v4/ConsumerIdTest.java | 4 ----
.../activemq/openwire/v4/ConsumerInfoTest.java | 5 -----
.../activemq/openwire/v4/ControlCommandTest.java | 5 -----
.../activemq/openwire/v4/DataArrayResponseTest.java | 5 -----
.../activemq/openwire/v4/DataResponseTest.java | 5 -----
.../activemq/openwire/v4/DestinationInfoTest.java | 5 -----
.../activemq/openwire/v4/DiscoveryEventTest.java | 4 ----
.../activemq/openwire/v4/ExceptionResponseTest.java | 5 -----
.../activemq/openwire/v4/FlushCommandTest.java | 5 -----
.../activemq/openwire/v4/IntegerResponseTest.java | 5 -----
.../activemq/openwire/v4/JournalQueueAckTest.java | 4 ----
.../activemq/openwire/v4/JournalTopicAckTest.java | 4 ----
.../activemq/openwire/v4/JournalTraceTest.java | 4 ----
.../openwire/v4/JournalTransactionTest.java | 4 ----
.../activemq/openwire/v4/KeepAliveInfoTest.java | 5 -----
.../openwire/v4/LastPartialCommandTest.java | 5 -----
.../openwire/v4/LocalTransactionIdTest.java | 5 -----
.../apache/activemq/openwire/v4/MessageAckTest.java | 5 -----
.../v4/MessageDispatchNotificationTest.java | 5 -----
.../activemq/openwire/v4/MessageDispatchTest.java | 5 -----
.../apache/activemq/openwire/v4/MessageIdTest.java | 4 ----
.../activemq/openwire/v4/MessagePullTest.java | 5 -----
.../openwire/v4/NetworkBridgeFilterTest.java | 4 ----
.../activemq/openwire/v4/PartialCommandTest.java | 4 ----
.../activemq/openwire/v4/ProducerAckTest.java | 5 -----
.../apache/activemq/openwire/v4/ProducerIdTest.java | 4 ----
.../activemq/openwire/v4/ProducerInfoTest.java | 5 -----
.../apache/activemq/openwire/v4/RemoveInfoTest.java | 5 -----
.../openwire/v4/RemoveSubscriptionInfoTest.java | 5 -----
.../activemq/openwire/v4/ReplayCommandTest.java | 5 -----
.../apache/activemq/openwire/v4/ResponseTest.java | 5 -----
.../apache/activemq/openwire/v4/SessionIdTest.java | 4 ----
.../activemq/openwire/v4/SessionInfoTest.java | 5 -----
.../activemq/openwire/v4/ShutdownInfoTest.java | 5 -----
.../activemq/openwire/v4/SubscriptionInfoTest.java | 4 ----
.../openwire/v4/TransactionIdTestSupport.java | 4 ----
.../activemq/openwire/v4/TransactionInfoTest.java | 5 -----
.../activemq/openwire/v4/XATransactionIdTest.java | 5 -----
.../apache/activemq/openwire/v5/BrokerIdTest.java | 4 ----
.../apache/activemq/openwire/v5/BrokerInfoTest.java | 5 -----
.../activemq/openwire/v5/ConnectionControlTest.java | 5 -----
.../activemq/openwire/v5/ConnectionErrorTest.java | 5 -----
.../activemq/openwire/v5/ConnectionIdTest.java | 4 ----
.../activemq/openwire/v5/ConnectionInfoTest.java | 5 -----
.../activemq/openwire/v5/ConsumerControlTest.java | 5 -----
.../apache/activemq/openwire/v5/ConsumerIdTest.java | 4 ----
.../activemq/openwire/v5/ConsumerInfoTest.java | 5 -----
.../activemq/openwire/v5/ControlCommandTest.java | 5 -----
.../activemq/openwire/v5/DataArrayResponseTest.java | 5 -----
.../activemq/openwire/v5/DataResponseTest.java | 5 -----
.../activemq/openwire/v5/DestinationInfoTest.java | 5 -----
.../activemq/openwire/v5/DiscoveryEventTest.java | 4 ----
.../activemq/openwire/v5/ExceptionResponseTest.java | 5 -----
.../activemq/openwire/v5/FlushCommandTest.java | 5 -----
.../activemq/openwire/v5/IntegerResponseTest.java | 5 -----
.../activemq/openwire/v5/JournalQueueAckTest.java | 4 ----
.../activemq/openwire/v5/JournalTopicAckTest.java | 4 ----
.../activemq/openwire/v5/JournalTraceTest.java | 4 ----
.../openwire/v5/JournalTransactionTest.java | 4 ----
.../activemq/openwire/v5/KeepAliveInfoTest.java | 5 -----
.../openwire/v5/LastPartialCommandTest.java | 5 -----
.../openwire/v5/LocalTransactionIdTest.java | 5 -----
.../apache/activemq/openwire/v5/MessageAckTest.java | 5 -----
.../v5/MessageDispatchNotificationTest.java | 5 -----
.../activemq/openwire/v5/MessageDispatchTest.java | 5 -----
.../apache/activemq/openwire/v5/MessageIdTest.java | 4 ----
.../activemq/openwire/v5/MessagePullTest.java | 5 -----
.../openwire/v5/NetworkBridgeFilterTest.java | 4 ----
.../activemq/openwire/v5/PartialCommandTest.java | 4 ----
.../activemq/openwire/v5/ProducerAckTest.java | 5 -----
.../apache/activemq/openwire/v5/ProducerIdTest.java | 4 ----
.../activemq/openwire/v5/ProducerInfoTest.java | 5 -----
.../apache/activemq/openwire/v5/RemoveInfoTest.java | 5 -----
.../openwire/v5/RemoveSubscriptionInfoTest.java | 5 -----
.../activemq/openwire/v5/ReplayCommandTest.java | 5 -----
.../apache/activemq/openwire/v5/ResponseTest.java | 5 -----
.../apache/activemq/openwire/v5/SessionIdTest.java | 4 ----
.../activemq/openwire/v5/SessionInfoTest.java | 5 -----
.../activemq/openwire/v5/ShutdownInfoTest.java | 5 -----
.../activemq/openwire/v5/SubscriptionInfoTest.java | 4 ----
.../openwire/v5/TransactionIdTestSupport.java | 4 ----
.../activemq/openwire/v5/TransactionInfoTest.java | 5 -----
.../activemq/openwire/v5/XATransactionIdTest.java | 5 -----
.../apache/activemq/openwire/v6/BrokerIdTest.java | 4 ----
.../apache/activemq/openwire/v6/BrokerInfoTest.java | 5 -----
.../activemq/openwire/v6/ConnectionControlTest.java | 5 -----
.../activemq/openwire/v6/ConnectionErrorTest.java | 5 -----
.../activemq/openwire/v6/ConnectionIdTest.java | 4 ----
.../activemq/openwire/v6/ConnectionInfoTest.java | 5 -----
.../activemq/openwire/v6/ConsumerControlTest.java | 5 -----
.../apache/activemq/openwire/v6/ConsumerIdTest.java | 4 ----
.../activemq/openwire/v6/ConsumerInfoTest.java | 5 -----
.../activemq/openwire/v6/ControlCommandTest.java | 5 -----
.../activemq/openwire/v6/DataArrayResponseTest.java | 5 -----
.../activemq/openwire/v6/DataResponseTest.java | 5 -----
.../activemq/openwire/v6/DestinationInfoTest.java | 5 -----
.../activemq/openwire/v6/DiscoveryEventTest.java | 4 ----
.../activemq/openwire/v6/ExceptionResponseTest.java | 5 -----
.../activemq/openwire/v6/FlushCommandTest.java | 5 -----
.../activemq/openwire/v6/IntegerResponseTest.java | 5 -----
.../activemq/openwire/v6/JournalQueueAckTest.java | 4 ----
.../activemq/openwire/v6/JournalTopicAckTest.java | 4 ----
.../activemq/openwire/v6/JournalTraceTest.java | 4 ----
.../openwire/v6/JournalTransactionTest.java | 4 ----
.../activemq/openwire/v6/KeepAliveInfoTest.java | 5 -----
.../openwire/v6/LastPartialCommandTest.java | 5 -----
.../openwire/v6/LocalTransactionIdTest.java | 5 -----
.../apache/activemq/openwire/v6/MessageAckTest.java | 5 -----
.../v6/MessageDispatchNotificationTest.java | 5 -----
.../activemq/openwire/v6/MessageDispatchTest.java | 5 -----
.../apache/activemq/openwire/v6/MessageIdTest.java | 4 ----
.../activemq/openwire/v6/MessagePullTest.java | 5 -----
.../openwire/v6/NetworkBridgeFilterTest.java | 4 ----
.../activemq/openwire/v6/PartialCommandTest.java | 4 ----
.../activemq/openwire/v6/ProducerAckTest.java | 5 -----
.../apache/activemq/openwire/v6/ProducerIdTest.java | 4 ----
.../activemq/openwire/v6/ProducerInfoTest.java | 5 -----
.../apache/activemq/openwire/v6/RemoveInfoTest.java | 5 -----
.../openwire/v6/RemoveSubscriptionInfoTest.java | 5 -----
.../activemq/openwire/v6/ReplayCommandTest.java | 5 -----
.../apache/activemq/openwire/v6/ResponseTest.java | 5 -----
.../apache/activemq/openwire/v6/SessionIdTest.java | 4 ----
.../activemq/openwire/v6/SessionInfoTest.java | 5 -----
.../activemq/openwire/v6/ShutdownInfoTest.java | 5 -----
.../activemq/openwire/v6/SubscriptionInfoTest.java | 4 ----
.../openwire/v6/TransactionIdTestSupport.java | 4 ----
.../activemq/openwire/v6/TransactionInfoTest.java | 5 -----
.../activemq/openwire/v6/XATransactionIdTest.java | 5 -----
.../apache/activemq/openwire/v7/BrokerIdTest.java | 4 ----
.../apache/activemq/openwire/v7/BrokerInfoTest.java | 5 -----
.../activemq/openwire/v7/ConnectionControlTest.java | 5 -----
.../activemq/openwire/v7/ConnectionErrorTest.java | 5 -----
.../activemq/openwire/v7/ConnectionIdTest.java | 4 ----
.../activemq/openwire/v7/ConnectionInfoTest.java | 5 -----
.../activemq/openwire/v7/ConsumerControlTest.java | 5 -----
.../apache/activemq/openwire/v7/ConsumerIdTest.java | 4 ----
.../activemq/openwire/v7/ConsumerInfoTest.java | 5 -----
.../activemq/openwire/v7/ControlCommandTest.java | 5 -----
.../activemq/openwire/v7/DataArrayResponseTest.java | 5 -----
.../activemq/openwire/v7/DataResponseTest.java | 5 -----
.../activemq/openwire/v7/DestinationInfoTest.java | 5 -----
.../activemq/openwire/v7/DiscoveryEventTest.java | 4 ----
.../activemq/openwire/v7/ExceptionResponseTest.java | 5 -----
.../activemq/openwire/v7/FlushCommandTest.java | 5 -----
.../activemq/openwire/v7/IntegerResponseTest.java | 5 -----
.../activemq/openwire/v7/JournalQueueAckTest.java | 4 ----
.../activemq/openwire/v7/JournalTopicAckTest.java | 4 ----
.../activemq/openwire/v7/JournalTraceTest.java | 4 ----
.../openwire/v7/JournalTransactionTest.java | 4 ----
.../activemq/openwire/v7/KeepAliveInfoTest.java | 5 -----
.../openwire/v7/LastPartialCommandTest.java | 5 -----
.../openwire/v7/LocalTransactionIdTest.java | 5 -----
.../apache/activemq/openwire/v7/MessageAckTest.java | 5 -----
.../v7/MessageDispatchNotificationTest.java | 5 -----
.../activemq/openwire/v7/MessageDispatchTest.java | 5 -----
.../apache/activemq/openwire/v7/MessageIdTest.java | 4 ----
.../activemq/openwire/v7/MessagePullTest.java | 5 -----
.../openwire/v7/NetworkBridgeFilterTest.java | 4 ----
.../activemq/openwire/v7/PartialCommandTest.java | 4 ----
.../activemq/openwire/v7/ProducerAckTest.java | 5 -----
.../apache/activemq/openwire/v7/ProducerIdTest.java | 4 ----
.../activemq/openwire/v7/ProducerInfoTest.java | 5 -----
.../apache/activemq/openwire/v7/RemoveInfoTest.java | 5 -----
.../openwire/v7/RemoveSubscriptionInfoTest.java | 5 -----
.../activemq/openwire/v7/ReplayCommandTest.java | 5 -----
.../apache/activemq/openwire/v7/ResponseTest.java | 5 -----
.../apache/activemq/openwire/v7/SessionIdTest.java | 4 ----
.../activemq/openwire/v7/SessionInfoTest.java | 5 -----
.../activemq/openwire/v7/ShutdownInfoTest.java | 5 -----
.../activemq/openwire/v7/SubscriptionInfoTest.java | 4 ----
.../openwire/v7/TransactionIdTestSupport.java | 4 ----
.../activemq/openwire/v7/TransactionInfoTest.java | 5 -----
.../activemq/openwire/v7/XATransactionIdTest.java | 5 -----
.../apache/activemq/openwire/v8/BrokerIdTest.java | 4 ----
.../apache/activemq/openwire/v8/BrokerInfoTest.java | 5 -----
.../activemq/openwire/v8/ConnectionControlTest.java | 5 -----
.../activemq/openwire/v8/ConnectionErrorTest.java | 5 -----
.../activemq/openwire/v8/ConnectionIdTest.java | 4 ----
.../activemq/openwire/v8/ConnectionInfoTest.java | 5 -----
.../activemq/openwire/v8/ConsumerControlTest.java | 5 -----
.../apache/activemq/openwire/v8/ConsumerIdTest.java | 4 ----
.../activemq/openwire/v8/ConsumerInfoTest.java | 5 -----
.../activemq/openwire/v8/ControlCommandTest.java | 5 -----
.../activemq/openwire/v8/DataArrayResponseTest.java | 5 -----
.../activemq/openwire/v8/DataResponseTest.java | 5 -----
.../activemq/openwire/v8/DestinationInfoTest.java | 5 -----
.../activemq/openwire/v8/DiscoveryEventTest.java | 4 ----
.../activemq/openwire/v8/ExceptionResponseTest.java | 5 -----
.../activemq/openwire/v8/FlushCommandTest.java | 5 -----
.../activemq/openwire/v8/IntegerResponseTest.java | 5 -----
.../activemq/openwire/v8/JournalQueueAckTest.java | 4 ----
.../activemq/openwire/v8/JournalTopicAckTest.java | 4 ----
.../activemq/openwire/v8/JournalTraceTest.java | 4 ----
.../openwire/v8/JournalTransactionTest.java | 4 ----
.../activemq/openwire/v8/KeepAliveInfoTest.java | 5 -----
.../openwire/v8/LastPartialCommandTest.java | 5 -----
.../openwire/v8/LocalTransactionIdTest.java | 5 -----
.../apache/activemq/openwire/v8/MessageAckTest.java | 5 -----
.../v8/MessageDispatchNotificationTest.java | 5 -----
.../activemq/openwire/v8/MessageDispatchTest.java | 5 -----
.../apache/activemq/openwire/v8/MessageIdTest.java | 4 ----
.../activemq/openwire/v8/MessagePullTest.java | 5 -----
.../openwire/v8/NetworkBridgeFilterTest.java | 4 ----
.../activemq/openwire/v8/PartialCommandTest.java | 4 ----
.../activemq/openwire/v8/ProducerAckTest.java | 5 -----
.../apache/activemq/openwire/v8/ProducerIdTest.java | 4 ----
.../activemq/openwire/v8/ProducerInfoTest.java | 5 -----
.../apache/activemq/openwire/v8/RemoveInfoTest.java | 5 -----
.../openwire/v8/RemoveSubscriptionInfoTest.java | 5 -----
.../activemq/openwire/v8/ReplayCommandTest.java | 5 -----
.../apache/activemq/openwire/v8/ResponseTest.java | 5 -----
.../apache/activemq/openwire/v8/SessionIdTest.java | 4 ----
.../activemq/openwire/v8/SessionInfoTest.java | 5 -----
.../activemq/openwire/v8/ShutdownInfoTest.java | 5 -----
.../activemq/openwire/v8/SubscriptionInfoTest.java | 4 ----
.../openwire/v8/TransactionIdTestSupport.java | 4 ----
.../activemq/openwire/v8/TransactionInfoTest.java | 5 -----
.../activemq/openwire/v8/XATransactionIdTest.java | 5 -----
.../apache/activemq/openwire/v9/BrokerIdTest.java | 4 ----
.../apache/activemq/openwire/v9/BrokerInfoTest.java | 5 -----
.../activemq/openwire/v9/ConnectionControlTest.java | 5 -----
.../activemq/openwire/v9/ConnectionErrorTest.java | 5 -----
.../activemq/openwire/v9/ConnectionIdTest.java | 4 ----
.../activemq/openwire/v9/ConnectionInfoTest.java | 5 -----
.../activemq/openwire/v9/ConsumerControlTest.java | 5 -----
.../apache/activemq/openwire/v9/ConsumerIdTest.java | 4 ----
.../activemq/openwire/v9/ConsumerInfoTest.java | 5 -----
.../activemq/openwire/v9/ControlCommandTest.java | 5 -----
.../activemq/openwire/v9/DataArrayResponseTest.java | 5 -----
.../activemq/openwire/v9/DataResponseTest.java | 5 -----
.../activemq/openwire/v9/DestinationInfoTest.java | 5 -----
.../activemq/openwire/v9/DiscoveryEventTest.java | 4 ----
.../activemq/openwire/v9/ExceptionResponseTest.java | 5 -----
.../activemq/openwire/v9/FlushCommandTest.java | 5 -----
.../activemq/openwire/v9/IntegerResponseTest.java | 5 -----
.../activemq/openwire/v9/JournalQueueAckTest.java | 4 ----
.../activemq/openwire/v9/JournalTopicAckTest.java | 4 ----
.../activemq/openwire/v9/JournalTraceTest.java | 4 ----
.../openwire/v9/JournalTransactionTest.java | 4 ----
.../activemq/openwire/v9/KeepAliveInfoTest.java | 5 -----
.../openwire/v9/LastPartialCommandTest.java | 5 -----
.../openwire/v9/LocalTransactionIdTest.java | 5 -----
.../apache/activemq/openwire/v9/MessageAckTest.java | 5 -----
.../v9/MessageDispatchNotificationTest.java | 5 -----
.../activemq/openwire/v9/MessageDispatchTest.java | 5 -----
.../apache/activemq/openwire/v9/MessageIdTest.java | 4 ----
.../activemq/openwire/v9/MessagePullTest.java | 5 -----
.../openwire/v9/NetworkBridgeFilterTest.java | 4 ----
.../activemq/openwire/v9/PartialCommandTest.java | 4 ----
.../activemq/openwire/v9/ProducerAckTest.java | 5 -----
.../apache/activemq/openwire/v9/ProducerIdTest.java | 4 ----
.../activemq/openwire/v9/ProducerInfoTest.java | 5 -----
.../apache/activemq/openwire/v9/RemoveInfoTest.java | 5 -----
.../openwire/v9/RemoveSubscriptionInfoTest.java | 5 -----
.../activemq/openwire/v9/ReplayCommandTest.java | 5 -----
.../apache/activemq/openwire/v9/ResponseTest.java | 5 -----
.../apache/activemq/openwire/v9/SessionIdTest.java | 4 ----
.../activemq/openwire/v9/SessionInfoTest.java | 5 -----
.../activemq/openwire/v9/ShutdownInfoTest.java | 5 -----
.../activemq/openwire/v9/SubscriptionInfoTest.java | 4 ----
.../openwire/v9/TransactionIdTestSupport.java | 4 ----
.../activemq/openwire/v9/TransactionInfoTest.java | 5 -----
.../activemq/openwire/v9/XATransactionIdTest.java | 5 -----
...eceiveTwoConnectionsWithSenderUsingPoolTest.java | 2 --
.../activemq/security/LDAPAuthenticationTest.java | 7 -------
.../security/SimpleSecurityBrokerSystemTest.java | 1 -
.../activemq/test/JmsSendReceiveTestSupport.java | 1 -
.../test/TemporaryDestinationToFromNameTest.java | 1 -
.../transport/TransportBrokerTestSupport.java | 1 -
.../failover/FailoverComplexClusterTest.java | 2 --
.../transport/udp/UdpTransportUsingServerTest.java | 1 -
.../activemq/usecases/CompositeConsumeTest.java | 1 -
.../DurableConsumerCloseAndReconnectTest.java | 3 ---
.../usecases/DurableSubProcessMultiRestartTest.java | 1 -
.../usecases/DurableSubscriptionOfflineTest.java | 1 -
.../activemq/usecases/ExpiredMessagesTest.java | 1 -
.../usecases/MessageGroupLateArrivalsTest.java | 1 -
.../usecases/ObjectMessageNotSerializableTest.java | 1 -
.../activemq/usecases/ReliableReconnectTest.java | 2 --
...rVirtualDestinationsWithWildcardLevelDBTest.java | 10 ----------
.../TwoBrokerTopicSendReceiveUsingTcpTest.java | 1 -
.../activemq/xbean/ConnectorXBeanConfigTest.java | 1 -
.../integration/interceptors/InterceptorTest.java | 1 -
.../integration/openwire/amq/JMSConsumer3Test.java | 1 -
.../openwire/amq/JmsTopicRedeliverTest.java | 1 -
323 files changed, 1385 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/FileUtil.java
----------------------------------------------------------------------
diff --git a/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/FileUtil.java b/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/FileUtil.java
index 81008af..63ad15f 100644
--- a/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/FileUtil.java
+++ b/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/FileUtil.java
@@ -20,7 +20,6 @@ package org.apache.activemq.artemis.utils;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
-import java.nio.file.attribute.PosixFilePermission;
import java.util.Arrays;
import java.util.HashSet;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/broker/SslBrokerService.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/broker/SslBrokerService.java b/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/broker/SslBrokerService.java
index 2535012..b91d328 100644
--- a/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/broker/SslBrokerService.java
+++ b/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/broker/SslBrokerService.java
@@ -17,10 +17,7 @@
package org.apache.activemq.broker;
-import org.apache.activemq.transport.TransportFactorySupport;
import org.apache.activemq.transport.TransportServer;
-import org.apache.activemq.transport.tcp.SslTransportFactory;
-
import javax.net.ssl.KeyManager;
import javax.net.ssl.TrustManager;
import java.io.IOException;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/broker/artemiswrapper/NonSerializableFactory.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/broker/artemiswrapper/NonSerializableFactory.java b/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/broker/artemiswrapper/NonSerializableFactory.java
index 171eb55..91b365e 100644
--- a/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/broker/artemiswrapper/NonSerializableFactory.java
+++ b/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/broker/artemiswrapper/NonSerializableFactory.java
@@ -21,7 +21,6 @@ import javax.naming.Name;
import javax.naming.NamingException;
import javax.naming.RefAddr;
import javax.naming.Reference;
-import javax.naming.StringRefAddr;
import javax.naming.spi.ObjectFactory;
//import org.jboss.util.naming.Util;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/ActiveMQInputStreamTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/ActiveMQInputStreamTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/ActiveMQInputStreamTest.java
index c94a342..fd06de9 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/ActiveMQInputStreamTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/ActiveMQInputStreamTest.java
@@ -24,10 +24,8 @@ import javax.jms.Session;
import junit.framework.TestCase;
-import org.apache.activemq.artemiswrapper.ArtemisBrokerHelper;
import org.apache.activemq.broker.BrokerService;
import org.apache.activemq.command.ActiveMQDestination;
-import org.apache.activemq.transport.tcp.TcpTransportFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsRedeliveredTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsRedeliveredTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsRedeliveredTest.java
index 6b985eb..03a7614 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsRedeliveredTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsRedeliveredTest.java
@@ -33,8 +33,6 @@ import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
-import org.apache.activemq.transport.tcp.TcpTransport;
-import org.apache.activemq.transport.vm.VMTransport;
import org.apache.activemq.util.Wait;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/LoadTestBurnIn.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/LoadTestBurnIn.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/LoadTestBurnIn.java
index 2504765..bedfd47 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/LoadTestBurnIn.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/LoadTestBurnIn.java
@@ -37,7 +37,6 @@ import junit.framework.Test;
import org.apache.activemq.broker.BrokerFactory;
import org.apache.activemq.broker.BrokerService;
-import org.apache.activemq.broker.TransportConnector;
import org.apache.activemq.command.ActiveMQDestination;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/MessageTransformationTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/MessageTransformationTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/MessageTransformationTest.java
index 7ab95b3..683e314 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/MessageTransformationTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/MessageTransformationTest.java
@@ -17,16 +17,6 @@
package org.apache.activemq;
-import javax.jms.BytesMessage;
-import javax.jms.MapMessage;
-import javax.jms.ObjectMessage;
-import javax.jms.Queue;
-import javax.jms.StreamMessage;
-import javax.jms.TemporaryQueue;
-import javax.jms.TemporaryTopic;
-import javax.jms.TextMessage;
-import javax.jms.Topic;
-
import junit.framework.TestCase;
import org.apache.activemq.command.ActiveMQBytesMessage;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/BrokerRedeliveryTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/BrokerRedeliveryTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/BrokerRedeliveryTest.java
index 155dbe8..a34fc90 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/BrokerRedeliveryTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/BrokerRedeliveryTest.java
@@ -24,7 +24,6 @@ import javax.jms.Session;
import org.apache.activemq.ActiveMQConnection;
import org.apache.activemq.ActiveMQConnectionFactory;
-import org.apache.activemq.ActiveMQPrefetchPolicy;
import org.apache.activemq.RedeliveryPolicy;
import org.apache.activemq.broker.region.policy.RedeliveryPolicyMap;
import org.apache.activemq.broker.region.policy.SharedDeadLetterStrategy;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/OutOfOrderXMLTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/OutOfOrderXMLTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/OutOfOrderXMLTest.java
index df3830d..f644d2c 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/OutOfOrderXMLTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/OutOfOrderXMLTest.java
@@ -18,7 +18,6 @@ package org.apache.activemq.broker;
import java.net.URI;
-import org.apache.activemq.xbean.XBeanBrokerFactory;
import org.junit.Test;
// https://issues.apache.org/activemq/browse/AMQ-2939
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/TopicSubscriptionTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/TopicSubscriptionTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/TopicSubscriptionTest.java
index b0905dc..a904935 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/TopicSubscriptionTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/TopicSubscriptionTest.java
@@ -16,10 +16,6 @@
*/
package org.apache.activemq.broker;
-import java.util.concurrent.TimeUnit;
-
-import org.apache.activemq.TestSupport;
-import org.apache.activemq.command.ActiveMQDestination;
import org.apache.activemq.util.ThreadTracker;
import org.junit.After;
import org.junit.Before;
@@ -27,8 +23,6 @@ import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.BlockJUnit4ClassRunner;
-import static org.junit.Assert.*;
-
@RunWith(BlockJUnit4ClassRunner.class)
public class TopicSubscriptionTest extends QueueSubscriptionTest {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/ft/JDBCQueueMasterSlaveTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/ft/JDBCQueueMasterSlaveTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/ft/JDBCQueueMasterSlaveTest.java
index 1d2cd1f..b85b007 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/ft/JDBCQueueMasterSlaveTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/ft/JDBCQueueMasterSlaveTest.java
@@ -17,13 +17,7 @@
package org.apache.activemq.broker.ft;
import java.io.IOException;
-import java.io.PrintWriter;
import java.net.URI;
-import java.sql.Connection;
-import java.sql.SQLException;
-import java.sql.SQLFeatureNotSupportedException;
-import java.util.logging.Logger;
-
import javax.sql.DataSource;
import org.apache.activemq.broker.BrokerService;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/mLevelDBXARecoveryBrokerTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/mLevelDBXARecoveryBrokerTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/mLevelDBXARecoveryBrokerTest.java
index b766a86..06e3771 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/mLevelDBXARecoveryBrokerTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/mLevelDBXARecoveryBrokerTest.java
@@ -21,7 +21,6 @@ import junit.framework.Test;
import org.apache.activemq.command.ActiveMQDestination;
import org.apache.activemq.command.ActiveMQQueue;
import org.apache.activemq.store.kahadb.FilteredKahaDBPersistenceAdapter;
-import org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter;
import org.apache.activemq.store.kahadb.MultiKahaDBPersistenceAdapter;
import org.apache.activemq.store.leveldb.LevelDBPersistenceAdapter;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/AbortSlowAckConsumer0Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/AbortSlowAckConsumer0Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/AbortSlowAckConsumer0Test.java
index 16c342d..38e7423 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/AbortSlowAckConsumer0Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/AbortSlowAckConsumer0Test.java
@@ -34,7 +34,6 @@ import org.apache.activemq.broker.region.policy.PolicyEntry;
import org.apache.activemq.broker.region.policy.PolicyMap;
import org.junit.Test;
import org.junit.runner.RunWith;
-import org.junit.runners.BlockJUnit4ClassRunner;
import org.junit.runners.Parameterized;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/AbortSlowConsumer0Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/AbortSlowConsumer0Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/AbortSlowConsumer0Test.java
index a335380..5924538 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/AbortSlowConsumer0Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/AbortSlowConsumer0Test.java
@@ -45,7 +45,6 @@ import org.apache.activemq.util.SocketProxy;
import org.apache.activemq.util.Wait;
import org.junit.Test;
import org.junit.runner.RunWith;
-import org.junit.runners.BlockJUnit4ClassRunner;
import org.junit.runners.Parameterized;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/AbortSlowConsumerBase.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/AbortSlowConsumerBase.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/AbortSlowConsumerBase.java
index b6944c2..32adb25 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/AbortSlowConsumerBase.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/AbortSlowConsumerBase.java
@@ -16,35 +16,19 @@
*/
package org.apache.activemq.broker.policy;
-import junit.framework.Test;
-
import org.apache.activemq.JmsMultipleClientsTestSupport;
import org.apache.activemq.broker.BrokerService;
-import org.apache.activemq.broker.jmx.AbortSlowConsumerStrategyViewMBean;
-import org.apache.activemq.broker.jmx.DestinationViewMBean;
import org.apache.activemq.broker.region.policy.AbortSlowConsumerStrategy;
import org.apache.activemq.broker.region.policy.PolicyEntry;
import org.apache.activemq.broker.region.policy.PolicyMap;
-import org.apache.activemq.command.ActiveMQDestination;
-import org.apache.activemq.util.MessageIdList;
import org.junit.Before;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import javax.jms.Connection;
import javax.jms.ExceptionListener;
import javax.jms.JMSException;
-import javax.jms.MessageConsumer;
-import javax.jms.Session;
-import javax.management.InstanceNotFoundException;
-import javax.management.ObjectName;
-import javax.management.openmbean.CompositeData;
-import javax.management.openmbean.TabularData;
-import java.lang.reflect.UndeclaredThrowableException;
import java.util.ArrayList;
import java.util.List;
-import java.util.Map.Entry;
-import java.util.concurrent.TimeUnit;
public class AbortSlowConsumerBase extends JmsMultipleClientsTestSupport implements ExceptionListener {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/NoConsumerDeadLetterTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/NoConsumerDeadLetterTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/NoConsumerDeadLetterTest.java
index 3e4f0e4..8adcd93 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/NoConsumerDeadLetterTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/NoConsumerDeadLetterTest.java
@@ -25,7 +25,6 @@ import javax.jms.Session;
import javax.jms.TextMessage;
import javax.jms.Topic;
-import org.apache.activemq.ActiveMQConnection;
import org.apache.activemq.ActiveMQConnectionFactory;
import org.apache.activemq.advisory.AdvisorySupport;
import org.apache.activemq.broker.BrokerService;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/QueueDuplicatesFromStoreTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/QueueDuplicatesFromStoreTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/QueueDuplicatesFromStoreTest.java
index 4daa2f5..97cd6f6 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/QueueDuplicatesFromStoreTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/QueueDuplicatesFromStoreTest.java
@@ -44,7 +44,6 @@ import org.apache.activemq.command.MessagePull;
import org.apache.activemq.command.ProducerInfo;
import org.apache.activemq.command.Response;
import org.apache.activemq.filter.MessageEvaluationContext;
-import org.apache.activemq.management.CountStatisticImpl;
import org.apache.activemq.state.ProducerState;
import org.apache.activemq.store.MessageStore;
import org.apache.activemq.store.PersistenceAdapter;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/QueueResendDuringShutdownTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/QueueResendDuringShutdownTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/QueueResendDuringShutdownTest.java
index 959c8db..3782350 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/QueueResendDuringShutdownTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/QueueResendDuringShutdownTest.java
@@ -16,9 +16,6 @@
*/
package org.apache.activemq.broker.region;
-import java.io.File;
-
-import static org.junit.matchers.JUnitMatchers.containsString;
import static org.junit.Assert.*;
import javax.jms.Connection;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/cursors/StoreQueueCursorLevelDBNoDuplicateTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/cursors/StoreQueueCursorLevelDBNoDuplicateTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/cursors/StoreQueueCursorLevelDBNoDuplicateTest.java
index 9ed7b1b..a227bce 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/cursors/StoreQueueCursorLevelDBNoDuplicateTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/cursors/StoreQueueCursorLevelDBNoDuplicateTest.java
@@ -17,11 +17,8 @@
package org.apache.activemq.broker.region.cursors;
-import org.apache.activeio.journal.active.JournalImpl;
import org.apache.activemq.broker.BrokerService;
import org.apache.activemq.leveldb.LevelDBStore;
-import org.apache.activemq.store.journal.JournalPersistenceAdapter;
-
import java.io.File;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualDestPerfTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualDestPerfTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualDestPerfTest.java
index 6cca500..85e14c7 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualDestPerfTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/virtual/VirtualDestPerfTest.java
@@ -49,9 +49,6 @@ import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-
public class VirtualDestPerfTest {
private static final Logger LOG = LoggerFactory.getLogger(VirtualDestPerfTest.class);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2103Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2103Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2103Test.java
index 906257a..8067305 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2103Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2103Test.java
@@ -25,7 +25,6 @@ import javax.jms.Session;
import junit.framework.Test;
import org.apache.activemq.ActiveMQConnectionFactory;
-import org.apache.activemq.ActiveMQSession;
import org.apache.activemq.broker.BrokerTestSupport;
import org.apache.activemq.broker.region.policy.PolicyEntry;
import org.apache.activemq.command.ActiveMQDestination;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2149Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2149Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2149Test.java
index ce9bebe..19dbf0e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2149Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ2149Test.java
@@ -19,7 +19,6 @@ package org.apache.activemq.bugs;
import java.io.File;
import java.lang.IllegalStateException;
-import java.util.Arrays;
import java.util.HashSet;
import java.util.Timer;
import java.util.TimerTask;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3625Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3625Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3625Test.java
index 919027d..188b48c 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3625Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3625Test.java
@@ -26,7 +26,6 @@ import org.junit.After;
import org.junit.Before;
import org.junit.Test;
-import java.io.File;
import java.util.concurrent.atomic.AtomicBoolean;
import static org.junit.Assert.assertFalse;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4062Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4062Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4062Test.java
index d2044dc..8272aef 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4062Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4062Test.java
@@ -22,7 +22,6 @@ import java.io.File;
import java.io.IOException;
import java.lang.reflect.Field;
import java.util.Iterator;
-import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.CountDownLatch;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4677Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4677Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4677Test.java
index 4bb3547..d7da045 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4677Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4677Test.java
@@ -30,8 +30,6 @@ import javax.management.ObjectName;
import org.apache.activemq.ActiveMQConnectionFactory;
import org.apache.activemq.broker.BrokerService;
-import org.apache.activemq.broker.region.policy.PolicyEntry;
-import org.apache.activemq.broker.region.policy.PolicyMap;
import org.apache.activemq.leveldb.LevelDBStore;
import org.apache.activemq.leveldb.LevelDBStoreViewMBean;
import org.apache.activemq.util.Wait;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266StarvedConsumerTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266StarvedConsumerTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266StarvedConsumerTest.java
index b47c17a..0bef00b 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266StarvedConsumerTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266StarvedConsumerTest.java
@@ -45,10 +45,6 @@ import org.apache.activemq.broker.region.RegionBroker;
import org.apache.activemq.broker.region.policy.PolicyEntry;
import org.apache.activemq.broker.region.policy.PolicyMap;
import org.apache.activemq.command.ActiveMQQueue;
-import org.apache.activemq.store.jdbc.JDBCPersistenceAdapter;
-import org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter;
-import org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter;
-import org.apache.derby.jdbc.EmbeddedDataSource;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266Test.java
index 4765fab..bfbb49d 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266Test.java
@@ -24,7 +24,6 @@ import java.util.List;
import java.util.Map;
import java.util.TreeSet;
import java.util.UUID;
-import java.util.concurrent.TimeUnit;
import javax.jms.Message;
import javax.jms.MessageConsumer;
import javax.jms.MessageProducer;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/MemoryUsageBlockResumeTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/MemoryUsageBlockResumeTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/MemoryUsageBlockResumeTest.java
index 1026a05..7e46df4 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/MemoryUsageBlockResumeTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/MemoryUsageBlockResumeTest.java
@@ -44,8 +44,6 @@ import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import static org.junit.Assert.*;
-
@RunWith(BlockJUnit4ClassRunner.class)
public class MemoryUsageBlockResumeTest extends TestSupport implements Thread.UncaughtExceptionHandler {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/TrapMessageInJDBCStoreTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/TrapMessageInJDBCStoreTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/TrapMessageInJDBCStoreTest.java
index b6787e6..67b284f 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/TrapMessageInJDBCStoreTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/TrapMessageInJDBCStoreTest.java
@@ -22,9 +22,6 @@ import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
-import java.util.concurrent.Executors;
-import java.util.concurrent.ScheduledExecutorService;
-import java.util.concurrent.TimeUnit;
import javax.jms.Connection;
import javax.jms.DeliveryMode;
import javax.jms.Destination;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQMapMessageTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQMapMessageTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQMapMessageTest.java
index d180700..4725279 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQMapMessageTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQMapMessageTest.java
@@ -17,7 +17,6 @@
package org.apache.activemq.command;
import java.io.IOException;
-import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Enumeration;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQStreamMessageTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQStreamMessageTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQStreamMessageTest.java
index 7cc5cc8..d554102 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQStreamMessageTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQStreamMessageTest.java
@@ -16,8 +16,6 @@
*/
package org.apache.activemq.command;
-import java.io.Serializable;
-
import javax.jms.JMSException;
import javax.jms.MessageFormatException;
import javax.jms.MessageNotReadableException;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/BrokerIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/BrokerIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/BrokerIdTest.java
index 73aee8f..85ad9eb 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/BrokerIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/BrokerIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/BrokerInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/BrokerInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/BrokerInfoTest.java
index 35a0fa2..3d42b99 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/BrokerInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/BrokerInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionControlTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionControlTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionControlTest.java
index 850ea9f..f38169d 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionControlTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionControlTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionErrorTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionErrorTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionErrorTest.java
index a04aa39..5683323 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionErrorTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionErrorTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionIdTest.java
index bd75fd1..e4a9fb4 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionInfoTest.java
index 8c21d79..aa20184 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConnectionInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConsumerControlTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConsumerControlTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConsumerControlTest.java
index 536b63f..d537d80 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConsumerControlTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConsumerControlTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConsumerIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConsumerIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConsumerIdTest.java
index 5cfd037..76e18e7 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConsumerIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConsumerIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConsumerInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConsumerInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConsumerInfoTest.java
index 4e9901c..6cf29b8 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConsumerInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ConsumerInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ControlCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ControlCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ControlCommandTest.java
index 2c325c7..f68a879 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ControlCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ControlCommandTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DataArrayResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DataArrayResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DataArrayResponseTest.java
index 119d2af..9652b3e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DataArrayResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DataArrayResponseTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DataResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DataResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DataResponseTest.java
index 06948fa..b7e9480 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DataResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DataResponseTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DestinationInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DestinationInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DestinationInfoTest.java
index ad08ab2..b6e57ff 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DestinationInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DestinationInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DiscoveryEventTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DiscoveryEventTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DiscoveryEventTest.java
index eafe52e..502664e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DiscoveryEventTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/DiscoveryEventTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ExceptionResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ExceptionResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ExceptionResponseTest.java
index dd0764b..3167823 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ExceptionResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ExceptionResponseTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/FlushCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/FlushCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/FlushCommandTest.java
index 7678ebb..be1a236 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/FlushCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/FlushCommandTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/IntegerResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/IntegerResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/IntegerResponseTest.java
index c15d902..45422ed 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/IntegerResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/IntegerResponseTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalQueueAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalQueueAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalQueueAckTest.java
index 1472775..f08a16c 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalQueueAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalQueueAckTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalTopicAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalTopicAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalTopicAckTest.java
index 2b50dc8..d999539 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalTopicAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalTopicAckTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalTraceTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalTraceTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalTraceTest.java
index c986f25..0510801 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalTraceTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalTraceTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalTransactionTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalTransactionTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalTransactionTest.java
index 7e6a675..0a06e7e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalTransactionTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/JournalTransactionTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/KeepAliveInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/KeepAliveInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/KeepAliveInfoTest.java
index 73e46b1..baf14c6 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/KeepAliveInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/KeepAliveInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/LastPartialCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/LastPartialCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/LastPartialCommandTest.java
index e2b0f87..e5a1393 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/LastPartialCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/LastPartialCommandTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/LocalTransactionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/LocalTransactionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/LocalTransactionIdTest.java
index 0ad31d3..614a88c 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/LocalTransactionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/LocalTransactionIdTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageAckTest.java
index 64f5df3..4bb868a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageAckTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageDispatchNotificationTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageDispatchNotificationTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageDispatchNotificationTest.java
index 840d101..ded1417 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageDispatchNotificationTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageDispatchNotificationTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageDispatchTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageDispatchTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageDispatchTest.java
index 9c85381..6d409fa 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageDispatchTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageDispatchTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageIdTest.java
index 29b3269..2cca89e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessageIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessagePullTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessagePullTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessagePullTest.java
index 7a7ba3f..5a8da2c 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessagePullTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/MessagePullTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/NetworkBridgeFilterTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/NetworkBridgeFilterTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/NetworkBridgeFilterTest.java
index 587ddd6..3f84e5b 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/NetworkBridgeFilterTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/NetworkBridgeFilterTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/PartialCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/PartialCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/PartialCommandTest.java
index b255f50..5b09d38 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/PartialCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/PartialCommandTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ProducerAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ProducerAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ProducerAckTest.java
index 76812bb..87fdd40 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ProducerAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ProducerAckTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ProducerIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ProducerIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ProducerIdTest.java
index b5e3a3e..74f6e13 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ProducerIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ProducerIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ProducerInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ProducerInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ProducerInfoTest.java
index fff9ce1..76b6775 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ProducerInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ProducerInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/RemoveInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/RemoveInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/RemoveInfoTest.java
index 311754d..daf391b 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/RemoveInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/RemoveInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/RemoveSubscriptionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/RemoveSubscriptionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/RemoveSubscriptionInfoTest.java
index b6d49ec..ea0ebb4 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/RemoveSubscriptionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/RemoveSubscriptionInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ReplayCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ReplayCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ReplayCommandTest.java
index 37adbf6..420147e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ReplayCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ReplayCommandTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ResponseTest.java
index f65ac58..5f82253 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ResponseTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/SessionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/SessionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/SessionIdTest.java
index b2fb344..bb5c27d 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/SessionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/SessionIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
[08/32] activemq-artemis git commit: Remove redundant type arguments
Posted by cl...@apache.org.
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/security/SecurityTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/security/SecurityTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/security/SecurityTest.java
index 468ffa5..e5404ef 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/security/SecurityTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/security/SecurityTest.java
@@ -112,7 +112,7 @@ public class SecurityTest extends ActiveMQTestBase {
ActiveMQJAASSecurityManager securityManager = new ActiveMQJAASSecurityManager("CertLogin");
ActiveMQServer server = addServer(ActiveMQServers.newActiveMQServer(createDefaultInVMConfig().setSecurityEnabled(true), ManagementFactory.getPlatformMBeanServer(), securityManager, false));
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put(TransportConstants.SSL_ENABLED_PROP_NAME, true);
params.put(TransportConstants.KEYSTORE_PATH_PROP_NAME, "server-side-keystore.jks");
params.put(TransportConstants.KEYSTORE_PASSWORD_PROP_NAME, "secureexample");
@@ -172,7 +172,7 @@ public class SecurityTest extends ActiveMQTestBase {
ActiveMQJAASSecurityManager securityManager = new ActiveMQJAASSecurityManager("CertLogin");
ActiveMQServer server = addServer(ActiveMQServers.newActiveMQServer(createDefaultInVMConfig().setSecurityEnabled(true), ManagementFactory.getPlatformMBeanServer(), securityManager, false));
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put(TransportConstants.SSL_ENABLED_PROP_NAME, true);
params.put(TransportConstants.KEYSTORE_PATH_PROP_NAME, "server-side-keystore.jks");
params.put(TransportConstants.KEYSTORE_PASSWORD_PROP_NAME, "secureexample");
@@ -312,7 +312,7 @@ public class SecurityTest extends ActiveMQTestBase {
ActiveMQJAASSecurityManager securityManager = new ActiveMQJAASSecurityManager("CertLogin");
ActiveMQServer server = addServer(ActiveMQServers.newActiveMQServer(createDefaultInVMConfig().setSecurityEnabled(true), ManagementFactory.getPlatformMBeanServer(), securityManager, false));
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put(TransportConstants.SSL_ENABLED_PROP_NAME, true);
params.put(TransportConstants.KEYSTORE_PATH_PROP_NAME, "server-side-keystore.jks");
params.put(TransportConstants.KEYSTORE_PASSWORD_PROP_NAME, "secureexample");
@@ -494,7 +494,7 @@ public class SecurityTest extends ActiveMQTestBase {
ActiveMQJAASSecurityManager securityManager = new ActiveMQJAASSecurityManager("CertLogin");
ActiveMQServer server = addServer(ActiveMQServers.newActiveMQServer(createDefaultInVMConfig().setSecurityEnabled(true), ManagementFactory.getPlatformMBeanServer(), securityManager, false));
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put(TransportConstants.SSL_ENABLED_PROP_NAME, true);
params.put(TransportConstants.KEYSTORE_PATH_PROP_NAME, "server-side-keystore.jks");
params.put(TransportConstants.KEYSTORE_PASSWORD_PROP_NAME, "secureexample");
@@ -750,7 +750,7 @@ public class SecurityTest extends ActiveMQTestBase {
ActiveMQJAASSecurityManager securityManager = (ActiveMQJAASSecurityManager) server.getSecurityManager();
securityManager.getConfiguration().addUser("auser", "pass");
Role role = new Role("arole", false, false, true, false, false, false, false);
- Set<Role> roles = new HashSet<Role>();
+ Set<Role> roles = new HashSet<>();
roles.add(role);
securityRepository.addMatch(SecurityTest.addressA, roles);
securityManager.getConfiguration().addRole("auser", "arole");
@@ -769,7 +769,7 @@ public class SecurityTest extends ActiveMQTestBase {
ActiveMQJAASSecurityManager securityManager = (ActiveMQJAASSecurityManager) server.getSecurityManager();
securityManager.getConfiguration().addUser("auser", "pass");
Role role = new Role("arole", false, false, false, false, false, false, false);
- Set<Role> roles = new HashSet<Role>();
+ Set<Role> roles = new HashSet<>();
roles.add(role);
securityRepository.addMatch(SecurityTest.addressA, roles);
securityManager.getConfiguration().addRole("auser", "arole");
@@ -796,7 +796,7 @@ public class SecurityTest extends ActiveMQTestBase {
ActiveMQJAASSecurityManager securityManager = (ActiveMQJAASSecurityManager) server.getSecurityManager();
securityManager.getConfiguration().addUser("auser", "pass");
Role role = new Role("arole", false, false, true, true, false, false, false);
- Set<Role> roles = new HashSet<Role>();
+ Set<Role> roles = new HashSet<>();
roles.add(role);
securityRepository.addMatch(SecurityTest.addressA, roles);
securityManager.getConfiguration().addRole("auser", "arole");
@@ -815,7 +815,7 @@ public class SecurityTest extends ActiveMQTestBase {
ActiveMQJAASSecurityManager securityManager = (ActiveMQJAASSecurityManager) server.getSecurityManager();
securityManager.getConfiguration().addUser("auser", "pass");
Role role = new Role("arole", false, false, true, false, false, false, false);
- Set<Role> roles = new HashSet<Role>();
+ Set<Role> roles = new HashSet<>();
roles.add(role);
securityRepository.addMatch(SecurityTest.addressA, roles);
securityManager.getConfiguration().addRole("auser", "arole");
@@ -844,7 +844,7 @@ public class SecurityTest extends ActiveMQTestBase {
ActiveMQJAASSecurityManager securityManager = (ActiveMQJAASSecurityManager) server.getSecurityManager();
securityManager.getConfiguration().addUser("auser", "pass");
Role role = new Role("arole", false, false, false, false, true, false, false);
- Set<Role> roles = new HashSet<Role>();
+ Set<Role> roles = new HashSet<>();
roles.add(role);
securityRepository.addMatch(SecurityTest.addressA, roles);
securityManager.getConfiguration().addRole("auser", "arole");
@@ -863,7 +863,7 @@ public class SecurityTest extends ActiveMQTestBase {
ActiveMQJAASSecurityManager securityManager = (ActiveMQJAASSecurityManager) server.getSecurityManager();
securityManager.getConfiguration().addUser("auser", "pass");
Role role = new Role("arole", false, false, false, false, false, false, false);
- Set<Role> roles = new HashSet<Role>();
+ Set<Role> roles = new HashSet<>();
roles.add(role);
securityRepository.addMatch(SecurityTest.addressA, roles);
securityManager.getConfiguration().addRole("auser", "arole");
@@ -890,7 +890,7 @@ public class SecurityTest extends ActiveMQTestBase {
ActiveMQJAASSecurityManager securityManager = (ActiveMQJAASSecurityManager) server.getSecurityManager();
securityManager.getConfiguration().addUser("auser", "pass");
Role role = new Role("arole", false, false, false, false, true, true, false);
- Set<Role> roles = new HashSet<Role>();
+ Set<Role> roles = new HashSet<>();
roles.add(role);
securityRepository.addMatch(SecurityTest.addressA, roles);
securityManager.getConfiguration().addRole("auser", "arole");
@@ -909,7 +909,7 @@ public class SecurityTest extends ActiveMQTestBase {
ActiveMQJAASSecurityManager securityManager = (ActiveMQJAASSecurityManager) server.getSecurityManager();
securityManager.getConfiguration().addUser("auser", "pass");
Role role = new Role("arole", false, false, false, false, true, false, false);
- Set<Role> roles = new HashSet<Role>();
+ Set<Role> roles = new HashSet<>();
roles.add(role);
securityRepository.addMatch(SecurityTest.addressA, roles);
securityManager.getConfiguration().addRole("auser", "arole");
@@ -943,7 +943,7 @@ public class SecurityTest extends ActiveMQTestBase {
Role role = new Role("arole", true, true, true, false, false, false, false);
- Set<Role> roles = new HashSet<Role>();
+ Set<Role> roles = new HashSet<>();
roles.add(role);
@@ -975,7 +975,7 @@ public class SecurityTest extends ActiveMQTestBase {
role = new Role("arole", false, false, true, false, false, false, false);
- roles = new HashSet<Role>();
+ roles = new HashSet<>();
roles.add(role);
@@ -1002,7 +1002,7 @@ public class SecurityTest extends ActiveMQTestBase {
ActiveMQJAASSecurityManager securityManager = (ActiveMQJAASSecurityManager) server.getSecurityManager();
securityManager.getConfiguration().addUser("auser", "pass");
Role role = new Role("arole", false, false, true, false, false, false, false);
- Set<Role> roles = new HashSet<Role>();
+ Set<Role> roles = new HashSet<>();
roles.add(role);
securityRepository.addMatch(SecurityTest.addressA, roles);
securityManager.getConfiguration().addRole("auser", "arole");
@@ -1032,7 +1032,7 @@ public class SecurityTest extends ActiveMQTestBase {
ActiveMQJAASSecurityManager securityManager = (ActiveMQJAASSecurityManager) server.getSecurityManager();
securityManager.getConfiguration().addUser("auser", "pass");
Role role = new Role("arole", false, false, true, false, false, false, false);
- Set<Role> roles = new HashSet<Role>();
+ Set<Role> roles = new HashSet<>();
roles.add(role);
securityRepository.addMatch(SecurityTest.addressA, roles);
securityManager.getConfiguration().addRole("auser", "arole");
@@ -1059,7 +1059,7 @@ public class SecurityTest extends ActiveMQTestBase {
securityManager.getConfiguration().setDefaultUser("guest");
Role role = new Role("arole", false, true, false, false, false, false, false);
Role sendRole = new Role("guest", true, false, true, false, false, false, false);
- Set<Role> roles = new HashSet<Role>();
+ Set<Role> roles = new HashSet<>();
roles.add(sendRole);
roles.add(role);
securityRepository.addMatch(SecurityTest.addressA, roles);
@@ -1087,7 +1087,7 @@ public class SecurityTest extends ActiveMQTestBase {
securityManager.getConfiguration().setDefaultUser("guest");
Role role = new Role("arole", false, false, false, false, false, false, false);
Role sendRole = new Role("guest", true, false, true, false, false, false, false);
- Set<Role> roles = new HashSet<Role>();
+ Set<Role> roles = new HashSet<>();
roles.add(sendRole);
roles.add(role);
securityRepository.addMatch(SecurityTest.addressA, roles);
@@ -1125,7 +1125,7 @@ public class SecurityTest extends ActiveMQTestBase {
Role role = new Role("arole", false, false, false, false, false, false, false);
Role sendRole = new Role("guest", true, false, true, false, false, false, false);
Role receiveRole = new Role("receiver", false, true, false, false, false, false, false);
- Set<Role> roles = new HashSet<Role>();
+ Set<Role> roles = new HashSet<>();
roles.add(sendRole);
roles.add(role);
roles.add(receiveRole);
@@ -1176,7 +1176,7 @@ public class SecurityTest extends ActiveMQTestBase {
Role role = new Role("arole", false, false, false, false, false, false, false);
Role sendRole = new Role("guest", true, false, true, false, false, false, false);
Role receiveRole = new Role("receiver", false, true, false, false, false, false, false);
- Set<Role> roles = new HashSet<Role>();
+ Set<Role> roles = new HashSet<>();
roles.add(sendRole);
roles.add(role);
roles.add(receiveRole);
@@ -1239,7 +1239,7 @@ public class SecurityTest extends ActiveMQTestBase {
System.out.println("guest:" + sendRole);
Role receiveRole = new Role("receiver", false, true, false, false, false, false, false);
System.out.println("guest:" + receiveRole);
- Set<Role> roles = new HashSet<Role>();
+ Set<Role> roles = new HashSet<>();
roles.add(sendRole);
roles.add(role);
roles.add(receiveRole);
@@ -1323,7 +1323,7 @@ public class SecurityTest extends ActiveMQTestBase {
ActiveMQJAASSecurityManager securityManager = (ActiveMQJAASSecurityManager) server.getSecurityManager();
securityManager.getConfiguration().addUser("auser", "pass");
Role role = new Role("arole", false, false, false, false, false, false, true);
- Set<Role> roles = new HashSet<Role>();
+ Set<Role> roles = new HashSet<>();
roles.add(role);
securityRepository.addMatch(configuration.getManagementAddress().toString(), roles);
securityManager.getConfiguration().addRole("auser", "arole");
@@ -1344,7 +1344,7 @@ public class SecurityTest extends ActiveMQTestBase {
ActiveMQJAASSecurityManager securityManager = (ActiveMQJAASSecurityManager) server.getSecurityManager();
securityManager.getConfiguration().addUser("auser", "pass");
Role role = new Role("arole", false, false, true, false, false, false, false);
- Set<Role> roles = new HashSet<Role>();
+ Set<Role> roles = new HashSet<>();
roles.add(role);
securityRepository.addMatch(configuration.getManagementAddress().toString(), roles);
securityManager.getConfiguration().addRole("auser", "arole");
@@ -1375,7 +1375,7 @@ public class SecurityTest extends ActiveMQTestBase {
ActiveMQJAASSecurityManager securityManager = (ActiveMQJAASSecurityManager) server.getSecurityManager();
securityManager.getConfiguration().addUser("auser", "pass");
Role role = new Role("arole", false, false, true, false, false, false, false);
- Set<Role> roles = new HashSet<Role>();
+ Set<Role> roles = new HashSet<>();
roles.add(role);
securityRepository.addMatch(configuration.getManagementAddress().toString(), roles);
securityManager.getConfiguration().addRole("auser", "arole");
@@ -1412,17 +1412,17 @@ public class SecurityTest extends ActiveMQTestBase {
securityManager.getConfiguration().addRole("sam", "user");
Role all = new Role("all", true, true, true, true, true, true, true);
HierarchicalRepository<Set<Role>> repository = server.getSecurityRepository();
- Set<Role> add = new HashSet<Role>();
+ Set<Role> add = new HashSet<>();
add.add(new Role("user", true, true, true, true, true, true, false));
add.add(all);
repository.addMatch("#", add);
- Set<Role> add1 = new HashSet<Role>();
+ Set<Role> add1 = new HashSet<>();
add1.add(all);
add1.add(new Role("user", false, false, true, true, true, true, false));
add1.add(new Role("europe-user", true, false, false, false, false, false, false));
add1.add(new Role("news-user", false, true, false, false, false, false, false));
repository.addMatch("news.europe.#", add1);
- Set<Role> add2 = new HashSet<Role>();
+ Set<Role> add2 = new HashSet<>();
add2.add(all);
add2.add(new Role("user", false, false, true, true, true, true, false));
add2.add(new Role("us-user", true, false, false, false, false, false, false));
@@ -1543,17 +1543,17 @@ public class SecurityTest extends ActiveMQTestBase {
securityManager.getConfiguration().addRole("sam", "user");
Role all = new Role("all", true, true, true, true, true, true, true);
HierarchicalRepository<Set<Role>> repository = server.getSecurityRepository();
- Set<Role> add = new HashSet<Role>();
+ Set<Role> add = new HashSet<>();
add.add(new Role("user", true, true, true, true, true, true, false));
add.add(all);
repository.addMatch("#", add);
- Set<Role> add1 = new HashSet<Role>();
+ Set<Role> add1 = new HashSet<>();
add1.add(all);
add1.add(new Role("user", false, false, true, true, true, true, false));
add1.add(new Role("europe-user", true, false, false, false, false, false, false));
add1.add(new Role("news-user", false, true, false, false, false, false, false));
repository.addMatch("news.europe.#", add1);
- Set<Role> add2 = new HashSet<Role>();
+ Set<Role> add2 = new HashSet<>();
add2.add(all);
add2.add(new Role("user", false, false, true, true, true, true, false));
add2.add(new Role("us-user", true, false, false, false, false, false, false));
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/ExpiryRunnerTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/ExpiryRunnerTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/ExpiryRunnerTest.java
index ee4ac08..57773ed 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/ExpiryRunnerTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/ExpiryRunnerTest.java
@@ -252,7 +252,7 @@ public class ExpiryRunnerTest extends ActiveMQTestBase {
private static class DummyMessageHandler implements Runnable {
- List<String> payloads = new ArrayList<String>();
+ List<String> payloads = new ArrayList<>();
private final ClientConsumer consumer;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/FakeStorageManager.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/FakeStorageManager.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/FakeStorageManager.java
index 69c5ec1..c3670c5 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/FakeStorageManager.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/FakeStorageManager.java
@@ -24,9 +24,9 @@ import org.apache.activemq.artemis.core.server.ServerMessage;
public class FakeStorageManager extends NullStorageManager {
- List<Long> messageIds = new ArrayList<Long>();
+ List<Long> messageIds = new ArrayList<>();
- List<Long> ackIds = new ArrayList<Long>();
+ List<Long> ackIds = new ArrayList<>();
@Override
public void storeMessage(final ServerMessage message) throws Exception {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/PredefinedQueueTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/PredefinedQueueTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/PredefinedQueueTest.java
index ebed9e6..1dc666c 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/PredefinedQueueTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/PredefinedQueueTest.java
@@ -68,7 +68,7 @@ public class PredefinedQueueTest extends ActiveMQTestBase {
CoreQueueConfiguration queue3 = new CoreQueueConfiguration().setAddress(testAddress).setName(queueName3);
- List<CoreQueueConfiguration> queueConfs = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfs = new ArrayList<>();
queueConfs.add(queue1);
queueConfs.add(queue2);
@@ -287,7 +287,7 @@ public class PredefinedQueueTest extends ActiveMQTestBase {
CoreQueueConfiguration queue2 = new CoreQueueConfiguration().setAddress(testAddress).setName(queueName2);
- List<CoreQueueConfiguration> queueConfs = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfs = new ArrayList<>();
queueConfs.add(queue1);
queueConfs.add(queue2);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ssl/CoreClientOverOneWaySSLTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ssl/CoreClientOverOneWaySSLTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ssl/CoreClientOverOneWaySSLTest.java
index 46c60eb..08293f0 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ssl/CoreClientOverOneWaySSLTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ssl/CoreClientOverOneWaySSLTest.java
@@ -519,7 +519,7 @@ public class CoreClientOverOneWaySSLTest extends ActiveMQTestBase {
}
private void createCustomSslServer(String cipherSuites, String protocols) throws Exception {
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put(TransportConstants.SSL_ENABLED_PROP_NAME, true);
params.put(TransportConstants.KEYSTORE_PROVIDER_PROP_NAME, storeType);
params.put(TransportConstants.KEYSTORE_PATH_PROP_NAME, SERVER_SIDE_KEYSTORE);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ssl/CoreClientOverTwoWaySSLTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ssl/CoreClientOverTwoWaySSLTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ssl/CoreClientOverTwoWaySSLTest.java
index d66b968..f24f348 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ssl/CoreClientOverTwoWaySSLTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/ssl/CoreClientOverTwoWaySSLTest.java
@@ -174,7 +174,7 @@ public class CoreClientOverTwoWaySSLTest extends ActiveMQTestBase {
@Before
public void setUp() throws Exception {
super.setUp();
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put(TransportConstants.SSL_ENABLED_PROP_NAME, true);
params.put(TransportConstants.KEYSTORE_PATH_PROP_NAME, SERVER_SIDE_KEYSTORE);
params.put(TransportConstants.KEYSTORE_PASSWORD_PROP_NAME, PASSWORD);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/ExtraStompTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/ExtraStompTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/ExtraStompTest.java
index a52ed03..723792b 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/ExtraStompTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/ExtraStompTest.java
@@ -612,7 +612,7 @@ public class ExtraStompTest extends StompTestBase {
}
protected JMSServerManager createPersistentServerWithStompMinLargeSize(int sz) throws Exception {
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put(TransportConstants.PROTOCOLS_PROP_NAME, StompProtocolManagerFactory.STOMP_PROTOCOL_NAME);
params.put(TransportConstants.PORT_PROP_NAME, TransportConstants.DEFAULT_STOMP_PORT);
params.put(TransportConstants.STOMP_CONSUMERS_CREDIT, "-1");
@@ -693,7 +693,7 @@ public class ExtraStompTest extends StompTestBase {
protected JMSServerManager createServerWithExtraStompOptions(String ttl, Boolean enableMessageID) throws Exception {
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put(TransportConstants.PROTOCOLS_PROP_NAME, StompProtocolManagerFactory.STOMP_PROTOCOL_NAME);
params.put(TransportConstants.PORT_PROP_NAME, TransportConstants.DEFAULT_STOMP_PORT);
if (ttl != null) {
@@ -719,7 +719,7 @@ public class ExtraStompTest extends StompTestBase {
public static class MyCoreInterceptor implements Interceptor {
- static List<Packet> incomingInterceptedFrames = new ArrayList<Packet>();
+ static List<Packet> incomingInterceptedFrames = new ArrayList<>();
@Override
public boolean intercept(Packet packet, RemotingConnection connection) {
@@ -731,7 +731,7 @@ public class ExtraStompTest extends StompTestBase {
public static class MyIncomingStompFrameInterceptor implements StompFrameInterceptor {
- static List<StompFrame> incomingInterceptedFrames = new ArrayList<StompFrame>();
+ static List<StompFrame> incomingInterceptedFrames = new ArrayList<>();
@Override
public boolean intercept(StompFrame stompFrame, RemotingConnection connection) {
@@ -743,7 +743,7 @@ public class ExtraStompTest extends StompTestBase {
public static class MyOutgoingStompFrameInterceptor implements StompFrameInterceptor {
- static List<StompFrame> outgoingInterceptedFrames = new ArrayList<StompFrame>();
+ static List<StompFrame> outgoingInterceptedFrames = new ArrayList<>();
@Override
public boolean intercept(StompFrame stompFrame, RemotingConnection connection) {
@@ -758,10 +758,10 @@ public class ExtraStompTest extends StompTestBase {
MyIncomingStompFrameInterceptor.incomingInterceptedFrames.clear();
MyOutgoingStompFrameInterceptor.outgoingInterceptedFrames.clear();
try {
- List<String> incomingInterceptorList = new ArrayList<String>();
+ List<String> incomingInterceptorList = new ArrayList<>();
incomingInterceptorList.add("org.apache.activemq.artemis.tests.integration.stomp.ExtraStompTest$MyIncomingStompFrameInterceptor");
incomingInterceptorList.add("org.apache.activemq.artemis.tests.integration.stomp.ExtraStompTest$MyCoreInterceptor");
- List<String> outgoingInterceptorList = new ArrayList<String>();
+ List<String> outgoingInterceptorList = new ArrayList<>();
outgoingInterceptorList.add("org.apache.activemq.artemis.tests.integration.stomp.ExtraStompTest$MyOutgoingStompFrameInterceptor");
server = createServerWithStompInterceptor(incomingInterceptorList, outgoingInterceptorList);
@@ -808,13 +808,13 @@ public class ExtraStompTest extends StompTestBase {
server.stop();
}
- List<String> incomingCommands = new ArrayList<String>(4);
+ List<String> incomingCommands = new ArrayList<>(4);
incomingCommands.add("CONNECT");
incomingCommands.add("SUBSCRIBE");
incomingCommands.add("SEND");
incomingCommands.add("DISCONNECT");
- List<String> outgoingCommands = new ArrayList<String>(3);
+ List<String> outgoingCommands = new ArrayList<>(3);
outgoingCommands.add("CONNECTED");
outgoingCommands.add("MESSAGE");
outgoingCommands.add("MESSAGE");
@@ -847,7 +847,7 @@ public class ExtraStompTest extends StompTestBase {
protected JMSServerManager createServerWithStompInterceptor(List<String> stompIncomingInterceptor,
List<String> stompOutgoingInterceptor) throws Exception {
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put(TransportConstants.PROTOCOLS_PROP_NAME, StompProtocolManagerFactory.STOMP_PROTOCOL_NAME);
params.put(TransportConstants.PORT_PROP_NAME, TransportConstants.DEFAULT_STOMP_PORT);
params.put(TransportConstants.STOMP_CONSUMERS_CREDIT, "-1");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/StompTestBase.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/StompTestBase.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/StompTestBase.java
index 2e5650e..3c42b3d 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/StompTestBase.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/StompTestBase.java
@@ -178,7 +178,7 @@ public abstract class StompTestBase extends ActiveMQTestBase {
* @throws Exception
*/
protected JMSServerManager createServer() throws Exception {
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put(TransportConstants.PROTOCOLS_PROP_NAME, StompProtocolManagerFactory.STOMP_PROTOCOL_NAME);
params.put(TransportConstants.PORT_PROP_NAME, TransportConstants.DEFAULT_STOMP_PORT);
params.put(TransportConstants.STOMP_CONSUMERS_CREDIT, "-1");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/StompWebSocketTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/StompWebSocketTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/StompWebSocketTest.java
index 012e7da..240fa65 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/StompWebSocketTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/StompWebSocketTest.java
@@ -64,7 +64,7 @@ public class StompWebSocketTest extends ActiveMQTestBase {
* @throws Exception
*/
private JMSServerManager createServer() throws Exception {
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put(TransportConstants.PROTOCOLS_PROP_NAME, StompProtocolManagerFactory.STOMP_PROTOCOL_NAME);
params.put(TransportConstants.PORT_PROP_NAME, TransportConstants.DEFAULT_STOMP_PORT + 1);
TransportConfiguration stompTransport = new TransportConfiguration(NettyAcceptorFactory.class.getName(), params);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/util/AbstractClientStompFrame.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/util/AbstractClientStompFrame.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/util/AbstractClientStompFrame.java
index 1aabb1a..dc2e1ed 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/util/AbstractClientStompFrame.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/util/AbstractClientStompFrame.java
@@ -28,10 +28,10 @@ public abstract class AbstractClientStompFrame implements ClientStompFrame {
protected static final String HEADER_RECEIPT = "receipt";
- protected static final Set<String> validCommands = new HashSet<String>();
+ protected static final Set<String> validCommands = new HashSet<>();
protected String command;
- protected List<Header> headers = new ArrayList<Header>();
- protected Set<String> headerKeys = new HashSet<String>();
+ protected List<Header> headers = new ArrayList<>();
+ protected Set<String> headerKeys = new HashSet<>();
protected String body;
protected String EOL = "\n";
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/util/AbstractStompClientConnection.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/util/AbstractStompClientConnection.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/util/AbstractStompClientConnection.java
index 4d3c07c..42f8a1d 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/util/AbstractStompClientConnection.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/util/AbstractStompClientConnection.java
@@ -59,7 +59,7 @@ public abstract class AbstractStompClientConnection implements StompClientConnec
protected List<Byte> receiveList;
- protected BlockingQueue<ClientStompFrame> frameQueue = new LinkedBlockingQueue<ClientStompFrame>();
+ protected BlockingQueue<ClientStompFrame> frameQueue = new LinkedBlockingQueue<>();
protected boolean connected = false;
private int serverPingCounter;
@@ -83,7 +83,7 @@ public abstract class AbstractStompClientConnection implements StompClientConnec
private void startReaderThread() {
readBuffer = ByteBuffer.allocateDirect(10240);
- receiveList = new ArrayList<Byte>(10240);
+ receiveList = new ArrayList<>(10240);
new ReaderThread().start();
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/v11/StompV11TestBase.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/v11/StompV11TestBase.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/v11/StompV11TestBase.java
index 034eb80..d37d90b 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/v11/StompV11TestBase.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/v11/StompV11TestBase.java
@@ -97,7 +97,7 @@ public abstract class StompV11TestBase extends ActiveMQTestBase {
* @throws Exception
*/
protected JMSServerManager createServer() throws Exception {
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put(TransportConstants.PROTOCOLS_PROP_NAME, StompProtocolManagerFactory.STOMP_PROTOCOL_NAME);
params.put(TransportConstants.PORT_PROP_NAME, TransportConstants.DEFAULT_STOMP_PORT);
params.put(TransportConstants.STOMP_CONSUMERS_CREDIT, "-1");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/transports/netty/ActiveMQFrameDecoder2Test.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/transports/netty/ActiveMQFrameDecoder2Test.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/transports/netty/ActiveMQFrameDecoder2Test.java
index 321fda7..ed11fa9 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/transports/netty/ActiveMQFrameDecoder2Test.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/transports/netty/ActiveMQFrameDecoder2Test.java
@@ -50,7 +50,7 @@ public class ActiveMQFrameDecoder2Test extends ActiveMQTestBase {
src.writeBytes(data);
}
- List<ByteBuf> packets = new ArrayList<ByteBuf>();
+ List<ByteBuf> packets = new ArrayList<>();
while (src.isReadable()) {
int length = Math.min(ActiveMQFrameDecoder2Test.rand.nextInt(ActiveMQFrameDecoder2Test.FRAGMENT_MAX_LEN), src.readableBytes());
packets.add(src.readBytes(length));
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/transports/netty/NettyConnectorWithHTTPUpgradeTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/transports/netty/NettyConnectorWithHTTPUpgradeTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/transports/netty/NettyConnectorWithHTTPUpgradeTest.java
index edcb588..6bb9008 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/transports/netty/NettyConnectorWithHTTPUpgradeTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/transports/netty/NettyConnectorWithHTTPUpgradeTest.java
@@ -110,7 +110,7 @@ public class NettyConnectorWithHTTPUpgradeTest extends ActiveMQTestBase {
@Before
public void setUp() throws Exception {
super.setUp();
- HashMap<String, Object> httpAcceptorParams = new HashMap<String, Object>();
+ HashMap<String, Object> httpAcceptorParams = new HashMap<>();
// This prop controls the usage of HTTP Get + Upgrade from Netty connector
httpAcceptorParams.put(TransportConstants.HTTP_UPGRADE_ENABLED_PROP_NAME, true);
httpAcceptorParams.put(TransportConstants.PORT_PROP_NAME, HTTP_PORT);
@@ -122,7 +122,7 @@ public class NettyConnectorWithHTTPUpgradeTest extends ActiveMQTestBase {
server.start();
- HashMap<String, Object> httpConnectorParams = new HashMap<String, Object>();
+ HashMap<String, Object> httpConnectorParams = new HashMap<>();
httpAcceptorParams.put(TransportConstants.HTTP_UPGRADE_ENABLED_PROP_NAME, true);
httpAcceptorParams.put(TransportConstants.PORT_PROP_NAME, HTTP_PORT);
if (useSSL) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/vertx/ActiveMQVertxUnitTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/vertx/ActiveMQVertxUnitTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/vertx/ActiveMQVertxUnitTest.java
index 0c19b73..c1ffec5 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/vertx/ActiveMQVertxUnitTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/vertx/ActiveMQVertxUnitTest.java
@@ -88,7 +88,7 @@ public class ActiveMQVertxUnitTest extends ActiveMQTestBase {
CoreQueueConfiguration qc3 = new CoreQueueConfiguration().setAddress(inOutQueue2).setName(inOutQueue2);
//incoming
- HashMap<String, Object> config1 = new HashMap<String, Object>();
+ HashMap<String, Object> config1 = new HashMap<>();
config1.put(VertxConstants.HOST, host);
config1.put(VertxConstants.PORT, port);
config1.put(VertxConstants.QUEUE_NAME, incomingQueue1);
@@ -97,7 +97,7 @@ public class ActiveMQVertxUnitTest extends ActiveMQTestBase {
ConnectorServiceConfiguration inconf1 = new ConnectorServiceConfiguration().setFactoryClassName(VertxIncomingConnectorServiceFactory.class.getName()).setParams(config1).setName("test-vertx-incoming-connector1");
//outgoing send style
- HashMap<String, Object> config2 = new HashMap<String, Object>();
+ HashMap<String, Object> config2 = new HashMap<>();
config2.put(VertxConstants.HOST, host);
config2.put(VertxConstants.PORT, port);
config2.put(VertxConstants.QUEUE_NAME, inOutQueue1);
@@ -105,7 +105,7 @@ public class ActiveMQVertxUnitTest extends ActiveMQTestBase {
ConnectorServiceConfiguration inconf2 = new ConnectorServiceConfiguration().setFactoryClassName(VertxIncomingConnectorServiceFactory.class.getName()).setParams(config2).setName("test-vertx-incoming-connector2");
- HashMap<String, Object> config3 = new HashMap<String, Object>();
+ HashMap<String, Object> config3 = new HashMap<>();
config3.put(VertxConstants.HOST, host);
config3.put(VertxConstants.PORT, port);
config3.put(VertxConstants.QUEUE_NAME, inOutQueue1);
@@ -114,7 +114,7 @@ public class ActiveMQVertxUnitTest extends ActiveMQTestBase {
ConnectorServiceConfiguration outconf1 = new ConnectorServiceConfiguration().setFactoryClassName(VertxOutgoingConnectorServiceFactory.class.getName()).setParams(config3).setName("test-vertx-outgoing-connector1");
//outgoing publish style
- HashMap<String, Object> config4 = new HashMap<String, Object>();
+ HashMap<String, Object> config4 = new HashMap<>();
config4.put(VertxConstants.HOST, host);
config4.put(VertxConstants.PORT, port);
config4.put(VertxConstants.QUEUE_NAME, inOutQueue2);
@@ -122,7 +122,7 @@ public class ActiveMQVertxUnitTest extends ActiveMQTestBase {
ConnectorServiceConfiguration inconf3 = new ConnectorServiceConfiguration().setFactoryClassName(VertxIncomingConnectorServiceFactory.class.getName()).setParams(config4).setName("test-vertx-incoming-connector3");
- HashMap<String, Object> config5 = new HashMap<String, Object>();
+ HashMap<String, Object> config5 = new HashMap<>();
config5.put(VertxConstants.HOST, host);
config5.put(VertxConstants.PORT, port);
config5.put(VertxConstants.QUEUE_NAME, inOutQueue2);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/xa/BasicXaRecoveryTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/xa/BasicXaRecoveryTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/xa/BasicXaRecoveryTest.java
index b6d1f00..6cb6d0b 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/xa/BasicXaRecoveryTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/xa/BasicXaRecoveryTest.java
@@ -51,7 +51,7 @@ public class BasicXaRecoveryTest extends ActiveMQTestBase {
private static IntegrationTestLogger log = IntegrationTestLogger.LOGGER;
- private final Map<String, AddressSettings> addressSettings = new HashMap<String, AddressSettings>();
+ private final Map<String, AddressSettings> addressSettings = new HashMap<>();
private ActiveMQServer server;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/xa/BasicXaTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/xa/BasicXaTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/xa/BasicXaTest.java
index ce253a7..6c67a76 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/xa/BasicXaTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/xa/BasicXaTest.java
@@ -49,7 +49,7 @@ public class BasicXaTest extends ActiveMQTestBase {
private static IntegrationTestLogger log = IntegrationTestLogger.LOGGER;
- private final Map<String, AddressSettings> addressSettings = new HashMap<String, AddressSettings>();
+ private final Map<String, AddressSettings> addressSettings = new HashMap<>();
private ActiveMQServer messagingService;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/xa/XaTimeoutTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/xa/XaTimeoutTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/xa/XaTimeoutTest.java
index ea9d24a..b6d679a 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/xa/XaTimeoutTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/xa/XaTimeoutTest.java
@@ -55,7 +55,7 @@ import java.util.concurrent.atomic.AtomicInteger;
public class XaTimeoutTest extends ActiveMQTestBase {
- private final Map<String, AddressSettings> addressSettings = new HashMap<String, AddressSettings>();
+ private final Map<String, AddressSettings> addressSettings = new HashMap<>();
private ActiveMQServer server;
@@ -462,7 +462,7 @@ public class XaTimeoutTest extends ActiveMQTestBase {
clientConsumer = clientSession.createConsumer(outQueue);
- HashSet<Integer> msgsIds = new HashSet<Integer>();
+ HashSet<Integer> msgsIds = new HashSet<>();
for (int i = 0; i < numberOfMessages; i++) {
ClientMessage msg = clientConsumer.receive(1000);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/util/JMSTestBase.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/util/JMSTestBase.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/util/JMSTestBase.java
index cb4ba0a..83dc3ba 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/util/JMSTestBase.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/util/JMSTestBase.java
@@ -61,7 +61,7 @@ public class JMSTestBase extends ActiveMQTestBase {
protected ConnectionFactory cf;
protected Connection conn;
- private final Set<JMSContext> contextSet = new HashSet<JMSContext>();
+ private final Set<JMSContext> contextSet = new HashSet<>();
private final Random random = new Random();
protected InVMNamingContext namingContext;
@@ -203,7 +203,7 @@ public class JMSTestBase extends ActiveMQTestBase {
}
protected void registerConnectionFactory() throws Exception {
- List<TransportConfiguration> connectorConfigs = new ArrayList<TransportConfiguration>();
+ List<TransportConfiguration> connectorConfigs = new ArrayList<>();
connectorConfigs.add(new TransportConfiguration(INVM_CONNECTOR_FACTORY));
createCF(connectorConfigs, "/cf");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/util/TransportConfigurationUtils.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/util/TransportConfigurationUtils.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/util/TransportConfigurationUtils.java
index 6aa3b45..472d327 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/util/TransportConfigurationUtils.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/util/TransportConfigurationUtils.java
@@ -78,20 +78,20 @@ public final class TransportConfigurationUtils {
return new TransportConfiguration(classname);
}
- Map<String, Object> server1Params = new HashMap<String, Object>();
+ Map<String, Object> server1Params = new HashMap<>();
server1Params.put(TransportConstants.SERVER_ID_PROP_NAME, 1);
return new TransportConfiguration(classname, server1Params);
}
private static TransportConfiguration transportConfiguration(String classname, boolean live, int server) {
if (classname.contains("netty")) {
- Map<String, Object> serverParams = new HashMap<String, Object>();
+ Map<String, Object> serverParams = new HashMap<>();
Integer port = live ? 61616 : 5545;
serverParams.put(org.apache.activemq.artemis.core.remoting.impl.netty.TransportConstants.PORT_PROP_NAME, port);
return new TransportConfiguration(classname, serverParams);
}
- Map<String, Object> serverParams = new HashMap<String, Object>();
+ Map<String, Object> serverParams = new HashMap<>();
serverParams.put(TransportConstants.SERVER_ID_PROP_NAME, live ? server : server + 100);
return new TransportConfiguration(classname, serverParams);
}
@@ -101,13 +101,13 @@ public final class TransportConfigurationUtils {
int server,
String name) {
if (classname.contains("netty")) {
- Map<String, Object> serverParams = new HashMap<String, Object>();
+ Map<String, Object> serverParams = new HashMap<>();
Integer port = live ? 61616 : 5545;
serverParams.put(org.apache.activemq.artemis.core.remoting.impl.netty.TransportConstants.PORT_PROP_NAME, port);
return new TransportConfiguration(classname, serverParams, name);
}
- Map<String, Object> serverParams = new HashMap<String, Object>();
+ Map<String, Object> serverParams = new HashMap<>();
serverParams.put(TransportConstants.SERVER_ID_PROP_NAME, live ? server : server + 100);
return new TransportConfiguration(classname, serverParams, name);
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/ActiveMQServerTestCase.java
----------------------------------------------------------------------
diff --git a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/ActiveMQServerTestCase.java b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/ActiveMQServerTestCase.java
index 0b53ca9..5383492 100644
--- a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/ActiveMQServerTestCase.java
+++ b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/ActiveMQServerTestCase.java
@@ -72,7 +72,7 @@ public abstract class ActiveMQServerTestCase {
* Some testcases are time sensitive, and we need to make sure a GC would happen before certain scenarios
*/
public static void forceGC() {
- WeakReference<Object> dumbReference = new WeakReference<Object>(new Object());
+ WeakReference<Object> dumbReference = new WeakReference<>(new Object());
// A loop that will wait GC, using the minimal time as possible
while (dumbReference.get() != null) {
System.gc();
@@ -84,7 +84,7 @@ public abstract class ActiveMQServerTestCase {
}
}
- protected static List<Server> servers = new ArrayList<Server>();
+ protected static List<Server> servers = new ArrayList<>();
protected static Topic topic1;
protected static Topic topic2;
@@ -95,8 +95,8 @@ public abstract class ActiveMQServerTestCase {
protected Queue queue3;
protected Queue queue4;
- private final Set<Connection> connectionsSet = new HashSet<Connection>();
- private final Set<JMSContext> contextSet = new HashSet<JMSContext>();
+ private final Set<Connection> connectionsSet = new HashSet<>();
+ private final Set<JMSContext> contextSet = new HashSet<>();
@Rule
public TestRule watcher = new TestWatcher() {
@@ -191,7 +191,7 @@ public abstract class ActiveMQServerTestCase {
}
protected HashMap<String, Object> getConfiguration() {
- return new HashMap<String, Object>();
+ return new HashMap<>();
}
protected void deployAndLookupAdministeredObjects() throws Exception {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/CTSMiscellaneousTest.java
----------------------------------------------------------------------
diff --git a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/CTSMiscellaneousTest.java b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/CTSMiscellaneousTest.java
index 0aefc07..afa51d7 100644
--- a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/CTSMiscellaneousTest.java
+++ b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/CTSMiscellaneousTest.java
@@ -51,7 +51,7 @@ public class CTSMiscellaneousTest extends JMSTest {
try {
super.setUp();
// Deploy a connection factory with load balancing but no failover on node0
- List<String> bindings = new ArrayList<String>();
+ List<String> bindings = new ArrayList<>();
bindings.add("StrictTCKConnectionFactory");
getJmsServerManager().createConnectionFactory("StrictTCKConnectionFactory", false, JMSFactoryType.CF, NETTY_CONNECTOR, null, ActiveMQClient.DEFAULT_CLIENT_FAILURE_CHECK_PERIOD, ActiveMQClient.DEFAULT_CONNECTION_TTL, ActiveMQClient.DEFAULT_CALL_TIMEOUT, ActiveMQClient.DEFAULT_CALL_FAILOVER_TIMEOUT, ActiveMQClient.DEFAULT_CACHE_LARGE_MESSAGE_CLIENT, ActiveMQClient.DEFAULT_MIN_LARGE_MESSAGE_SIZE, ActiveMQClient.DEFAULT_COMPRESS_LARGE_MESSAGES, ActiveMQClient.DEFAULT_CONSUMER_WINDOW_SIZE, ActiveMQClient.DEFAULT_CONSUMER_MAX_RATE, ActiveMQClient.DEFAULT_CONFIRMATION_WINDOW_SIZE, ActiveMQClient.DEFAULT_PRODUCER_WINDOW_SIZE, ActiveMQClient.DEFAULT_PRODUCER_MAX_RATE, true, true, true, ActiveMQClient.DEFAULT_AUTO_GROUP, ActiveMQClient.DEFAULT_PRE_ACKNOWLEDGE, ActiveMQClient.DEFAULT_CONNECTION_LOAD_BALANCING_POLICY_CLASS_NAME, ActiveMQClient.DEFAULT_ACK_BATCH_SIZE, ActiveMQClient.DEFAULT_ACK_BATCH_SIZE, ActiveMQClient.DEFAULT_USE_GLOBAL_POOLS, ActiveMQClient.DEFAULT_SCHEDULED_THREAD_
POOL_MAX_SIZE, ActiveMQClient.DEFAULT_THREAD_POOL_MAX_SIZE, ActiveMQClient.DEFAULT_RETRY_INTERVAL, ActiveMQClient.DEFAULT_RETRY_INTERVAL_MULTIPLIER, ActiveMQClient.DEFAULT_MAX_RETRY_INTERVAL, ActiveMQClient.DEFAULT_RECONNECT_ATTEMPTS, ActiveMQClient.DEFAULT_FAILOVER_ON_INITIAL_CONNECTION, null, "/StrictTCKConnectionFactory");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/ConnectionFactoryTest.java
----------------------------------------------------------------------
diff --git a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/ConnectionFactoryTest.java b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/ConnectionFactoryTest.java
index 8e29dfd..5c7cfee 100644
--- a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/ConnectionFactoryTest.java
+++ b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/ConnectionFactoryTest.java
@@ -184,7 +184,7 @@ public class ConnectionFactoryTest extends JMSTestCase {
@Test
public void testSlowConsumers() throws Exception {
- ArrayList<String> bindings = new ArrayList<String>();
+ ArrayList<String> bindings = new ArrayList<>();
bindings.add("TestSlowConsumersCF");
ActiveMQServerTestCase.deployConnectionFactory(0, "TestSlowConsumersCF", 1, "TestSlowConsumersCF");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/JMSTest.java
----------------------------------------------------------------------
diff --git a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/JMSTest.java b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/JMSTest.java
index 63e87b9..02e7f22 100644
--- a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/JMSTest.java
+++ b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/JMSTest.java
@@ -244,7 +244,7 @@ public class JMSTest extends JMSTestCase {
conn.start();
- final AtomicReference<Message> message = new AtomicReference<Message>();
+ final AtomicReference<Message> message = new AtomicReference<>();
final CountDownLatch latch = new CountDownLatch(1);
new Thread(new Runnable() {
@@ -294,7 +294,7 @@ public class JMSTest extends JMSTestCase {
MessageConsumer cons = sessionConsumer.createConsumer(queue1);
- final AtomicReference<Message> message = new AtomicReference<Message>();
+ final AtomicReference<Message> message = new AtomicReference<>();
final CountDownLatch latch = new CountDownLatch(1);
cons.setMessageListener(new MessageListener() {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/JMSTestCase.java
----------------------------------------------------------------------
diff --git a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/JMSTestCase.java b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/JMSTestCase.java
index ae695dc..21e482f 100644
--- a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/JMSTestCase.java
+++ b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/JMSTestCase.java
@@ -42,7 +42,7 @@ import org.junit.Before;
@Deprecated
public class JMSTestCase extends ActiveMQServerTestCase {
- protected static final ArrayList<String> NETTY_CONNECTOR = new ArrayList<String>();
+ protected static final ArrayList<String> NETTY_CONNECTOR = new ArrayList<>();
static {
NETTY_CONNECTOR.add("netty");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/QueueTest.java
----------------------------------------------------------------------
diff --git a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/QueueTest.java b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/QueueTest.java
index c4c4185..6f502ff 100644
--- a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/QueueTest.java
+++ b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/QueueTest.java
@@ -142,7 +142,7 @@ public class QueueTest extends JMSTestCase {
// There is a possibility the messages arrive out of order if they hit the closed
// consumer and are cancelled back before delivery to the other consumer has finished.
// There is nothing much we can do about this
- Set<String> texts = new HashSet<String>();
+ Set<String> texts = new HashSet<>();
for (int i = 0; i < 20; i++) {
TextMessage txt = (TextMessage) c2.receive(5000);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/BodyIsAssignableFromTest.java
----------------------------------------------------------------------
diff --git a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/BodyIsAssignableFromTest.java b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/BodyIsAssignableFromTest.java
index d75c7f4..58e8bd8 100644
--- a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/BodyIsAssignableFromTest.java
+++ b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/BodyIsAssignableFromTest.java
@@ -141,7 +141,7 @@ public class BodyIsAssignableFromTest extends MessageBodyTestCase {
msg1.setLong("long", 37L);
msg1.setString("string", "crocodile");
msg = msg1;
- Map<String, Object> map = new HashMap<String, Object>();
+ Map<String, Object> map = new HashMap<>();
map.put("int", Integer.valueOf(13));
map.put("long", Long.valueOf(37L));
map.put("string", "crocodile");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/MessageBodyTest.java
----------------------------------------------------------------------
diff --git a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/MessageBodyTest.java b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/MessageBodyTest.java
index cf85fe5..5bafb64 100644
--- a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/MessageBodyTest.java
+++ b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/MessageBodyTest.java
@@ -570,7 +570,7 @@ public class MessageBodyTest extends MessageBodyTestCase {
ProxyAssertSupport.assertFalse(m2.itemExists("sausages"));
- HashSet<String> itemNames = new HashSet<String>();
+ HashSet<String> itemNames = new HashSet<>();
@SuppressWarnings("unchecked")
Enumeration<String> en = m2.getMapNames();
while (en.hasMoreElements()) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/MessageHeaderTest.java
----------------------------------------------------------------------
diff --git a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/MessageHeaderTest.java b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/MessageHeaderTest.java
index 7394a93..cbb7a9d 100644
--- a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/MessageHeaderTest.java
+++ b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/MessageHeaderTest.java
@@ -276,7 +276,7 @@ public class MessageHeaderTest extends MessageHeaderTestBase {
ProxyAssertSupport.assertFalse(m2.propertyExists("sausages"));
- Set<String> propNames = new HashSet<String>();
+ Set<String> propNames = new HashSet<>();
Enumeration en = m2.getPropertyNames();
while (en.hasMoreElements()) {
String propName = (String) en.nextElement();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/ObjectMessageTest.java
----------------------------------------------------------------------
diff --git a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/ObjectMessageTest.java b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/ObjectMessageTest.java
index 1a3e922..ddab13f 100644
--- a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/ObjectMessageTest.java
+++ b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/ObjectMessageTest.java
@@ -87,7 +87,7 @@ public class ObjectMessageTest extends MessageTestBase {
@Test
public void testVectorOnObjectMessage() throws Exception {
- java.util.Vector<String> vectorOnMessage = new java.util.Vector<String>();
+ java.util.Vector<String> vectorOnMessage = new java.util.Vector<>();
vectorOnMessage.add("world!");
((ObjectMessage) message).setObject(vectorOnMessage);
@@ -104,7 +104,7 @@ public class ObjectMessageTest extends MessageTestBase {
@Test
public void testObjectIsolation() throws Exception {
ObjectMessage msgTest = session.createObjectMessage();
- ArrayList<String> list = new ArrayList<String>();
+ ArrayList<String> list = new ArrayList<>();
list.add("hello");
msgTest.setObject(list);
@@ -193,7 +193,7 @@ public class ObjectMessageTest extends MessageTestBase {
pathIgnore = classLocation.toString();
}
- ArrayList<URL> urls = new ArrayList<URL>();
+ ArrayList<URL> urls = new ArrayList<>();
while (tokenString.hasMoreElements()) {
String value = tokenString.nextToken();
URL itemLocation = new File(value).toURI().toURL();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/SimpleJMSMessage.java
----------------------------------------------------------------------
diff --git a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/SimpleJMSMessage.java b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/SimpleJMSMessage.java
index 3f49a5b..dc53e7a 100644
--- a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/SimpleJMSMessage.java
+++ b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/SimpleJMSMessage.java
@@ -199,7 +199,7 @@ public class SimpleJMSMessage implements Message {
this.priority = priority;
}
- private final Map<String, Object> properties = new HashMap<String, Object>();
+ private final Map<String, Object> properties = new HashMap<>();
@Override
public void clearProperties() throws JMSException {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/SimpleJMSStreamMessage.java
----------------------------------------------------------------------
diff --git a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/SimpleJMSStreamMessage.java b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/SimpleJMSStreamMessage.java
index ca63cef..4d86fdf 100644
--- a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/SimpleJMSStreamMessage.java
+++ b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/SimpleJMSStreamMessage.java
@@ -48,7 +48,7 @@ public class SimpleJMSStreamMessage extends SimpleJMSMessage implements StreamMe
// Constructors --------------------------------------------------
public SimpleJMSStreamMessage() {
- content = new ArrayList<Object>();
+ content = new ArrayList<>();
position = 0;
size = 0;
offset = 0;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/selector/SelectorTest.java
----------------------------------------------------------------------
diff --git a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/selector/SelectorTest.java b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/selector/SelectorTest.java
index baf8df8..ad56fbe 100644
--- a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/selector/SelectorTest.java
+++ b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/selector/SelectorTest.java
@@ -530,8 +530,8 @@ public class SelectorTest extends ActiveMQServerTestCase {
conn.start();
- final List<Message> received = new ArrayList<Message>();
- final List<Message> received2 = new ArrayList<Message>();
+ final List<Message> received = new ArrayList<>();
+ final List<Message> received2 = new ArrayList<>();
final CountDownLatch latch = new CountDownLatch(1);
final CountDownLatch latch2 = new CountDownLatch(1);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/ServerManagement.java
----------------------------------------------------------------------
diff --git a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/ServerManagement.java b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/ServerManagement.java
index 2bf0c06..dbe410f 100644
--- a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/ServerManagement.java
+++ b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/ServerManagement.java
@@ -53,7 +53,7 @@ public class ServerManagement {
private static JmsTestLogger log = JmsTestLogger.LOGGER;
- private static List<Server> servers = new ArrayList<Server>();
+ private static List<Server> servers = new ArrayList<>();
/**
* Makes sure that a "hollow" TestServer (either local or remote, depending on the nature of the
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/InVMContext.java
----------------------------------------------------------------------
diff --git a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/InVMContext.java b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/InVMContext.java
index 269246b..7fa6faf 100644
--- a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/InVMContext.java
+++ b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/InVMContext.java
@@ -178,7 +178,7 @@ public class InVMContext implements Context, Serializable {
}
}
- List<Binding> l = new ArrayList<Binding>();
+ List<Binding> l = new ArrayList<>();
for (String name : map.keySet()) {
Object object = map.get(name);
l.add(new Binding(name, object));
@@ -254,7 +254,7 @@ public class InVMContext implements Context, Serializable {
@Override
public Hashtable<String, String> getEnvironment() throws NamingException {
- Hashtable<String, String> env = new Hashtable<String, String>();
+ Hashtable<String, String> env = new Hashtable<>();
env.put("java.naming.factory.initial", InVMInitialContextFactory.class.getCanonicalName());
return env;
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/InVMInitialContextFactory.java
----------------------------------------------------------------------
diff --git a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/InVMInitialContextFactory.java b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/InVMInitialContextFactory.java
index ce8c2cf..76bc649 100644
--- a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/InVMInitialContextFactory.java
+++ b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/InVMInitialContextFactory.java
@@ -46,7 +46,7 @@ public class InVMInitialContextFactory implements InitialContextFactory {
* @return the JNDI environment to use to get this InitialContextFactory.
*/
public static Hashtable<String, String> getJNDIEnvironment(final int serverIndex) {
- Hashtable<String, String> env = new Hashtable<String, String>();
+ Hashtable<String, String> env = new Hashtable<>();
env.put("java.naming.factory.initial", "org.apache.activemq.artemis.jms.tests.tools.container.InVMInitialContextFactory");
env.put(Constants.SERVER_INDEX_PROPERTY_NAME, Integer.toString(serverIndex));
return env;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/LocalTestServer.java
----------------------------------------------------------------------
diff --git a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/LocalTestServer.java b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/LocalTestServer.java
index e4b615d..54e07e4 100644
--- a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/LocalTestServer.java
+++ b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/LocalTestServer.java
@@ -54,7 +54,7 @@ public class LocalTestServer implements Server, Runnable {
private boolean started = false;
- private final HashMap<String, List<String>> allBindings = new HashMap<String, List<String>>();
+ private final HashMap<String, List<String>> allBindings = new HashMap<>();
private JMSServerManagerImpl jmsServerManager;
// Static ---------------------------------------------------------------------------------------
@@ -269,10 +269,10 @@ public class LocalTestServer implements Server, Runnable {
final int dupsOkBatchSize,
final boolean blockOnAcknowledge,
final String... jndiBindings) throws Exception {
- List<TransportConfiguration> connectorConfigs = new ArrayList<TransportConfiguration>();
+ List<TransportConfiguration> connectorConfigs = new ArrayList<>();
connectorConfigs.add(new TransportConfiguration(NettyConnectorFactory.class.getName()));
- ArrayList<String> connectors = new ArrayList<String>();
+ ArrayList<String> connectors = new ArrayList<>();
connectors.add("netty");
getJMSServerManager().createConnectionFactory(objectName, false, type, connectors, clientId, ActiveMQClient.DEFAULT_CLIENT_FAILURE_CHECK_PERIOD, ActiveMQClient.DEFAULT_CONNECTION_TTL, ActiveMQClient.DEFAULT_CALL_TIMEOUT, ActiveMQClient.DEFAULT_CALL_FAILOVER_TIMEOUT, ActiveMQClient.DEFAULT_CACHE_LARGE_MESSAGE_CLIENT, ActiveMQClient.DEFAULT_MIN_LARGE_MESSAGE_SIZE, ActiveMQClient.DEFAULT_COMPRESS_LARGE_MESSAGES, prefetchSize, ActiveMQClient.DEFAULT_CONSUMER_MAX_RATE, ActiveMQClient.DEFAULT_CONFIRMATION_WINDOW_SIZE, ActiveMQClient.DEFAULT_PRODUCER_WINDOW_SIZE, ActiveMQClient.DEFAULT_PRODUCER_MAX_RATE, blockOnAcknowledge, true, true, ActiveMQClient.DEFAULT_AUTO_GROUP, ActiveMQClient.DEFAULT_PRE_ACKNOWLEDGE, ActiveMQClient.DEFAULT_CONNECTION_LOAD_BALANCING_POLICY_CLASS_NAME, ActiveMQClient.DEFAULT_ACK_BATCH_SIZE, dupsOkBatchSize, ActiveMQClient.DEFAULT_USE_GLOBAL_POOLS, ActiveMQClient.DEFAULT_SCHEDULED_THREAD_POOL_MAX_SIZE, ActiveMQClient.DEFAULT_THREAD_POOL_MAX_SIZE, ActiveMQClient
.DEFAULT_RETRY_INTERVAL, ActiveMQClient.DEFAULT_RETRY_INTERVAL_MULTIPLIER, ActiveMQClient.DEFAULT_MAX_RETRY_INTERVAL, ActiveMQClient.DEFAULT_RECONNECT_ATTEMPTS, ActiveMQClient.DEFAULT_FAILOVER_ON_INITIAL_CONNECTION, null, jndiBindings);
@@ -358,7 +358,7 @@ public class LocalTestServer implements Server, Runnable {
ObjectName objectName = ObjectNameBuilder.DEFAULT.getJMSTopicObjectName(s);
TopicControl topic = MBeanServerInvocationHandler.newProxyInstance(ManagementFactory.getPlatformMBeanServer(), objectName, TopicControl.class, false);
Object[] subInfos = topic.listAllSubscriptions();
- List<String> subs = new ArrayList<String>();
+ List<String> subs = new ArrayList<>();
for (Object o : subInfos) {
Object[] data = (Object[]) o;
subs.add((String) data[2]);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/joram-tests/src/test/java/org/apache/activemq/artemis/jms/ActiveMQAdmin.java
----------------------------------------------------------------------
diff --git a/tests/joram-tests/src/test/java/org/apache/activemq/artemis/jms/ActiveMQAdmin.java b/tests/joram-tests/src/test/java/org/apache/activemq/artemis/jms/ActiveMQAdmin.java
index 94ebed1..27d2a46 100644
--- a/tests/joram-tests/src/test/java/org/apache/activemq/artemis/jms/ActiveMQAdmin.java
+++ b/tests/joram-tests/src/test/java/org/apache/activemq/artemis/jms/ActiveMQAdmin.java
@@ -65,7 +65,7 @@ public class ActiveMQAdmin implements Admin {
public ActiveMQAdmin() {
serverLifeCycleActive = Boolean.valueOf(System.getProperty(SERVER_LIVE_CYCLE_PROPERTY, "true"));
try {
- Hashtable<String, String> env = new Hashtable<String, String>();
+ Hashtable<String, String> env = new Hashtable<>();
env.put("java.naming.factory.initial", "org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory");
env.put("java.naming.provider.url", "tcp://localhost:61616");
context = new InitialContext(env);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/performance-tests/src/test/java/org/apache/activemq/artemis/tests/performance/paging/MeasurePagingMultiThreadTest.java
----------------------------------------------------------------------
diff --git a/tests/performance-tests/src/test/java/org/apache/activemq/artemis/tests/performance/paging/MeasurePagingMultiThreadTest.java b/tests/performance-tests/src/test/java/org/apache/activemq/artemis/tests/performance/paging/MeasurePagingMultiThreadTest.java
index 31133d2..87645b8 100644
--- a/tests/performance-tests/src/test/java/org/apache/activemq/artemis/tests/performance/paging/MeasurePagingMultiThreadTest.java
+++ b/tests/performance-tests/src/test/java/org/apache/activemq/artemis/tests/performance/paging/MeasurePagingMultiThreadTest.java
@@ -40,7 +40,7 @@ public class MeasurePagingMultiThreadTest extends ActiveMQTestBase {
final int NUMBER_OF_MESSAGES = 50000;
final int SIZE_OF_MESSAGE = 1024;
- HashMap<String, AddressSettings> settings = new HashMap<String, AddressSettings>();
+ HashMap<String, AddressSettings> settings = new HashMap<>();
ActiveMQServer messagingService = createServer(true, createDefaultInVMConfig(), 10 * 1024, 20 * 1024, settings);
messagingService.start();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/performance-tests/src/test/java/org/apache/activemq/artemis/tests/performance/sends/AbstractSendReceivePerfTest.java
----------------------------------------------------------------------
diff --git a/tests/performance-tests/src/test/java/org/apache/activemq/artemis/tests/performance/sends/AbstractSendReceivePerfTest.java b/tests/performance-tests/src/test/java/org/apache/activemq/artemis/tests/performance/sends/AbstractSendReceivePerfTest.java
index 7e3c16c..12d6229 100644
--- a/tests/performance-tests/src/test/java/org/apache/activemq/artemis/tests/performance/sends/AbstractSendReceivePerfTest.java
+++ b/tests/performance-tests/src/test/java/org/apache/activemq/artemis/tests/performance/sends/AbstractSendReceivePerfTest.java
@@ -64,7 +64,7 @@ public abstract class AbstractSendReceivePerfTest extends JMSTestBase {
@Override
protected void registerConnectionFactory() throws Exception {
- List<TransportConfiguration> connectorConfigs = new ArrayList<TransportConfiguration>();
+ List<TransportConfiguration> connectorConfigs = new ArrayList<>();
connectorConfigs.add(new TransportConfiguration(NETTY_CONNECTOR_FACTORY));
createCF(connectorConfigs, "/cf");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/soak-tests/src/test/java/org/apache/activemq/artemis/tests/soak/client/ClientSoakTest.java
----------------------------------------------------------------------
diff --git a/tests/soak-tests/src/test/java/org/apache/activemq/artemis/tests/soak/client/ClientSoakTest.java b/tests/soak-tests/src/test/java/org/apache/activemq/artemis/tests/soak/client/ClientSoakTest.java
index 1f770d9..77d09a8 100644
--- a/tests/soak-tests/src/test/java/org/apache/activemq/artemis/tests/soak/client/ClientSoakTest.java
+++ b/tests/soak-tests/src/test/java/org/apache/activemq/artemis/tests/soak/client/ClientSoakTest.java
@@ -76,7 +76,7 @@ public class ClientSoakTest extends ActiveMQTestBase {
DivertConfiguration divert2 = new DivertConfiguration().setName("dv2").setRoutingName("nm2").setAddress(ClientSoakTest.ADDRESS.toString()).setForwardingAddress(ClientSoakTest.DIVERTED_AD2.toString()).setExclusive(true);
- ArrayList<DivertConfiguration> divertList = new ArrayList<DivertConfiguration>();
+ ArrayList<DivertConfiguration> divertList = new ArrayList<>();
divertList.add(divert1);
divertList.add(divert2);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/journal/AddAndRemoveStressTest.java
----------------------------------------------------------------------
diff --git a/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/journal/AddAndRemoveStressTest.java b/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/journal/AddAndRemoveStressTest.java
index 3bf033e..5c7ec19 100644
--- a/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/journal/AddAndRemoveStressTest.java
+++ b/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/journal/AddAndRemoveStressTest.java
@@ -112,8 +112,8 @@ public class AddAndRemoveStressTest extends ActiveMQTestBase {
impl.start();
- ArrayList<RecordInfo> info = new ArrayList<RecordInfo>();
- ArrayList<PreparedTransactionInfo> trans = new ArrayList<PreparedTransactionInfo>();
+ ArrayList<RecordInfo> info = new ArrayList<>();
+ ArrayList<PreparedTransactionInfo> trans = new ArrayList<>();
impl.load(info, trans, null);
@@ -174,8 +174,8 @@ public class AddAndRemoveStressTest extends ActiveMQTestBase {
impl.start();
- ArrayList<RecordInfo> info = new ArrayList<RecordInfo>();
- ArrayList<PreparedTransactionInfo> trans = new ArrayList<PreparedTransactionInfo>();
+ ArrayList<RecordInfo> info = new ArrayList<>();
+ ArrayList<PreparedTransactionInfo> trans = new ArrayList<>();
impl.load(info, trans, null);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/journal/JournalCleanupCompactStressTest.java
----------------------------------------------------------------------
diff --git a/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/journal/JournalCleanupCompactStressTest.java b/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/journal/JournalCleanupCompactStressTest.java
index 2bab97b..75600a1 100644
--- a/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/journal/JournalCleanupCompactStressTest.java
+++ b/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/journal/JournalCleanupCompactStressTest.java
@@ -265,8 +265,8 @@ public class JournalCleanupCompactStressTest extends ActiveMQTestBase {
private void reloadJournal() throws Exception {
assertEquals(0, errors.get());
- ArrayList<RecordInfo> committedRecords = new ArrayList<RecordInfo>();
- ArrayList<PreparedTransactionInfo> preparedTransactions = new ArrayList<PreparedTransactionInfo>();
+ ArrayList<RecordInfo> committedRecords = new ArrayList<>();
+ ArrayList<PreparedTransactionInfo> preparedTransactions = new ArrayList<>();
journal.load(committedRecords, preparedTransactions, new TransactionFailureCallback() {
@Override
public void failedTransaction(long transactionID, List<RecordInfo> records, List<RecordInfo> recordsToDelete) {
@@ -297,7 +297,7 @@ public class JournalCleanupCompactStressTest extends ActiveMQTestBase {
class FastAppenderTx extends Thread {
- LinkedBlockingDeque<Long> queue = new LinkedBlockingDeque<Long>();
+ LinkedBlockingDeque<Long> queue = new LinkedBlockingDeque<>();
OperationContextImpl ctx = new OperationContextImpl(executorFactory.getExecutor());
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/journal/JournalRestartStressTest.java
----------------------------------------------------------------------
diff --git a/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/journal/JournalRestartStressTest.java b/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/journal/JournalRestartStressTest.java
index c718719..1454a3a 100644
--- a/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/journal/JournalRestartStressTest.java
+++ b/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/journal/JournalRestartStressTest.java
@@ -120,7 +120,7 @@ public class JournalRestartStressTest extends ActiveMQTestBase {
final ClientSession sessionReceive = sf.createSession(true, true);
sessionReceive.start();
- final ArrayList<Throwable> errors = new ArrayList<Throwable>();
+ final ArrayList<Throwable> errors = new ArrayList<>();
Thread tReceive = new Thread() {
@Override
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/journal/MultiThreadConsumerStressTest.java
----------------------------------------------------------------------
diff --git a/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/journal/MultiThreadConsumerStressTest.java b/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/journal/MultiThreadConsumerStressTest.java
index ab786b7..e4add67 100644
--- a/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/journal/MultiThreadConsumerStressTest.java
+++ b/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/journal/MultiThreadConsumerStressTest.java
@@ -89,7 +89,7 @@ public class MultiThreadConsumerStressTest extends ActiveMQTestBase {
CountDownLatch latchStart = new CountDownLatch(1);
- ArrayList<BaseThread> threads = new ArrayList<BaseThread>();
+ ArrayList<BaseThread> threads = new ArrayList<>();
ProducerThread[] prod = new ProducerThread[numberOfProducers];
for (int i = 0; i < numberOfProducers; i++) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/journal/NIOMultiThreadCompactorStressTest.java
----------------------------------------------------------------------
diff --git a/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/journal/NIOMultiThreadCompactorStressTest.java b/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/journal/NIOMultiThreadCompactorStressTest.java
index 205022c..bdb68d5 100644
--- a/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/journal/NIOMultiThreadCompactorStressTest.java
+++ b/tests/stress-tests/src/test/java/org/apache/activemq/artemis/tests/stress/journal/NIOMultiThreadCompactorStressTest.java
@@ -86,8 +86,8 @@ public class NIOMultiThreadCompactorStressTest extends ActiveMQTestBase {
NIOSequentialFileFactory factory = new NIOSequentialFileFactory(new File(getJournalDir()), 1);
JournalImpl journal = new JournalImpl(ActiveMQDefaultConfiguration.getDefaultJournalFileSize(), 2, 0, 0, factory, "activemq-data", "amq", 100);
- List<RecordInfo> committedRecords = new ArrayList<RecordInfo>();
- List<PreparedTransactionInfo> preparedTransactions = new ArrayList<PreparedTransactionInfo>();
+ List<RecordInfo> committedRecords = new ArrayList<>();
+ List<PreparedTransactionInfo> preparedTransactions = new ArrayList<>();
journal.start();
journal.load(committedRecords, preparedTransactions, null);
@@ -181,7 +181,7 @@ public class NIOMultiThreadCompactorStressTest extends ActiveMQTestBase {
CountDownLatch latchStart = new CountDownLatch(1);
- ArrayList<BaseThread> threads = new ArrayList<BaseThread>();
+ ArrayList<BaseThread> threads = new ArrayList<>();
ProducerThread[] prod = new ProducerThread[numberOfProducers];
for (int i = 0; i < numberOfProducers; i++) {
[25/32] activemq-artemis git commit: Convert mac linefeeds to unix
Posted by cl...@apache.org.
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/TransactionIdTestSupport.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/TransactionIdTestSupport.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/TransactionIdTestSupport.java
index 7a696fc..d74beb6 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/TransactionIdTestSupport.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/TransactionIdTestSupport.java
@@ -1 +1,44 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for TransactionId
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public abstract class TransactionIdTestSupport extends DataFileGeneratorTestSupport {
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
TransactionId info = (TransactionId) object;
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for TransactionId
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public abstract class TransactionIdTestSupport extends DataFileGeneratorTestSupport {
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ TransactionId info = (TransactionId) object;
+
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/TransactionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/TransactionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/TransactionInfoTest.java
index 089629b..a87b6b7 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/TransactionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/TransactionInfoTest.java
@@ -1 +1,56 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for TransactionInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class TransactionInfoTest extends BaseCommandTestSupport {
public static TransactionInfoTest SINGLETON = new TransactionInfoTest();
@Override
public Object createObject() throws Exception {
TransactionInfo info = new TransactionInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
TransactionInfo info = (TransactionInfo) object;
info.setConnectionId(createConnectionId("ConnectionId:1"));
info.setTransactionId(createTransactionId("TransactionId:2"));
info.setType((byte) 1);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for TransactionInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class TransactionInfoTest extends BaseCommandTestSupport {
+
+ public static TransactionInfoTest SINGLETON = new TransactionInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ TransactionInfo info = new TransactionInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ TransactionInfo info = (TransactionInfo) object;
+
+ info.setConnectionId(createConnectionId("ConnectionId:1"));
+ info.setTransactionId(createTransactionId("TransactionId:2"));
+ info.setType((byte) 1);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/XATransactionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/XATransactionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/XATransactionIdTest.java
index cf40869..8e8405f 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/XATransactionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/XATransactionIdTest.java
@@ -1 +1,56 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for XATransactionId
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class XATransactionIdTest extends TransactionIdTestSupport {
public static XATransactionIdTest SINGLETON = new XATransactionIdTest();
@Override
public Object createObject() throws Exception {
XATransactionId info = new XATransactionId();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
XATransactionId info = (XATransactionId) object;
info.setFormatId(1);
info.setGlobalTransactionId("GlobalTransactionId:1".getBytes());
info.setBranchQualifier("BranchQualifier:2".getBytes());
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for XATransactionId
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class XATransactionIdTest extends TransactionIdTestSupport {
+
+ public static XATransactionIdTest SINGLETON = new XATransactionIdTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ XATransactionId info = new XATransactionId();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ XATransactionId info = (XATransactionId) object;
+
+ info.setFormatId(1);
+ info.setGlobalTransactionId("GlobalTransactionId:1".getBytes());
+ info.setBranchQualifier("BranchQualifier:2".getBytes());
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/BrokerIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/BrokerIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/BrokerIdTest.java
index 7ca61a4..13c85e5 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/BrokerIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/BrokerIdTest.java
@@ -1 +1,54 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for BrokerId
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class BrokerIdTest extends DataFileGeneratorTestSupport {
public static BrokerIdTest SINGLETON = new BrokerIdTest();
@Override
public Object createObject() throws Exception {
BrokerId info = new BrokerId();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
BrokerId info = (BrokerId) object;
info.setValue("Value:1");
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for BrokerId
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class BrokerIdTest extends DataFileGeneratorTestSupport {
+
+ public static BrokerIdTest SINGLETON = new BrokerIdTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ BrokerId info = new BrokerId();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ BrokerId info = (BrokerId) object;
+
+ info.setValue("Value:1");
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/BrokerInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/BrokerInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/BrokerInfoTest.java
index 674e184..a9e1d17 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/BrokerInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/BrokerInfoTest.java
@@ -1 +1,71 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for BrokerInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class BrokerInfoTest extends BaseCommandTestSupport {
public static BrokerInfoTest SINGLETON = new BrokerInfoTest();
@Override
public Object createObject() throws Exception {
BrokerInfo info = new BrokerInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
BrokerInfo info = (BrokerInfo) object;
info.setBrokerId(createBrokerId("BrokerId:1"));
info.setBrokerURL("BrokerURL:2");
{
BrokerInfo value[] = new BrokerInfo[0];
for (int i = 0; i < 0; i++) {
value[i] = createBrokerInfo("
PeerBrokerInfos:3");
}
info.setPeerBrokerInfos(value);
}
info.setBrokerName("BrokerName:4");
info.setSlaveBroker(true);
info.setMasterBroker(false);
info.setFaultTolerantConfiguration(true);
info.setDuplexConnection(false);
info.setNetworkConnection(true);
info.setConnectionId(1);
info.setBrokerUploadUrl("BrokerUploadUrl:5");
info.setNetworkProperties("NetworkProperties:6");
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for BrokerInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class BrokerInfoTest extends BaseCommandTestSupport {
+
+ public static BrokerInfoTest SINGLETON = new BrokerInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ BrokerInfo info = new BrokerInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ BrokerInfo info = (BrokerInfo) object;
+
+ info.setBrokerId(createBrokerId("BrokerId:1"));
+ info.setBrokerURL("BrokerURL:2");
+ {
+ BrokerInfo value[] = new BrokerInfo[0];
+ for (int i = 0; i < 0; i++) {
+ value[i] = createBrokerInfo("PeerBrokerInfos:3");
+ }
+ info.setPeerBrokerInfos(value);
+ }
+ info.setBrokerName("BrokerName:4");
+ info.setSlaveBroker(true);
+ info.setMasterBroker(false);
+ info.setFaultTolerantConfiguration(true);
+ info.setDuplexConnection(false);
+ info.setNetworkConnection(true);
+ info.setConnectionId(1);
+ info.setBrokerUploadUrl("BrokerUploadUrl:5");
+ info.setNetworkProperties("NetworkProperties:6");
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionControlTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionControlTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionControlTest.java
index 6940077..5c6b847 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionControlTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionControlTest.java
@@ -1 +1,62 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ConnectionControl
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ConnectionControlTest extends BaseCommandTestSupport {
public static ConnectionControlTest SINGLETON = new ConnectionControlTest();
@Override
public Object createObject() throws Exception {
ConnectionControl info = new ConnectionControl();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ConnectionControl info = (ConnectionControl) object;
info.setClose(true);
info.setExit(false);
info.setFaultTolerant(true);
info.setResume(false);
info.setSuspend(true);
info.setConnectedBroke
rs("ConnectedBrokers:1");
info.setReconnectTo("ReconnectTo:2");
info.setRebalanceConnection(false);
info.setToken("Token:3".getBytes());
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ConnectionControl
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ConnectionControlTest extends BaseCommandTestSupport {
+
+ public static ConnectionControlTest SINGLETON = new ConnectionControlTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ConnectionControl info = new ConnectionControl();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ConnectionControl info = (ConnectionControl) object;
+
+ info.setClose(true);
+ info.setExit(false);
+ info.setFaultTolerant(true);
+ info.setResume(false);
+ info.setSuspend(true);
+ info.setConnectedBrokers("ConnectedBrokers:1");
+ info.setReconnectTo("ReconnectTo:2");
+ info.setRebalanceConnection(false);
+ info.setToken("Token:3".getBytes());
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionErrorTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionErrorTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionErrorTest.java
index 27fca55..d4337f7 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionErrorTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionErrorTest.java
@@ -1 +1,55 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ConnectionError
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ConnectionErrorTest extends BaseCommandTestSupport {
public static ConnectionErrorTest SINGLETON = new ConnectionErrorTest();
@Override
public Object createObject() throws Exception {
ConnectionError info = new ConnectionError();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ConnectionError info = (ConnectionError) object;
info.setException(createThrowable("Exception:1"));
info.setConnectionId(createConnectionId("ConnectionId:2"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ConnectionError
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ConnectionErrorTest extends BaseCommandTestSupport {
+
+ public static ConnectionErrorTest SINGLETON = new ConnectionErrorTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ConnectionError info = new ConnectionError();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ConnectionError info = (ConnectionError) object;
+
+ info.setException(createThrowable("Exception:1"));
+ info.setConnectionId(createConnectionId("ConnectionId:2"));
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionIdTest.java
index 8634d42..7efbaf8 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionIdTest.java
@@ -1 +1,54 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ConnectionId
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ConnectionIdTest extends DataFileGeneratorTestSupport {
public static ConnectionIdTest SINGLETON = new ConnectionIdTest();
@Override
public Object createObject() throws Exception {
ConnectionId info = new ConnectionId();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ConnectionId info = (ConnectionId) object;
info.setValue("Value:1");
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ConnectionId
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ConnectionIdTest extends DataFileGeneratorTestSupport {
+
+ public static ConnectionIdTest SINGLETON = new ConnectionIdTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ConnectionId info = new ConnectionId();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ConnectionId info = (ConnectionId) object;
+
+ info.setValue("Value:1");
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionInfoTest.java
index 900cdc0..917b64a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionInfoTest.java
@@ -1 +1,70 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ConnectionInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ConnectionInfoTest extends BaseCommandTestSupport {
public static ConnectionInfoTest SINGLETON = new ConnectionInfoTest();
@Override
public Object createObject() throws Exception {
ConnectionInfo info = new ConnectionInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ConnectionInfo info = (ConnectionInfo) object;
info.setConnectionId(createConnectionId("ConnectionId:1"));
info.setClientId("ClientId:2");
info.setPassword("Password:3");
info.setUserName("UserName:4");
{
Br
okerId value[] = new BrokerId[2];
for (int i = 0; i < 2; i++) {
value[i] = createBrokerId("BrokerPath:5");
}
info.setBrokerPath(value);
}
info.setBrokerMasterConnector(true);
info.setManageable(false);
info.setClientMaster(true);
info.setFaultTolerant(false);
info.setFailoverReconnect(true);
info.setClientIp("ClientIp:6");
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ConnectionInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ConnectionInfoTest extends BaseCommandTestSupport {
+
+ public static ConnectionInfoTest SINGLETON = new ConnectionInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ConnectionInfo info = new ConnectionInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ConnectionInfo info = (ConnectionInfo) object;
+
+ info.setConnectionId(createConnectionId("ConnectionId:1"));
+ info.setClientId("ClientId:2");
+ info.setPassword("Password:3");
+ info.setUserName("UserName:4");
+ {
+ BrokerId value[] = new BrokerId[2];
+ for (int i = 0; i < 2; i++) {
+ value[i] = createBrokerId("BrokerPath:5");
+ }
+ info.setBrokerPath(value);
+ }
+ info.setBrokerMasterConnector(true);
+ info.setManageable(false);
+ info.setClientMaster(true);
+ info.setFaultTolerant(false);
+ info.setFailoverReconnect(true);
+ info.setClientIp("ClientIp:6");
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerControlTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerControlTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerControlTest.java
index 5e7ec1f..6f018f8 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerControlTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerControlTest.java
@@ -1 +1,60 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ConsumerControl
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ConsumerControlTest extends BaseCommandTestSupport {
public static ConsumerControlTest SINGLETON = new ConsumerControlTest();
@Override
public Object createObject() throws Exception {
ConsumerControl info = new ConsumerControl();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ConsumerControl info = (ConsumerControl) object;
info.setDestination(createActiveMQDestination("Destination:1"));
info.setClose(true);
info.setConsumerId(createConsumerId("ConsumerId:2"));
info.setPrefetch(1);
info.setFlush(false);
info.setStart(true);
info.setStop(false);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ConsumerControl
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ConsumerControlTest extends BaseCommandTestSupport {
+
+ public static ConsumerControlTest SINGLETON = new ConsumerControlTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ConsumerControl info = new ConsumerControl();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ConsumerControl info = (ConsumerControl) object;
+
+ info.setDestination(createActiveMQDestination("Destination:1"));
+ info.setClose(true);
+ info.setConsumerId(createConsumerId("ConsumerId:2"));
+ info.setPrefetch(1);
+ info.setFlush(false);
+ info.setStart(true);
+ info.setStop(false);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerIdTest.java
index 036a130..53d75ef 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerIdTest.java
@@ -1 +1,56 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ConsumerId
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ConsumerIdTest extends DataFileGeneratorTestSupport {
public static ConsumerIdTest SINGLETON = new ConsumerIdTest();
@Override
public Object createObject() throws Exception {
ConsumerId info = new ConsumerId();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ConsumerId info = (ConsumerId) object;
info.setConnectionId("ConnectionId:1");
info.setSessionId(1);
info.setValue(2);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ConsumerId
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ConsumerIdTest extends DataFileGeneratorTestSupport {
+
+ public static ConsumerIdTest SINGLETON = new ConsumerIdTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ConsumerId info = new ConsumerId();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ConsumerId info = (ConsumerId) object;
+
+ info.setConnectionId("ConnectionId:1");
+ info.setSessionId(1);
+ info.setValue(2);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerInfoTest.java
index 8917fa7..f846ba9 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerInfoTest.java
@@ -1 +1,83 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ConsumerInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ConsumerInfoTest extends BaseCommandTestSupport {
public static ConsumerInfoTest SINGLETON = new ConsumerInfoTest();
@Override
public Object createObject() throws Exception {
ConsumerInfo info = new ConsumerInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ConsumerInfo info = (ConsumerInfo) object;
info.setConsumerId(createConsumerId("ConsumerId:1"));
info.setBrowser(true);
info.setDestination(createActiveMQDestination("Destination:2"));
info.setPrefetchSize(1);
info.setMaximumPen
dingMessageLimit(2);
info.setDispatchAsync(false);
info.setSelector("Selector:3");
info.setSubscriptionName("SubscriptionName:4");
info.setNoLocal(true);
info.setExclusive(false);
info.setRetroactive(true);
info.setPriority((byte) 1);
{
BrokerId value[] = new BrokerId[2];
for (int i = 0; i < 2; i++) {
value[i] = createBrokerId("BrokerPath:5");
}
info.setBrokerPath(value);
}
info.setAdditionalPredicate(createBooleanExpression("AdditionalPredicate:6"));
info.setNetworkSubscription(false);
info.setOptimizedAcknowledge(true);
info.setNoRangeAcks(false);
{
ConsumerId value[] = new ConsumerId[2];
for (int i = 0; i < 2; i++) {
value[i] = createConsumerId("NetworkConsumerPath:7");
}
info.setNetworkConsumerPath(value);
}
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ConsumerInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ConsumerInfoTest extends BaseCommandTestSupport {
+
+ public static ConsumerInfoTest SINGLETON = new ConsumerInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ConsumerInfo info = new ConsumerInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ConsumerInfo info = (ConsumerInfo) object;
+
+ info.setConsumerId(createConsumerId("ConsumerId:1"));
+ info.setBrowser(true);
+ info.setDestination(createActiveMQDestination("Destination:2"));
+ info.setPrefetchSize(1);
+ info.setMaximumPendingMessageLimit(2);
+ info.setDispatchAsync(false);
+ info.setSelector("Selector:3");
+ info.setSubscriptionName("SubscriptionName:4");
+ info.setNoLocal(true);
+ info.setExclusive(false);
+ info.setRetroactive(true);
+ info.setPriority((byte) 1);
+ {
+ BrokerId value[] = new BrokerId[2];
+ for (int i = 0; i < 2; i++) {
+ value[i] = createBrokerId("BrokerPath:5");
+ }
+ info.setBrokerPath(value);
+ }
+ info.setAdditionalPredicate(createBooleanExpression("AdditionalPredicate:6"));
+ info.setNetworkSubscription(false);
+ info.setOptimizedAcknowledge(true);
+ info.setNoRangeAcks(false);
+ {
+ ConsumerId value[] = new ConsumerId[2];
+ for (int i = 0; i < 2; i++) {
+ value[i] = createConsumerId("NetworkConsumerPath:7");
+ }
+ info.setNetworkConsumerPath(value);
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ControlCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ControlCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ControlCommandTest.java
index 44aa7b1..116725e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ControlCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ControlCommandTest.java
@@ -1 +1,54 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ControlCommand
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ControlCommandTest extends BaseCommandTestSupport {
public static ControlCommandTest SINGLETON = new ControlCommandTest();
@Override
public Object createObject() throws Exception {
ControlCommand info = new ControlCommand();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ControlCommand info = (ControlCommand) object;
info.setCommand("Command:1");
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ControlCommand
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ControlCommandTest extends BaseCommandTestSupport {
+
+ public static ControlCommandTest SINGLETON = new ControlCommandTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ControlCommand info = new ControlCommand();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ControlCommand info = (ControlCommand) object;
+
+ info.setCommand("Command:1");
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DataArrayResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DataArrayResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DataArrayResponseTest.java
index a125500..93235f3 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DataArrayResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DataArrayResponseTest.java
@@ -1 +1,60 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for DataArrayResponse
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class DataArrayResponseTest extends ResponseTest {
public static DataArrayResponseTest SINGLETON = new DataArrayResponseTest();
@Override
public Object createObject() throws Exception {
DataArrayResponse info = new DataArrayResponse();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
DataArrayResponse info = (DataArrayResponse) object;
{
DataStructure value[] = new DataStructure[2];
for (int i = 0; i < 2; i++) {
value[i] = createDataStructure("Data:1");
}
info.setD
ata(value);
}
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for DataArrayResponse
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class DataArrayResponseTest extends ResponseTest {
+
+ public static DataArrayResponseTest SINGLETON = new DataArrayResponseTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ DataArrayResponse info = new DataArrayResponse();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ DataArrayResponse info = (DataArrayResponse) object;
+
+ {
+ DataStructure value[] = new DataStructure[2];
+ for (int i = 0; i < 2; i++) {
+ value[i] = createDataStructure("Data:1");
+ }
+ info.setData(value);
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DataResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DataResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DataResponseTest.java
index c259993..f2d6a7a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DataResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DataResponseTest.java
@@ -1 +1,54 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for DataResponse
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class DataResponseTest extends ResponseTest {
public static DataResponseTest SINGLETON = new DataResponseTest();
@Override
public Object createObject() throws Exception {
DataResponse info = new DataResponse();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
DataResponse info = (DataResponse) object;
info.setData(createDataStructure("Data:1"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for DataResponse
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class DataResponseTest extends ResponseTest {
+
+ public static DataResponseTest SINGLETON = new DataResponseTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ DataResponse info = new DataResponse();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ DataResponse info = (DataResponse) object;
+
+ info.setData(createDataStructure("Data:1"));
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DestinationInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DestinationInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DestinationInfoTest.java
index 0cb46d3..b188254 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DestinationInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DestinationInfoTest.java
@@ -1 +1,64 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for DestinationInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class DestinationInfoTest extends BaseCommandTestSupport {
public static DestinationInfoTest SINGLETON = new DestinationInfoTest();
@Override
public Object createObject() throws Exception {
DestinationInfo info = new DestinationInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
DestinationInfo info = (DestinationInfo) object;
info.setConnectionId(createConnectionId("ConnectionId:1"));
info.setDestination(createActiveMQDestination("Destination:2"));
info.setOperationType((byte) 1);
info.setT
imeout(1);
{
BrokerId value[] = new BrokerId[2];
for (int i = 0; i < 2; i++) {
value[i] = createBrokerId("BrokerPath:3");
}
info.setBrokerPath(value);
}
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for DestinationInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class DestinationInfoTest extends BaseCommandTestSupport {
+
+ public static DestinationInfoTest SINGLETON = new DestinationInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ DestinationInfo info = new DestinationInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ DestinationInfo info = (DestinationInfo) object;
+
+ info.setConnectionId(createConnectionId("ConnectionId:1"));
+ info.setDestination(createActiveMQDestination("Destination:2"));
+ info.setOperationType((byte) 1);
+ info.setTimeout(1);
+ {
+ BrokerId value[] = new BrokerId[2];
+ for (int i = 0; i < 2; i++) {
+ value[i] = createBrokerId("BrokerPath:3");
+ }
+ info.setBrokerPath(value);
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DiscoveryEventTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DiscoveryEventTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DiscoveryEventTest.java
index a39d8f5..b3198d2 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DiscoveryEventTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DiscoveryEventTest.java
@@ -1 +1,55 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for DiscoveryEvent
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class DiscoveryEventTest extends DataFileGeneratorTestSupport {
public static DiscoveryEventTest SINGLETON = new DiscoveryEventTest();
@Override
public Object createObject() throws Exception {
DiscoveryEvent info = new DiscoveryEvent();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
DiscoveryEvent info = (DiscoveryEvent) object;
info.setServiceName("ServiceName:1");
info.setBrokerName("BrokerName:2");
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for DiscoveryEvent
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class DiscoveryEventTest extends DataFileGeneratorTestSupport {
+
+ public static DiscoveryEventTest SINGLETON = new DiscoveryEventTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ DiscoveryEvent info = new DiscoveryEvent();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ DiscoveryEvent info = (DiscoveryEvent) object;
+
+ info.setServiceName("ServiceName:1");
+ info.setBrokerName("BrokerName:2");
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ExceptionResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ExceptionResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ExceptionResponseTest.java
index e673217..cc5fa32 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ExceptionResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ExceptionResponseTest.java
@@ -1 +1,54 @@
-/**
*
* 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.openwire.v9;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ExceptionResponse
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ExceptionResponseTest extends ResponseTest {
public static ExceptionResponseTest SINGLETON = new ExceptionResponseTest();
@Override
public Object createObject() throws Exception {
ExceptionResponse info = new ExceptionResponse();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ExceptionResponse info = (ExceptionResponse) object;
info.setException(createThrowable("Exception:1"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v9;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ExceptionResponse
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ExceptionResponseTest extends ResponseTest {
+
+ public static ExceptionResponseTest SINGLETON = new ExceptionResponseTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ExceptionResponse info = new ExceptionResponse();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ExceptionResponse info = (ExceptionResponse) object;
+
+ info.setException(createThrowable("Exception:1"));
+ }
+}
[19/32] activemq-artemis git commit: Remove redundant type arguments
Posted by cl...@apache.org.
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalCompactor.java
----------------------------------------------------------------------
diff --git a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalCompactor.java b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalCompactor.java
index 3637f56..1acbcaa 100644
--- a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalCompactor.java
+++ b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalCompactor.java
@@ -48,18 +48,18 @@ public class JournalCompactor extends AbstractJournalUpdateTask implements Journ
private static final short COMPACT_SPLIT_LINE = 2;
// Snapshot of transactions that were pending when the compactor started
- private final Map<Long, PendingTransaction> pendingTransactions = new ConcurrentHashMap<Long, PendingTransaction>();
+ private final Map<Long, PendingTransaction> pendingTransactions = new ConcurrentHashMap<>();
- private final Map<Long, JournalRecord> newRecords = new HashMap<Long, JournalRecord>();
+ private final Map<Long, JournalRecord> newRecords = new HashMap<>();
- private final Map<Long, JournalTransaction> newTransactions = new HashMap<Long, JournalTransaction>();
+ private final Map<Long, JournalTransaction> newTransactions = new HashMap<>();
/**
* Commands that happened during compacting
* We can't process any counts during compacting, as we won't know in what files the records are taking place, so
* we cache those updates. As soon as we are done we take the right account.
*/
- private final LinkedList<CompactCommand> pendingCommands = new LinkedList<CompactCommand>();
+ private final LinkedList<CompactCommand> pendingCommands = new LinkedList<>();
public static SequentialFile readControlFile(final SequentialFileFactory fileFactory,
final List<String> dataFiles,
@@ -70,7 +70,7 @@ public class JournalCompactor extends AbstractJournalUpdateTask implements Journ
if (controlFile.exists()) {
JournalFile file = new JournalFileImpl(controlFile, 0, JournalImpl.FORMAT_VERSION);
- final ArrayList<RecordInfo> records = new ArrayList<RecordInfo>();
+ final ArrayList<RecordInfo> records = new ArrayList<>();
JournalImpl.readJournalFile(fileFactory, file, new JournalReaderCallbackAbstract() {
@Override
@@ -101,7 +101,7 @@ public class JournalCompactor extends AbstractJournalUpdateTask implements Journ
for (int i = 0; i < numberRenames; i++) {
String from = input.readUTF();
String to = input.readUTF();
- renameFile.add(new Pair<String, String>(from, to));
+ renameFile.add(new Pair<>(from, to));
}
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalFileImpl.java
----------------------------------------------------------------------
diff --git a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalFileImpl.java b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalFileImpl.java
index 4c766b7..01d8000 100644
--- a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalFileImpl.java
+++ b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalFileImpl.java
@@ -43,7 +43,7 @@ public class JournalFileImpl implements JournalFile {
private final int version;
- private final Map<JournalFile, AtomicInteger> negCounts = new ConcurrentHashMap<JournalFile, AtomicInteger>();
+ private final Map<JournalFile, AtomicInteger> negCounts = new ConcurrentHashMap<>();
public JournalFileImpl(final SequentialFile file, final long fileID, final int version) {
this.file = file;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalFilesRepository.java
----------------------------------------------------------------------
diff --git a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalFilesRepository.java b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalFilesRepository.java
index 159690d..e1d69ab 100644
--- a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalFilesRepository.java
+++ b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalFilesRepository.java
@@ -61,11 +61,11 @@ public class JournalFilesRepository {
private final JournalImpl journal;
- private final BlockingDeque<JournalFile> dataFiles = new LinkedBlockingDeque<JournalFile>();
+ private final BlockingDeque<JournalFile> dataFiles = new LinkedBlockingDeque<>();
- private final ConcurrentLinkedQueue<JournalFile> freeFiles = new ConcurrentLinkedQueue<JournalFile>();
+ private final ConcurrentLinkedQueue<JournalFile> freeFiles = new ConcurrentLinkedQueue<>();
- private final BlockingQueue<JournalFile> openedFiles = new LinkedBlockingQueue<JournalFile>();
+ private final BlockingQueue<JournalFile> openedFiles = new LinkedBlockingQueue<>();
private final AtomicLong nextFileID = new AtomicLong(0);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalImpl.java
----------------------------------------------------------------------
diff --git a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalImpl.java b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalImpl.java
index f8aa784..4b72992 100644
--- a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalImpl.java
+++ b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalImpl.java
@@ -174,10 +174,10 @@ public class JournalImpl extends JournalBase implements TestableJournal, Journal
private final JournalFilesRepository filesRepository;
// Compacting may replace this structure
- private final ConcurrentMap<Long, JournalRecord> records = new ConcurrentHashMap<Long, JournalRecord>();
+ private final ConcurrentMap<Long, JournalRecord> records = new ConcurrentHashMap<>();
// Compacting may replace this structure
- private final ConcurrentMap<Long, JournalTransaction> transactions = new ConcurrentHashMap<Long, JournalTransaction>();
+ private final ConcurrentMap<Long, JournalTransaction> transactions = new ConcurrentHashMap<>();
// This will be set only while the JournalCompactor is being executed
private volatile JournalCompactor compactor;
@@ -188,7 +188,7 @@ public class JournalImpl extends JournalBase implements TestableJournal, Journal
private ExecutorService compactorExecutor = null;
- private ConcurrentHashSet<CountDownLatch> latches = new ConcurrentHashSet<CountDownLatch>();
+ private ConcurrentHashSet<CountDownLatch> latches = new ConcurrentHashSet<>();
// Lock used during the append of records
// This lock doesn't represent a global lock.
@@ -348,7 +348,7 @@ public class JournalImpl extends JournalBase implements TestableJournal, Journal
public List<JournalFile> orderFiles() throws Exception {
List<String> fileNames = fileFactory.listFiles(filesRepository.getFileExtension());
- List<JournalFile> orderedFiles = new ArrayList<JournalFile>(fileNames.size());
+ List<JournalFile> orderedFiles = new ArrayList<>(fileNames.size());
for (String fileName : fileNames) {
SequentialFile file = fileFactory.createSequentialFile(fileName);
@@ -1168,9 +1168,9 @@ public class JournalImpl extends JournalBase implements TestableJournal, Journal
final List<PreparedTransactionInfo> preparedTransactions,
final TransactionFailureCallback failureCallback,
final boolean fixBadTX) throws Exception {
- final Set<Long> recordsToDelete = new HashSet<Long>();
+ final Set<Long> recordsToDelete = new HashSet<>();
// ArrayList was taking too long to delete elements on checkDeleteSize
- final List<RecordInfo> records = new LinkedList<RecordInfo>();
+ final List<RecordInfo> records = new LinkedList<>();
final int DELETE_FLUSH = 20000;
@@ -1296,7 +1296,7 @@ public class JournalImpl extends JournalBase implements TestableJournal, Journal
compactorLock.writeLock().lock();
try {
- ArrayList<JournalFile> dataFilesToProcess = new ArrayList<JournalFile>(filesRepository.getDataFilesCount());
+ ArrayList<JournalFile> dataFilesToProcess = new ArrayList<>(filesRepository.getDataFilesCount());
boolean previousReclaimValue = isAutoReclaim();
@@ -1527,7 +1527,7 @@ public class JournalImpl extends JournalBase implements TestableJournal, Journal
transactions.clear();
currentFile = null;
- final Map<Long, TransactionHolder> loadTransactions = new LinkedHashMap<Long, TransactionHolder>();
+ final Map<Long, TransactionHolder> loadTransactions = new LinkedHashMap<>();
final List<JournalFile> orderedFiles = orderFiles();
@@ -2194,7 +2194,7 @@ public class JournalImpl extends JournalBase implements TestableJournal, Journal
cleanupList = null;
}
else {
- cleanupList = new ArrayList<Pair<String, String>>();
+ cleanupList = new ArrayList<>();
cleanupList.add(cleanupRename);
}
return AbstractJournalUpdateTask.writeControlFile(fileFactory, files, newFiles, cleanupList);
@@ -2545,9 +2545,9 @@ public class JournalImpl extends JournalBase implements TestableJournal, Journal
* @throws Exception
*/
private void checkControlFile() throws Exception {
- ArrayList<String> dataFiles = new ArrayList<String>();
- ArrayList<String> newFiles = new ArrayList<String>();
- ArrayList<Pair<String, String>> renames = new ArrayList<Pair<String, String>>();
+ ArrayList<String> dataFiles = new ArrayList<>();
+ ArrayList<String> newFiles = new ArrayList<>();
+ ArrayList<Pair<String, String>> renames = new ArrayList<>();
SequentialFile controlFile = JournalCompactor.readControlFile(fileFactory, dataFiles, newFiles, renames);
if (controlFile != null) {
@@ -2629,9 +2629,9 @@ public class JournalImpl extends JournalBase implements TestableJournal, Journal
public final long transactionID;
- public final List<RecordInfo> recordInfos = new ArrayList<RecordInfo>();
+ public final List<RecordInfo> recordInfos = new ArrayList<>();
- public final List<RecordInfo> recordsToDelete = new ArrayList<RecordInfo>();
+ public final List<RecordInfo> recordsToDelete = new ArrayList<>();
public boolean prepared;
@@ -2726,7 +2726,7 @@ public class JournalImpl extends JournalBase implements TestableJournal, Journal
public synchronized Map<Long, JournalFile> createFilesForBackupSync(long[] fileIds) throws Exception {
synchronizationLock();
try {
- Map<Long, JournalFile> map = new HashMap<Long, JournalFile>();
+ Map<Long, JournalFile> map = new HashMap<>();
long maxID = -1;
for (long id : fileIds) {
maxID = Math.max(maxID, id);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalRecord.java
----------------------------------------------------------------------
diff --git a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalRecord.java b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalRecord.java
index a7d4169..c8c0bda 100644
--- a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalRecord.java
+++ b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalRecord.java
@@ -47,10 +47,10 @@ public class JournalRecord {
void addUpdateFile(final JournalFile updateFile, final int size) {
if (updateFiles == null) {
- updateFiles = new ArrayList<Pair<JournalFile, Integer>>();
+ updateFiles = new ArrayList<>();
}
- updateFiles.add(new Pair<JournalFile, Integer>(updateFile, size));
+ updateFiles.add(new Pair<>(updateFile, size));
updateFile.incPosCount();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalTransaction.java
----------------------------------------------------------------------
diff --git a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalTransaction.java b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalTransaction.java
index 8a29d60..a01efed 100644
--- a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalTransaction.java
+++ b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalTransaction.java
@@ -103,7 +103,7 @@ public class JournalTransaction {
public void merge(final JournalTransaction other) {
if (other.pos != null) {
if (pos == null) {
- pos = new ArrayList<JournalUpdate>();
+ pos = new ArrayList<>();
}
pos.addAll(other.pos);
@@ -111,7 +111,7 @@ public class JournalTransaction {
if (other.neg != null) {
if (neg == null) {
- neg = new ArrayList<JournalUpdate>();
+ neg = new ArrayList<>();
}
neg.addAll(other.neg);
@@ -119,7 +119,7 @@ public class JournalTransaction {
if (other.pendingFiles != null) {
if (pendingFiles == null) {
- pendingFiles = new HashSet<JournalFile>();
+ pendingFiles = new HashSet<>();
}
pendingFiles.addAll(other.pendingFiles);
@@ -169,7 +169,7 @@ public class JournalTransaction {
public TransactionCallback getCallback(final JournalFile file) throws Exception {
if (callbackList == null) {
- callbackList = new HashMap<JournalFile, TransactionCallback>();
+ callbackList = new HashMap<>();
}
currentCallback = callbackList.get(file);
@@ -194,7 +194,7 @@ public class JournalTransaction {
addFile(file);
if (pos == null) {
- pos = new ArrayList<JournalUpdate>();
+ pos = new ArrayList<>();
}
pos.add(new JournalUpdate(file, id, size));
@@ -206,7 +206,7 @@ public class JournalTransaction {
addFile(file);
if (neg == null) {
- neg = new ArrayList<JournalUpdate>();
+ neg = new ArrayList<>();
}
neg.add(new JournalUpdate(file, id, 0));
@@ -349,7 +349,7 @@ public class JournalTransaction {
private void addFile(final JournalFile file) {
if (pendingFiles == null) {
- pendingFiles = new HashSet<JournalFile>();
+ pendingFiles = new HashSet<>();
}
if (!pendingFiles.contains(file)) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-maven-plugin/src/main/java/org/apache/activemq/artemis/maven/ArtemisAbstractPlugin.java
----------------------------------------------------------------------
diff --git a/artemis-maven-plugin/src/main/java/org/apache/activemq/artemis/maven/ArtemisAbstractPlugin.java b/artemis-maven-plugin/src/main/java/org/apache/activemq/artemis/maven/ArtemisAbstractPlugin.java
index 0747ea8..d4c8abd 100644
--- a/artemis-maven-plugin/src/main/java/org/apache/activemq/artemis/maven/ArtemisAbstractPlugin.java
+++ b/artemis-maven-plugin/src/main/java/org/apache/activemq/artemis/maven/ArtemisAbstractPlugin.java
@@ -112,7 +112,7 @@ public abstract class ArtemisAbstractPlugin extends AbstractMojo {
}
protected List<Artifact> explodeDependencies(Artifact artifact) throws DependencyCollectionException {
- final List<Artifact> dependencies = new LinkedList<Artifact>();
+ final List<Artifact> dependencies = new LinkedList<>();
CollectRequest exploreDependenciesRequest = new CollectRequest(new Dependency(artifact, "compile"), remoteRepos);
CollectResult result = repositorySystem.collectDependencies(repoSession, exploreDependenciesRequest);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/proton/converter/jms/ServerJMSMapMessage.java
----------------------------------------------------------------------
diff --git a/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/proton/converter/jms/ServerJMSMapMessage.java b/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/proton/converter/jms/ServerJMSMapMessage.java
index 52f4f6a..2083b84 100644
--- a/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/proton/converter/jms/ServerJMSMapMessage.java
+++ b/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/proton/converter/jms/ServerJMSMapMessage.java
@@ -249,7 +249,7 @@ public final class ServerJMSMapMessage extends ServerJMSMessage implements MapMe
@Override
public Enumeration getMapNames() throws JMSException {
Set<SimpleString> simplePropNames = map.getPropertyNames();
- Set<String> propNames = new HashSet<String>(simplePropNames.size());
+ Set<String> propNames = new HashSet<>(simplePropNames.size());
for (SimpleString str : simplePropNames) {
propNames.add(str.toString());
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-protocols/artemis-hqclient-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/hornetq/util/HQPropertiesConverter.java
----------------------------------------------------------------------
diff --git a/artemis-protocols/artemis-hqclient-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/hornetq/util/HQPropertiesConverter.java b/artemis-protocols/artemis-hqclient-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/hornetq/util/HQPropertiesConverter.java
index 9240e55..ee71162 100644
--- a/artemis-protocols/artemis-hqclient-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/hornetq/util/HQPropertiesConverter.java
+++ b/artemis-protocols/artemis-hqclient-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/hornetq/util/HQPropertiesConverter.java
@@ -33,7 +33,7 @@ public class HQPropertiesConverter {
private static Map<SimpleString, SimpleString> amqHqDictionary;
static {
- Map<SimpleString, SimpleString> d = new HashMap<SimpleString, SimpleString>();
+ Map<SimpleString, SimpleString> d = new HashMap<>();
// Add entries for outgoing messages
d.put(new SimpleString("_HQ_ACTUAL_EXPIRY"), new SimpleString("_AMQ_ACTUAL_EXPIRY"));
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-protocols/artemis-mqtt-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/mqtt/MQTTConnection.java
----------------------------------------------------------------------
diff --git a/artemis-protocols/artemis-mqtt-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/mqtt/MQTTConnection.java b/artemis-protocols/artemis-mqtt-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/mqtt/MQTTConnection.java
index c11bd86..87849ab 100644
--- a/artemis-protocols/artemis-mqtt-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/mqtt/MQTTConnection.java
+++ b/artemis-protocols/artemis-mqtt-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/mqtt/MQTTConnection.java
@@ -90,7 +90,7 @@ public class MQTTConnection implements RemotingConnection {
@Override
public List<CloseListener> removeCloseListeners() {
synchronized (closeListeners) {
- List<CloseListener> deletedCloseListeners = new ArrayList<CloseListener>(closeListeners);
+ List<CloseListener> deletedCloseListeners = new ArrayList<>(closeListeners);
closeListeners.clear();
return deletedCloseListeners;
}
@@ -109,7 +109,7 @@ public class MQTTConnection implements RemotingConnection {
@Override
public List<FailureListener> removeFailureListeners() {
synchronized (failureListeners) {
- List<FailureListener> deletedFailureListeners = new ArrayList<FailureListener>(failureListeners);
+ List<FailureListener> deletedFailureListeners = new ArrayList<>(failureListeners);
failureListeners.clear();
return deletedFailureListeners;
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-protocols/artemis-mqtt-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/mqtt/MQTTConnectionManager.java
----------------------------------------------------------------------
diff --git a/artemis-protocols/artemis-mqtt-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/mqtt/MQTTConnectionManager.java b/artemis-protocols/artemis-mqtt-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/mqtt/MQTTConnectionManager.java
index fb10717..9d60513 100644
--- a/artemis-protocols/artemis-mqtt-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/mqtt/MQTTConnectionManager.java
+++ b/artemis-protocols/artemis-mqtt-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/mqtt/MQTTConnectionManager.java
@@ -38,7 +38,7 @@ public class MQTTConnectionManager {
private MQTTSession session;
//TODO Read in a list of existing client IDs from stored Sessions.
- public static Set<String> CONNECTED_CLIENTS = new ConcurrentHashSet<String>();
+ public static Set<String> CONNECTED_CLIENTS = new ConcurrentHashSet<>();
private MQTTLogger log = MQTTLogger.LOGGER;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-protocols/artemis-mqtt-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/mqtt/MQTTSessionState.java
----------------------------------------------------------------------
diff --git a/artemis-protocols/artemis-mqtt-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/mqtt/MQTTSessionState.java b/artemis-protocols/artemis-mqtt-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/mqtt/MQTTSessionState.java
index 6fd5752..9bc3074 100644
--- a/artemis-protocols/artemis-mqtt-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/mqtt/MQTTSessionState.java
+++ b/artemis-protocols/artemis-mqtt-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/mqtt/MQTTSessionState.java
@@ -80,13 +80,13 @@ public class MQTTSessionState {
void addOutbandMessageRef(int mqttId, String address, long serverMessageId, int qos) {
synchronized (outboundLock) {
- outboundMessageReferenceStore.put(mqttId, new Pair<String, Long>(address, serverMessageId));
+ outboundMessageReferenceStore.put(mqttId, new Pair<>(address, serverMessageId));
if (qos == 2) {
if (reverseOutboundReferenceStore.containsKey(address)) {
reverseOutboundReferenceStore.get(address).put(serverMessageId, mqttId);
}
else {
- ConcurrentHashMap<Long, Integer> serverToMqttId = new ConcurrentHashMap<Long, Integer>();
+ ConcurrentHashMap<Long, Integer> serverToMqttId = new ConcurrentHashMap<>();
serverToMqttId.put(serverMessageId, mqttId);
reverseOutboundReferenceStore.put(address, serverToMqttId);
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/OpenWireConnection.java
----------------------------------------------------------------------
diff --git a/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/OpenWireConnection.java b/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/OpenWireConnection.java
index 0de5990..0bc87ee 100644
--- a/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/OpenWireConnection.java
+++ b/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/OpenWireConnection.java
@@ -108,9 +108,9 @@ public class OpenWireConnection implements RemotingConnection, CommandVisitor, S
private final long creationTime;
- private final List<FailureListener> failureListeners = new CopyOnWriteArrayList<FailureListener>();
+ private final List<FailureListener> failureListeners = new CopyOnWriteArrayList<>();
- private final List<CloseListener> closeListeners = new CopyOnWriteArrayList<CloseListener>();
+ private final List<CloseListener> closeListeners = new CopyOnWriteArrayList<>();
private boolean destroyed = false;
@@ -132,20 +132,20 @@ public class OpenWireConnection implements RemotingConnection, CommandVisitor, S
private final ReentrantReadWriteLock serviceLock = new ReentrantReadWriteLock();
- protected final List<Command> dispatchQueue = new LinkedList<Command>();
+ protected final List<Command> dispatchQueue = new LinkedList<>();
private boolean inServiceException;
private final AtomicBoolean asyncException = new AtomicBoolean(false);
- private final Map<ConsumerId, AMQConsumerBrokerExchange> consumerExchanges = new HashMap<ConsumerId, AMQConsumerBrokerExchange>();
- private final Map<ProducerId, AMQProducerBrokerExchange> producerExchanges = new HashMap<ProducerId, AMQProducerBrokerExchange>();
+ private final Map<ConsumerId, AMQConsumerBrokerExchange> consumerExchanges = new HashMap<>();
+ private final Map<ProducerId, AMQProducerBrokerExchange> producerExchanges = new HashMap<>();
private ConnectionState state;
- private final Set<ActiveMQDestination> tempQueues = new ConcurrentHashSet<ActiveMQDestination>();
+ private final Set<ActiveMQDestination> tempQueues = new ConcurrentHashSet<>();
- private Map<TransactionId, TransactionInfo> txMap = new ConcurrentHashMap<TransactionId, TransactionInfo>();
+ private Map<TransactionId, TransactionInfo> txMap = new ConcurrentHashMap<>();
private volatile AMQSession advisorySession;
@@ -341,7 +341,7 @@ public class OpenWireConnection implements RemotingConnection, CommandVisitor, S
@Override
public List<CloseListener> removeCloseListeners() {
- List<CloseListener> ret = new ArrayList<CloseListener>(closeListeners);
+ List<CloseListener> ret = new ArrayList<>(closeListeners);
closeListeners.clear();
@@ -364,7 +364,7 @@ public class OpenWireConnection implements RemotingConnection, CommandVisitor, S
@Override
public List<FailureListener> removeFailureListeners() {
- List<FailureListener> ret = new ArrayList<FailureListener>(failureListeners);
+ List<FailureListener> ret = new ArrayList<>(failureListeners);
failureListeners.clear();
@@ -464,7 +464,7 @@ public class OpenWireConnection implements RemotingConnection, CommandVisitor, S
}
private void callFailureListeners(final ActiveMQException me) {
- final List<FailureListener> listenersClone = new ArrayList<FailureListener>(failureListeners);
+ final List<FailureListener> listenersClone = new ArrayList<>(failureListeners);
for (final FailureListener listener : listenersClone) {
try {
@@ -480,7 +480,7 @@ public class OpenWireConnection implements RemotingConnection, CommandVisitor, S
}
private void callClosingListeners() {
- final List<CloseListener> listenersClone = new ArrayList<CloseListener>(closeListeners);
+ final List<CloseListener> listenersClone = new ArrayList<>(closeListeners);
for (final CloseListener listener : listenersClone) {
try {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/OpenWireProtocolManager.java
----------------------------------------------------------------------
diff --git a/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/OpenWireProtocolManager.java b/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/OpenWireProtocolManager.java
index 0ef7669..f916c8f 100644
--- a/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/OpenWireProtocolManager.java
+++ b/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/OpenWireProtocolManager.java
@@ -119,19 +119,19 @@ public class OpenWireProtocolManager implements ProtocolManager<Interceptor>, No
// from broker
protected final Map<ConnectionId, OpenWireConnection> brokerConnectionStates = Collections.synchronizedMap(new HashMap<ConnectionId, OpenWireConnection>());
- private final CopyOnWriteArrayList<OpenWireConnection> connections = new CopyOnWriteArrayList<OpenWireConnection>();
+ private final CopyOnWriteArrayList<OpenWireConnection> connections = new CopyOnWriteArrayList<>();
- protected final ConcurrentMap<ConnectionId, ConnectionInfo> connectionInfos = new ConcurrentHashMap<ConnectionId, ConnectionInfo>();
+ protected final ConcurrentMap<ConnectionId, ConnectionInfo> connectionInfos = new ConcurrentHashMap<>();
- private final Map<String, AMQConnectionContext> clientIdSet = new HashMap<String, AMQConnectionContext>();
+ private final Map<String, AMQConnectionContext> clientIdSet = new HashMap<>();
private String brokerName;
- private Map<SessionId, AMQSession> sessions = new ConcurrentHashMap<SessionId, AMQSession>();
+ private Map<SessionId, AMQSession> sessions = new ConcurrentHashMap<>();
- private Map<TransactionId, AMQSession> transactions = new ConcurrentHashMap<TransactionId, AMQSession>();
+ private Map<TransactionId, AMQSession> transactions = new ConcurrentHashMap<>();
- private Map<String, SessionId> sessionIdMap = new ConcurrentHashMap<String, SessionId>();
+ private Map<String, SessionId> sessionIdMap = new ConcurrentHashMap<>();
private final ScheduledExecutorService scheduledPool;
@@ -649,7 +649,7 @@ public class OpenWireProtocolManager implements ProtocolManager<Interceptor>, No
}
public TransactionId[] recoverTransactions(Set<SessionId> sIds) {
- List<TransactionId> recovered = new ArrayList<TransactionId>();
+ List<TransactionId> recovered = new ArrayList<>();
if (sIds != null) {
for (SessionId sid : sIds) {
AMQSession s = this.sessions.get(sid);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/amq/AMQConsumer.java
----------------------------------------------------------------------
diff --git a/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/amq/AMQConsumer.java b/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/amq/AMQConsumer.java
index 40d253e..7da1f3e 100644
--- a/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/amq/AMQConsumer.java
+++ b/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/amq/AMQConsumer.java
@@ -54,7 +54,7 @@ public class AMQConsumer implements BrowserListener {
private final int prefetchSize;
private AtomicInteger windowAvailable;
- private final java.util.Queue<MessageInfo> deliveringRefs = new ConcurrentLinkedQueue<MessageInfo>();
+ private final java.util.Queue<MessageInfo> deliveringRefs = new ConcurrentLinkedQueue<>();
private long messagePullSequence = 0;
private MessagePullHandler messagePullHandler;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/amq/AMQServerSession.java
----------------------------------------------------------------------
diff --git a/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/amq/AMQServerSession.java b/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/amq/AMQServerSession.java
index 08cb1ee..c414319 100644
--- a/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/amq/AMQServerSession.java
+++ b/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/amq/AMQServerSession.java
@@ -154,7 +154,7 @@ public class AMQServerSession extends ServerSessionImpl {
if (oper != null) {
List<MessageReference> ackRefs = oper.getReferencesToAcknowledge();
- Map<Long, List<MessageReference>> toAcks = new HashMap<Long, List<MessageReference>>();
+ Map<Long, List<MessageReference>> toAcks = new HashMap<>();
for (MessageReference ref : ackRefs) {
Long consumerId = ref.getConsumerId();
@@ -162,7 +162,7 @@ public class AMQServerSession extends ServerSessionImpl {
if (acked.contains(ref.getMessage().getMessageID())) {
List<MessageReference> ackList = toAcks.get(consumerId);
if (ackList == null) {
- ackList = new ArrayList<MessageReference>();
+ ackList = new ArrayList<>();
toAcks.put(consumerId, ackList);
}
ackList.add(ref);
@@ -329,7 +329,7 @@ public class AMQServerSession extends ServerSessionImpl {
Pair<UUID, AtomicLong> value = targetAddressInfos.get(msg.getAddress());
if (value == null) {
- targetAddressInfos.put(msg.getAddress(), new Pair<UUID, AtomicLong>(msg.getUserID(), new AtomicLong(1)));
+ targetAddressInfos.put(msg.getAddress(), new Pair<>(msg.getUserID(), new AtomicLong(1)));
}
else {
value.setA(msg.getUserID());
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/amq/AMQSession.java
----------------------------------------------------------------------
diff --git a/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/amq/AMQSession.java b/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/amq/AMQSession.java
index 1d285e0..0765676 100644
--- a/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/amq/AMQSession.java
+++ b/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/amq/AMQSession.java
@@ -399,7 +399,7 @@ public class AMQSession implements SessionCallback {
}
else {
Iterator<AMQConsumer> iter = consumers.values().iterator();
- Set<Long> acked = new HashSet<Long>();
+ Set<Long> acked = new HashSet<>();
while (iter.hasNext()) {
AMQConsumer consumer = iter.next();
consumer.rollbackTx(acked);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-protocols/artemis-proton-plug/src/main/java/org/proton/plug/context/AbstractProtonSessionContext.java
----------------------------------------------------------------------
diff --git a/artemis-protocols/artemis-proton-plug/src/main/java/org/proton/plug/context/AbstractProtonSessionContext.java b/artemis-protocols/artemis-proton-plug/src/main/java/org/proton/plug/context/AbstractProtonSessionContext.java
index 00d1c67..abb3115 100644
--- a/artemis-protocols/artemis-proton-plug/src/main/java/org/proton/plug/context/AbstractProtonSessionContext.java
+++ b/artemis-protocols/artemis-proton-plug/src/main/java/org/proton/plug/context/AbstractProtonSessionContext.java
@@ -45,9 +45,9 @@ public abstract class AbstractProtonSessionContext extends ProtonInitializable i
private long currentTag = 0;
- protected Map<Receiver, AbstractProtonReceiverContext> receivers = new HashMap<Receiver, AbstractProtonReceiverContext>();
+ protected Map<Receiver, AbstractProtonReceiverContext> receivers = new HashMap<>();
- protected Map<Sender, AbstractProtonContextSender> senders = new HashMap<Sender, AbstractProtonContextSender>();
+ protected Map<Sender, AbstractProtonContextSender> senders = new HashMap<>();
protected boolean closed = false;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-protocols/artemis-proton-plug/src/main/java/org/proton/plug/context/server/ProtonServerSessionContext.java
----------------------------------------------------------------------
diff --git a/artemis-protocols/artemis-proton-plug/src/main/java/org/proton/plug/context/server/ProtonServerSessionContext.java b/artemis-protocols/artemis-proton-plug/src/main/java/org/proton/plug/context/server/ProtonServerSessionContext.java
index adfacae..46178a9 100644
--- a/artemis-protocols/artemis-proton-plug/src/main/java/org/proton/plug/context/server/ProtonServerSessionContext.java
+++ b/artemis-protocols/artemis-proton-plug/src/main/java/org/proton/plug/context/server/ProtonServerSessionContext.java
@@ -40,7 +40,7 @@ public class ProtonServerSessionContext extends AbstractProtonSessionContext {
super(sessionSPI, connection, session);
}
- protected Map<Object, AbstractProtonContextSender> serverSenders = new HashMap<Object, AbstractProtonContextSender>();
+ protected Map<Object, AbstractProtonContextSender> serverSenders = new HashMap<>();
/**
* The consumer object from the broker or the key used to store the sender
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-protocols/artemis-proton-plug/src/test/java/org/proton/plug/test/AbstractJMSTest.java
----------------------------------------------------------------------
diff --git a/artemis-protocols/artemis-proton-plug/src/test/java/org/proton/plug/test/AbstractJMSTest.java b/artemis-protocols/artemis-proton-plug/src/test/java/org/proton/plug/test/AbstractJMSTest.java
index 90fff62..156b3ce 100644
--- a/artemis-protocols/artemis-proton-plug/src/test/java/org/proton/plug/test/AbstractJMSTest.java
+++ b/artemis-protocols/artemis-proton-plug/src/test/java/org/proton/plug/test/AbstractJMSTest.java
@@ -47,7 +47,7 @@ public class AbstractJMSTest {
public static void forceGC() {
System.out.println("#test forceGC");
- WeakReference<Object> dumbReference = new WeakReference<Object>(new Object());
+ WeakReference<Object> dumbReference = new WeakReference<>(new Object());
// A loop that will wait GC, using the minimalserver time as possible
while (dumbReference.get() != null) {
System.gc();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/ActiveMQStompException.java
----------------------------------------------------------------------
diff --git a/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/ActiveMQStompException.java b/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/ActiveMQStompException.java
index 8688750..a6a7c50 100644
--- a/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/ActiveMQStompException.java
+++ b/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/ActiveMQStompException.java
@@ -29,7 +29,7 @@ public class ActiveMQStompException extends Exception {
private static final long serialVersionUID = -274452327574950068L;
private int code = NONE;
- private final List<Header> headers = new ArrayList<Header>(10);
+ private final List<Header> headers = new ArrayList<>(10);
private String body;
private VersionedStompFrameHandler handler;
private boolean disconnect;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompConnection.java
----------------------------------------------------------------------
diff --git a/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompConnection.java b/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompConnection.java
index 08bc2e9..2701b5f 100644
--- a/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompConnection.java
+++ b/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompConnection.java
@@ -71,9 +71,9 @@ public final class StompConnection implements RemotingConnection {
private final Acceptor acceptorUsed;
- private final List<FailureListener> failureListeners = new CopyOnWriteArrayList<FailureListener>();
+ private final List<FailureListener> failureListeners = new CopyOnWriteArrayList<>();
- private final List<CloseListener> closeListeners = new CopyOnWriteArrayList<CloseListener>();
+ private final List<CloseListener> closeListeners = new CopyOnWriteArrayList<>();
private final Object failLock = new Object();
@@ -177,7 +177,7 @@ public final class StompConnection implements RemotingConnection {
@Override
public List<CloseListener> removeCloseListeners() {
- List<CloseListener> ret = new ArrayList<CloseListener>(closeListeners);
+ List<CloseListener> ret = new ArrayList<>(closeListeners);
closeListeners.clear();
@@ -186,7 +186,7 @@ public final class StompConnection implements RemotingConnection {
@Override
public List<FailureListener> removeFailureListeners() {
- List<FailureListener> ret = new ArrayList<FailureListener>(failureListeners);
+ List<FailureListener> ret = new ArrayList<>(failureListeners);
failureListeners.clear();
@@ -374,7 +374,7 @@ public final class StompConnection implements RemotingConnection {
}
private void callFailureListeners(final ActiveMQException me) {
- final List<FailureListener> listenersClone = new ArrayList<FailureListener>(failureListeners);
+ final List<FailureListener> listenersClone = new ArrayList<>(failureListeners);
for (final FailureListener listener : listenersClone) {
try {
@@ -390,7 +390,7 @@ public final class StompConnection implements RemotingConnection {
}
private void callClosingListeners() {
- final List<CloseListener> listenersClone = new ArrayList<CloseListener>(closeListeners);
+ final List<CloseListener> listenersClone = new ArrayList<>(closeListeners);
for (final CloseListener listener : listenersClone) {
try {
@@ -417,7 +417,7 @@ public final class StompConnection implements RemotingConnection {
}
else {
StringTokenizer tokenizer = new StringTokenizer(acceptVersion, ",");
- Set<String> requestVersions = new HashSet<String>(tokenizer.countTokens());
+ Set<String> requestVersions = new HashSet<>(tokenizer.countTokens());
while (tokenizer.hasMoreTokens()) {
requestVersions.add(tokenizer.nextToken());
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompDecoder.java
----------------------------------------------------------------------
diff --git a/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompDecoder.java b/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompDecoder.java
index 2e493b4..c1a3093 100644
--- a/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompDecoder.java
+++ b/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompDecoder.java
@@ -562,7 +562,7 @@ public class StompDecoder {
command = null;
- headers = new HashMap<String, String>();
+ headers = new HashMap<>();
this.headerBytesCopyStart = -1;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompFrame.java
----------------------------------------------------------------------
diff --git a/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompFrame.java b/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompFrame.java
index 0834e96..4e184db 100644
--- a/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompFrame.java
+++ b/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompFrame.java
@@ -53,7 +53,7 @@ public class StompFrame {
public StompFrame(String command, boolean disconnect) {
this.command = command;
- this.headers = new LinkedHashMap<String, String>();
+ this.headers = new LinkedHashMap<>();
this.disconnect = disconnect;
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompProtocolManager.java
----------------------------------------------------------------------
diff --git a/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompProtocolManager.java b/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompProtocolManager.java
index 7d069c2..951bb89 100644
--- a/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompProtocolManager.java
+++ b/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompProtocolManager.java
@@ -73,12 +73,12 @@ class StompProtocolManager implements ProtocolManager<StompFrameInterceptor>, No
private final Executor executor;
- private final Map<String, StompSession> transactedSessions = new HashMap<String, StompSession>();
+ private final Map<String, StompSession> transactedSessions = new HashMap<>();
// key => connection ID, value => Stomp session
- private final Map<Object, StompSession> sessions = new HashMap<Object, StompSession>();
+ private final Map<Object, StompSession> sessions = new HashMap<>();
- private final Set<String> destinations = new ConcurrentHashSet<String>();
+ private final Set<String> destinations = new ConcurrentHashSet<>();
private final List<StompFrameInterceptor> incomingInterceptors;
private final List<StompFrameInterceptor> outgoingInterceptors;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompSession.java
----------------------------------------------------------------------
diff --git a/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompSession.java b/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompSession.java
index 2b1eaa6..85eebe0 100644
--- a/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompSession.java
+++ b/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompSession.java
@@ -57,10 +57,10 @@ public class StompSession implements SessionCallback {
private final OperationContext sessionContext;
- private final Map<Long, StompSubscription> subscriptions = new ConcurrentHashMap<Long, StompSubscription>();
+ private final Map<Long, StompSubscription> subscriptions = new ConcurrentHashMap<>();
// key = message ID, value = consumer ID
- private final Map<Long, Pair<Long, Integer>> messagesToAck = new ConcurrentHashMap<Long, Pair<Long, Integer>>();
+ private final Map<Long, Pair<Long, Integer>> messagesToAck = new ConcurrentHashMap<>();
private volatile boolean noLocal = false;
@@ -145,7 +145,7 @@ public class StompSession implements SessionCallback {
}
}
else {
- messagesToAck.put(newServerMessage.getMessageID(), new Pair<Long, Integer>(consumer.getID(), length));
+ messagesToAck.put(newServerMessage.getMessageID(), new Pair<>(consumer.getID(), length));
// Must send AFTER adding to messagesToAck - or could get acked from client BEFORE it's been added!
manager.send(connection, frame);
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompUtils.java
----------------------------------------------------------------------
diff --git a/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompUtils.java b/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompUtils.java
index d8468b1..00acb44 100644
--- a/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompUtils.java
+++ b/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompUtils.java
@@ -37,7 +37,7 @@ public class StompUtils {
// Static --------------------------------------------------------
public static void copyStandardHeadersFromFrameToMessage(StompFrame frame, ServerMessageImpl msg) throws Exception {
- Map<String, String> headers = new HashMap<String, String>(frame.getHeadersMap());
+ Map<String, String> headers = new HashMap<>(frame.getHeadersMap());
String priority = headers.remove(Stomp.Headers.Send.PRIORITY);
if (priority != null) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/v11/StompFrameV11.java
----------------------------------------------------------------------
diff --git a/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/v11/StompFrameV11.java b/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/v11/StompFrameV11.java
index e14d3a6..31c7132 100644
--- a/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/v11/StompFrameV11.java
+++ b/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/v11/StompFrameV11.java
@@ -26,7 +26,7 @@ import org.apache.activemq.artemis.core.protocol.stomp.StompFrame;
public class StompFrameV11 extends StompFrame {
//stomp 1.1 talks about repetitive headers.
- protected final List<Header> allHeaders = new ArrayList<Header>();
+ protected final List<Header> allHeaders = new ArrayList<>();
public StompFrameV11(String command, Map<String, String> headers, byte[] content) {
super(command, headers, content);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRAConnectionMetaData.java
----------------------------------------------------------------------
diff --git a/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRAConnectionMetaData.java b/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRAConnectionMetaData.java
index 9a22289..32b4d0d 100644
--- a/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRAConnectionMetaData.java
+++ b/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRAConnectionMetaData.java
@@ -145,7 +145,7 @@ public class ActiveMQRAConnectionMetaData implements ConnectionMetaData {
*/
@Override
public Enumeration<Object> getJMSXPropertyNames() {
- Vector<Object> v = new Vector<Object>();
+ Vector<Object> v = new Vector<>();
v.add("JMSXGroupID");
v.add("JMSXGroupSeq");
v.add("JMSXDeliveryCount");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRAManagedConnection.java
----------------------------------------------------------------------
diff --git a/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRAManagedConnection.java b/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRAManagedConnection.java
index 800972c..3cd1515 100644
--- a/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRAManagedConnection.java
+++ b/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRAManagedConnection.java
@@ -479,7 +479,7 @@ public final class ActiveMQRAManagedConnection implements ManagedConnection, Exc
if (xaResource == null) {
ClientSessionInternal csi = (ClientSessionInternal) xaSession.getXAResource();
ActiveMQRAXAResource activeMQRAXAResource = new ActiveMQRAXAResource(this, xaSession.getXAResource());
- Map<String, Object> xaResourceProperties = new HashMap<String, Object>();
+ Map<String, Object> xaResourceProperties = new HashMap<>();
xaResourceProperties.put(ActiveMQXAResourceWrapper.ACTIVEMQ_JNDI_NAME, ra.getJndiName());
xaResourceProperties.put(ActiveMQXAResourceWrapper.ACTIVEMQ_NODE_ID, csi.getNodeId());
xaResourceProperties.put(ActiveMQXAResourceWrapper.ACTIVEMQ_PRODUCT_NAME, ActiveMQResourceAdapter.PRODUCT_NAME);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRAManagedConnectionFactory.java
----------------------------------------------------------------------
diff --git a/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRAManagedConnectionFactory.java b/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRAManagedConnectionFactory.java
index e2e7fc0..73b443f 100644
--- a/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRAManagedConnectionFactory.java
+++ b/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRAManagedConnectionFactory.java
@@ -164,7 +164,7 @@ public final class ActiveMQRAManagedConnectionFactory implements ManagedConnecti
if (recoveryConnectionFactory == null) {
recoveryConnectionFactory = ra.createRecoveryActiveMQConnectionFactory(mcfProperties);
- Map<String, String> recoveryConfProps = new HashMap<String, String>();
+ Map<String, String> recoveryConfProps = new HashMap<>();
recoveryConfProps.put(XARecoveryConfig.JNDI_NAME_PROPERTY_KEY, ra.getJndiName());
resourceRecovery = ra.getRecoveryManager().register(recoveryConnectionFactory, null, null, recoveryConfProps);
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRASession.java
----------------------------------------------------------------------
diff --git a/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRASession.java b/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRASession.java
index 2ea9626..05006e4 100644
--- a/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRASession.java
+++ b/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRASession.java
@@ -105,8 +105,8 @@ public final class ActiveMQRASession implements QueueSession, TopicSession, XAQu
this.mc = mc;
this.cri = cri;
sf = null;
- consumers = new HashSet<MessageConsumer>();
- producers = new HashSet<MessageProducer>();
+ consumers = new HashSet<>();
+ producers = new HashSet<>();
}
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRASessionFactoryImpl.java
----------------------------------------------------------------------
diff --git a/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRASessionFactoryImpl.java b/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRASessionFactoryImpl.java
index 655ad25..832871a 100644
--- a/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRASessionFactoryImpl.java
+++ b/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRASessionFactoryImpl.java
@@ -108,17 +108,17 @@ public final class ActiveMQRASessionFactoryImpl extends ActiveMQConnectionForCon
/**
* The sessions
*/
- private final Set<ActiveMQRASession> sessions = new HashSet<ActiveMQRASession>();
+ private final Set<ActiveMQRASession> sessions = new HashSet<>();
/**
* The temporary queues
*/
- private final Set<TemporaryQueue> tempQueues = new HashSet<TemporaryQueue>();
+ private final Set<TemporaryQueue> tempQueues = new HashSet<>();
/**
* The temporary topics
*/
- private final Set<TemporaryTopic> tempTopics = new HashSet<TemporaryTopic>();
+ private final Set<TemporaryTopic> tempTopics = new HashSet<>();
/**
* Constructor
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRaUtils.java
----------------------------------------------------------------------
diff --git a/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRaUtils.java b/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRaUtils.java
index cd43897..6103bc8 100644
--- a/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRaUtils.java
+++ b/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRaUtils.java
@@ -170,7 +170,7 @@ public final class ActiveMQRaUtils {
* @return hash-table with configuration option pairs
*/
public static Hashtable<String, String> parseHashtableConfig(final String config) {
- Hashtable<String, String> hashtable = new Hashtable<String, String>();
+ Hashtable<String, String> hashtable = new Hashtable<>();
String[] topElements = config.split(";");
@@ -188,12 +188,12 @@ public final class ActiveMQRaUtils {
}
public static List<Map<String, Object>> parseConfig(final String config) {
- List<Map<String, Object>> result = new ArrayList<Map<String, Object>>();
+ List<Map<String, Object>> result = new ArrayList<>();
String[] topElements = config.split(",");
for (String topElement : topElements) {
- HashMap<String, Object> map = new HashMap<String, Object>();
+ HashMap<String, Object> map = new HashMap<>();
result.add(map);
String[] elements = topElement.split(";");
@@ -213,7 +213,7 @@ public final class ActiveMQRaUtils {
}
public static List<String> parseConnectorConnectorConfig(String config) {
- List<String> res = new ArrayList<String>();
+ List<String> res = new ArrayList<>();
String[] elements = config.split(",");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQResourceAdapter.java
----------------------------------------------------------------------
diff --git a/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQResourceAdapter.java b/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQResourceAdapter.java
index f1d6d03..f9781c1 100644
--- a/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQResourceAdapter.java
+++ b/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQResourceAdapter.java
@@ -120,7 +120,7 @@ public class ActiveMQResourceAdapter implements ResourceAdapter, Serializable {
private boolean useAutoRecovery = true;
- private final List<ActiveMQRAManagedConnectionFactory> managedConnectionFactories = new ArrayList<ActiveMQRAManagedConnectionFactory>();
+ private final List<ActiveMQRAManagedConnectionFactory> managedConnectionFactories = new ArrayList<>();
private String entries;
@@ -129,7 +129,7 @@ public class ActiveMQResourceAdapter implements ResourceAdapter, Serializable {
* configured the exact same way. Using the same connection factory instance also makes connection load-balancing
* behave as expected for outbound connections.
*/
- private final Map<ConnectionFactoryProperties, Pair<ActiveMQConnectionFactory, AtomicInteger>> knownConnectionFactories = new HashMap<ConnectionFactoryProperties, Pair<ActiveMQConnectionFactory, AtomicInteger>>();
+ private final Map<ConnectionFactoryProperties, Pair<ActiveMQConnectionFactory, AtomicInteger>> knownConnectionFactories = new HashMap<>();
/**
* Constructor
@@ -141,7 +141,7 @@ public class ActiveMQResourceAdapter implements ResourceAdapter, Serializable {
raProperties = new ActiveMQRAProperties();
configured = new AtomicBoolean(false);
- activations = new ConcurrentHashMap<ActivationSpec, ActiveMQActivation>();
+ activations = new ConcurrentHashMap<>();
recoveryManager = new RecoveryManager();
}
@@ -215,7 +215,7 @@ public class ActiveMQResourceAdapter implements ResourceAdapter, Serializable {
return null;
}
else {
- List<XAResource> xaresources = new ArrayList<XAResource>();
+ List<XAResource> xaresources = new ArrayList<>();
for (ActivationSpec spec : specs) {
ActiveMQActivation activation = activations.get(spec);
if (activation != null) {
@@ -1573,7 +1573,7 @@ public class ActiveMQResourceAdapter implements ResourceAdapter, Serializable {
defaultActiveMQConnectionFactory = createActiveMQConnectionFactory(raProperties);
recoveryActiveMQConnectionFactory = createRecoveryActiveMQConnectionFactory(raProperties);
- Map<String, String> recoveryConfProps = new HashMap<String, String>();
+ Map<String, String> recoveryConfProps = new HashMap<>();
recoveryConfProps.put(XARecoveryConfig.JNDI_NAME_PROPERTY_KEY, getJndiName());
recoveryManager.register(recoveryActiveMQConnectionFactory, raProperties.getUserName(), raProperties.getPassword(), recoveryConfProps);
}
@@ -1842,7 +1842,7 @@ public class ActiveMQResourceAdapter implements ResourceAdapter, Serializable {
public Map<String, Object> overrideConnectionParameters(final Map<String, Object> connectionParams,
final Map<String, Object> overrideConnectionParams) {
- Map<String, Object> map = new HashMap<String, Object>();
+ Map<String, Object> map = new HashMap<>();
if (connectionParams != null) {
map.putAll(connectionParams);
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/inflow/ActiveMQActivation.java
----------------------------------------------------------------------
diff --git a/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/inflow/ActiveMQActivation.java b/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/inflow/ActiveMQActivation.java
index af5fec2..79b9cb9 100644
--- a/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/inflow/ActiveMQActivation.java
+++ b/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/inflow/ActiveMQActivation.java
@@ -111,13 +111,13 @@ public class ActiveMQActivation {
*/
private SimpleString topicTemporaryQueue;
- private final List<ActiveMQMessageHandler> handlers = new ArrayList<ActiveMQMessageHandler>();
+ private final List<ActiveMQMessageHandler> handlers = new ArrayList<>();
private ActiveMQConnectionFactory factory;
private List<String> nodes = Collections.synchronizedList(new ArrayList<String>());
- private Map<String, Long> removedNodes = new ConcurrentHashMap<String, Long>();
+ private Map<String, Long> removedNodes = new ConcurrentHashMap<>();
private boolean lastReceived = false;
@@ -272,7 +272,7 @@ public class ActiveMQActivation {
* @return the list of XAResources for this activation endpoint
*/
public List<XAResource> getXAResources() {
- List<XAResource> xaresources = new ArrayList<XAResource>();
+ List<XAResource> xaresources = new ArrayList<>();
for (ActiveMQMessageHandler handler : handlers) {
XAResource xares = handler.getXAResource();
if (xares != null) {
@@ -345,7 +345,7 @@ public class ActiveMQActivation {
handler.start();
}
- Map<String, String> recoveryConfProps = new HashMap<String, String>();
+ Map<String, String> recoveryConfProps = new HashMap<>();
recoveryConfProps.put(XARecoveryConfig.JNDI_NAME_PROPERTY_KEY, ra.getJndiName());
resourceRecovery = ra.getRecoveryManager().register(factory, spec.getUser(), spec.getPassword(), recoveryConfProps);
if (spec.isRebalanceConnections()) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/inflow/ActiveMQActivationSpec.java
----------------------------------------------------------------------
diff --git a/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/inflow/ActiveMQActivationSpec.java b/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/inflow/ActiveMQActivationSpec.java
index feb195f..c1ca63d 100644
--- a/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/inflow/ActiveMQActivationSpec.java
+++ b/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/inflow/ActiveMQActivationSpec.java
@@ -691,8 +691,8 @@ public class ActiveMQActivationSpec extends ConnectionFactoryProperties implemen
ActiveMQRALogger.LOGGER.trace("validate()");
}
- List<String> errorMessages = new ArrayList<String>();
- List<PropertyDescriptor> propsNotSet = new ArrayList<PropertyDescriptor>();
+ List<String> errorMessages = new ArrayList<>();
+ List<PropertyDescriptor> propsNotSet = new ArrayList<>();
try {
if (destination == null || destination.trim().equals("")) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/inflow/ActiveMQMessageHandler.java
----------------------------------------------------------------------
diff --git a/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/inflow/ActiveMQMessageHandler.java b/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/inflow/ActiveMQMessageHandler.java
index 8353634..a180fc7 100644
--- a/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/inflow/ActiveMQMessageHandler.java
+++ b/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/inflow/ActiveMQMessageHandler.java
@@ -177,7 +177,7 @@ public class ActiveMQMessageHandler implements MessageHandler, FailoverEventList
useLocalTx = !activation.isDeliveryTransacted() && activation.getActivationSpec().isUseLocalTx();
transacted = activation.isDeliveryTransacted();
if (activation.isDeliveryTransacted() && !activation.getActivationSpec().isUseLocalTx()) {
- Map<String, Object> xaResourceProperties = new HashMap<String, Object>();
+ Map<String, Object> xaResourceProperties = new HashMap<>();
xaResourceProperties.put(ActiveMQXAResourceWrapper.ACTIVEMQ_JNDI_NAME, ((ActiveMQResourceAdapter) spec.getResourceAdapter()).getJndiName());
xaResourceProperties.put(ActiveMQXAResourceWrapper.ACTIVEMQ_NODE_ID, ((ClientSessionFactoryInternal) cf).getLiveNodeId());
xaResourceProperties.put(ActiveMQXAResourceWrapper.ACTIVEMQ_PRODUCT_NAME, ActiveMQResourceAdapter.PRODUCT_NAME);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/recovery/RecoveryManager.java
----------------------------------------------------------------------
diff --git a/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/recovery/RecoveryManager.java b/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/recovery/RecoveryManager.java
index 13023c8..2eb42ba 100644
--- a/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/recovery/RecoveryManager.java
+++ b/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/recovery/RecoveryManager.java
@@ -33,7 +33,7 @@ public final class RecoveryManager {
private static final String RESOURCE_RECOVERY_CLASS_NAMES = "org.jboss.as.messaging.jms.AS7RecoveryRegistry;" + "org.jboss.as.integration.activemq.recovery.AS5RecoveryRegistry";
- private final Set<XARecoveryConfig> resources = new ConcurrentHashSet<XARecoveryConfig>();
+ private final Set<XARecoveryConfig> resources = new ConcurrentHashSet<>();
public void start(final boolean useAutoRecovery) {
if (useAutoRecovery) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/MessageServiceManager.java
----------------------------------------------------------------------
diff --git a/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/MessageServiceManager.java b/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/MessageServiceManager.java
index 1bef82c..014853d 100644
--- a/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/MessageServiceManager.java
+++ b/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/MessageServiceManager.java
@@ -136,7 +136,7 @@ public class MessageServiceManager {
defaultSettings.setDuplicatesAllowed(configuration.isDupsOk());
defaultSettings.setDurableSend(configuration.isDefaultDurableSend());
- HashMap<String, Object> transportConfig = new HashMap<String, Object>();
+ HashMap<String, Object> transportConfig = new HashMap<>();
transportConfig.put(TransportConstants.SERVER_ID_PROP_NAME, configuration.getInVmId());
ServerLocator consumerLocator = new ServerLocatorImpl(false, new TransportConfiguration(InVMConnectorFactory.class.getName(), transportConfig));
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/ConsumersResource.java
----------------------------------------------------------------------
diff --git a/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/ConsumersResource.java b/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/ConsumersResource.java
index 278461c..84dae83 100644
--- a/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/ConsumersResource.java
+++ b/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/ConsumersResource.java
@@ -40,7 +40,7 @@ import org.apache.activemq.artemis.rest.util.TimeoutTask;
public class ConsumersResource implements TimeoutTask.Callback {
- protected ConcurrentMap<String, QueueConsumer> queueConsumers = new ConcurrentHashMap<String, QueueConsumer>();
+ protected ConcurrentMap<String, QueueConsumer> queueConsumers = new ConcurrentHashMap<>();
protected ClientSessionFactory sessionFactory;
protected String destination;
protected final String startup = Long.toString(System.currentTimeMillis());
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/PostMessage.java
----------------------------------------------------------------------
diff --git a/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/PostMessage.java b/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/PostMessage.java
index c99cdf1..6931695 100644
--- a/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/PostMessage.java
+++ b/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/PostMessage.java
@@ -206,7 +206,7 @@ public class PostMessage {
}
public void init() throws Exception {
- pool = new ArrayBlockingQueue<Pooled>(poolSize);
+ pool = new ArrayBlockingQueue<>(poolSize);
for (int i = 0; i < poolSize; i++) {
addPooled();
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/QueueDestinationsResource.java
----------------------------------------------------------------------
diff --git a/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/QueueDestinationsResource.java b/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/QueueDestinationsResource.java
index 3f17af0..7f7ce09 100644
--- a/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/QueueDestinationsResource.java
+++ b/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/QueueDestinationsResource.java
@@ -45,7 +45,7 @@ import org.w3c.dom.Document;
@Path(Constants.PATH_FOR_QUEUES)
public class QueueDestinationsResource {
- private Map<String, QueueResource> queues = new ConcurrentHashMap<String, QueueResource>();
+ private Map<String, QueueResource> queues = new ConcurrentHashMap<>();
private QueueServiceManager manager;
public QueueDestinationsResource(QueueServiceManager manager) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/QueueServiceManager.java
----------------------------------------------------------------------
diff --git a/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/QueueServiceManager.java b/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/QueueServiceManager.java
index 1e643af..159cca4 100644
--- a/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/QueueServiceManager.java
+++ b/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/QueueServiceManager.java
@@ -27,7 +27,7 @@ import org.apache.activemq.artemis.rest.queue.push.FilePushStore;
public class QueueServiceManager extends DestinationServiceManager {
protected PushStore pushStore;
- protected List<QueueDeployment> queues = new ArrayList<QueueDeployment>();
+ protected List<QueueDeployment> queues = new ArrayList<>();
protected QueueDestinationsResource destination;
public List<QueueDeployment> getQueues() {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/push/FilePushStore.java
----------------------------------------------------------------------
diff --git a/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/push/FilePushStore.java b/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/push/FilePushStore.java
index 70e0d64..54d2b50 100644
--- a/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/push/FilePushStore.java
+++ b/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/push/FilePushStore.java
@@ -31,7 +31,7 @@ import org.apache.activemq.artemis.rest.topic.PushTopicRegistration;
public class FilePushStore implements PushStore {
- protected Map<String, PushRegistration> map = new HashMap<String, PushRegistration>();
+ protected Map<String, PushRegistration> map = new HashMap<>();
protected File dir;
protected JAXBContext ctx;
@@ -58,13 +58,13 @@ public class FilePushStore implements PushStore {
}
public synchronized List<PushRegistration> getRegistrations() {
- List<PushRegistration> list = new ArrayList<PushRegistration>(map.values());
+ List<PushRegistration> list = new ArrayList<>(map.values());
return list;
}
@Override
public synchronized List<PushRegistration> getByDestination(String destination) {
- List<PushRegistration> list = new ArrayList<PushRegistration>();
+ List<PushRegistration> list = new ArrayList<>();
for (PushRegistration reg : map.values()) {
if (reg.getDestination().equals(destination)) {
list.add(reg);
@@ -108,7 +108,7 @@ public class FilePushStore implements PushStore {
@Override
public synchronized void removeAll() throws Exception {
- ArrayList<PushRegistration> copy = new ArrayList<PushRegistration>(map.values());
+ ArrayList<PushRegistration> copy = new ArrayList<>(map.values());
for (PushRegistration reg : copy)
remove(reg);
this.dir.delete();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/push/PushConsumer.java
----------------------------------------------------------------------
diff --git a/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/push/PushConsumer.java b/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/push/PushConsumer.java
index 906ff78..ef47f0a 100644
--- a/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/push/PushConsumer.java
+++ b/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/push/PushConsumer.java
@@ -81,8 +81,8 @@ public class PushConsumer {
strategy.setRegistration(registration);
strategy.start();
- sessions = new ArrayList<ClientSession>();
- consumers = new ArrayList<ClientConsumer>();
+ sessions = new ArrayList<>();
+ consumers = new ArrayList<>();
for (int i = 0; i < registration.getSessionCount(); i++) {
ClientSession session = factory.createSession(false, false, 0);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/push/PushConsumerResource.java
----------------------------------------------------------------------
diff --git a/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/push/PushConsumerResource.java b/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/push/PushConsumerResource.java
index d1a3f16..76dcf5e 100644
--- a/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/push/PushConsumerResource.java
+++ b/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/push/PushConsumerResource.java
@@ -38,7 +38,7 @@ import org.apache.activemq.artemis.rest.ActiveMQRestLogger;
public class PushConsumerResource {
- protected Map<String, PushConsumer> consumers = new ConcurrentHashMap<String, PushConsumer>();
+ protected Map<String, PushConsumer> consumers = new ConcurrentHashMap<>();
protected ClientSessionFactory sessionFactory;
protected String destination;
protected final String startup = Long.toString(System.currentTimeMillis());
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/push/xml/PushRegistration.java
----------------------------------------------------------------------
diff --git a/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/push/xml/PushRegistration.java b/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/push/xml/PushRegistration.java
index af3a129..b934f7b 100644
--- a/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/push/xml/PushRegistration.java
+++ b/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/queue/push/xml/PushRegistration.java
@@ -38,7 +38,7 @@ public class PushRegistration implements Serializable {
private boolean durable;
private XmlLink target;
private Authentication authenticationMechanism;
- private List<XmlHttpHeader> headers = new ArrayList<XmlHttpHeader>();
+ private List<XmlHttpHeader> headers = new ArrayList<>();
private String destination;
private Object loadedFrom;
private String selector;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/topic/FileTopicPushStore.java
----------------------------------------------------------------------
diff --git a/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/topic/FileTopicPushStore.java b/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/topic/FileTopicPushStore.java
index 417b65d..57cadd9 100644
--- a/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/topic/FileTopicPushStore.java
+++ b/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/topic/FileTopicPushStore.java
@@ -30,7 +30,7 @@ public class FileTopicPushStore extends FilePushStore implements TopicPushStore
@Override
public synchronized List<PushTopicRegistration> getByTopic(String topic) {
- List<PushTopicRegistration> list = new ArrayList<PushTopicRegistration>();
+ List<PushTopicRegistration> list = new ArrayList<>();
for (PushRegistration reg : map.values()) {
PushTopicRegistration topicReg = (PushTopicRegistration) reg;
if (topicReg.getTopic().equals(topic)) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/topic/PushSubscriptionsResource.java
----------------------------------------------------------------------
diff --git a/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/topic/PushSubscriptionsResource.java b/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/topic/PushSubscriptionsResource.java
index de4a16a..c01459b 100644
--- a/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/topic/PushSubscriptionsResource.java
+++ b/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/topic/PushSubscriptionsResource.java
@@ -40,7 +40,7 @@ import java.util.concurrent.atomic.AtomicLong;
public class PushSubscriptionsResource {
- protected Map<String, PushSubscription> consumers = new ConcurrentHashMap<String, PushSubscription>();
+ protected Map<String, PushSubscription> consumers = new ConcurrentHashMap<>();
protected ClientSessionFactory sessionFactory;
protected String destination;
protected final String startup = Long.toString(System.currentTimeMillis());
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/topic/SubscriptionsResource.java
----------------------------------------------------------------------
diff --git a/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/topic/SubscriptionsResource.java b/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/topic/SubscriptionsResource.java
index 140599d..2fcbdd5 100644
--- a/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/topic/SubscriptionsResource.java
+++ b/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/topic/SubscriptionsResource.java
@@ -46,7 +46,7 @@ import org.apache.activemq.artemis.rest.util.TimeoutTask;
public class SubscriptionsResource implements TimeoutTask.Callback {
- protected ConcurrentMap<String, QueueConsumer> queueConsumers = new ConcurrentHashMap<String, QueueConsumer>();
+ protected ConcurrentMap<String, QueueConsumer> queueConsumers = new ConcurrentHashMap<>();
protected ClientSessionFactory sessionFactory;
protected String destination;
protected final String startup = Long.toString(System.currentTimeMillis());
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/topic/TopicDestinationsResource.java
----------------------------------------------------------------------
diff --git a/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/topic/TopicDestinationsResource.java b/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/topic/TopicDestinationsResource.java
index e084b03..8c72e49 100644
--- a/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/topic/TopicDestinationsResource.java
+++ b/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/topic/TopicDestinationsResource.java
@@ -46,7 +46,7 @@ import org.w3c.dom.Document;
@Path("/topics")
public class TopicDestinationsResource {
- private Map<String, TopicResource> topics = new ConcurrentHashMap<String, TopicResource>();
+ private Map<String, TopicResource> topics = new ConcurrentHashMap<>();
private TopicServiceManager manager;
public TopicDestinationsResource(TopicServiceManager manager) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/topic/TopicServiceManager.java
----------------------------------------------------------------------
diff --git a/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/topic/TopicServiceManager.java b/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/topic/TopicServiceManager.java
index b782d5c..cd2020f 100644
--- a/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/topic/TopicServiceManager.java
+++ b/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/topic/TopicServiceManager.java
@@ -26,7 +26,7 @@ import java.util.List;
public class TopicServiceManager extends DestinationServiceManager {
protected TopicPushStore pushStore;
- protected List<TopicDeployment> topics = new ArrayList<TopicDeployment>();
+ protected List<TopicDeployment> topics = new ArrayList<>();
protected TopicDestinationsResource destination;
public TopicPushStore getPushStore() {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/util/TimeoutTask.java
----------------------------------------------------------------------
diff --git a/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/util/TimeoutTask.java b/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/util/TimeoutTask.java
index ae5f5de..ba87669 100644
--- a/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/util/TimeoutTask.java
+++ b/artemis-rest/src/main/java/org/apache/activemq/artemis/rest/util/TimeoutTask.java
@@ -30,9 +30,9 @@ public class TimeoutTask implements Runnable {
protected boolean running = true;
protected int interval = 10;
protected final Lock callbacksLock = new ReentrantLock();
- protected Map<String, Callback> callbacks = new HashMap<String, Callback>();
+ protected Map<String, Callback> callbacks = new HashMap<>();
protected final Lock pendingCallbacksLock = new ReentrantLock();
- protected Map<String, Callback> pendingCallbacks = new HashMap<String, Callback>();
+ protected Map<String, Callback> pendingCallbacks = new HashMap<>();
protected Thread thread;
public TimeoutTask(int interval) {
@@ -107,7 +107,7 @@ public class TimeoutTask implements Runnable {
// First, test all known callbacks for timeouts.
// If the timeout is true, then move it to a separate map.
- Map<String, Callback> expiredCallbacks = new HashMap<String, Callback>();
+ Map<String, Callback> expiredCallbacks = new HashMap<>();
int liveConsumers = 0;
int deadConsumers = 0;
@@ -115,7 +115,7 @@ public class TimeoutTask implements Runnable {
callbacksLock.lock();
try {
long startTime = System.currentTimeMillis();
- List<String> tokens = new ArrayList<String>(callbacks.size());
+ List<String> tokens = new ArrayList<>(callbacks.size());
for (String token : callbacks.keySet()) {
tokens.add(token);
}
@@ -154,7 +154,7 @@ public class TimeoutTask implements Runnable {
// Finally, freely shutdown all expired consumers.
if (expiredCallbacks.size() > 0) {
long startTime = System.currentTimeMillis();
- List<String> tokens = new ArrayList<String>(expiredCallbacks.size());
+ List<String> tokens = new ArrayList<>(expiredCallbacks.size());
for (String token : expiredCallbacks.keySet()) {
tokens.add(token);
}
[13/32] activemq-artemis git commit: Remove redundant type arguments
Posted by cl...@apache.org.
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/streams/JMSInputStreamTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/streams/JMSInputStreamTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/streams/JMSInputStreamTest.java
index 6ec27c0..38f0213 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/streams/JMSInputStreamTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/streams/JMSInputStreamTest.java
@@ -121,7 +121,7 @@ public class JMSInputStreamTest extends JmsTestSupport {
String name2 = "PROPERTY_2";
String value1 = "VALUE_1";
String value2 = "VALUE_2";
- Map<String, Object> jmsProperties = new HashMap<String, Object>();
+ Map<String, Object> jmsProperties = new HashMap<>();
jmsProperties.put(name1, value1);
jmsProperties.put(name2, value2);
setUpConnection(jmsProperties, -1);
@@ -157,7 +157,7 @@ public class JMSInputStreamTest extends JmsTestSupport {
String name2 = "PROPERTY_2";
String value1 = "VALUE_1";
String value2 = "VALUE_2";
- Map<String, Object> jmsProperties = new HashMap<String, Object>();
+ Map<String, Object> jmsProperties = new HashMap<>();
jmsProperties.put(name1, value1);
jmsProperties.put(name2, value2);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/test/message/NestedMapAndListPropertyTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/test/message/NestedMapAndListPropertyTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/test/message/NestedMapAndListPropertyTest.java
index 291e4de..34489ae 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/test/message/NestedMapAndListPropertyTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/test/message/NestedMapAndListPropertyTest.java
@@ -75,11 +75,11 @@ public class NestedMapAndListPropertyTest extends JmsTopicSendReceiveWithTwoConn
answer.setStringProperty("textField", data[index]);
- Map<String, Object> grandChildMap = new HashMap<String, Object>();
+ Map<String, Object> grandChildMap = new HashMap<>();
grandChildMap.put("x", "abc");
grandChildMap.put("y", Arrays.asList(new Object[]{"a", "b", "c"}));
- Map<String, Object> nestedMap = new HashMap<String, Object>();
+ Map<String, Object> nestedMap = new HashMap<>();
nestedMap.put("a", "foo");
nestedMap.put("b", new Integer(23));
nestedMap.put("c", new Long(45));
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/test/message/NestedMapMessageTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/test/message/NestedMapMessageTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/test/message/NestedMapMessageTest.java
index 062cbab..1bf7319 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/test/message/NestedMapMessageTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/test/message/NestedMapMessageTest.java
@@ -79,11 +79,11 @@ public class NestedMapMessageTest extends JmsTopicSendReceiveWithTwoConnectionsA
answer.setString("textField", data[index]);
- Map<String, Object> grandChildMap = new HashMap<String, Object>();
+ Map<String, Object> grandChildMap = new HashMap<>();
grandChildMap.put("x", "abc");
grandChildMap.put("y", Arrays.asList(new Object[]{"a", "b", "c"}));
- Map<String, Object> nestedMap = new HashMap<String, Object>();
+ Map<String, Object> nestedMap = new HashMap<>();
nestedMap.put("a", "foo");
nestedMap.put("b", Integer.valueOf(23));
nestedMap.put("c", Long.valueOf(45));
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/StubCompositeTransport.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/StubCompositeTransport.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/StubCompositeTransport.java
index 57b7062..108249a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/StubCompositeTransport.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/StubCompositeTransport.java
@@ -26,7 +26,7 @@ import java.util.List;
*/
public class StubCompositeTransport extends StubTransport implements CompositeTransport {
- private List<URI> transportURIs = new ArrayList<URI>();
+ private List<URI> transportURIs = new ArrayList<>();
/**
* @see org.apache.activemq.transport.CompositeTransport#add(java.net.URI[])
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/StubTransport.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/StubTransport.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/StubTransport.java
index 9375b6d..1175e77 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/StubTransport.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/StubTransport.java
@@ -29,7 +29,7 @@ import org.apache.activemq.util.ServiceStopper;
*/
public class StubTransport extends TransportSupport {
- private Queue<Object> queue = new ConcurrentLinkedQueue<Object>();
+ private Queue<Object> queue = new ConcurrentLinkedQueue<>();
private AtomicInteger receiveCounter;
@Override
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/StubTransportListener.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/StubTransportListener.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/StubTransportListener.java
index 6c67e3c..a35003d 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/StubTransportListener.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/StubTransportListener.java
@@ -26,8 +26,8 @@ import java.util.concurrent.ConcurrentLinkedQueue;
*/
public class StubTransportListener implements TransportListener {
- private final Queue<Object> commands = new ConcurrentLinkedQueue<Object>();
- private final Queue<Object> exceptions = new ConcurrentLinkedQueue<Object>();
+ private final Queue<Object> commands = new ConcurrentLinkedQueue<>();
+ private final Queue<Object> exceptions = new ConcurrentLinkedQueue<>();
public Queue<Object> getCommands() {
return commands;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/TopicClusterTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/TopicClusterTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/TopicClusterTest.java
index c8aadbc..5157c33 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/TopicClusterTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/TopicClusterTest.java
@@ -60,7 +60,7 @@ public class TopicClusterTest extends TestCase implements MessageListener {
protected int deliveryMode = DeliveryMode.NON_PERSISTENT;
protected MessageProducer[] producers;
protected Connection[] connections;
- protected List<BrokerService> services = new ArrayList<BrokerService>();
+ protected List<BrokerService> services = new ArrayList<>();
protected String groupId;
@Override
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/TransportBrokerTestSupport.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/TransportBrokerTestSupport.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/TransportBrokerTestSupport.java
index 18e4cdc..1c39972 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/TransportBrokerTestSupport.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/TransportBrokerTestSupport.java
@@ -30,7 +30,7 @@ import org.apache.activemq.broker.artemiswrapper.ArtemisBrokerWrapper;
public abstract class TransportBrokerTestSupport extends BrokerTest {
protected TransportConnector connector;
- private ArrayList<StubConnection> connections = new ArrayList<StubConnection>();
+ private ArrayList<StubConnection> connections = new ArrayList<>();
@Override
protected void setUp() throws Exception {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/discovery/DiscoveryNetworkReconnectTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/discovery/DiscoveryNetworkReconnectTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/discovery/DiscoveryNetworkReconnectTest.java
index 8ee3adc..c63177b 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/discovery/DiscoveryNetworkReconnectTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/discovery/DiscoveryNetworkReconnectTest.java
@@ -123,7 +123,7 @@ public class DiscoveryNetworkReconnectTest {
allowing(managementContext).registerMBean(with(any(Object.class)), with(equal(new ObjectName("Test:type=Broker,brokerName=BrokerNC,destinationType=Topic,destinationName=ActiveMQ.Advisory.MasterBroker"))));
allowing(managementContext).registerMBean(with(any(Object.class)), with(equal(new ObjectName("Test:type=Broker,brokerName=BrokerNC,service=jobScheduler,jobSchedulerName=JMS"))));
- atLeast(maxReconnects - 1).of(managementContext).registerMBean(with(any(Object.class)), with(new NetworkBridgeObjectNameMatcher<ObjectName>(new ObjectName("Test:type=Broker,brokerName=BrokerNC,connector=networkConnectors,networkConnectorName=NC,networkBridge=localhost/127.0.0.1_" + proxy.getUrl().getPort()))));
+ atLeast(maxReconnects - 1).of(managementContext).registerMBean(with(any(Object.class)), with(new NetworkBridgeObjectNameMatcher<>(new ObjectName("Test:type=Broker,brokerName=BrokerNC,connector=networkConnectors,networkConnectorName=NC,networkBridge=localhost/127.0.0.1_" + proxy.getUrl().getPort()))));
will(new CustomAction("signal register network mbean") {
@Override
public Object invoke(Invocation invocation) throws Throwable {
@@ -132,7 +132,7 @@ public class DiscoveryNetworkReconnectTest {
return new ObjectInstance((ObjectName) invocation.getParameter(1), "discription");
}
});
- atLeast(maxReconnects - 1).of(managementContext).unregisterMBean(with(new NetworkBridgeObjectNameMatcher<ObjectName>(new ObjectName("Test:type=Broker,brokerName=BrokerNC,connector=networkConnectors,networkConnectorName=NC,networkBridge=localhost/127.0.0.1_" + proxy.getUrl().getPort()))));
+ atLeast(maxReconnects - 1).of(managementContext).unregisterMBean(with(new NetworkBridgeObjectNameMatcher<>(new ObjectName("Test:type=Broker,brokerName=BrokerNC,connector=networkConnectors,networkConnectorName=NC,networkBridge=localhost/127.0.0.1_" + proxy.getUrl().getPort()))));
will(new CustomAction("signal unregister network mbean") {
@Override
public Object invoke(Invocation invocation) throws Throwable {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/discovery/DiscoveryTransportNoBrokerTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/discovery/DiscoveryTransportNoBrokerTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/discovery/DiscoveryTransportNoBrokerTest.java
index bf022f0..d244dab 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/discovery/DiscoveryTransportNoBrokerTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/discovery/DiscoveryTransportNoBrokerTest.java
@@ -53,7 +53,7 @@ public class DiscoveryTransportNoBrokerTest extends CombinationTestSupport {
broker.start();
broker.waitUntilStarted();
- Vector<String> existingNames = new Vector<String>();
+ Vector<String> existingNames = new Vector<>();
Thread[] threads = getThreads();
for (Thread t : threads) {
existingNames.add(t.getName());
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/AMQ1925Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/AMQ1925Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/AMQ1925Test.java
index 4554a0b..f80b09a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/AMQ1925Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/AMQ1925Test.java
@@ -154,7 +154,7 @@ public class AMQ1925Test extends TestCase implements ExceptionListener {
}
}).start();
- Collection<Integer> results = new ArrayList<Integer>(MESSAGE_COUNT);
+ Collection<Integer> results = new ArrayList<>(MESSAGE_COUNT);
for (int i = 0; i < MESSAGE_COUNT; i++) {
Message message1 = consumer1.receive(20);
Message message2 = consumer2.receive(20);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/ConnectionHangOnStartupTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/ConnectionHangOnStartupTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/ConnectionHangOnStartupTest.java
index 6f38203..110e2fc 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/ConnectionHangOnStartupTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/ConnectionHangOnStartupTest.java
@@ -42,7 +42,7 @@ public class ConnectionHangOnStartupTest {
// connection sooner)
protected String uriString = "failover://(tcp://localhost:62001?wireFormat.maxInactivityDurationInitalDelay=1,tcp://localhost:62002?wireFormat.maxInactivityDurationInitalDelay=1)?randomize=false&maxReconnectDelay=200";
protected BrokerService master = null;
- protected AtomicReference<BrokerService> slave = new AtomicReference<BrokerService>();
+ protected AtomicReference<BrokerService> slave = new AtomicReference<>();
@After
public void tearDown() throws Exception {
@@ -84,7 +84,7 @@ public class ConnectionHangOnStartupTest {
@Test(timeout = 60000)
public void testInitialWireFormatNegotiationTimeout() throws Exception {
- final AtomicReference<Connection> conn = new AtomicReference<Connection>();
+ final AtomicReference<Connection> conn = new AtomicReference<>();
final CountDownLatch connStarted = new CountDownLatch(1);
Thread t = new Thread() {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverClusterTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverClusterTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverClusterTest.java
index 113db64..c0c529d 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverClusterTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverClusterTest.java
@@ -44,7 +44,7 @@ public class FailoverClusterTest extends TestCase {
private BrokerService brokerB;
private String clientUrl;
- private final List<ActiveMQConnection> connections = new ArrayList<ActiveMQConnection>();
+ private final List<ActiveMQConnection> connections = new ArrayList<>();
public void testClusterConnectedAfterClients() throws Exception {
createClients();
@@ -52,7 +52,7 @@ public class FailoverClusterTest extends TestCase {
brokerB = createBrokerB(BROKER_BIND_ADDRESS);
}
Thread.sleep(3000);
- Set<String> set = new HashSet<String>();
+ Set<String> set = new HashSet<>();
for (ActiveMQConnection c : connections) {
set.add(c.getTransportChannel().getRemoteAddress());
}
@@ -66,7 +66,7 @@ public class FailoverClusterTest extends TestCase {
brokerB = createBrokerB(BROKER_BIND_ADDRESS + "?transport.closeAsync=false");
}
Thread.sleep(3000);
- Set<String> set = new HashSet<String>();
+ Set<String> set = new HashSet<>();
for (ActiveMQConnection c : connections) {
set.add(c.getTransportChannel().getRemoteAddress());
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverClusterTestSupport.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverClusterTestSupport.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverClusterTestSupport.java
index 2a125e1..b518ad5 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverClusterTestSupport.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverClusterTestSupport.java
@@ -47,11 +47,11 @@ public class FailoverClusterTestSupport extends TestCase {
private String clientUrl;
- private final Map<String, BrokerService> brokers = new HashMap<String, BrokerService>();
- private final List<ActiveMQConnection> connections = new ArrayList<ActiveMQConnection>();
+ private final Map<String, BrokerService> brokers = new HashMap<>();
+ private final List<ActiveMQConnection> connections = new ArrayList<>();
protected void assertClientsConnectedToTwoBrokers() {
- Set<String> set = new HashSet<String>();
+ Set<String> set = new HashSet<>();
for (ActiveMQConnection c : connections) {
if (c.getTransportChannel().getRemoteAddress() != null) {
set.add(c.getTransportChannel().getRemoteAddress());
@@ -61,7 +61,7 @@ public class FailoverClusterTestSupport extends TestCase {
}
protected void assertClientsConnectedToThreeBrokers() {
- Set<String> set = new HashSet<String>();
+ Set<String> set = new HashSet<>();
for (ActiveMQConnection c : connections) {
if (c.getTransportChannel().getRemoteAddress() != null) {
set.add(c.getTransportChannel().getRemoteAddress());
@@ -71,7 +71,7 @@ public class FailoverClusterTestSupport extends TestCase {
}
protected void assertClientsConnectionsEvenlyDistributed(double minimumPercentage) {
- Map<String, Double> clientConnectionCounts = new HashMap<String, Double>();
+ Map<String, Double> clientConnectionCounts = new HashMap<>();
int total = 0;
for (ActiveMQConnection c : connections) {
String key = c.getTransportChannel().getRemoteAddress();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverConsumerOutstandingCommitTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverConsumerOutstandingCommitTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverConsumerOutstandingCommitTest.java
index ea09832..e33e7ea 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverConsumerOutstandingCommitTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverConsumerOutstandingCommitTest.java
@@ -254,7 +254,7 @@ public class FailoverConsumerOutstandingCommitTest {
final CountDownLatch commitDoneLatch = new CountDownLatch(1);
final CountDownLatch messagesReceived = new CountDownLatch(3);
final AtomicBoolean gotCommitException = new AtomicBoolean(false);
- final ArrayList<TextMessage> receivedMessages = new ArrayList<TextMessage>();
+ final ArrayList<TextMessage> receivedMessages = new ArrayList<>();
final MessageConsumer testConsumer = consumerSession.createConsumer(destination);
testConsumer.setMessageListener(new MessageListener() {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverConsumerUnconsumedTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverConsumerUnconsumedTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverConsumerUnconsumedTest.java
index 310e239..2779f52 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverConsumerUnconsumedTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverConsumerUnconsumedTest.java
@@ -139,7 +139,7 @@ public class FailoverConsumerUnconsumedTest {
final Session consumerSession = connection.createSession(false, Session.CLIENT_ACKNOWLEDGE);
final Queue destination = consumerSession.createQueue(QUEUE_NAME + "?jms.consumer.prefetch=" + prefetch);
- final Vector<TestConsumer> testConsumers = new Vector<TestConsumer>();
+ final Vector<TestConsumer> testConsumers = new Vector<>();
TestConsumer testConsumer = new TestConsumer(consumerSession, destination, connection);
testConsumer.setMessageListener(new MessageListener() {
@Override
@@ -278,7 +278,7 @@ public class FailoverConsumerUnconsumedTest {
final Session consumerSession = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
final Queue destination = consumerSession.createQueue(QUEUE_NAME + "?jms.consumer.prefetch=" + prefetch);
- final Vector<TestConsumer> testConsumers = new Vector<TestConsumer>();
+ final Vector<TestConsumer> testConsumers = new Vector<>();
for (int i = 0; i < maxConsumers - 1; i++) {
testConsumers.add(new TestConsumer(consumerSession, destination, connection));
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverPrefetchZeroTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverPrefetchZeroTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverPrefetchZeroTest.java
index e48a699..57899ba 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverPrefetchZeroTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverPrefetchZeroTest.java
@@ -120,7 +120,7 @@ public class FailoverPrefetchZeroTest {
produceMessage(consumerSession, destination, 1);
final CountDownLatch receiveDone = new CountDownLatch(1);
- final Vector<Message> received = new Vector<Message>();
+ final Vector<Message> received = new Vector<>();
Executors.newSingleThreadExecutor().execute(new Runnable() {
@Override
public void run() {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverPriorityTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverPriorityTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverPriorityTest.java
index fb4f969..b8860a7 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverPriorityTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverPriorityTest.java
@@ -28,7 +28,7 @@ public class FailoverPriorityTest extends FailoverClusterTestSupport {
private static final String BROKER_A_CLIENT_TC_ADDRESS = "tcp://127.0.0.1:61616";
private static final String BROKER_B_CLIENT_TC_ADDRESS = "tcp://127.0.0.1:61617";
private static final String BROKER_C_CLIENT_TC_ADDRESS = "tcp://127.0.0.1:61618";
- private final HashMap<String, String> urls = new HashMap<String, String>();
+ private final HashMap<String, String> urls = new HashMap<>();
@Override
public void setUp() throws Exception {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverTransactionTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverTransactionTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverTransactionTest.java
index 4ee219e..eb5bc61 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverTransactionTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverTransactionTest.java
@@ -760,7 +760,7 @@ public class FailoverTransactionTest extends TestSupport {
}});
broker.start();
- Vector<Connection> connections = new Vector<Connection>();
+ Vector<Connection> connections = new Vector<>();
ActiveMQConnectionFactory cf = new ActiveMQConnectionFactory("failover:(" + url + ")");
configureConnectionFactory(cf);
Connection connection = cf.createConnection();
@@ -785,7 +785,7 @@ public class FailoverTransactionTest extends TestSupport {
produceMessage(producerSession, destination);
produceMessage(producerSession, destination);
- final Vector<Message> receivedMessages = new Vector<Message>();
+ final Vector<Message> receivedMessages = new Vector<>();
final CountDownLatch commitDoneLatch = new CountDownLatch(1);
final AtomicBoolean gotTransactionRolledBackException = new AtomicBoolean(false);
Executors.newSingleThreadExecutor().execute(new Runnable() {
@@ -924,7 +924,7 @@ public class FailoverTransactionTest extends TestSupport {
}});
broker.start();
- Vector<Connection> connections = new Vector<Connection>();
+ Vector<Connection> connections = new Vector<>();
ActiveMQConnectionFactory cf = new ActiveMQConnectionFactory("failover:(" + url + ")");
configureConnectionFactory(cf);
Connection connection = cf.createConnection();
@@ -941,13 +941,13 @@ public class FailoverTransactionTest extends TestSupport {
final Session consumerSession = connection.createSession(false, Session.CLIENT_ACKNOWLEDGE);
final int sessionCount = 10;
- final Stack<Session> sessions = new Stack<Session>();
+ final Stack<Session> sessions = new Stack<>();
for (int i = 0; i < sessionCount; i++) {
sessions.push(connection.createSession(false, Session.AUTO_ACKNOWLEDGE));
}
final int consumerCount = 1000;
- final Deque<MessageConsumer> consumers = new ArrayDeque<MessageConsumer>();
+ final Deque<MessageConsumer> consumers = new ArrayDeque<>();
for (int i = 0; i < consumerCount; i++) {
consumers.push(consumerSession.createConsumer(destination));
}
@@ -1150,7 +1150,7 @@ public class FailoverTransactionTest extends TestSupport {
final CountDownLatch commitDone = new CountDownLatch(1);
- final Vector<Exception> exceptions = new Vector<Exception>();
+ final Vector<Exception> exceptions = new Vector<>();
// commit may fail if other consumer gets the message on restart
Executors.newSingleThreadExecutor().execute(new Runnable() {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/SlowConnectionTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/SlowConnectionTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/SlowConnectionTest.java
index 2826595..3a55473 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/SlowConnectionTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/SlowConnectionTest.java
@@ -85,7 +85,7 @@ public class SlowConnectionTest extends TestCase {
@Override
public void run() {
- List<Socket> inProgress = new ArrayList<Socket>();
+ List<Socket> inProgress = new ArrayList<>();
ServerSocketFactory factory = ServerSocketFactory.getDefault();
try {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/QualityOfServiceUtilsTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/QualityOfServiceUtilsTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/QualityOfServiceUtilsTest.java
index e45bf64..84e8133 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/QualityOfServiceUtilsTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/QualityOfServiceUtilsTest.java
@@ -58,7 +58,7 @@ public class QualityOfServiceUtilsTest extends TestCase {
}
public void testValidDiffServNames() {
- Map<String, Integer> namesToExpected = new HashMap<String, Integer>();
+ Map<String, Integer> namesToExpected = new HashMap<>();
namesToExpected.put("CS0", Integer.valueOf("000000", 2));
namesToExpected.put("CS1", Integer.valueOf("001000", 2));
namesToExpected.put("CS2", Integer.valueOf("010000", 2));
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/SocketTstFactory.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/SocketTstFactory.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/SocketTstFactory.java
index b4de0ce..34158cb 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/SocketTstFactory.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/SocketTstFactory.java
@@ -36,7 +36,7 @@ public class SocketTstFactory extends SocketFactory {
private static final Logger LOG = LoggerFactory.getLogger(SocketTstFactory.class);
- private static final ConcurrentMap<InetAddress, Integer> closeIter = new ConcurrentHashMap<InetAddress, Integer>();
+ private static final ConcurrentMap<InetAddress, Integer> closeIter = new ConcurrentHashMap<>();
private class SocketTst {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/SslTransportFactoryTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/SslTransportFactoryTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/SslTransportFactoryTest.java
index 32e26a3..8d3ff30 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/SslTransportFactoryTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/SslTransportFactoryTest.java
@@ -90,7 +90,7 @@ public class SslTransportFactoryTest extends TestCase {
// 2 transport options, 3 socket options, 3 settings for each option =>
// 3^5 = 243 combos.
for (int i = 0; i < 243; ++i) {
- Map<String, String> options = new HashMap<String, String>();
+ Map<String, String> options = new HashMap<>();
for (int j = 0; j < 5; ++j) {
// -1 since the option range is [-1,1], not [0,2].
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/TcpFaultyTransportFactory.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/TcpFaultyTransportFactory.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/TcpFaultyTransportFactory.java
index 9640169..5bc9e2f 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/TcpFaultyTransportFactory.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/TcpFaultyTransportFactory.java
@@ -77,7 +77,7 @@ public class TcpFaultyTransportFactory extends TcpTransportFactory {
@Override
public TransportServer doBind(final URI location) throws IOException {
try {
- Map<String, String> options = new HashMap<String, String>(URISupport.parseParameters(location));
+ Map<String, String> options = new HashMap<>(URISupport.parseParameters(location));
ServerSocketFactory serverSocketFactory = createServerSocketFactory();
TcpFaultyTransportServer server = createTcpFaultyTransportServer(location, serverSocketFactory);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/WireformatNegociationTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/WireformatNegociationTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/WireformatNegociationTest.java
index fb9c7ba..27a378d 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/WireformatNegociationTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/WireformatNegociationTest.java
@@ -43,9 +43,9 @@ public class WireformatNegociationTest extends CombinationTestSupport {
private Transport clientTransport;
private Transport serverTransport;
- private final AtomicReference<WireFormatInfo> clientWF = new AtomicReference<WireFormatInfo>();
- private final AtomicReference<WireFormatInfo> serverWF = new AtomicReference<WireFormatInfo>();
- private final AtomicReference<Exception> asyncError = new AtomicReference<Exception>();
+ private final AtomicReference<WireFormatInfo> clientWF = new AtomicReference<>();
+ private final AtomicReference<WireFormatInfo> serverWF = new AtomicReference<>();
+ private final AtomicReference<Exception> asyncError = new AtomicReference<>();
private final AtomicBoolean ignoreAsycError = new AtomicBoolean();
private final CountDownLatch negotiationCounter = new CountDownLatch(2);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/vm/VMTransportThreadSafeTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/vm/VMTransportThreadSafeTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/vm/VMTransportThreadSafeTest.java
index 1f8ad67..2268048 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/vm/VMTransportThreadSafeTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/vm/VMTransportThreadSafeTest.java
@@ -54,8 +54,8 @@ public class VMTransportThreadSafeTest {
private final static String location1 = "vm://transport1";
private final static String location2 = "vm://transport2";
- private final ConcurrentLinkedQueue<DummyCommand> localReceived = new ConcurrentLinkedQueue<DummyCommand>();
- private final ConcurrentLinkedQueue<DummyCommand> remoteReceived = new ConcurrentLinkedQueue<DummyCommand>();
+ private final ConcurrentLinkedQueue<DummyCommand> localReceived = new ConcurrentLinkedQueue<>();
+ private final ConcurrentLinkedQueue<DummyCommand> remoteReceived = new ConcurrentLinkedQueue<>();
private class DummyCommand extends BaseCommand {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/vm/VmTransportNetworkBrokerTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/vm/VmTransportNetworkBrokerTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/vm/VmTransportNetworkBrokerTest.java
index 3453a2e..2b97cff 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/vm/VmTransportNetworkBrokerTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/vm/VmTransportNetworkBrokerTest.java
@@ -129,7 +129,7 @@ public class VmTransportNetworkBrokerTest extends TestCase {
*/
public Thread[] filterDaemonThreads(Thread[] threads) throws Exception {
- List<Thread> threadList = new ArrayList<Thread>(Arrays.asList(threads));
+ List<Thread> threadList = new ArrayList<>(Arrays.asList(threads));
// Can't use an Iterator as it would raise a
// ConcurrentModificationException when trying to remove an element
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/AMQStackOverFlowTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/AMQStackOverFlowTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/AMQStackOverFlowTest.java
index 4e0acba..1154510 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/AMQStackOverFlowTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/AMQStackOverFlowTest.java
@@ -121,7 +121,7 @@ public class AMQStackOverFlowTest extends TestCase {
//memoryManager.getMemoryUsage().setLimit(10);
brokerService.setSystemUsage(memoryManager);
- final List<PolicyEntry> policyEntries = new ArrayList<PolicyEntry>();
+ final List<PolicyEntry> policyEntries = new ArrayList<>();
final PolicyEntry entry = new PolicyEntry();
entry.setQueue(">");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ChangeSentMessageTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ChangeSentMessageTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ChangeSentMessageTest.java
index 347548c..dd7527d 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ChangeSentMessageTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ChangeSentMessageTest.java
@@ -50,7 +50,7 @@ public class ChangeSentMessageTest extends TestSupport {
MessageConsumer consumer = consumerSession.createConsumer(destination);
Session publisherSession = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
MessageProducer producer = publisherSession.createProducer(destination);
- HashMap<String, Integer> map = new HashMap<String, Integer>();
+ HashMap<String, Integer> map = new HashMap<>();
ObjectMessage message = publisherSession.createObjectMessage();
for (int i = 0; i < COUNT; i++) {
map.put(VALUE_NAME, Integer.valueOf(i));
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ConcurrentDestinationCreationTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ConcurrentDestinationCreationTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ConcurrentDestinationCreationTest.java
index d1e8a42..c577c86 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ConcurrentDestinationCreationTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ConcurrentDestinationCreationTest.java
@@ -70,7 +70,7 @@ public class ConcurrentDestinationCreationTest extends org.apache.activemq.TestS
public void testSendRateWithActivatingConsumers() throws Exception {
- final Vector<Throwable> exceptions = new Vector<Throwable>();
+ final Vector<Throwable> exceptions = new Vector<>();
final int jobs = 50;
final int destinationCount = 10;
final CountDownLatch allDone = new CountDownLatch(jobs);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ConcurrentProducerDurableConsumerTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ConcurrentProducerDurableConsumerTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ConcurrentProducerDurableConsumerTest.java
index a65d217..e470949 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ConcurrentProducerDurableConsumerTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ConcurrentProducerDurableConsumerTest.java
@@ -69,7 +69,7 @@ public class ConcurrentProducerDurableConsumerTest extends TestSupport {
private final int consumerCount = 5;
BrokerService broker;
protected List<Connection> connections = Collections.synchronizedList(new ArrayList<Connection>());
- protected Map<MessageConsumer, TimedMessageListener> consumers = new HashMap<MessageConsumer, TimedMessageListener>();
+ protected Map<MessageConsumer, TimedMessageListener> consumers = new HashMap<>();
protected MessageIdList allMessagesList = new MessageIdList();
private final int messageSize = 1024;
@@ -80,7 +80,7 @@ public class ConcurrentProducerDurableConsumerTest extends TestSupport {
TestSupport.PersistenceAdapterChoice[] kahaDb = {TestSupport.PersistenceAdapterChoice.KahaDB};
TestSupport.PersistenceAdapterChoice[] levelDb = {TestSupport.PersistenceAdapterChoice.LevelDB};
TestSupport.PersistenceAdapterChoice[] mem = {TestSupport.PersistenceAdapterChoice.MEM};
- List<TestSupport.PersistenceAdapterChoice[]> choices = new ArrayList<TestSupport.PersistenceAdapterChoice[]>();
+ List<TestSupport.PersistenceAdapterChoice[]> choices = new ArrayList<>();
choices.add(kahaDb);
choices.add(levelDb);
choices.add(mem);
@@ -400,7 +400,7 @@ public class ConcurrentProducerDurableConsumerTest extends TestSupport {
long batchReceiptAccumulator = 0;
long maxReceiptTime = 0;
AtomicLong count = new AtomicLong(0);
- Map<Integer, MessageIdList> messageLists = new ConcurrentHashMap<Integer, MessageIdList>(new HashMap<Integer, MessageIdList>());
+ Map<Integer, MessageIdList> messageLists = new ConcurrentHashMap<>(new HashMap<Integer, MessageIdList>());
@Override
public void onMessage(Message message) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ConcurrentProducerQueueConsumerTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ConcurrentProducerQueueConsumerTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ConcurrentProducerQueueConsumerTest.java
index bbd8e5d..14ac31f 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ConcurrentProducerQueueConsumerTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ConcurrentProducerQueueConsumerTest.java
@@ -60,7 +60,7 @@ public class ConcurrentProducerQueueConsumerTest extends TestSupport {
private static final Logger LOG = LoggerFactory.getLogger(ConcurrentProducerQueueConsumerTest.class);
protected List<Connection> connections = Collections.synchronizedList(new ArrayList<Connection>());
- protected Map<MessageConsumer, TimedMessageListener> consumers = new HashMap<MessageConsumer, TimedMessageListener>();
+ protected Map<MessageConsumer, TimedMessageListener> consumers = new HashMap<>();
protected MessageIdList allMessagesList = new MessageIdList();
private BrokerService broker;
@@ -354,7 +354,7 @@ public class ConcurrentProducerQueueConsumerTest extends TestSupport {
long batchReceiptAccumulator = 0;
long maxReceiptTime = 0;
- final Map<Integer, MessageIdList> messageLists = new ConcurrentHashMap<Integer, MessageIdList>(new HashMap<Integer, MessageIdList>());
+ final Map<Integer, MessageIdList> messageLists = new ConcurrentHashMap<>(new HashMap<Integer, MessageIdList>());
@Override
public void onMessage(Message message) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ConsumeTopicPrefetchTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ConsumeTopicPrefetchTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ConsumeTopicPrefetchTest.java
index 91103cd..5c2c29e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ConsumeTopicPrefetchTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ConsumeTopicPrefetchTest.java
@@ -66,7 +66,7 @@ public class ConsumeTopicPrefetchTest extends ProducerConsumerTestSupport {
validateConsumerPrefetch(this.getSubject(), prefetchSize);
- LinkedList<TextMessage> consumed = new LinkedList<TextMessage>();
+ LinkedList<TextMessage> consumed = new LinkedList<>();
// lets consume them in two fetch batches
int batchSize = messageCount / 2;
for (int i = 0; i < batchSize; i++) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubDelayedUnsubscribeTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubDelayedUnsubscribeTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubDelayedUnsubscribeTest.java
index a8f85f3..2533098 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubDelayedUnsubscribeTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubDelayedUnsubscribeTest.java
@@ -61,7 +61,7 @@ public class DurableSubDelayedUnsubscribeTest {
private static final int CARGO_SIZE = 400; // max
private static final int MAX_CLIENTS = 15;
private static boolean ALLOW_SUBSCRIPTION_ABANDONMENT = true;
- private static final Vector<Throwable> exceptions = new Vector<Throwable>();
+ private static final Vector<Throwable> exceptions = new Vector<>();
private BrokerService broker;
private ActiveMQTopic topic;
@@ -357,7 +357,7 @@ public class DurableSubDelayedUnsubscribeTest {
private int clientRover = 0;
- private final CopyOnWriteArrayList<Client> clients = new CopyOnWriteArrayList<Client>();
+ private final CopyOnWriteArrayList<Client> clients = new CopyOnWriteArrayList<>();
private boolean stopped;
@@ -605,7 +605,7 @@ public class DurableSubDelayedUnsubscribeTest {
setDaemon(true);
}
- public final CopyOnWriteArrayList<String> abandonedSubscriptions = new CopyOnWriteArrayList<String>();
+ public final CopyOnWriteArrayList<String> abandonedSubscriptions = new CopyOnWriteArrayList<>();
public void shutdown() throws Exception {
done.set(true);
@@ -650,7 +650,7 @@ public class DurableSubDelayedUnsubscribeTest {
LOG.info("Housekeeper sweeping.");
int closed = 0;
- ArrayList<String> sweeped = new ArrayList<String>();
+ ArrayList<String> sweeped = new ArrayList<>();
try {
for (String clientId : abandonedSubscriptions) {
LOG.info("Sweeping out subscription of " + clientId + ".");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubProcessConcurrentCommitActivateNoDuplicateTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubProcessConcurrentCommitActivateNoDuplicateTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubProcessConcurrentCommitActivateNoDuplicateTest.java
index e03ecf3..e04ca9c 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubProcessConcurrentCommitActivateNoDuplicateTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubProcessConcurrentCommitActivateNoDuplicateTest.java
@@ -87,7 +87,7 @@ public class DurableSubProcessConcurrentCommitActivateNoDuplicateTest {
private final ReentrantReadWriteLock processLock = new ReentrantReadWriteLock(true);
private int restartCount = 0;
private final AtomicInteger onlineCount = new AtomicInteger(0);
- static final Vector<Throwable> exceptions = new Vector<Throwable>();
+ static final Vector<Throwable> exceptions = new Vector<>();
// long form of test that found https://issues.apache.org/jira/browse/AMQ-3805
@Ignore("short version in org.apache.activemq.usecases.DurableSubscriptionOfflineTest.testNoDuplicateOnConcurrentSendTranCommitAndActivate" + " and org.apache.activemq.usecases.DurableSubscriptionOfflineTest.testOrderOnActivateDeactivate")
@@ -292,7 +292,7 @@ public class DurableSubProcessConcurrentCommitActivateNoDuplicateTest {
ClientType(String... messageTypes) {
this.messageTypes = messageTypes;
- messageTypeSet = new HashSet<String>(Arrays.asList(messageTypes));
+ messageTypeSet = new HashSet<>(Arrays.asList(messageTypes));
StringBuilder sb = new StringBuilder("TYPE in (");
for (int i = 0; i < messageTypes.length; i++) {
@@ -333,7 +333,7 @@ public class DurableSubProcessConcurrentCommitActivateNoDuplicateTest {
private int clientRover = 0;
- private final CopyOnWriteArrayList<Client> clients = new CopyOnWriteArrayList<Client>();
+ private final CopyOnWriteArrayList<Client> clients = new CopyOnWriteArrayList<>();
private boolean end;
@@ -434,7 +434,7 @@ public class DurableSubProcessConcurrentCommitActivateNoDuplicateTest {
private final ClientType clientType;
private final String selector;
- private final ConcurrentLinkedQueue<Message> waitingList = new ConcurrentLinkedQueue<Message>();
+ private final ConcurrentLinkedQueue<Message> waitingList = new ConcurrentLinkedQueue<>();
private final HashSet<Integer> processed = CHECK_REDELIVERY ? new HashSet<Integer>(10000) : null;
private ActiveMQMessageConsumer consumer = null;
@@ -702,7 +702,7 @@ public class DurableSubProcessConcurrentCommitActivateNoDuplicateTest {
setDaemon(true);
}
- public final CopyOnWriteArrayList<String> abandonedSubscriptions = new CopyOnWriteArrayList<String>();
+ public final CopyOnWriteArrayList<String> abandonedSubscriptions = new CopyOnWriteArrayList<>();
@Override
public void run() {
@@ -732,7 +732,7 @@ public class DurableSubProcessConcurrentCommitActivateNoDuplicateTest {
LOG.info("Housekeeper sweeping.");
int closed = 0;
- ArrayList<String> sweeped = new ArrayList<String>();
+ ArrayList<String> sweeped = new ArrayList<>();
try {
for (String clientId : abandonedSubscriptions) {
LOG.info("Sweeping out subscription of " + clientId + ".");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubProcessMultiRestartTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubProcessMultiRestartTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubProcessMultiRestartTest.java
index 90a02c9..79d3eb0 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubProcessMultiRestartTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubProcessMultiRestartTest.java
@@ -61,7 +61,7 @@ public class DurableSubProcessMultiRestartTest {
private int restartCount = 0;
private final int SUBSCRIPTION_ID = 1;
- static final Vector<Throwable> exceptions = new Vector<Throwable>();
+ static final Vector<Throwable> exceptions = new Vector<>();
/**
* The test creates a durable subscriber and producer with a broker that is
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubProcessTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubProcessTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubProcessTest.java
index cadd730..8a572e9 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubProcessTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubProcessTest.java
@@ -61,7 +61,7 @@ public class DurableSubProcessTest extends org.apache.activemq.TestSupport {
private Server server;
private HouseKeeper houseKeeper;
- static final Vector<Throwable> exceptions = new Vector<Throwable>();
+ static final Vector<Throwable> exceptions = new Vector<>();
@Test
public void testProcess() {
@@ -205,7 +205,7 @@ public class DurableSubProcessTest extends org.apache.activemq.TestSupport {
ClientType(String... messageTypes) {
this.messageTypes = messageTypes;
- messageTypeSet = new HashSet<String>(Arrays.asList(messageTypes));
+ messageTypeSet = new HashSet<>(Arrays.asList(messageTypes));
StringBuilder sb = new StringBuilder("TYPE in (");
for (int i = 0; i < messageTypes.length; i++) {
@@ -246,7 +246,7 @@ public class DurableSubProcessTest extends org.apache.activemq.TestSupport {
private int clientRover = 0;
- private final CopyOnWriteArrayList<Client> clients = new CopyOnWriteArrayList<Client>();
+ private final CopyOnWriteArrayList<Client> clients = new CopyOnWriteArrayList<>();
public ClientManager() {
super("ClientManager");
@@ -338,7 +338,7 @@ public class DurableSubProcessTest extends org.apache.activemq.TestSupport {
private final ClientType clientType;
private final String selector;
- private final ConcurrentLinkedQueue<Message> waitingList = new ConcurrentLinkedQueue<Message>();
+ private final ConcurrentLinkedQueue<Message> waitingList = new ConcurrentLinkedQueue<>();
public Client(int id, ClientType clientType, Random lifetime, Random online, Random offline) throws JMSException {
super("Client" + id);
@@ -538,7 +538,7 @@ public class DurableSubProcessTest extends org.apache.activemq.TestSupport {
setDaemon(true);
}
- public final CopyOnWriteArrayList<String> abandonedSubscriptions = new CopyOnWriteArrayList<String>();
+ public final CopyOnWriteArrayList<String> abandonedSubscriptions = new CopyOnWriteArrayList<>();
@Override
public void run() {
@@ -561,7 +561,7 @@ public class DurableSubProcessTest extends org.apache.activemq.TestSupport {
LOG.info("Housekeeper sweeping.");
int closed = 0;
- ArrayList<String> sweeped = new ArrayList<String>();
+ ArrayList<String> sweeped = new ArrayList<>();
try {
for (String clientId : abandonedSubscriptions) {
sweeped.add(clientId);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubProcessWithRestartTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubProcessWithRestartTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubProcessWithRestartTest.java
index e4118ec..5c778de 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubProcessWithRestartTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubProcessWithRestartTest.java
@@ -79,7 +79,7 @@ public class DurableSubProcessWithRestartTest {
private final ReentrantReadWriteLock processLock = new ReentrantReadWriteLock(true);
private int restartCount = 0;
- static final Vector<Throwable> exceptions = new Vector<Throwable>();
+ static final Vector<Throwable> exceptions = new Vector<>();
// this is a nice test but it takes 5mins, may be handy in the future
// resulting bug https://issues.apache.org/jira/browse/AMQ-3190
@@ -257,7 +257,7 @@ public class DurableSubProcessWithRestartTest {
ClientType(String... messageTypes) {
this.messageTypes = messageTypes;
- messageTypeSet = new HashSet<String>(Arrays.asList(messageTypes));
+ messageTypeSet = new HashSet<>(Arrays.asList(messageTypes));
StringBuilder sb = new StringBuilder("TYPE in (");
for (int i = 0; i < messageTypes.length; i++) {
@@ -298,7 +298,7 @@ public class DurableSubProcessWithRestartTest {
private int clientRover = 0;
- private final CopyOnWriteArrayList<Client> clients = new CopyOnWriteArrayList<Client>();
+ private final CopyOnWriteArrayList<Client> clients = new CopyOnWriteArrayList<>();
public ClientManager() {
super("ClientManager");
@@ -391,7 +391,7 @@ public class DurableSubProcessWithRestartTest {
private final ClientType clientType;
private final String selector;
- private final ConcurrentLinkedQueue<Message> waitingList = new ConcurrentLinkedQueue<Message>();
+ private final ConcurrentLinkedQueue<Message> waitingList = new ConcurrentLinkedQueue<>();
private final HashSet<Integer> processed = CHECK_REDELIVERY ? new HashSet<Integer>(10000) : null;
public Client(int id, ClientType clientType, Random lifetime, Random online, Random offline) throws JMSException {
@@ -601,7 +601,7 @@ public class DurableSubProcessWithRestartTest {
setDaemon(true);
}
- public final CopyOnWriteArrayList<String> abandonedSubscriptions = new CopyOnWriteArrayList<String>();
+ public final CopyOnWriteArrayList<String> abandonedSubscriptions = new CopyOnWriteArrayList<>();
@Override
public void run() {
@@ -631,7 +631,7 @@ public class DurableSubProcessWithRestartTest {
LOG.info("Housekeeper sweeping.");
int closed = 0;
- ArrayList<String> sweeped = new ArrayList<String>();
+ ArrayList<String> sweeped = new ArrayList<>();
try {
for (String clientId : abandonedSubscriptions) {
LOG.info("Sweeping out subscription of " + clientId + ".");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubsOfflineSelectorConcurrentConsumeIndexUseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubsOfflineSelectorConcurrentConsumeIndexUseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubsOfflineSelectorConcurrentConsumeIndexUseTest.java
index 48ba447..4ccd348 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubsOfflineSelectorConcurrentConsumeIndexUseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubsOfflineSelectorConcurrentConsumeIndexUseTest.java
@@ -47,7 +47,7 @@ public class DurableSubsOfflineSelectorConcurrentConsumeIndexUseTest extends org
public int messageCount = 10000;
private BrokerService broker;
private ActiveMQTopic topic;
- private final List<Throwable> exceptions = new ArrayList<Throwable>();
+ private final List<Throwable> exceptions = new ArrayList<>();
@Override
protected ActiveMQConnectionFactory createConnectionFactory() throws Exception {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubsOfflineSelectorIndexUseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubsOfflineSelectorIndexUseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubsOfflineSelectorIndexUseTest.java
index bc291bc..540cdde 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubsOfflineSelectorIndexUseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubsOfflineSelectorIndexUseTest.java
@@ -45,7 +45,7 @@ public class DurableSubsOfflineSelectorIndexUseTest extends org.apache.activemq.
public int messageCount = 400;
private BrokerService broker;
private ActiveMQTopic topic;
- private List<Throwable> exceptions = new ArrayList<Throwable>();
+ private List<Throwable> exceptions = new ArrayList<>();
@Override
protected ActiveMQConnectionFactory createConnectionFactory() throws Exception {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOffline1Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOffline1Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOffline1Test.java
index 2f69b4d..f6cda17 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOffline1Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOffline1Test.java
@@ -44,7 +44,7 @@ public class DurableSubscriptionOffline1Test extends DurableSubscriptionOfflineT
String osName = System.getProperty("os.name");
LOG.debug("Running on [" + osName + "]");
- List<PersistenceAdapterChoice> persistenceAdapterChoices = new ArrayList<PersistenceAdapterChoice>();
+ List<PersistenceAdapterChoice> persistenceAdapterChoices = new ArrayList<>();
persistenceAdapterChoices.add(PersistenceAdapterChoice.KahaDB);
persistenceAdapterChoices.add(PersistenceAdapterChoice.JDBC);
@@ -53,7 +53,7 @@ public class DurableSubscriptionOffline1Test extends DurableSubscriptionOfflineT
persistenceAdapterChoices.add(PersistenceAdapterChoice.LevelDB);
}
- List<Object[]> testParameters = new ArrayList<Object[]>();
+ List<Object[]> testParameters = new ArrayList<>();
Boolean[] booleanValues = {Boolean.FALSE, Boolean.TRUE};
List<Boolean> booleans = java.util.Arrays.asList(booleanValues);
for (Boolean booleanValue : booleans) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOffline2Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOffline2Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOffline2Test.java
index a0a4bcd..d15162f 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOffline2Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOffline2Test.java
@@ -46,7 +46,7 @@ public class DurableSubscriptionOffline2Test extends DurableSubscriptionOfflineT
public static Collection<Boolean[]> getTestParameters() {
Boolean[] f = {Boolean.FALSE};
Boolean[] t = {Boolean.TRUE};
- List<Boolean[]> booleanChoices = new ArrayList<Boolean[]>();
+ List<Boolean[]> booleanChoices = new ArrayList<>();
booleanChoices.add(f);
booleanChoices.add(t);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOffline3Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOffline3Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOffline3Test.java
index 829c66a..3aff528 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOffline3Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOffline3Test.java
@@ -48,7 +48,7 @@ public class DurableSubscriptionOffline3Test extends DurableSubscriptionOfflineT
PersistenceAdapterChoice[] kahaDb = {PersistenceAdapterChoice.KahaDB};
PersistenceAdapterChoice[] jdbc = {PersistenceAdapterChoice.JDBC};
- List<PersistenceAdapterChoice[]> choices = new ArrayList<PersistenceAdapterChoice[]>();
+ List<PersistenceAdapterChoice[]> choices = new ArrayList<>();
choices.add(kahaDb);
choices.add(jdbc);
if (!osName.equalsIgnoreCase("AIX") && !osName.equalsIgnoreCase("SunOS")) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOffline4Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOffline4Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOffline4Test.java
index e6edee9..adcf8fb 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOffline4Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOffline4Test.java
@@ -45,7 +45,7 @@ public class DurableSubscriptionOffline4Test extends DurableSubscriptionOfflineT
public static Collection<Boolean[]> getTestParameters() {
Boolean[] f = {Boolean.FALSE};
Boolean[] t = {Boolean.TRUE};
- List<Boolean[]> booleanChoices = new ArrayList<Boolean[]>();
+ List<Boolean[]> booleanChoices = new ArrayList<>();
booleanChoices.add(f);
booleanChoices.add(t);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOfflineTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOfflineTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOfflineTest.java
index f7689d8..ca197a4 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOfflineTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOfflineTest.java
@@ -310,7 +310,7 @@ public class DurableSubscriptionOfflineTest extends DurableSubscriptionOfflineTe
class CheckForDupsClient implements Runnable {
- HashSet<Long> ids = new HashSet<Long>();
+ HashSet<Long> ids = new HashSet<>();
final int id;
public CheckForDupsClient(int id) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOfflineTestBase.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOfflineTestBase.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOfflineTestBase.java
index e53f191..c05edcb 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOfflineTestBase.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOfflineTestBase.java
@@ -55,7 +55,7 @@ public abstract class DurableSubscriptionOfflineTestBase {
public boolean keepDurableSubsActive = true;
protected BrokerService broker;
protected ActiveMQTopic topic;
- protected final List<Throwable> exceptions = new ArrayList<Throwable>();
+ protected final List<Throwable> exceptions = new ArrayList<>();
protected ActiveMQConnectionFactory connectionFactory;
protected boolean isTopic = true;
public PersistenceAdapterChoice defaultPersistenceAdapter = PersistenceAdapterChoice.KahaDB;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ExceptionListenerTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ExceptionListenerTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ExceptionListenerTest.java
index f542ecb..664e0e7 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ExceptionListenerTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ExceptionListenerTest.java
@@ -49,7 +49,7 @@ public class ExceptionListenerTest implements ExceptionListener {
private static final Logger LOG = LoggerFactory.getLogger(ExceptionListenerTest.class);
BrokerService brokerService;
URI brokerUri;
- LinkedList<Throwable> exceptionsViaListener = new LinkedList<Throwable>();
+ LinkedList<Throwable> exceptionsViaListener = new LinkedList<>();
@Before
public void startBroker() throws Exception {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/JdbcDurableSubDupTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/JdbcDurableSubDupTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/JdbcDurableSubDupTest.java
index de7ee38..88adefe 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/JdbcDurableSubDupTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/JdbcDurableSubDupTest.java
@@ -63,7 +63,7 @@ public class JdbcDurableSubDupTest {
final int TO_RECEIVE = 5000;
BrokerService broker = null;
- Vector<Throwable> exceptions = new Vector<Throwable>();
+ Vector<Throwable> exceptions = new Vector<>();
final int MAX_MESSAGES = 100000;
int[] dupChecker = new int[MAX_MESSAGES];
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupCloseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupCloseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupCloseTest.java
index 5a67c46..7c8e4ac 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupCloseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupCloseTest.java
@@ -44,10 +44,10 @@ public class MessageGroupCloseTest extends TestCase {
private int messagesSent, messagesRecvd1, messagesRecvd2, messageGroupCount, errorCountFirstForConsumer, errorCountWrongConsumerClose, errorCountDuplicateClose;
// groupID, count
- private HashMap<String, Integer> messageGroups1 = new HashMap<String, Integer>();
- private HashMap<String, Integer> messageGroups2 = new HashMap<String, Integer>();
- private HashSet<String> closedGroups1 = new HashSet<String>();
- private HashSet<String> closedGroups2 = new HashSet<String>();
+ private HashMap<String, Integer> messageGroups1 = new HashMap<>();
+ private HashMap<String, Integer> messageGroups2 = new HashMap<>();
+ private HashSet<String> closedGroups1 = new HashSet<>();
+ private HashSet<String> closedGroups2 = new HashSet<>();
// with the prefetch too high, this bug is not realized
private static final String connStr = "vm://localhost?broker.persistent=false&broker.useJmx=false&jms.prefetchPolicy.all=1";
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupDelayedTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupDelayedTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupDelayedTest.java
index 6786319..1ed4127 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupDelayedTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupDelayedTest.java
@@ -54,8 +54,8 @@ public class MessageGroupDelayedTest extends JmsTestSupport {
BrokerService broker;
protected TransportConnector connector;
- protected HashMap<String, Integer> messageCount = new HashMap<String, Integer>();
- protected HashMap<String, Set<String>> messageGroups = new HashMap<String, Set<String>>();
+ protected HashMap<String, Integer> messageCount = new HashMap<>();
+ protected HashMap<String, Set<String>> messageGroups = new HashMap<>();
public static Test suite() {
return suite(MessageGroupDelayedTest.class);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupLateArrivalsTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupLateArrivalsTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupLateArrivalsTest.java
index 8b83e44..af91f5a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupLateArrivalsTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupLateArrivalsTest.java
@@ -60,8 +60,8 @@ public class MessageGroupLateArrivalsTest {
BrokerService broker;
protected TransportConnector connector;
- protected HashMap<String, Integer> messageCount = new HashMap<String, Integer>();
- protected HashMap<String, Set<String>> messageGroups = new HashMap<String, Set<String>>();
+ protected HashMap<String, Integer> messageCount = new HashMap<>();
+ protected HashMap<String, Set<String>> messageGroups = new HashMap<>();
@Before
public void setUp() throws Exception {
@@ -149,7 +149,7 @@ public class MessageGroupLateArrivalsTest {
doneSignal.await();
- List<String> workers = new ArrayList<String>(messageCount.keySet());
+ List<String> workers = new ArrayList<>(messageCount.keySet());
Collections.sort(workers);
for (String worker : workers) {
log.info("worker " + worker + " received " + messageCount.get(worker) + " messages from groups " + messageGroups.get(worker));
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupReconnectDistributionTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupReconnectDistributionTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupReconnectDistributionTest.java
index 6096266..7b5c219 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupReconnectDistributionTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupReconnectDistributionTest.java
@@ -119,8 +119,8 @@ public class MessageGroupReconnectDistributionTest {
final AtomicLong totalConsumed = new AtomicLong(0);
ExecutorService executorService = Executors.newFixedThreadPool(numConsumers);
- final ArrayList<AtomicLong> consumedCounters = new ArrayList<AtomicLong>(numConsumers);
- final ArrayList<AtomicLong> batchCounters = new ArrayList<AtomicLong>(numConsumers);
+ final ArrayList<AtomicLong> consumedCounters = new ArrayList<>(numConsumers);
+ final ArrayList<AtomicLong> batchCounters = new ArrayList<>(numConsumers);
for (int i = 0; i < numConsumers; i++) {
consumedCounters.add(new AtomicLong(0L));
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MultiBrokersMultiClientsTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MultiBrokersMultiClientsTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MultiBrokersMultiClientsTest.java
index 0888ca2..54dc36e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MultiBrokersMultiClientsTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MultiBrokersMultiClientsTest.java
@@ -45,7 +45,7 @@ public class MultiBrokersMultiClientsTest extends JmsMultipleBrokersTestSupport
private static final Logger LOG = LoggerFactory.getLogger(MultiBrokersMultiClientsTest.class);
protected Map<String, MessageConsumer> consumerMap;
- final Map<Thread, Throwable> unhandeledExceptions = new HashMap<Thread, Throwable>();
+ final Map<Thread, Throwable> unhandeledExceptions = new HashMap<>();
public void testTopicAllConnected() throws Exception {
bridgeAllBrokers();
@@ -156,7 +156,7 @@ public class MultiBrokersMultiClientsTest extends JmsMultipleBrokersTestSupport
createBroker(new URI("broker:()/Broker" + i + "?persistent=false&useJmx=false"));
}
- consumerMap = new HashMap<String, MessageConsumer>();
+ consumerMap = new HashMap<>();
}
@Override
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MultiBrokersMultiClientsUsingTcpTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MultiBrokersMultiClientsUsingTcpTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MultiBrokersMultiClientsUsingTcpTest.java
index 816589d..1e1c860 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MultiBrokersMultiClientsUsingTcpTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MultiBrokersMultiClientsUsingTcpTest.java
@@ -85,6 +85,6 @@ public class MultiBrokersMultiClientsUsingTcpTest extends MultiBrokersMultiClien
i.next().broker.addConnector("tcp://localhost:" + (61616 + j++));
}
- bridges = new ArrayList<DemandForwardingBridge>();
+ bridges = new ArrayList<>();
}
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/NetworkBridgeProducerFlowControlTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/NetworkBridgeProducerFlowControlTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/NetworkBridgeProducerFlowControlTest.java
index a3705f9..270b437 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/NetworkBridgeProducerFlowControlTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/NetworkBridgeProducerFlowControlTest.java
@@ -106,7 +106,7 @@ public class NetworkBridgeProducerFlowControlTest extends JmsMultipleBrokersTest
public boolean persistentTestMessages;
public boolean networkIsAlwaysSendSync;
- private Vector<Throwable> exceptions = new Vector<Throwable>();
+ private Vector<Throwable> exceptions = new Vector<>();
public static Test suite() {
return suite(NetworkBridgeProducerFlowControlTest.class);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/NoDuplicateOnTopicNetworkTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/NoDuplicateOnTopicNetworkTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/NoDuplicateOnTopicNetworkTest.java
index 1b8617e..5058e5f 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/NoDuplicateOnTopicNetworkTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/NoDuplicateOnTopicNetworkTest.java
@@ -238,7 +238,7 @@ public class NoDuplicateOnTopicNetworkTest extends CombinationTestSupport {
consumerThread.join();
int duplicateCount = 0;
- Map<String, String> map = new HashMap<String, String>();
+ Map<String, String> map = new HashMap<>();
for (String msg : consumer.getMessageStrings()) {
if (map.containsKey(msg)) {
LOG.info("got duplicate: " + msg);
@@ -280,7 +280,7 @@ public class NoDuplicateOnTopicNetworkTest extends CombinationTestSupport {
public List<String> getMessageStrings() {
synchronized (receivedStrings) {
- return new ArrayList<String>(receivedStrings);
+ return new ArrayList<>(receivedStrings);
}
}
[18/32] activemq-artemis git commit: Remove redundant type arguments
Posted by cl...@apache.org.
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-rest/src/test/java/org/apache/activemq/artemis/rest/test/RawAckTest.java
----------------------------------------------------------------------
diff --git a/artemis-rest/src/test/java/org/apache/activemq/artemis/rest/test/RawAckTest.java b/artemis-rest/src/test/java/org/apache/activemq/artemis/rest/test/RawAckTest.java
index a67a0eb..9a4140d 100644
--- a/artemis-rest/src/test/java/org/apache/activemq/artemis/rest/test/RawAckTest.java
+++ b/artemis-rest/src/test/java/org/apache/activemq/artemis/rest/test/RawAckTest.java
@@ -58,7 +58,7 @@ public class RawAckTest {
activeMQServer = ActiveMQServers.newActiveMQServer(configuration);
activeMQServer.start();
- HashMap<String, Object> transportConfig = new HashMap<String, Object>();
+ HashMap<String, Object> transportConfig = new HashMap<>();
serverLocator = new ServerLocatorImpl(false, new TransportConfiguration(InVMConnectorFactory.class.getName(), transportConfig));
sessionFactory = serverLocator.createSessionFactory();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-selector/src/main/java/org/apache/activemq/artemis/selector/filter/ComparisonExpression.java
----------------------------------------------------------------------
diff --git a/artemis-selector/src/main/java/org/apache/activemq/artemis/selector/filter/ComparisonExpression.java b/artemis-selector/src/main/java/org/apache/activemq/artemis/selector/filter/ComparisonExpression.java
index 2ed90b2..7ed8a08 100755
--- a/artemis-selector/src/main/java/org/apache/activemq/artemis/selector/filter/ComparisonExpression.java
+++ b/artemis-selector/src/main/java/org/apache/activemq/artemis/selector/filter/ComparisonExpression.java
@@ -28,10 +28,10 @@ import java.util.regex.Pattern;
*/
public abstract class ComparisonExpression extends BinaryExpression implements BooleanExpression {
- public static final ThreadLocal<Boolean> CONVERT_STRING_EXPRESSIONS = new ThreadLocal<Boolean>();
+ public static final ThreadLocal<Boolean> CONVERT_STRING_EXPRESSIONS = new ThreadLocal<>();
boolean convertStringExpressions = false;
- private static final Set<Character> REGEXP_CONTROL_CHARS = new HashSet<Character>();
+ private static final Set<Character> REGEXP_CONTROL_CHARS = new HashSet<>();
/**
* @param left
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-selector/src/main/java/org/apache/activemq/artemis/selector/filter/UnaryExpression.java
----------------------------------------------------------------------
diff --git a/artemis-selector/src/main/java/org/apache/activemq/artemis/selector/filter/UnaryExpression.java b/artemis-selector/src/main/java/org/apache/activemq/artemis/selector/filter/UnaryExpression.java
index 0c1e66f..999e51d 100755
--- a/artemis-selector/src/main/java/org/apache/activemq/artemis/selector/filter/UnaryExpression.java
+++ b/artemis-selector/src/main/java/org/apache/activemq/artemis/selector/filter/UnaryExpression.java
@@ -70,7 +70,7 @@ public abstract class UnaryExpression implements Expression {
t = elements;
}
else {
- t = new HashSet<Object>(elements);
+ t = new HashSet<>(elements);
}
final Collection<Object> inList = t;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-selector/src/test/java/org/apache/activemq/artemis/selector/SelectorTest.java
----------------------------------------------------------------------
diff --git a/artemis-selector/src/test/java/org/apache/activemq/artemis/selector/SelectorTest.java b/artemis-selector/src/test/java/org/apache/activemq/artemis/selector/SelectorTest.java
index 55c306c..bfb67a7 100755
--- a/artemis-selector/src/test/java/org/apache/activemq/artemis/selector/SelectorTest.java
+++ b/artemis-selector/src/test/java/org/apache/activemq/artemis/selector/SelectorTest.java
@@ -32,7 +32,7 @@ public class SelectorTest {
class MockMessage implements Filterable {
- HashMap<String, Object> properties = new HashMap<String, Object>();
+ HashMap<String, Object> properties = new HashMap<>();
private String text;
private Object destination;
private String messageId;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server-osgi/src/main/java/org/apache/activemq/artemis/osgi/OsgiBroker.java
----------------------------------------------------------------------
diff --git a/artemis-server-osgi/src/main/java/org/apache/activemq/artemis/osgi/OsgiBroker.java b/artemis-server-osgi/src/main/java/org/apache/activemq/artemis/osgi/OsgiBroker.java
index 55f7c41..f2a30f3 100644
--- a/artemis-server-osgi/src/main/java/org/apache/activemq/artemis/osgi/OsgiBroker.java
+++ b/artemis-server-osgi/src/main/java/org/apache/activemq/artemis/osgi/OsgiBroker.java
@@ -136,7 +136,7 @@ public class OsgiBroker {
private String[] getRequiredProtocols(Set<TransportConfiguration> acceptors) {
- ArrayList<String> protocols = new ArrayList<String>();
+ ArrayList<String> protocols = new ArrayList<>();
for (TransportConfiguration acceptor : acceptors) {
String protoName = acceptor.getName().toUpperCase();
if (!"ARTEMIS".equals(protoName)) {
@@ -161,7 +161,7 @@ public class OsgiBroker {
* we get more.
*/
public ArrayList<ActiveMQComponent> getComponentsByStartOrder(Map<String, ActiveMQComponent> components) {
- ArrayList<ActiveMQComponent> activeMQComponents = new ArrayList<ActiveMQComponent>();
+ ArrayList<ActiveMQComponent> activeMQComponents = new ArrayList<>();
ActiveMQComponent jmsComponent = components.get("jms");
if (jmsComponent != null) {
activeMQComponents.add(jmsComponent);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server-osgi/src/main/java/org/apache/activemq/artemis/osgi/ProtocolTracker.java
----------------------------------------------------------------------
diff --git a/artemis-server-osgi/src/main/java/org/apache/activemq/artemis/osgi/ProtocolTracker.java b/artemis-server-osgi/src/main/java/org/apache/activemq/artemis/osgi/ProtocolTracker.java
index 36430b1..661024b 100644
--- a/artemis-server-osgi/src/main/java/org/apache/activemq/artemis/osgi/ProtocolTracker.java
+++ b/artemis-server-osgi/src/main/java/org/apache/activemq/artemis/osgi/ProtocolTracker.java
@@ -48,7 +48,7 @@ public class ProtocolTracker implements ServiceTrackerCustomizer<ProtocolManager
this.name = name;
this.context = context;
this.callback = callback;
- this.protocols = new HashMap<String, Boolean>();
+ this.protocols = new HashMap<>();
for (String requiredProtocol : requiredProtocols) {
this.protocols.put(requiredProtocol, false);
}
@@ -118,7 +118,7 @@ public class ProtocolTracker implements ServiceTrackerCustomizer<ProtocolManager
}
private List<String> getMissing() {
- List<String> missing = new ArrayList<String>();
+ List<String> missing = new ArrayList<>();
for (String protocol : protocols.keySet()) {
Boolean present = protocols.get(protocol);
if (!present) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/config/impl/ConfigurationImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/config/impl/ConfigurationImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/config/impl/ConfigurationImpl.java
index 2f74afa..fad446f 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/config/impl/ConfigurationImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/config/impl/ConfigurationImpl.java
@@ -101,25 +101,25 @@ public class ConfigurationImpl implements Configuration, Serializable {
private boolean persistIDCache = ActiveMQDefaultConfiguration.isDefaultPersistIdCache();
- private List<String> incomingInterceptorClassNames = new ArrayList<String>();
+ private List<String> incomingInterceptorClassNames = new ArrayList<>();
- private List<String> outgoingInterceptorClassNames = new ArrayList<String>();
+ private List<String> outgoingInterceptorClassNames = new ArrayList<>();
- protected Map<String, TransportConfiguration> connectorConfigs = new HashMap<String, TransportConfiguration>();
+ protected Map<String, TransportConfiguration> connectorConfigs = new HashMap<>();
- private Set<TransportConfiguration> acceptorConfigs = new HashSet<TransportConfiguration>();
+ private Set<TransportConfiguration> acceptorConfigs = new HashSet<>();
- protected List<BridgeConfiguration> bridgeConfigurations = new ArrayList<BridgeConfiguration>();
+ protected List<BridgeConfiguration> bridgeConfigurations = new ArrayList<>();
- protected List<DivertConfiguration> divertConfigurations = new ArrayList<DivertConfiguration>();
+ protected List<DivertConfiguration> divertConfigurations = new ArrayList<>();
- protected List<ClusterConnectionConfiguration> clusterConfigurations = new ArrayList<ClusterConnectionConfiguration>();
+ protected List<ClusterConnectionConfiguration> clusterConfigurations = new ArrayList<>();
- private List<CoreQueueConfiguration> queueConfigurations = new ArrayList<CoreQueueConfiguration>();
+ private List<CoreQueueConfiguration> queueConfigurations = new ArrayList<>();
- protected transient List<BroadcastGroupConfiguration> broadcastGroupConfigurations = new ArrayList<BroadcastGroupConfiguration>();
+ protected transient List<BroadcastGroupConfiguration> broadcastGroupConfigurations = new ArrayList<>();
- protected transient Map<String, DiscoveryGroupConfiguration> discoveryGroupConfigurations = new LinkedHashMap<String, DiscoveryGroupConfiguration>();
+ protected transient Map<String, DiscoveryGroupConfiguration> discoveryGroupConfigurations = new LinkedHashMap<>();
// Paging related attributes ------------------------------------------------------------
@@ -204,15 +204,15 @@ public class ConfigurationImpl implements Configuration, Serializable {
protected GroupingHandlerConfiguration groupingHandlerConfiguration;
- private Map<String, AddressSettings> addressesSettings = new HashMap<String, AddressSettings>();
+ private Map<String, AddressSettings> addressesSettings = new HashMap<>();
- private Map<String, ResourceLimitSettings> resourceLimitSettings = new HashMap<String, ResourceLimitSettings>();
+ private Map<String, ResourceLimitSettings> resourceLimitSettings = new HashMap<>();
- private Map<String, Set<Role>> securitySettings = new HashMap<String, Set<Role>>();
+ private Map<String, Set<Role>> securitySettings = new HashMap<>();
- private List<SecuritySettingPlugin> securitySettingPlugins = new ArrayList<SecuritySettingPlugin>();
+ private List<SecuritySettingPlugin> securitySettingPlugins = new ArrayList<>();
- protected List<ConnectorServiceConfiguration> connectorServiceConfigurations = new ArrayList<ConnectorServiceConfiguration>();
+ protected List<ConnectorServiceConfiguration> connectorServiceConfigurations = new ArrayList<>();
private boolean maskPassword = ActiveMQDefaultConfiguration.isDefaultMaskPassword();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/config/impl/SecurityConfiguration.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/config/impl/SecurityConfiguration.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/config/impl/SecurityConfiguration.java
index d647802..3325d5d 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/config/impl/SecurityConfiguration.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/config/impl/SecurityConfiguration.java
@@ -34,14 +34,14 @@ public class SecurityConfiguration extends Configuration {
/**
* the current valid users
*/
- protected final Map<String, User> users = new HashMap<String, User>();
+ protected final Map<String, User> users = new HashMap<>();
protected String defaultUser = null;
/**
* the roles for the users
*/
- protected final Map<String, List<String>> roles = new HashMap<String, List<String>>();
+ protected final Map<String, List<String>> roles = new HashMap<>();
public SecurityConfiguration() {
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/deployers/impl/FileConfigurationParser.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/deployers/impl/FileConfigurationParser.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/deployers/impl/FileConfigurationParser.java
index 3459bf5..be1d6dd 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/deployers/impl/FileConfigurationParser.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/deployers/impl/FileConfigurationParser.java
@@ -277,7 +277,7 @@ public final class FileConfigurationParser extends XMLConfigurationUtil {
NodeList interceptorNodes = e.getElementsByTagName("remoting-interceptors");
- ArrayList<String> incomingInterceptorList = new ArrayList<String>();
+ ArrayList<String> incomingInterceptorList = new ArrayList<>();
if (interceptorNodes.getLength() > 0) {
NodeList interceptors = interceptorNodes.item(0).getChildNodes();
@@ -309,7 +309,7 @@ public final class FileConfigurationParser extends XMLConfigurationUtil {
NodeList outgoingInterceptorNodes = e.getElementsByTagName("remoting-outgoing-interceptors");
- ArrayList<String> outgoingInterceptorList = new ArrayList<String>();
+ ArrayList<String> outgoingInterceptorList = new ArrayList<>();
if (outgoingInterceptorNodes.getLength() > 0) {
NodeList interceptors = outgoingInterceptorNodes.item(0).getChildNodes();
@@ -504,7 +504,7 @@ public final class FileConfigurationParser extends XMLConfigurationUtil {
NodeList connectorServiceConfigs = e.getElementsByTagName("connector-service");
- ArrayList<ConnectorServiceConfiguration> configs = new ArrayList<ConnectorServiceConfiguration>();
+ ArrayList<ConnectorServiceConfiguration> configs = new ArrayList<>();
for (int i = 0; i < connectorServiceConfigs.getLength(); i++) {
Element node = (Element) connectorServiceConfigs.item(i);
@@ -594,18 +594,18 @@ public final class FileConfigurationParser extends XMLConfigurationUtil {
protected Pair<String, Set<Role>> parseSecurityRoles(final Node node) {
final String match = node.getAttributes().getNamedItem("match").getNodeValue();
- HashSet<Role> securityRoles = new HashSet<Role>();
+ HashSet<Role> securityRoles = new HashSet<>();
Pair<String, Set<Role>> securityMatch = new Pair<String, Set<Role>>(match, securityRoles);
- ArrayList<String> send = new ArrayList<String>();
- ArrayList<String> consume = new ArrayList<String>();
- ArrayList<String> createDurableQueue = new ArrayList<String>();
- ArrayList<String> deleteDurableQueue = new ArrayList<String>();
- ArrayList<String> createNonDurableQueue = new ArrayList<String>();
- ArrayList<String> deleteNonDurableQueue = new ArrayList<String>();
- ArrayList<String> manageRoles = new ArrayList<String>();
- ArrayList<String> allRoles = new ArrayList<String>();
+ ArrayList<String> send = new ArrayList<>();
+ ArrayList<String> consume = new ArrayList<>();
+ ArrayList<String> createDurableQueue = new ArrayList<>();
+ ArrayList<String> deleteDurableQueue = new ArrayList<>();
+ ArrayList<String> createNonDurableQueue = new ArrayList<>();
+ ArrayList<String> deleteNonDurableQueue = new ArrayList<>();
+ ArrayList<String> manageRoles = new ArrayList<>();
+ ArrayList<String> allRoles = new ArrayList<>();
NodeList children = node.getChildNodes();
for (int i = 0; i < children.getLength(); i++) {
Node child = children.item(i);
@@ -681,7 +681,7 @@ public final class FileConfigurationParser extends XMLConfigurationUtil {
}
});
- return new Pair<SecuritySettingPlugin, Map<String, String>>(securitySettingPlugin, settings);
+ return new Pair<>(securitySettingPlugin, settings);
}
/**
@@ -695,7 +695,7 @@ public final class FileConfigurationParser extends XMLConfigurationUtil {
AddressSettings addressSettings = new AddressSettings();
- Pair<String, AddressSettings> setting = new Pair<String, AddressSettings>(match, addressSettings);
+ Pair<String, AddressSettings> setting = new Pair<>(match, addressSettings);
for (int i = 0; i < children.getLength(); i++) {
final Node child = children.item(i);
@@ -1099,7 +1099,7 @@ public final class FileConfigurationParser extends XMLConfigurationUtil {
private void parseBroadcastGroupConfiguration(final Element e, final Configuration mainConfig) {
String name = e.getAttribute("name");
- List<String> connectorNames = new ArrayList<String>();
+ List<String> connectorNames = new ArrayList<>();
NodeList children = e.getChildNodes();
@@ -1240,7 +1240,7 @@ public final class FileConfigurationParser extends XMLConfigurationUtil {
String discoveryGroupName = null;
- List<String> staticConnectorNames = new ArrayList<String>();
+ List<String> staticConnectorNames = new ArrayList<>();
boolean allowDirectConnectionsOnly = false;
@@ -1342,7 +1342,7 @@ public final class FileConfigurationParser extends XMLConfigurationUtil {
String filterString = null;
- List<String> staticConnectorNames = new ArrayList<String>();
+ List<String> staticConnectorNames = new ArrayList<>();
String discoveryGroupName = null;
@@ -1423,7 +1423,7 @@ public final class FileConfigurationParser extends XMLConfigurationUtil {
String clazz = getString(e, "factory-class", null, Validators.NOT_NULL_OR_EMPTY);
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
NodeList paramsNodes = e.getElementsByTagName("param");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/ActiveMQServerControlImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/ActiveMQServerControlImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/ActiveMQServerControlImpl.java
index 753aa24..5382621 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/ActiveMQServerControlImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/ActiveMQServerControlImpl.java
@@ -827,7 +827,7 @@ public class ActiveMQServerControlImpl extends AbstractControl implements Active
DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.MEDIUM);
Map<Xid, Long> xids = resourceManager.getPreparedTransactionsWithCreationTime();
- ArrayList<Entry<Xid, Long>> xidsSortedByCreationTime = new ArrayList<Map.Entry<Xid, Long>>(xids.entrySet());
+ ArrayList<Entry<Xid, Long>> xidsSortedByCreationTime = new ArrayList<>(xids.entrySet());
Collections.sort(xidsSortedByCreationTime, new Comparator<Entry<Xid, Long>>() {
@Override
public int compare(final Entry<Xid, Long> entry1, final Entry<Xid, Long> entry2) {
@@ -860,7 +860,7 @@ public class ActiveMQServerControlImpl extends AbstractControl implements Active
return "";
}
- ArrayList<Entry<Xid, Long>> xidsSortedByCreationTime = new ArrayList<Map.Entry<Xid, Long>>(xids.entrySet());
+ ArrayList<Entry<Xid, Long>> xidsSortedByCreationTime = new ArrayList<>(xids.entrySet());
Collections.sort(xidsSortedByCreationTime, new Comparator<Entry<Xid, Long>>() {
@Override
public int compare(final Entry<Xid, Long> entry1, final Entry<Xid, Long> entry2) {
@@ -894,7 +894,7 @@ public class ActiveMQServerControlImpl extends AbstractControl implements Active
return "<h3>*** Prepared Transaction Details ***</h3><p>No entry.</p>";
}
- ArrayList<Entry<Xid, Long>> xidsSortedByCreationTime = new ArrayList<Map.Entry<Xid, Long>>(xids.entrySet());
+ ArrayList<Entry<Xid, Long>> xidsSortedByCreationTime = new ArrayList<>(xids.entrySet());
Collections.sort(xidsSortedByCreationTime, new Comparator<Entry<Xid, Long>>() {
@Override
public int compare(final Entry<Xid, Long> entry1, final Entry<Xid, Long> entry2) {
@@ -1078,7 +1078,7 @@ public class ActiveMQServerControlImpl extends AbstractControl implements Active
clearIO();
try {
Set<RemotingConnection> connections = remotingService.getConnections();
- List<String> remoteConnections = new ArrayList<String>();
+ List<String> remoteConnections = new ArrayList<>();
for (RemotingConnection connection : connections) {
String remoteAddress = connection.getRemoteAddress();
if (remoteAddress.contains(ipAddress)) {
@@ -1375,7 +1375,7 @@ public class ActiveMQServerControlImpl extends AbstractControl implements Active
checkStarted();
AddressSettings addressSettings = server.getAddressSettingsRepository().getMatch(address);
- Map<String, Object> settings = new HashMap<String, Object>();
+ Map<String, Object> settings = new HashMap<>();
if (addressSettings.getDeadLetterAddress() != null) {
settings.put("DLA", addressSettings.getDeadLetterAddress());
}
@@ -1844,7 +1844,7 @@ public class ActiveMQServerControlImpl extends AbstractControl implements Active
}
private static List<String> toList(final String commaSeparatedString) {
- List<String> list = new ArrayList<String>();
+ List<String> list = new ArrayList<>();
if (commaSeparatedString == null || commaSeparatedString.trim().length() == 0) {
return list;
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/AddressControlImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/AddressControlImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/AddressControlImpl.java
index 2eb02d6..bf01fbb 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/AddressControlImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/AddressControlImpl.java
@@ -80,7 +80,7 @@ public class AddressControlImpl extends AbstractControl implements AddressContro
clearIO();
try {
Bindings bindings = postOffice.getBindingsForAddress(address);
- List<String> queueNames = new ArrayList<String>();
+ List<String> queueNames = new ArrayList<>();
for (Binding binding : bindings.getBindings()) {
if (binding instanceof QueueBinding) {
queueNames.add(binding.getUniqueName().toString());
@@ -180,7 +180,7 @@ public class AddressControlImpl extends AbstractControl implements AddressContro
long totalMsgs = 0;
try {
Bindings bindings = postOffice.getBindingsForAddress(address);
- List<String> queueNames = new ArrayList<String>();
+ List<String> queueNames = new ArrayList<>();
for (Binding binding : bindings.getBindings()) {
if (binding instanceof QueueBinding) {
totalMsgs += ((QueueBinding) binding).getQueue().getMessageCount();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/MBeanInfoHelper.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/MBeanInfoHelper.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/MBeanInfoHelper.java
index c507458..72a439a 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/MBeanInfoHelper.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/MBeanInfoHelper.java
@@ -39,7 +39,7 @@ public class MBeanInfoHelper {
// Public --------------------------------------------------------
public static MBeanOperationInfo[] getMBeanOperationsInfo(final Class mbeanInterface) {
- List<MBeanOperationInfo> operations = new ArrayList<MBeanOperationInfo>();
+ List<MBeanOperationInfo> operations = new ArrayList<>();
for (Method method : mbeanInterface.getMethods()) {
if (!MBeanInfoHelper.isGetterMethod(method) && !MBeanInfoHelper.isSetterMethod(method) &&
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/QueueControlImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/QueueControlImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/QueueControlImpl.java
index 3c0dab7..b61409e 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/QueueControlImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/QueueControlImpl.java
@@ -357,7 +357,7 @@ public class QueueControlImpl extends AbstractControl implements QueueControl {
try {
Map<String, List<MessageReference>> msgs = queue.getDeliveringMessages();
- Map<String, Map<String, Object>[]> msgRet = new HashMap<String, Map<String, Object>[]>();
+ Map<String, Map<String, Object>[]> msgRet = new HashMap<>();
for (Map.Entry<String, List<MessageReference>> entry : msgs.entrySet()) {
msgRet.put(entry.getKey(), convertMessagesToMaps(entry.getValue()));
@@ -390,7 +390,7 @@ public class QueueControlImpl extends AbstractControl implements QueueControl {
clearIO();
try {
Filter filter = FilterImpl.createFilter(filterStr);
- List<Map<String, Object>> messages = new ArrayList<Map<String, Object>>();
+ List<Map<String, Object>> messages = new ArrayList<>();
queue.flushExecutor();
LinkedListIterator<MessageReference> iterator = queue.totalIterator();
try {
@@ -433,7 +433,7 @@ public class QueueControlImpl extends AbstractControl implements QueueControl {
clearIO();
try {
- List<Map<String, Object>> messages = new ArrayList<Map<String, Object>>();
+ List<Map<String, Object>> messages = new ArrayList<>();
queue.flushExecutor();
LinkedListIterator<MessageReference> iterator = queue.totalIterator();
try {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/messagecounter/MessageCounter.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/messagecounter/MessageCounter.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/messagecounter/MessageCounter.java
index f3ea998..1d91279 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/messagecounter/MessageCounter.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/messagecounter/MessageCounter.java
@@ -98,7 +98,7 @@ public class MessageCounter {
resetCounter();
// initialize message history
- dayCounters = new ArrayList<DayCounter>();
+ dayCounters = new ArrayList<>();
setHistoryLimit(daycountmax);
}
@@ -261,7 +261,7 @@ public class MessageCounter {
public List<DayCounter> getHistory() {
updateHistory(0);
- return new ArrayList<DayCounter>(dayCounters);
+ return new ArrayList<>(dayCounters);
}
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/messagecounter/impl/MessageCounterManagerImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/messagecounter/impl/MessageCounterManagerImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/messagecounter/impl/MessageCounterManagerImpl.java
index ff268c9..1183ce5 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/messagecounter/impl/MessageCounterManagerImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/messagecounter/impl/MessageCounterManagerImpl.java
@@ -53,7 +53,7 @@ public class MessageCounterManagerImpl implements MessageCounterManager {
private final ScheduledExecutorService scheduledThreadPool;
public MessageCounterManagerImpl(final ScheduledExecutorService scheduledThreadPool) {
- messageCounters = new HashMap<String, MessageCounter>();
+ messageCounters = new HashMap<>();
this.scheduledThreadPool = scheduledThreadPool;
}
@@ -134,7 +134,7 @@ public class MessageCounterManagerImpl implements MessageCounterManager {
public Set<MessageCounter> getMessageCounters() {
synchronized (messageCounters) {
- return new HashSet<MessageCounter>(messageCounters.values());
+ return new HashSet<>(messageCounters.values());
}
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/PagedReferenceImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/PagedReferenceImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/PagedReferenceImpl.java
index f132723..05b88d6 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/PagedReferenceImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/PagedReferenceImpl.java
@@ -64,7 +64,7 @@ public class PagedReferenceImpl implements PagedReference {
if (returnMessage == null) {
// reference is gone, we will reconstruct it
returnMessage = subscription.queryMessage(position);
- message = new WeakReference<PagedMessage>(returnMessage);
+ message = new WeakReference<>(returnMessage);
}
return returnMessage;
}
@@ -85,7 +85,7 @@ public class PagedReferenceImpl implements PagedReference {
else {
this.messageEstimate = message.getMessage().getMemoryEstimate();
}
- this.message = new WeakReference<PagedMessage>(message);
+ this.message = new WeakReference<>(message);
this.subscription = subscription;
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/impl/LivePageCacheImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/impl/LivePageCacheImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/impl/LivePageCacheImpl.java
index e319667..fd88e7a 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/impl/LivePageCacheImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/impl/LivePageCacheImpl.java
@@ -29,7 +29,7 @@ import org.apache.activemq.artemis.core.server.LargeServerMessage;
*/
public class LivePageCacheImpl implements LivePageCache {
- private final List<PagedMessage> messages = new LinkedList<PagedMessage>();
+ private final List<PagedMessage> messages = new LinkedList<>();
private final Page page;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/impl/PageCursorProviderImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/impl/PageCursorProviderImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/impl/PageCursorProviderImpl.java
index bd8dda5..f9d2bb5 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/impl/PageCursorProviderImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/impl/PageCursorProviderImpl.java
@@ -70,7 +70,7 @@ public class PageCursorProviderImpl implements PageCursorProvider {
private final SoftValueHashMap<Long, PageCache> softCache;
- private final ConcurrentMap<Long, PageSubscription> activeCursors = new ConcurrentHashMap<Long, PageSubscription>();
+ private final ConcurrentMap<Long, PageSubscription> activeCursors = new ConcurrentHashMap<>();
// Static --------------------------------------------------------
@@ -83,7 +83,7 @@ public class PageCursorProviderImpl implements PageCursorProvider {
this.pagingStore = pagingStore;
this.storageManager = storageManager;
this.executor = executor;
- this.softCache = new SoftValueHashMap<Long, PageCache>(maxCacheSize);
+ this.softCache = new SoftValueHashMap<>(maxCacheSize);
}
// Public --------------------------------------------------------
@@ -340,7 +340,7 @@ public class PageCursorProviderImpl implements PageCursorProvider {
@Override
public void cleanup() {
- ArrayList<Page> depagedPages = new ArrayList<Page>();
+ ArrayList<Page> depagedPages = new ArrayList<>();
while (true) {
if (pagingStore.lock(100)) {
@@ -507,7 +507,7 @@ public class PageCursorProviderImpl implements PageCursorProvider {
* @return
*/
private synchronized ArrayList<PageSubscription> cloneSubscriptions() {
- ArrayList<PageSubscription> cursorList = new ArrayList<PageSubscription>(activeCursors.values());
+ ArrayList<PageSubscription> cursorList = new ArrayList<>(activeCursors.values());
return cursorList;
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/impl/PageSubscriptionCounterImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/impl/PageSubscriptionCounterImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/impl/PageSubscriptionCounterImpl.java
index c879564..c7b8c5c 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/impl/PageSubscriptionCounterImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/impl/PageSubscriptionCounterImpl.java
@@ -62,13 +62,13 @@ public class PageSubscriptionCounterImpl implements PageSubscriptionCounter {
private final AtomicLong pendingValue = new AtomicLong(0);
- private final LinkedList<Long> incrementRecords = new LinkedList<Long>();
+ private final LinkedList<Long> incrementRecords = new LinkedList<>();
// We are storing pending counters for non transactional writes on page
// we will recount a page case we still see pending records
// as soon as we close a page we remove these records replacing by a regular page increment record
// A Map per pageID, each page will have a set of IDs, with the increment on each one
- private final Map<Long, Pair<Long, AtomicInteger>> pendingCounters = new HashMap<Long, Pair<Long, AtomicInteger>>();
+ private final Map<Long, Pair<Long, AtomicInteger>> pendingCounters = new HashMap<>();
private LinkedList<Pair<Long, Integer>> loadList;
@@ -115,7 +115,7 @@ public class PageSubscriptionCounterImpl implements PageSubscriptionCounter {
// not syncing this to disk may cause the page files to be out of sync on pages.
// we can't afford the case where a page file is written without a record here
long id = storage.storePendingCounter(this.subscriptionID, page.getPageId(), increment);
- pendingInfo = new Pair<Long, AtomicInteger>(id, new AtomicInteger(1));
+ pendingInfo = new Pair<>(id, new AtomicInteger(1));
pendingCounters.put((long) page.getPageId(), pendingInfo);
}
else {
@@ -257,10 +257,10 @@ public class PageSubscriptionCounterImpl implements PageSubscriptionCounter {
@Override
public void loadInc(long id, int add) {
if (loadList == null) {
- loadList = new LinkedList<Pair<Long, Integer>>();
+ loadList = new LinkedList<>();
}
- loadList.add(new Pair<Long, Integer>(id, add));
+ loadList.add(new Pair<>(id, add));
}
@Override
@@ -308,7 +308,7 @@ public class PageSubscriptionCounterImpl implements PageSubscriptionCounter {
return;
}
valueReplace = value.get();
- deleteList = new ArrayList<Long>(incrementRecords);
+ deleteList = new ArrayList<>(incrementRecords);
incrementRecords.clear();
}
@@ -365,7 +365,7 @@ public class PageSubscriptionCounterImpl implements PageSubscriptionCounter {
private static class CounterOperations extends TransactionOperationAbstract implements TransactionOperation {
- LinkedList<ItemOper> operations = new LinkedList<ItemOper>();
+ LinkedList<ItemOper> operations = new LinkedList<>();
@Override
public void afterCommit(Transaction tx) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/impl/PageSubscriptionImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/impl/PageSubscriptionImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/impl/PageSubscriptionImpl.java
index 08bcdfc..b800c4b 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/impl/PageSubscriptionImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/impl/PageSubscriptionImpl.java
@@ -86,7 +86,7 @@ final class PageSubscriptionImpl implements PageSubscription {
private List<PagePosition> recoveredACK;
- private final SortedMap<Long, PageCursorInfo> consumedPages = new TreeMap<Long, PageCursorInfo>();
+ private final SortedMap<Long, PageCursorInfo> consumedPages = new TreeMap<>();
private final PageSubscriptionCounter counter;
@@ -244,7 +244,7 @@ final class PageSubscriptionImpl implements PageSubscription {
boolean persist = false;
- final ArrayList<PageCursorInfo> completedPages = new ArrayList<PageCursorInfo>();
+ final ArrayList<PageCursorInfo> completedPages = new ArrayList<>();
// First get the completed pages using a lock
synchronized (consumedPages) {
@@ -538,7 +538,7 @@ final class PageSubscriptionImpl implements PageSubscription {
@Override
public void reloadACK(final PagePosition position) {
if (recoveredACK == null) {
- recoveredACK = new LinkedList<PagePosition>();
+ recoveredACK = new LinkedList<>();
}
recoveredACK.add(position);
@@ -867,7 +867,7 @@ final class PageSubscriptionImpl implements PageSubscription {
private WeakReference<PageCache> cache;
- private final Set<PagePosition> removedReferences = new ConcurrentHashSet<PagePosition>();
+ private final Set<PagePosition> removedReferences = new ConcurrentHashSet<>();
// The page was live at the time of the creation
private final boolean wasLive;
@@ -909,7 +909,7 @@ final class PageSubscriptionImpl implements PageSubscription {
this.numberOfMessages = numberOfMessages;
if (cache != null) {
wasLive = cache.isLive();
- this.cache = new WeakReference<PageCache>(cache);
+ this.cache = new WeakReference<>(cache);
}
else {
wasLive = false;
@@ -1011,7 +1011,7 @@ final class PageSubscriptionImpl implements PageSubscription {
PageCache localcache = this.cache.get();
if (localcache == null) {
localcache = cursorProvider.getPageCache(pageId);
- this.cache = new WeakReference<PageCache>(localcache);
+ this.cache = new WeakReference<>(localcache);
}
return localcache.getNumberOfMessages();
@@ -1025,13 +1025,13 @@ final class PageSubscriptionImpl implements PageSubscription {
private static final class PageCursorTX extends TransactionOperationAbstract {
- private final Map<PageSubscriptionImpl, List<PagePosition>> pendingPositions = new HashMap<PageSubscriptionImpl, List<PagePosition>>();
+ private final Map<PageSubscriptionImpl, List<PagePosition>> pendingPositions = new HashMap<>();
private void addPositionConfirmation(final PageSubscriptionImpl cursor, final PagePosition position) {
List<PagePosition> list = pendingPositions.get(cursor);
if (list == null) {
- list = new LinkedList<PagePosition>();
+ list = new LinkedList<>();
pendingPositions.put(cursor, list);
}
@@ -1073,7 +1073,7 @@ final class PageSubscriptionImpl implements PageSubscription {
private volatile PagedReference lastRedelivery = null;
// We only store the position for redeliveries. They will be read from the SoftCache again during delivery.
- private final java.util.Queue<PagePosition> redeliveries = new LinkedList<PagePosition>();
+ private final java.util.Queue<PagePosition> redeliveries = new LinkedList<>();
/**
* next element taken on hasNext test.
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/Page.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/Page.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/Page.java
index dca0091..b2373c9 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/Page.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/Page.java
@@ -106,7 +106,7 @@ public final class Page implements Comparable<Page> {
throw ActiveMQMessageBundle.BUNDLE.invalidPageIO();
}
- ArrayList<PagedMessage> messages = new ArrayList<PagedMessage>();
+ ArrayList<PagedMessage> messages = new ArrayList<>();
size.set((int) file.size());
// Using direct buffer, as described on https://jira.jboss.org/browse/HORNETQ-467
@@ -359,7 +359,7 @@ public final class Page implements Comparable<Page> {
private synchronized Set<PageSubscriptionCounter> getOrCreatePendingCounters() {
if (pendingCounters == null) {
- pendingCounters = new ConcurrentHashSet<PageSubscriptionCounter>();
+ pendingCounters = new ConcurrentHashSet<>();
}
return pendingCounters;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/PageSyncTimer.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/PageSyncTimer.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/PageSyncTimer.java
index 614f201..a595721 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/PageSyncTimer.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/PageSyncTimer.java
@@ -49,7 +49,7 @@ final class PageSyncTimer {
}
};
- private final List<OperationContext> syncOperations = new LinkedList<OperationContext>();
+ private final List<OperationContext> syncOperations = new LinkedList<>();
// Static --------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/PageTransactionInfoImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/PageTransactionInfoImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/PageTransactionInfoImpl.java
index 85c4489..55569b2 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/PageTransactionInfoImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/PageTransactionInfoImpl.java
@@ -304,7 +304,7 @@ public final class PageTransactionInfoImpl implements PageTransactionInfo {
private static class UpdatePageTXOperation extends TransactionOperationAbstract {
- private final HashMap<PageTransactionInfo, AtomicInteger> countsToUpdate = new HashMap<PageTransactionInfo, AtomicInteger>();
+ private final HashMap<PageTransactionInfo, AtomicInteger> countsToUpdate = new HashMap<>();
private boolean stored = false;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/PagingManagerImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/PagingManagerImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/PagingManagerImpl.java
index ce43c34..09dd1f6 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/PagingManagerImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/PagingManagerImpl.java
@@ -44,7 +44,7 @@ public final class PagingManagerImpl implements PagingManager {
*/
private final ReentrantReadWriteLock syncLock = new ReentrantReadWriteLock();
- private final ConcurrentMap<SimpleString, PagingStore> stores = new ConcurrentHashMap<SimpleString, PagingStore>();
+ private final ConcurrentMap<SimpleString, PagingStore> stores = new ConcurrentHashMap<>();
private final HierarchicalRepository<AddressSettings> addressSettingsRepository;
@@ -52,7 +52,7 @@ public final class PagingManagerImpl implements PagingManager {
private volatile boolean cleanupEnabled = true;
- private final ConcurrentMap</*TransactionID*/Long, PageTransactionInfo> transactions = new ConcurrentHashMap<Long, PageTransactionInfo>();
+ private final ConcurrentMap</*TransactionID*/Long, PageTransactionInfo> transactions = new ConcurrentHashMap<>();
// Static
// --------------------------------------------------------------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/PagingStoreFactoryNIO.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/PagingStoreFactoryNIO.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/PagingStoreFactoryNIO.java
index b6a14f3..0b0d210 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/PagingStoreFactoryNIO.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/PagingStoreFactoryNIO.java
@@ -136,7 +136,7 @@ public class PagingStoreFactoryNIO implements PagingStoreFactory {
return Collections.<PagingStore>emptyList();
}
else {
- ArrayList<PagingStore> storesReturn = new ArrayList<PagingStore>(files.length);
+ ArrayList<PagingStore> storesReturn = new ArrayList<>(files.length);
for (File file : files) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/PagingStoreImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/PagingStoreImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/PagingStoreImpl.java
index f224fd1..1463b3c 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/PagingStoreImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/impl/PagingStoreImpl.java
@@ -622,7 +622,7 @@ public class PagingStoreImpl implements PagingStore {
}
- private final Queue<OurRunnable> onMemoryFreedRunnables = new ConcurrentLinkedQueue<OurRunnable>();
+ private final Queue<OurRunnable> onMemoryFreedRunnables = new ConcurrentLinkedQueue<>();
private class MemoryFreedRunnablesExecutor implements Runnable {
@@ -929,7 +929,7 @@ public class PagingStoreImpl implements PagingStore {
private final PageTransactionInfo pageTransaction;
private final StorageManager storageManager;
private final PagingManager pagingManager;
- private final Set<PagingStore> usedStores = new HashSet<PagingStore>();
+ private final Set<PagingStore> usedStores = new HashSet<>();
private boolean stored = false;
@@ -1069,7 +1069,7 @@ public class PagingStoreImpl implements PagingStore {
@Override
public Collection<Integer> getCurrentIds() throws Exception {
- List<Integer> ids = new ArrayList<Integer>();
+ List<Integer> ids = new ArrayList<>();
if (fileFactory != null) {
for (String fileName : fileFactory.listFiles("page")) {
ids.add(getPageIdFromFileName(fileName));
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/persistence/impl/journal/DescribeJournal.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/persistence/impl/journal/DescribeJournal.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/persistence/impl/journal/DescribeJournal.java
index 14bee91..6d96143 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/persistence/impl/journal/DescribeJournal.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/persistence/impl/journal/DescribeJournal.java
@@ -134,7 +134,7 @@ public final class DescribeJournal {
final PrintStream out = System.out;
- final Map<Long, PageSubscriptionCounterImpl> counters = new HashMap<Long, PageSubscriptionCounterImpl>();
+ final Map<Long, PageSubscriptionCounterImpl> counters = new HashMap<>();
out.println("Journal path: " + path);
@@ -249,17 +249,17 @@ public final class DescribeJournal {
out.println("### Surviving Records Summary ###");
- List<RecordInfo> records = new LinkedList<RecordInfo>();
- List<PreparedTransactionInfo> preparedTransactions = new LinkedList<PreparedTransactionInfo>();
+ List<RecordInfo> records = new LinkedList<>();
+ List<PreparedTransactionInfo> preparedTransactions = new LinkedList<>();
journal.start();
final StringBuffer bufferFailingTransactions = new StringBuffer();
int messageCount = 0;
- Map<Long, Integer> messageRefCounts = new HashMap<Long, Integer>();
+ Map<Long, Integer> messageRefCounts = new HashMap<>();
int preparedMessageCount = 0;
- Map<Long, Integer> preparedMessageRefCount = new HashMap<Long, Integer>();
+ Map<Long, Integer> preparedMessageRefCount = new HashMap<>();
journal.load(records, preparedTransactions, new TransactionFailureCallback() {
@Override
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/persistence/impl/journal/JournalStorageManager.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/persistence/impl/journal/JournalStorageManager.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/persistence/impl/journal/JournalStorageManager.java
index 45a544d..c1f644f 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/persistence/impl/journal/JournalStorageManager.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/persistence/impl/journal/JournalStorageManager.java
@@ -206,11 +206,11 @@ public class JournalStorageManager implements StorageManager {
private final Configuration config;
// Persisted core configuration
- private final Map<SimpleString, PersistedRoles> mapPersistedRoles = new ConcurrentHashMap<SimpleString, PersistedRoles>();
+ private final Map<SimpleString, PersistedRoles> mapPersistedRoles = new ConcurrentHashMap<>();
- private final Map<SimpleString, PersistedAddressSetting> mapPersistedAddressSettings = new ConcurrentHashMap<SimpleString, PersistedAddressSetting>();
+ private final Map<SimpleString, PersistedAddressSetting> mapPersistedAddressSettings = new ConcurrentHashMap<>();
- private final Set<Long> largeMessagesToDelete = new HashSet<Long>();
+ private final Set<Long> largeMessagesToDelete = new HashSet<>();
public JournalStorageManager(final Configuration config, final ExecutorFactory executorFactory) {
this(config, executorFactory, null);
@@ -489,7 +489,7 @@ public class JournalStorageManager implements StorageManager {
* @throws Exception
*/
private Map<SimpleString, Collection<Integer>> getPageInformationForSync(PagingManager pagingManager) throws Exception {
- Map<SimpleString, Collection<Integer>> info = new HashMap<SimpleString, Collection<Integer>>();
+ Map<SimpleString, Collection<Integer>> info = new HashMap<>();
for (SimpleString storeName : pagingManager.getStoreNames()) {
PagingStore store = pagingManager.getPageStore(storeName);
info.put(storeName, store.getCurrentIds());
@@ -528,18 +528,18 @@ public class JournalStorageManager implements StorageManager {
*/
private Map<Long, Pair<String, Long>> recoverPendingLargeMessages() throws Exception {
- Map<Long, Pair<String, Long>> largeMessages = new HashMap<Long, Pair<String, Long>>();
+ Map<Long, Pair<String, Long>> largeMessages = new HashMap<>();
// only send durable messages... // listFiles append a "." to anything...
List<String> filenames = largeMessagesFactory.listFiles("msg");
- List<Long> idList = new ArrayList<Long>();
+ List<Long> idList = new ArrayList<>();
for (String filename : filenames) {
Long id = getLargeMessageIdFromFilename(filename);
if (!largeMessagesToDelete.contains(id)) {
idList.add(id);
SequentialFile seqFile = largeMessagesFactory.createSequentialFile(filename);
long size = seqFile.size();
- largeMessages.put(id, new Pair<String, Long>(filename, size));
+ largeMessages.put(id, new Pair<>(filename, size));
}
}
@@ -1201,13 +1201,13 @@ public class JournalStorageManager implements StorageManager {
@Override
public List<PersistedAddressSetting> recoverAddressSettings() throws Exception {
- ArrayList<PersistedAddressSetting> list = new ArrayList<PersistedAddressSetting>(mapPersistedAddressSettings.values());
+ ArrayList<PersistedAddressSetting> list = new ArrayList<>(mapPersistedAddressSettings.values());
return list;
}
@Override
public List<PersistedRoles> recoverPersistedRoles() throws Exception {
- ArrayList<PersistedRoles> list = new ArrayList<PersistedRoles>(mapPersistedRoles.values());
+ ArrayList<PersistedRoles> list = new ArrayList<>(mapPersistedRoles.values());
return list;
}
@@ -1286,21 +1286,21 @@ public class JournalStorageManager implements StorageManager {
final Set<Pair<Long, Long>> pendingLargeMessages,
List<PageCountPending> pendingNonTXPageCounter,
final JournalLoader journalLoader) throws Exception {
- List<RecordInfo> records = new ArrayList<RecordInfo>();
+ List<RecordInfo> records = new ArrayList<>();
- List<PreparedTransactionInfo> preparedTransactions = new ArrayList<PreparedTransactionInfo>();
+ List<PreparedTransactionInfo> preparedTransactions = new ArrayList<>();
- Map<Long, ServerMessage> messages = new HashMap<Long, ServerMessage>();
+ Map<Long, ServerMessage> messages = new HashMap<>();
readLock();
try {
JournalLoadInformation info = messageJournal.load(records, preparedTransactions, new LargeMessageTXFailureCallback(messages));
- ArrayList<LargeServerMessage> largeMessages = new ArrayList<LargeServerMessage>();
+ ArrayList<LargeServerMessage> largeMessages = new ArrayList<>();
- Map<Long, Map<Long, AddMessageRecord>> queueMap = new HashMap<Long, Map<Long, AddMessageRecord>>();
+ Map<Long, Map<Long, AddMessageRecord>> queueMap = new HashMap<>();
- Map<Long, PageSubscription> pageSubscriptions = new HashMap<Long, PageSubscription>();
+ Map<Long, PageSubscription> pageSubscriptions = new HashMap<>();
final int totalSize = records.size();
@@ -1327,7 +1327,7 @@ public class JournalStorageManager implements StorageManager {
if (pendingLargeMessages != null) {
// it could be null on tests, and we don't need anything on that case
- pendingLargeMessages.add(new Pair<Long, Long>(record.id, pending.largeMessageID));
+ pendingLargeMessages.add(new Pair<>(record.id, pending.largeMessageID));
}
break;
}
@@ -1359,7 +1359,7 @@ public class JournalStorageManager implements StorageManager {
Map<Long, AddMessageRecord> queueMessages = queueMap.get(encoding.queueID);
if (queueMessages == null) {
- queueMessages = new LinkedHashMap<Long, AddMessageRecord>();
+ queueMessages = new LinkedHashMap<>();
queueMap.put(encoding.queueID, queueMessages);
}
@@ -1478,12 +1478,12 @@ public class JournalStorageManager implements StorageManager {
List<Pair<byte[], Long>> ids = duplicateIDMap.get(encoding.address);
if (ids == null) {
- ids = new ArrayList<Pair<byte[], Long>>();
+ ids = new ArrayList<>();
duplicateIDMap.put(encoding.address, ids);
}
- ids.add(new Pair<byte[], Long>(encoding.duplID, record.id));
+ ids.add(new Pair<>(encoding.duplID, record.id));
break;
}
@@ -1805,9 +1805,9 @@ public class JournalStorageManager implements StorageManager {
@Override
public JournalLoadInformation loadBindingJournal(final List<QueueBindingInfo> queueBindingInfos,
final List<GroupingInfo> groupingInfos) throws Exception {
- List<RecordInfo> records = new ArrayList<RecordInfo>();
+ List<RecordInfo> records = new ArrayList<>();
- List<PreparedTransactionInfo> preparedTransactions = new ArrayList<PreparedTransactionInfo>();
+ List<PreparedTransactionInfo> preparedTransactions = new ArrayList<>();
JournalLoadInformation bindingsInfo = bindingsJournal.load(records, preparedTransactions, null);
@@ -2173,9 +2173,9 @@ public class JournalStorageManager implements StorageManager {
Transaction tx = new TransactionImpl(preparedTransaction.id, xid, this);
- List<MessageReference> referencesToAck = new ArrayList<MessageReference>();
+ List<MessageReference> referencesToAck = new ArrayList<>();
- Map<Long, ServerMessage> messages = new HashMap<Long, ServerMessage>();
+ Map<Long, ServerMessage> messages = new HashMap<>();
// Use same method as load message journal to prune out acks, so they don't get added.
// Then have reacknowledge(tx) methods on queue, which needs to add the page size
@@ -2329,7 +2329,7 @@ public class JournalStorageManager implements StorageManager {
switch (b) {
case ADD_LARGE_MESSAGE_PENDING: {
long messageID = buff.readLong();
- if (!pendingLargeMessages.remove(new Pair<Long, Long>(recordDeleted.id, messageID))) {
+ if (!pendingLargeMessages.remove(new Pair<>(recordDeleted.id, messageID))) {
ActiveMQServerLogger.LOGGER.largeMessageNotFound(recordDeleted.id);
}
installLargeMessageConfirmationOnTX(tx, recordDeleted.id);
@@ -3372,7 +3372,7 @@ public class JournalStorageManager implements StorageManager {
final class TXLargeMessageConfirmationOperation extends TransactionOperationAbstract {
- public List<Long> confirmedMessages = new LinkedList<Long>();
+ public List<Long> confirmedMessages = new LinkedList<>();
@Override
public void afterRollback(Transaction tx) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/persistence/impl/journal/OperationContextImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/persistence/impl/journal/OperationContextImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/persistence/impl/journal/OperationContextImpl.java
index caa71b8..a34a0ad 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/persistence/impl/journal/OperationContextImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/persistence/impl/journal/OperationContextImpl.java
@@ -43,7 +43,7 @@ import org.apache.activemq.artemis.utils.ExecutorFactory;
*/
public class OperationContextImpl implements OperationContext {
- private static final ThreadLocal<OperationContext> threadLocalContext = new ThreadLocal<OperationContext>();
+ private static final ThreadLocal<OperationContext> threadLocalContext = new ThreadLocal<>();
public static void clearContext() {
OperationContextImpl.threadLocalContext.set(null);
@@ -136,7 +136,7 @@ public class OperationContextImpl implements OperationContext {
synchronized (this) {
if (tasks == null) {
- tasks = new LinkedList<TaskHolder>();
+ tasks = new LinkedList<>();
minimalReplicated = replicationLineUp.intValue();
minimalStore = storeLineUp.intValue();
minimalPage = pageLineUp.intValue();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/AddressImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/AddressImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/AddressImpl.java
index 357decd..d569a8c 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/AddressImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/AddressImpl.java
@@ -33,7 +33,7 @@ public class AddressImpl implements Address {
private final boolean containsWildCard;
- private final List<Address> linkedAddresses = new ArrayList<Address>();
+ private final List<Address> linkedAddresses = new ArrayList<>();
public AddressImpl(final SimpleString address) {
this.address = address;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/BindingsImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/BindingsImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/BindingsImpl.java
index 995e041..4bf80c3 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/BindingsImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/BindingsImpl.java
@@ -51,13 +51,13 @@ public final class BindingsImpl implements Bindings {
private static boolean isTrace = ActiveMQServerLogger.LOGGER.isTraceEnabled();
- private final ConcurrentMap<SimpleString, List<Binding>> routingNameBindingMap = new ConcurrentHashMap<SimpleString, List<Binding>>();
+ private final ConcurrentMap<SimpleString, List<Binding>> routingNameBindingMap = new ConcurrentHashMap<>();
- private final Map<SimpleString, Integer> routingNamePositions = new ConcurrentHashMap<SimpleString, Integer>();
+ private final Map<SimpleString, Integer> routingNamePositions = new ConcurrentHashMap<>();
- private final Map<Long, Binding> bindingsMap = new ConcurrentHashMap<Long, Binding>();
+ private final Map<Long, Binding> bindingsMap = new ConcurrentHashMap<>();
- private final List<Binding> exclusiveBindings = new CopyOnWriteArrayList<Binding>();
+ private final List<Binding> exclusiveBindings = new CopyOnWriteArrayList<>();
private volatile MessageLoadBalancingType messageLoadBalancingType = MessageLoadBalancingType.OFF;
@@ -104,7 +104,7 @@ public final class BindingsImpl implements Bindings {
List<Binding> bindings = routingNameBindingMap.get(routingName);
if (bindings == null) {
- bindings = new CopyOnWriteArrayList<Binding>();
+ bindings = new CopyOnWriteArrayList<>();
List<Binding> oldBindings = routingNameBindingMap.putIfAbsent(routingName, bindings);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/DuplicateIDCacheImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/DuplicateIDCacheImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/DuplicateIDCacheImpl.java
index 9d97dee..0ce6366 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/DuplicateIDCacheImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/DuplicateIDCacheImpl.java
@@ -38,7 +38,7 @@ import org.apache.activemq.artemis.core.transaction.TransactionOperationAbstract
public class DuplicateIDCacheImpl implements DuplicateIDCache {
// ByteHolder, position
- private final Map<ByteArrayHolder, Integer> cache = new ConcurrentHashMap<ByteArrayHolder, Integer>();
+ private final Map<ByteArrayHolder, Integer> cache = new ConcurrentHashMap<>();
private final SimpleString address;
@@ -62,7 +62,7 @@ public class DuplicateIDCacheImpl implements DuplicateIDCache {
cacheSize = size;
- ids = new ArrayList<Pair<ByteArrayHolder, Long>>(size);
+ ids = new ArrayList<>(size);
this.storageManager = storageManager;
@@ -79,7 +79,7 @@ public class DuplicateIDCacheImpl implements DuplicateIDCache {
if (count < cacheSize) {
ByteArrayHolder bah = new ByteArrayHolder(id.getA());
- Pair<ByteArrayHolder, Long> pair = new Pair<ByteArrayHolder, Long>(bah, id.getB());
+ Pair<ByteArrayHolder, Long> pair = new Pair<>(bah, id.getB());
cache.put(bah, ids.size());
@@ -205,7 +205,7 @@ public class DuplicateIDCacheImpl implements DuplicateIDCache {
holder.pos = pos;
}
else {
- id = new Pair<ByteArrayHolder, Long>(holder, recordID >= 0 ? recordID : null);
+ id = new Pair<>(holder, recordID >= 0 ? recordID : null);
ids.add(id);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/PostOfficeImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/PostOfficeImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/PostOfficeImpl.java
index 6fcca35..da22bb9 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/PostOfficeImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/PostOfficeImpl.java
@@ -116,13 +116,13 @@ public class PostOfficeImpl implements PostOffice, NotificationListener, Binding
private final int reaperPriority;
- private final ConcurrentMap<SimpleString, DuplicateIDCache> duplicateIDCaches = new ConcurrentHashMap<SimpleString, DuplicateIDCache>();
+ private final ConcurrentMap<SimpleString, DuplicateIDCache> duplicateIDCaches = new ConcurrentHashMap<>();
private final int idCacheSize;
private final boolean persistIDCache;
- private final Map<SimpleString, QueueInfo> queueInfos = new HashMap<SimpleString, QueueInfo>();
+ private final Map<SimpleString, QueueInfo> queueInfos = new HashMap<>();
private final Object notificationLock = new Object();
@@ -311,7 +311,7 @@ public class PostOfficeImpl implements PostOffice, NotificationListener, Binding
List<SimpleString> filterStrings = info.getFilterStrings();
if (filterStrings == null) {
- filterStrings = new ArrayList<SimpleString>();
+ filterStrings = new ArrayList<>();
info.setFilterStrings(filterStrings);
}
@@ -743,7 +743,7 @@ public class PostOfficeImpl implements PostOffice, NotificationListener, Binding
queue.reload(reference);
}
else {
- List<MessageReference> refs = new ArrayList<MessageReference>(1);
+ List<MessageReference> refs = new ArrayList<>(1);
refs.add(reference);
@@ -773,7 +773,7 @@ public class PostOfficeImpl implements PostOffice, NotificationListener, Binding
boolean routed = bindings.redistribute(copyRedistribute, originatingQueue, context);
if (routed) {
- return new Pair<RoutingContext, ServerMessage>(context, copyRedistribute);
+ return new Pair<>(context, copyRedistribute);
}
}
@@ -912,7 +912,7 @@ public class PostOfficeImpl implements PostOffice, NotificationListener, Binding
// However if the client resends the message after receiving, it needs to be removed
if ((name.startsWith(MessageImpl.HDR_ROUTE_TO_IDS) && !name.equals(MessageImpl.HDR_ROUTE_TO_IDS)) || (name.startsWith(MessageImpl.HDR_ROUTE_TO_ACK_IDS) && !name.equals(MessageImpl.HDR_ROUTE_TO_ACK_IDS))) {
if (valuesToRemove == null) {
- valuesToRemove = new LinkedList<SimpleString>();
+ valuesToRemove = new LinkedList<>();
}
valuesToRemove.add(name);
}
@@ -945,7 +945,7 @@ public class PostOfficeImpl implements PostOffice, NotificationListener, Binding
private static class PageDelivery extends TransactionOperationAbstract {
- private final Set<Queue> queues = new HashSet<Queue>();
+ private final Set<Queue> queues = new HashSet<>();
public void addQueues(List<Queue> queueList) {
queues.addAll(queueList);
@@ -972,7 +972,7 @@ public class PostOfficeImpl implements PostOffice, NotificationListener, Binding
public void processRoute(final ServerMessage message,
final RoutingContext context,
final boolean direct) throws Exception {
- final List<MessageReference> refs = new ArrayList<MessageReference>();
+ final List<MessageReference> refs = new ArrayList<>();
Transaction tx = context.getTransaction();
@@ -1124,7 +1124,7 @@ public class PostOfficeImpl implements PostOffice, NotificationListener, Binding
List<Queue> durableQueues = entry.getValue().getDurableQueues();
List<Queue> nonDurableQueues = entry.getValue().getNonDurableQueues();
- final List<Queue> queues = new ArrayList<Queue>(durableQueues.size() + nonDurableQueues.size());
+ final List<Queue> queues = new ArrayList<>(durableQueues.size() + nonDurableQueues.size());
queues.addAll(durableQueues);
queues.addAll(nonDurableQueues);
@@ -1292,7 +1292,7 @@ public class PostOfficeImpl implements PostOffice, NotificationListener, Binding
Map<SimpleString, Binding> nameMap = addressManager.getBindings();
- List<Queue> queues = new ArrayList<Queue>();
+ List<Queue> queues = new ArrayList<>();
for (Binding binding : nameMap.values()) {
if (binding.getType() == BindingType.LOCAL_QUEUE) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/SimpleAddressManager.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/SimpleAddressManager.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/SimpleAddressManager.java
index 77c36f0..8bfe00d 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/SimpleAddressManager.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/SimpleAddressManager.java
@@ -42,14 +42,14 @@ public class SimpleAddressManager implements AddressManager {
/**
* HashMap<Address, Binding>
*/
- private final ConcurrentMap<SimpleString, Bindings> mappings = new ConcurrentHashMap<SimpleString, Bindings>();
+ private final ConcurrentMap<SimpleString, Bindings> mappings = new ConcurrentHashMap<>();
/**
* HashMap<QueueName, Binding>
*/
- private final ConcurrentMap<SimpleString, Binding> nameMap = new ConcurrentHashMap<SimpleString, Binding>();
+ private final ConcurrentMap<SimpleString, Binding> nameMap = new ConcurrentHashMap<>();
- private final ConcurrentHashSet<SimpleString> pendingDeletes = new ConcurrentHashSet<SimpleString>();
+ private final ConcurrentHashSet<SimpleString> pendingDeletes = new ConcurrentHashSet<>();
private final BindingsFactory bindingsFactory;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/WildcardAddressManager.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/WildcardAddressManager.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/WildcardAddressManager.java
index 7020e5d..7609355 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/WildcardAddressManager.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/WildcardAddressManager.java
@@ -47,9 +47,9 @@ public class WildcardAddressManager extends SimpleAddressManager {
* These are all the addresses, we use this so we can link back from the actual address to its linked wilcard addresses
* or vice versa
*/
- private final Map<SimpleString, Address> addresses = new ConcurrentHashMap<SimpleString, Address>();
+ private final Map<SimpleString, Address> addresses = new ConcurrentHashMap<>();
- private final Map<SimpleString, Address> wildCardAddresses = new ConcurrentHashMap<SimpleString, Address>();
+ private final Map<SimpleString, Address> wildCardAddresses = new ConcurrentHashMap<>();
public WildcardAddressManager(final BindingsFactory bindingsFactory) {
super(bindingsFactory);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/CoreProtocolManager.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/CoreProtocolManager.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/CoreProtocolManager.java
index 270f7dc..9c5b748 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/CoreProtocolManager.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/CoreProtocolManager.java
@@ -144,7 +144,7 @@ public class CoreProtocolManager implements ProtocolManager<Interceptor> {
return entry;
}
- private final Map<String, ServerSessionPacketHandler> sessionHandlers = new ConcurrentHashMap<String, ServerSessionPacketHandler>();
+ private final Map<String, ServerSessionPacketHandler> sessionHandlers = new ConcurrentHashMap<>();
ServerSessionPacketHandler getSessionHandler(final String sessionName) {
return sessionHandlers.get(sessionName);
@@ -315,7 +315,7 @@ public class CoreProtocolManager implements ProtocolManager<Interceptor> {
@Override
public void run() {
String nodeId = server.getNodeID().toString();
- Pair<TransportConfiguration, TransportConfiguration> emptyConfig = new Pair<TransportConfiguration, TransportConfiguration>(null, null);
+ Pair<TransportConfiguration, TransportConfiguration> emptyConfig = new Pair<>(null, null);
if (channel0.supports(PacketImpl.CLUSTER_TOPOLOGY_V2)) {
channel0.send(new ClusterTopologyChangeMessage_V2(System.currentTimeMillis(), nodeId, null, emptyConfig, true));
}
@@ -331,9 +331,9 @@ public class CoreProtocolManager implements ProtocolManager<Interceptor> {
private Pair<TransportConfiguration, TransportConfiguration> getPair(TransportConfiguration conn,
boolean isBackup) {
if (isBackup) {
- return new Pair<TransportConfiguration, TransportConfiguration>(null, conn);
+ return new Pair<>(null, conn);
}
- return new Pair<TransportConfiguration, TransportConfiguration>(conn, null);
+ return new Pair<>(conn, null);
}
}
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/BackupReplicationStartFailedMessage.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/BackupReplicationStartFailedMessage.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/BackupReplicationStartFailedMessage.java
index 0499db7..91830f8 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/BackupReplicationStartFailedMessage.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/BackupReplicationStartFailedMessage.java
@@ -41,7 +41,7 @@ public final class BackupReplicationStartFailedMessage extends PacketImpl {
}
static {
- HashMap<Integer, BackupRegistrationProblem> map = new HashMap<Integer, BackupRegistrationProblem>();
+ HashMap<Integer, BackupRegistrationProblem> map = new HashMap<>();
for (BackupRegistrationProblem type : EnumSet.allOf(BackupRegistrationProblem.class)) {
map.put(type.code, type);
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/registry/MapBindingRegistry.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/registry/MapBindingRegistry.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/registry/MapBindingRegistry.java
index 2d1be92..bba8776 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/registry/MapBindingRegistry.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/registry/MapBindingRegistry.java
@@ -23,7 +23,7 @@ import org.apache.activemq.artemis.spi.core.naming.BindingRegistry;
public class MapBindingRegistry implements BindingRegistry {
- protected ConcurrentMap<String, Object> registry = new ConcurrentHashMap<String, Object>();
+ protected ConcurrentMap<String, Object> registry = new ConcurrentHashMap<>();
@Override
public Object lookup(String name) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/invm/InVMAcceptor.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/invm/InVMAcceptor.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/invm/InVMAcceptor.java
index 3c0818c..795a711 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/invm/InVMAcceptor.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/invm/InVMAcceptor.java
@@ -48,7 +48,7 @@ public final class InVMAcceptor implements Acceptor {
private final ConnectionLifeCycleListener listener;
- private final ConcurrentMap<String, Connection> connections = new ConcurrentHashMap<String, Connection>();
+ private final ConcurrentMap<String, Connection> connections = new ConcurrentHashMap<>();
private volatile boolean started;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/invm/InVMConnection.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/invm/InVMConnection.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/invm/InVMConnection.java
index f498af0..7931f82 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/invm/InVMConnection.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/invm/InVMConnection.java
@@ -258,7 +258,7 @@ public class InVMConnection implements Connection {
@Override
public TransportConfiguration getConnectorConfig() {
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put(org.apache.activemq.artemis.core.remoting.impl.invm.TransportConstants.SERVER_ID_PROP_NAME, serverID);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/invm/InVMConnector.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/invm/InVMConnector.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/invm/InVMConnector.java
index 96f6667..33a3147 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/invm/InVMConnector.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/invm/InVMConnector.java
@@ -41,7 +41,7 @@ public class InVMConnector extends AbstractConnector {
public static final Map<String, Object> DEFAULT_CONFIG;
static {
- Map<String, Object> config = new HashMap<String, Object>();
+ Map<String, Object> config = new HashMap<>();
config.put(TransportConstants.SERVER_ID_PROP_NAME, TransportConstants.DEFAULT_SERVER_ID);
DEFAULT_CONFIG = Collections.unmodifiableMap(config);
}
@@ -76,7 +76,7 @@ public class InVMConnector extends AbstractConnector {
private final InVMAcceptor acceptor;
- private final ConcurrentMap<String, Connection> connections = new ConcurrentHashMap<String, Connection>();
+ private final ConcurrentMap<String, Connection> connections = new ConcurrentHashMap<>();
private volatile boolean started;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/invm/InVMRegistry.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/invm/InVMRegistry.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/invm/InVMRegistry.java
index cdb0ee3..f166a50 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/invm/InVMRegistry.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/invm/InVMRegistry.java
@@ -25,7 +25,7 @@ public final class InVMRegistry {
public static final InVMRegistry instance = new InVMRegistry();
- private final ConcurrentMap<Integer, InVMAcceptor> acceptors = new ConcurrentHashMap<Integer, InVMAcceptor>();
+ private final ConcurrentMap<Integer, InVMAcceptor> acceptors = new ConcurrentHashMap<>();
public void registerAcceptor(final int id, final InVMAcceptor acceptor) {
if (acceptors.putIfAbsent(id, acceptor) != null) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/HttpAcceptorHandler.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/HttpAcceptorHandler.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/HttpAcceptorHandler.java
index bc5df25..7be3bac 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/HttpAcceptorHandler.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/HttpAcceptorHandler.java
@@ -43,9 +43,9 @@ import io.netty.util.ReferenceCountUtil;
*/
public class HttpAcceptorHandler extends ChannelDuplexHandler {
- private final BlockingQueue<ResponseHolder> responses = new LinkedBlockingQueue<ResponseHolder>();
+ private final BlockingQueue<ResponseHolder> responses = new LinkedBlockingQueue<>();
- private final BlockingQueue<Runnable> delayedResponses = new LinkedBlockingQueue<Runnable>();
+ private final BlockingQueue<Runnable> delayedResponses = new LinkedBlockingQueue<>();
private final ExecutorService executor = new ThreadPoolExecutor(1, 1, 0, TimeUnit.SECONDS, delayedResponses);
[30/32] activemq-artemis git commit: Convert mac linefeeds to unix
Posted by cl...@apache.org.
Convert mac linefeeds to unix
Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/96e99e41
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/96e99e41
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/96e99e41
Branch: refs/heads/master
Commit: 96e99e4151be79543cf61c9ee86930003d061f1b
Parents: f8a1c5b
Author: Ville Skyttä <vi...@iki.fi>
Authored: Sun Dec 6 02:02:53 2015 +0200
Committer: Ville Skyttä <vi...@iki.fi>
Committed: Mon Dec 7 22:55:05 2015 +0200
----------------------------------------------------------------------
.../activemq/openwire/v7/BrokerIdTest.java | 55 ++++++++++++-
.../activemq/openwire/v7/BrokerInfoTest.java | 72 +++++++++++++++-
.../openwire/v7/ConnectionControlTest.java | 62 +++++++++++++-
.../openwire/v7/ConnectionErrorTest.java | 56 ++++++++++++-
.../activemq/openwire/v7/ConnectionIdTest.java | 55 ++++++++++++-
.../openwire/v7/ConnectionInfoTest.java | 70 +++++++++++++++-
.../openwire/v7/ConsumerControlTest.java | 61 +++++++++++++-
.../activemq/openwire/v7/ConsumerIdTest.java | 57 ++++++++++++-
.../activemq/openwire/v7/ConsumerInfoTest.java | 84 ++++++++++++++++++-
.../openwire/v7/ControlCommandTest.java | 55 ++++++++++++-
.../openwire/v7/DataArrayResponseTest.java | 61 +++++++++++++-
.../activemq/openwire/v7/DataResponseTest.java | 55 ++++++++++++-
.../openwire/v7/DestinationInfoTest.java | 65 ++++++++++++++-
.../openwire/v7/DiscoveryEventTest.java | 56 ++++++++++++-
.../openwire/v7/ExceptionResponseTest.java | 55 ++++++++++++-
.../activemq/openwire/v7/FlushCommandTest.java | 54 +++++++++++-
.../openwire/v7/IntegerResponseTest.java | 55 ++++++++++++-
.../openwire/v7/JournalQueueAckTest.java | 56 ++++++++++++-
.../openwire/v7/JournalTopicAckTest.java | 60 +++++++++++++-
.../activemq/openwire/v7/JournalTraceTest.java | 55 ++++++++++++-
.../openwire/v7/JournalTransactionTest.java | 57 ++++++++++++-
.../activemq/openwire/v7/KeepAliveInfoTest.java | 54 +++++++++++-
.../openwire/v7/LastPartialCommandTest.java | 54 +++++++++++-
.../openwire/v7/LocalTransactionIdTest.java | 56 ++++++++++++-
.../activemq/openwire/v7/MessageAckTest.java | 62 +++++++++++++-
.../v7/MessageDispatchNotificationTest.java | 58 ++++++++++++-
.../openwire/v7/MessageDispatchTest.java | 58 ++++++++++++-
.../activemq/openwire/v7/MessageIdTest.java | 57 ++++++++++++-
.../activemq/openwire/v7/MessagePullTest.java | 59 ++++++++++++-
.../openwire/v7/MessageTestSupport.java | 87 +++++++++++++++++++-
.../openwire/v7/NetworkBridgeFilterTest.java | 56 ++++++++++++-
.../openwire/v7/PartialCommandTest.java | 56 ++++++++++++-
.../activemq/openwire/v7/ProducerAckTest.java | 56 ++++++++++++-
.../activemq/openwire/v7/ProducerIdTest.java | 57 ++++++++++++-
.../activemq/openwire/v7/ProducerInfoTest.java | 65 ++++++++++++++-
.../activemq/openwire/v7/RemoveInfoTest.java | 56 ++++++++++++-
.../openwire/v7/RemoveSubscriptionInfoTest.java | 57 ++++++++++++-
.../activemq/openwire/v7/ReplayCommandTest.java | 56 ++++++++++++-
.../activemq/openwire/v7/ResponseTest.java | 55 ++++++++++++-
.../activemq/openwire/v7/SessionIdTest.java | 56 ++++++++++++-
.../activemq/openwire/v7/SessionInfoTest.java | 55 ++++++++++++-
.../activemq/openwire/v7/ShutdownInfoTest.java | 54 +++++++++++-
.../openwire/v7/SubscriptionInfoTest.java | 59 ++++++++++++-
.../openwire/v7/TransactionIdTestSupport.java | 45 +++++++++-
.../openwire/v7/TransactionInfoTest.java | 57 ++++++++++++-
.../openwire/v7/XATransactionIdTest.java | 57 ++++++++++++-
.../activemq/openwire/v8/BrokerIdTest.java | 55 ++++++++++++-
.../activemq/openwire/v8/BrokerInfoTest.java | 72 +++++++++++++++-
.../openwire/v8/ConnectionControlTest.java | 63 +++++++++++++-
.../openwire/v8/ConnectionErrorTest.java | 56 ++++++++++++-
.../activemq/openwire/v8/ConnectionIdTest.java | 55 ++++++++++++-
.../openwire/v8/ConnectionInfoTest.java | 71 +++++++++++++++-
.../openwire/v8/ConsumerControlTest.java | 61 +++++++++++++-
.../activemq/openwire/v8/ConsumerIdTest.java | 57 ++++++++++++-
.../activemq/openwire/v8/ConsumerInfoTest.java | 84 ++++++++++++++++++-
.../openwire/v8/ControlCommandTest.java | 55 ++++++++++++-
.../openwire/v8/DataArrayResponseTest.java | 61 +++++++++++++-
.../activemq/openwire/v8/DataResponseTest.java | 55 ++++++++++++-
.../openwire/v8/DestinationInfoTest.java | 65 ++++++++++++++-
.../openwire/v8/DiscoveryEventTest.java | 56 ++++++++++++-
.../openwire/v8/ExceptionResponseTest.java | 55 ++++++++++++-
.../activemq/openwire/v8/FlushCommandTest.java | 54 +++++++++++-
.../openwire/v8/IntegerResponseTest.java | 55 ++++++++++++-
.../openwire/v8/JournalQueueAckTest.java | 56 ++++++++++++-
.../openwire/v8/JournalTopicAckTest.java | 60 +++++++++++++-
.../activemq/openwire/v8/JournalTraceTest.java | 55 ++++++++++++-
.../openwire/v8/JournalTransactionTest.java | 57 ++++++++++++-
.../activemq/openwire/v8/KeepAliveInfoTest.java | 54 +++++++++++-
.../openwire/v8/LastPartialCommandTest.java | 54 +++++++++++-
.../openwire/v8/LocalTransactionIdTest.java | 56 ++++++++++++-
.../activemq/openwire/v8/MessageAckTest.java | 62 +++++++++++++-
.../v8/MessageDispatchNotificationTest.java | 58 ++++++++++++-
.../openwire/v8/MessageDispatchTest.java | 58 ++++++++++++-
.../activemq/openwire/v8/MessageIdTest.java | 57 ++++++++++++-
.../activemq/openwire/v8/MessagePullTest.java | 59 ++++++++++++-
.../openwire/v8/MessageTestSupport.java | 87 +++++++++++++++++++-
.../openwire/v8/NetworkBridgeFilterTest.java | 56 ++++++++++++-
.../openwire/v8/PartialCommandTest.java | 56 ++++++++++++-
.../activemq/openwire/v8/ProducerAckTest.java | 56 ++++++++++++-
.../activemq/openwire/v8/ProducerIdTest.java | 57 ++++++++++++-
.../activemq/openwire/v8/ProducerInfoTest.java | 65 ++++++++++++++-
.../activemq/openwire/v8/RemoveInfoTest.java | 56 ++++++++++++-
.../openwire/v8/RemoveSubscriptionInfoTest.java | 57 ++++++++++++-
.../activemq/openwire/v8/ReplayCommandTest.java | 56 ++++++++++++-
.../activemq/openwire/v8/ResponseTest.java | 55 ++++++++++++-
.../activemq/openwire/v8/SessionIdTest.java | 56 ++++++++++++-
.../activemq/openwire/v8/SessionInfoTest.java | 55 ++++++++++++-
.../activemq/openwire/v8/ShutdownInfoTest.java | 54 +++++++++++-
.../openwire/v8/SubscriptionInfoTest.java | 59 ++++++++++++-
.../openwire/v8/TransactionIdTestSupport.java | 45 +++++++++-
.../openwire/v8/TransactionInfoTest.java | 57 ++++++++++++-
.../openwire/v8/XATransactionIdTest.java | 57 ++++++++++++-
.../activemq/openwire/v9/BrokerIdTest.java | 55 ++++++++++++-
.../activemq/openwire/v9/BrokerInfoTest.java | 72 +++++++++++++++-
.../openwire/v9/ConnectionControlTest.java | 63 +++++++++++++-
.../openwire/v9/ConnectionErrorTest.java | 56 ++++++++++++-
.../activemq/openwire/v9/ConnectionIdTest.java | 55 ++++++++++++-
.../openwire/v9/ConnectionInfoTest.java | 71 +++++++++++++++-
.../openwire/v9/ConsumerControlTest.java | 61 +++++++++++++-
.../activemq/openwire/v9/ConsumerIdTest.java | 57 ++++++++++++-
.../activemq/openwire/v9/ConsumerInfoTest.java | 84 ++++++++++++++++++-
.../openwire/v9/ControlCommandTest.java | 55 ++++++++++++-
.../openwire/v9/DataArrayResponseTest.java | 61 +++++++++++++-
.../activemq/openwire/v9/DataResponseTest.java | 55 ++++++++++++-
.../openwire/v9/DestinationInfoTest.java | 65 ++++++++++++++-
.../openwire/v9/DiscoveryEventTest.java | 56 ++++++++++++-
.../openwire/v9/ExceptionResponseTest.java | 55 ++++++++++++-
.../activemq/openwire/v9/FlushCommandTest.java | 54 +++++++++++-
.../openwire/v9/IntegerResponseTest.java | 55 ++++++++++++-
.../openwire/v9/JournalQueueAckTest.java | 56 ++++++++++++-
.../openwire/v9/JournalTopicAckTest.java | 60 +++++++++++++-
.../activemq/openwire/v9/JournalTraceTest.java | 55 ++++++++++++-
.../openwire/v9/JournalTransactionTest.java | 57 ++++++++++++-
.../activemq/openwire/v9/KeepAliveInfoTest.java | 54 +++++++++++-
.../openwire/v9/LastPartialCommandTest.java | 54 +++++++++++-
.../openwire/v9/LocalTransactionIdTest.java | 56 ++++++++++++-
.../activemq/openwire/v9/MessageAckTest.java | 62 +++++++++++++-
.../v9/MessageDispatchNotificationTest.java | 58 ++++++++++++-
.../openwire/v9/MessageDispatchTest.java | 58 ++++++++++++-
.../activemq/openwire/v9/MessageIdTest.java | 57 ++++++++++++-
.../activemq/openwire/v9/MessagePullTest.java | 59 ++++++++++++-
.../openwire/v9/MessageTestSupport.java | 87 +++++++++++++++++++-
.../openwire/v9/NetworkBridgeFilterTest.java | 56 ++++++++++++-
.../openwire/v9/PartialCommandTest.java | 56 ++++++++++++-
.../activemq/openwire/v9/ProducerAckTest.java | 56 ++++++++++++-
.../activemq/openwire/v9/ProducerIdTest.java | 57 ++++++++++++-
.../activemq/openwire/v9/ProducerInfoTest.java | 65 ++++++++++++++-
.../activemq/openwire/v9/RemoveInfoTest.java | 56 ++++++++++++-
.../openwire/v9/RemoveSubscriptionInfoTest.java | 57 ++++++++++++-
.../activemq/openwire/v9/ReplayCommandTest.java | 56 ++++++++++++-
.../activemq/openwire/v9/ResponseTest.java | 55 ++++++++++++-
.../activemq/openwire/v9/SessionIdTest.java | 56 ++++++++++++-
.../activemq/openwire/v9/SessionInfoTest.java | 55 ++++++++++++-
.../activemq/openwire/v9/ShutdownInfoTest.java | 54 +++++++++++-
.../openwire/v9/SubscriptionInfoTest.java | 59 ++++++++++++-
.../openwire/v9/TransactionIdTestSupport.java | 45 +++++++++-
.../openwire/v9/TransactionInfoTest.java | 57 ++++++++++++-
.../openwire/v9/XATransactionIdTest.java | 57 ++++++++++++-
138 files changed, 7960 insertions(+), 138 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/BrokerIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/BrokerIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/BrokerIdTest.java
index 5dc13a9..b79e26f 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/BrokerIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/BrokerIdTest.java
@@ -1 +1,54 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for BrokerId
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class BrokerIdTest extends DataFileGeneratorTestSupport {
public static BrokerIdTest SINGLETON = new BrokerIdTest();
@Override
public Object createObject() throws Exception {
BrokerId info = new BrokerId();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
BrokerId info = (BrokerId) object;
info.setValue("Value:1");
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for BrokerId
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class BrokerIdTest extends DataFileGeneratorTestSupport {
+
+ public static BrokerIdTest SINGLETON = new BrokerIdTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ BrokerId info = new BrokerId();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ BrokerId info = (BrokerId) object;
+
+ info.setValue("Value:1");
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/BrokerInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/BrokerInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/BrokerInfoTest.java
index fe5a609..eab321a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/BrokerInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/BrokerInfoTest.java
@@ -1 +1,71 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for BrokerInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class BrokerInfoTest extends BaseCommandTestSupport {
public static BrokerInfoTest SINGLETON = new BrokerInfoTest();
@Override
public Object createObject() throws Exception {
BrokerInfo info = new BrokerInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
BrokerInfo info = (BrokerInfo) object;
info.setBrokerId(createBrokerId("BrokerId:1"));
info.setBrokerURL("BrokerURL:2");
{
BrokerInfo value[] = new BrokerInfo[0];
for (int i = 0; i < 0; i++) {
value[i] = createBrokerInfo("
PeerBrokerInfos:3");
}
info.setPeerBrokerInfos(value);
}
info.setBrokerName("BrokerName:4");
info.setSlaveBroker(true);
info.setMasterBroker(false);
info.setFaultTolerantConfiguration(true);
info.setDuplexConnection(false);
info.setNetworkConnection(true);
info.setConnectionId(1);
info.setBrokerUploadUrl("BrokerUploadUrl:5");
info.setNetworkProperties("NetworkProperties:6");
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for BrokerInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class BrokerInfoTest extends BaseCommandTestSupport {
+
+ public static BrokerInfoTest SINGLETON = new BrokerInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ BrokerInfo info = new BrokerInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ BrokerInfo info = (BrokerInfo) object;
+
+ info.setBrokerId(createBrokerId("BrokerId:1"));
+ info.setBrokerURL("BrokerURL:2");
+ {
+ BrokerInfo value[] = new BrokerInfo[0];
+ for (int i = 0; i < 0; i++) {
+ value[i] = createBrokerInfo("PeerBrokerInfos:3");
+ }
+ info.setPeerBrokerInfos(value);
+ }
+ info.setBrokerName("BrokerName:4");
+ info.setSlaveBroker(true);
+ info.setMasterBroker(false);
+ info.setFaultTolerantConfiguration(true);
+ info.setDuplexConnection(false);
+ info.setNetworkConnection(true);
+ info.setConnectionId(1);
+ info.setBrokerUploadUrl("BrokerUploadUrl:5");
+ info.setNetworkProperties("NetworkProperties:6");
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionControlTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionControlTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionControlTest.java
index 8490f85..71ba800 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionControlTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionControlTest.java
@@ -1 +1,61 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ConnectionControl
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ConnectionControlTest extends BaseCommandTestSupport {
public static ConnectionControlTest SINGLETON = new ConnectionControlTest();
@Override
public Object createObject() throws Exception {
ConnectionControl info = new ConnectionControl();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ConnectionControl info = (ConnectionControl) object;
info.setClose(true);
info.setExit(false);
info.setFaultTolerant(true);
info.setResume(false);
info.setSuspend(true);
info.setConnectedBroke
rs("ConnectedBrokers:1");
info.setReconnectTo("ReconnectTo:2");
info.setRebalanceConnection(false);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ConnectionControl
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ConnectionControlTest extends BaseCommandTestSupport {
+
+ public static ConnectionControlTest SINGLETON = new ConnectionControlTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ConnectionControl info = new ConnectionControl();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ConnectionControl info = (ConnectionControl) object;
+
+ info.setClose(true);
+ info.setExit(false);
+ info.setFaultTolerant(true);
+ info.setResume(false);
+ info.setSuspend(true);
+ info.setConnectedBrokers("ConnectedBrokers:1");
+ info.setReconnectTo("ReconnectTo:2");
+ info.setRebalanceConnection(false);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionErrorTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionErrorTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionErrorTest.java
index 96a9912..aae568a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionErrorTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionErrorTest.java
@@ -1 +1,55 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ConnectionError
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ConnectionErrorTest extends BaseCommandTestSupport {
public static ConnectionErrorTest SINGLETON = new ConnectionErrorTest();
@Override
public Object createObject() throws Exception {
ConnectionError info = new ConnectionError();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ConnectionError info = (ConnectionError) object;
info.setException(createThrowable("Exception:1"));
info.setConnectionId(createConnectionId("ConnectionId:2"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ConnectionError
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ConnectionErrorTest extends BaseCommandTestSupport {
+
+ public static ConnectionErrorTest SINGLETON = new ConnectionErrorTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ConnectionError info = new ConnectionError();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ConnectionError info = (ConnectionError) object;
+
+ info.setException(createThrowable("Exception:1"));
+ info.setConnectionId(createConnectionId("ConnectionId:2"));
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionIdTest.java
index 50a4149..9aee498 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionIdTest.java
@@ -1 +1,54 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ConnectionId
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ConnectionIdTest extends DataFileGeneratorTestSupport {
public static ConnectionIdTest SINGLETON = new ConnectionIdTest();
@Override
public Object createObject() throws Exception {
ConnectionId info = new ConnectionId();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ConnectionId info = (ConnectionId) object;
info.setValue("Value:1");
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ConnectionId
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ConnectionIdTest extends DataFileGeneratorTestSupport {
+
+ public static ConnectionIdTest SINGLETON = new ConnectionIdTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ConnectionId info = new ConnectionId();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ConnectionId info = (ConnectionId) object;
+
+ info.setValue("Value:1");
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionInfoTest.java
index f404702..9711735 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionInfoTest.java
@@ -1 +1,69 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ConnectionInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ConnectionInfoTest extends BaseCommandTestSupport {
public static ConnectionInfoTest SINGLETON = new ConnectionInfoTest();
@Override
public Object createObject() throws Exception {
ConnectionInfo info = new ConnectionInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ConnectionInfo info = (ConnectionInfo) object;
info.setConnectionId(createConnectionId("ConnectionId:1"));
info.setClientId("ClientId:2");
info.setPassword("Password:3");
info.setUserName("UserName:4");
{
Br
okerId value[] = new BrokerId[2];
for (int i = 0; i < 2; i++) {
value[i] = createBrokerId("BrokerPath:5");
}
info.setBrokerPath(value);
}
info.setBrokerMasterConnector(true);
info.setManageable(false);
info.setClientMaster(true);
info.setFaultTolerant(false);
info.setFailoverReconnect(true);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ConnectionInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ConnectionInfoTest extends BaseCommandTestSupport {
+
+ public static ConnectionInfoTest SINGLETON = new ConnectionInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ConnectionInfo info = new ConnectionInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ConnectionInfo info = (ConnectionInfo) object;
+
+ info.setConnectionId(createConnectionId("ConnectionId:1"));
+ info.setClientId("ClientId:2");
+ info.setPassword("Password:3");
+ info.setUserName("UserName:4");
+ {
+ BrokerId value[] = new BrokerId[2];
+ for (int i = 0; i < 2; i++) {
+ value[i] = createBrokerId("BrokerPath:5");
+ }
+ info.setBrokerPath(value);
+ }
+ info.setBrokerMasterConnector(true);
+ info.setManageable(false);
+ info.setClientMaster(true);
+ info.setFaultTolerant(false);
+ info.setFailoverReconnect(true);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerControlTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerControlTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerControlTest.java
index aee6d34..b1288d6 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerControlTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerControlTest.java
@@ -1 +1,60 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ConsumerControl
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ConsumerControlTest extends BaseCommandTestSupport {
public static ConsumerControlTest SINGLETON = new ConsumerControlTest();
@Override
public Object createObject() throws Exception {
ConsumerControl info = new ConsumerControl();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ConsumerControl info = (ConsumerControl) object;
info.setDestination(createActiveMQDestination("Destination:1"));
info.setClose(true);
info.setConsumerId(createConsumerId("ConsumerId:2"));
info.setPrefetch(1);
info.setFlush(false);
info.setStart(true);
info.setStop(false);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ConsumerControl
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ConsumerControlTest extends BaseCommandTestSupport {
+
+ public static ConsumerControlTest SINGLETON = new ConsumerControlTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ConsumerControl info = new ConsumerControl();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ConsumerControl info = (ConsumerControl) object;
+
+ info.setDestination(createActiveMQDestination("Destination:1"));
+ info.setClose(true);
+ info.setConsumerId(createConsumerId("ConsumerId:2"));
+ info.setPrefetch(1);
+ info.setFlush(false);
+ info.setStart(true);
+ info.setStop(false);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerIdTest.java
index 339ebc6..fb558c2 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerIdTest.java
@@ -1 +1,56 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ConsumerId
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ConsumerIdTest extends DataFileGeneratorTestSupport {
public static ConsumerIdTest SINGLETON = new ConsumerIdTest();
@Override
public Object createObject() throws Exception {
ConsumerId info = new ConsumerId();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ConsumerId info = (ConsumerId) object;
info.setConnectionId("ConnectionId:1");
info.setSessionId(1);
info.setValue(2);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ConsumerId
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ConsumerIdTest extends DataFileGeneratorTestSupport {
+
+ public static ConsumerIdTest SINGLETON = new ConsumerIdTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ConsumerId info = new ConsumerId();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ConsumerId info = (ConsumerId) object;
+
+ info.setConnectionId("ConnectionId:1");
+ info.setSessionId(1);
+ info.setValue(2);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerInfoTest.java
index 5c25f11..148b468 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerInfoTest.java
@@ -1 +1,83 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ConsumerInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ConsumerInfoTest extends BaseCommandTestSupport {
public static ConsumerInfoTest SINGLETON = new ConsumerInfoTest();
@Override
public Object createObject() throws Exception {
ConsumerInfo info = new ConsumerInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ConsumerInfo info = (ConsumerInfo) object;
info.setConsumerId(createConsumerId("ConsumerId:1"));
info.setBrowser(true);
info.setDestination(createActiveMQDestination("Destination:2"));
info.setPrefetchSize(1);
info.setMaximumPen
dingMessageLimit(2);
info.setDispatchAsync(false);
info.setSelector("Selector:3");
info.setSubscriptionName("SubscriptionName:4");
info.setNoLocal(true);
info.setExclusive(false);
info.setRetroactive(true);
info.setPriority((byte) 1);
{
BrokerId value[] = new BrokerId[2];
for (int i = 0; i < 2; i++) {
value[i] = createBrokerId("BrokerPath:5");
}
info.setBrokerPath(value);
}
info.setAdditionalPredicate(createBooleanExpression("AdditionalPredicate:6"));
info.setNetworkSubscription(false);
info.setOptimizedAcknowledge(true);
info.setNoRangeAcks(false);
{
ConsumerId value[] = new ConsumerId[2];
for (int i = 0; i < 2; i++) {
value[i] = createConsumerId("NetworkConsumerPath:7");
}
info.setNetworkConsumerPath(value);
}
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ConsumerInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ConsumerInfoTest extends BaseCommandTestSupport {
+
+ public static ConsumerInfoTest SINGLETON = new ConsumerInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ConsumerInfo info = new ConsumerInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ConsumerInfo info = (ConsumerInfo) object;
+
+ info.setConsumerId(createConsumerId("ConsumerId:1"));
+ info.setBrowser(true);
+ info.setDestination(createActiveMQDestination("Destination:2"));
+ info.setPrefetchSize(1);
+ info.setMaximumPendingMessageLimit(2);
+ info.setDispatchAsync(false);
+ info.setSelector("Selector:3");
+ info.setSubscriptionName("SubscriptionName:4");
+ info.setNoLocal(true);
+ info.setExclusive(false);
+ info.setRetroactive(true);
+ info.setPriority((byte) 1);
+ {
+ BrokerId value[] = new BrokerId[2];
+ for (int i = 0; i < 2; i++) {
+ value[i] = createBrokerId("BrokerPath:5");
+ }
+ info.setBrokerPath(value);
+ }
+ info.setAdditionalPredicate(createBooleanExpression("AdditionalPredicate:6"));
+ info.setNetworkSubscription(false);
+ info.setOptimizedAcknowledge(true);
+ info.setNoRangeAcks(false);
+ {
+ ConsumerId value[] = new ConsumerId[2];
+ for (int i = 0; i < 2; i++) {
+ value[i] = createConsumerId("NetworkConsumerPath:7");
+ }
+ info.setNetworkConsumerPath(value);
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ControlCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ControlCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ControlCommandTest.java
index cad5746..5cf6a10 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ControlCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ControlCommandTest.java
@@ -1 +1,54 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ControlCommand
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ControlCommandTest extends BaseCommandTestSupport {
public static ControlCommandTest SINGLETON = new ControlCommandTest();
@Override
public Object createObject() throws Exception {
ControlCommand info = new ControlCommand();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ControlCommand info = (ControlCommand) object;
info.setCommand("Command:1");
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ControlCommand
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ControlCommandTest extends BaseCommandTestSupport {
+
+ public static ControlCommandTest SINGLETON = new ControlCommandTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ControlCommand info = new ControlCommand();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ControlCommand info = (ControlCommand) object;
+
+ info.setCommand("Command:1");
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DataArrayResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DataArrayResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DataArrayResponseTest.java
index 16344e3..ada16a6 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DataArrayResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DataArrayResponseTest.java
@@ -1 +1,60 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for DataArrayResponse
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class DataArrayResponseTest extends ResponseTest {
public static DataArrayResponseTest SINGLETON = new DataArrayResponseTest();
@Override
public Object createObject() throws Exception {
DataArrayResponse info = new DataArrayResponse();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
DataArrayResponse info = (DataArrayResponse) object;
{
DataStructure value[] = new DataStructure[2];
for (int i = 0; i < 2; i++) {
value[i] = createDataStructure("Data:1");
}
info.setD
ata(value);
}
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for DataArrayResponse
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class DataArrayResponseTest extends ResponseTest {
+
+ public static DataArrayResponseTest SINGLETON = new DataArrayResponseTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ DataArrayResponse info = new DataArrayResponse();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ DataArrayResponse info = (DataArrayResponse) object;
+
+ {
+ DataStructure value[] = new DataStructure[2];
+ for (int i = 0; i < 2; i++) {
+ value[i] = createDataStructure("Data:1");
+ }
+ info.setData(value);
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DataResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DataResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DataResponseTest.java
index f885a15..dab6a0f 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DataResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DataResponseTest.java
@@ -1 +1,54 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for DataResponse
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class DataResponseTest extends ResponseTest {
public static DataResponseTest SINGLETON = new DataResponseTest();
@Override
public Object createObject() throws Exception {
DataResponse info = new DataResponse();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
DataResponse info = (DataResponse) object;
info.setData(createDataStructure("Data:1"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for DataResponse
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class DataResponseTest extends ResponseTest {
+
+ public static DataResponseTest SINGLETON = new DataResponseTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ DataResponse info = new DataResponse();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ DataResponse info = (DataResponse) object;
+
+ info.setData(createDataStructure("Data:1"));
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DestinationInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DestinationInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DestinationInfoTest.java
index ee9ae00..d0a7200 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DestinationInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DestinationInfoTest.java
@@ -1 +1,64 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for DestinationInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class DestinationInfoTest extends BaseCommandTestSupport {
public static DestinationInfoTest SINGLETON = new DestinationInfoTest();
@Override
public Object createObject() throws Exception {
DestinationInfo info = new DestinationInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
DestinationInfo info = (DestinationInfo) object;
info.setConnectionId(createConnectionId("ConnectionId:1"));
info.setDestination(createActiveMQDestination("Destination:2"));
info.setOperationType((byte) 1);
info.setT
imeout(1);
{
BrokerId value[] = new BrokerId[2];
for (int i = 0; i < 2; i++) {
value[i] = createBrokerId("BrokerPath:3");
}
info.setBrokerPath(value);
}
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for DestinationInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class DestinationInfoTest extends BaseCommandTestSupport {
+
+ public static DestinationInfoTest SINGLETON = new DestinationInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ DestinationInfo info = new DestinationInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ DestinationInfo info = (DestinationInfo) object;
+
+ info.setConnectionId(createConnectionId("ConnectionId:1"));
+ info.setDestination(createActiveMQDestination("Destination:2"));
+ info.setOperationType((byte) 1);
+ info.setTimeout(1);
+ {
+ BrokerId value[] = new BrokerId[2];
+ for (int i = 0; i < 2; i++) {
+ value[i] = createBrokerId("BrokerPath:3");
+ }
+ info.setBrokerPath(value);
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DiscoveryEventTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DiscoveryEventTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DiscoveryEventTest.java
index 395d29d..3ea2c15 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DiscoveryEventTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DiscoveryEventTest.java
@@ -1 +1,55 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for DiscoveryEvent
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class DiscoveryEventTest extends DataFileGeneratorTestSupport {
public static DiscoveryEventTest SINGLETON = new DiscoveryEventTest();
@Override
public Object createObject() throws Exception {
DiscoveryEvent info = new DiscoveryEvent();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
DiscoveryEvent info = (DiscoveryEvent) object;
info.setServiceName("ServiceName:1");
info.setBrokerName("BrokerName:2");
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for DiscoveryEvent
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class DiscoveryEventTest extends DataFileGeneratorTestSupport {
+
+ public static DiscoveryEventTest SINGLETON = new DiscoveryEventTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ DiscoveryEvent info = new DiscoveryEvent();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ DiscoveryEvent info = (DiscoveryEvent) object;
+
+ info.setServiceName("ServiceName:1");
+ info.setBrokerName("BrokerName:2");
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ExceptionResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ExceptionResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ExceptionResponseTest.java
index 321a5b4..c4860ea 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ExceptionResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ExceptionResponseTest.java
@@ -1 +1,54 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ExceptionResponse
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ExceptionResponseTest extends ResponseTest {
public static ExceptionResponseTest SINGLETON = new ExceptionResponseTest();
@Override
public Object createObject() throws Exception {
ExceptionResponse info = new ExceptionResponse();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ExceptionResponse info = (ExceptionResponse) object;
info.setException(createThrowable("Exception:1"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ExceptionResponse
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ExceptionResponseTest extends ResponseTest {
+
+ public static ExceptionResponseTest SINGLETON = new ExceptionResponseTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ExceptionResponse info = new ExceptionResponse();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ExceptionResponse info = (ExceptionResponse) object;
+
+ info.setException(createThrowable("Exception:1"));
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/FlushCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/FlushCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/FlushCommandTest.java
index 3460cba..8509e61 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/FlushCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/FlushCommandTest.java
@@ -1 +1,53 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for FlushCommand
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class FlushCommandTest extends BaseCommandTestSupport {
public static FlushCommandTest SINGLETON = new FlushCommandTest();
@Override
public Object createObject() throws Exception {
FlushCommand info = new FlushCommand();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
FlushCommand info = (FlushCommand) object;
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for FlushCommand
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class FlushCommandTest extends BaseCommandTestSupport {
+
+ public static FlushCommandTest SINGLETON = new FlushCommandTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ FlushCommand info = new FlushCommand();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ FlushCommand info = (FlushCommand) object;
+
+ }
+}
[17/32] activemq-artemis git commit: Remove redundant type arguments
Posted by cl...@apache.org.
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/HttpKeepAliveRunnable.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/HttpKeepAliveRunnable.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/HttpKeepAliveRunnable.java
index 651e395..419ece4 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/HttpKeepAliveRunnable.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/HttpKeepAliveRunnable.java
@@ -25,7 +25,7 @@ import java.util.concurrent.Future;
*/
public class HttpKeepAliveRunnable implements Runnable {
- private final List<HttpAcceptorHandler> handlers = new ArrayList<HttpAcceptorHandler>();
+ private final List<HttpAcceptorHandler> handlers = new ArrayList<>();
private boolean closed = false;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyAcceptor.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyAcceptor.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyAcceptor.java
index 94cd7aa..ef56322 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyAcceptor.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyAcceptor.java
@@ -147,7 +147,7 @@ public class NettyAcceptor implements Acceptor {
private final int nioRemotingThreads;
- private final ConcurrentMap<Object, NettyServerConnection> connections = new ConcurrentHashMap<Object, NettyServerConnection>();
+ private final ConcurrentMap<Object, NettyServerConnection> connections = new ConcurrentHashMap<>();
private final Map<String, Object> configuration;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/server/impl/RemotingServiceImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/server/impl/RemotingServiceImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/server/impl/RemotingServiceImpl.java
index 30f6ac4..f56fb46 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/server/impl/RemotingServiceImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/server/impl/RemotingServiceImpl.java
@@ -87,9 +87,9 @@ public class RemotingServiceImpl implements RemotingService, ConnectionLifeCycle
private final List<BaseInterceptor> outgoingInterceptors = new CopyOnWriteArrayList<>();
- private final Map<String, Acceptor> acceptors = new HashMap<String, Acceptor>();
+ private final Map<String, Acceptor> acceptors = new HashMap<>();
- private final Map<Object, ConnectionEntry> connections = new ConcurrentHashMap<Object, ConnectionEntry>();
+ private final Map<Object, ConnectionEntry> connections = new ConcurrentHashMap<>();
private final ReusableLatch connectionCountLatch = new ReusableLatch(0);
@@ -318,7 +318,7 @@ public class RemotingServiceImpl implements RemotingService, ConnectionLifeCycle
if (!started)
return;
failureCheckAndFlushThread.close(false);
- HashMap<Object, ConnectionEntry> connectionEntries = new HashMap<Object, ConnectionEntry>(connections);
+ HashMap<Object, ConnectionEntry> connectionEntries = new HashMap<>(connections);
// Now we ensure that no connections will process any more packets after this method is
// complete then send a disconnect packet
@@ -366,7 +366,7 @@ public class RemotingServiceImpl implements RemotingService, ConnectionLifeCycle
ActiveMQServerLogger.LOGGER.debug("Sending disconnect on live connections");
}
- HashSet<ConnectionEntry> connectionEntries = new HashSet<ConnectionEntry>(connections.values());
+ HashSet<ConnectionEntry> connectionEntries = new HashSet<>(connections.values());
// Now we ensure that no connections will process any more packets after this method is complete
// then send a disconnect packet
@@ -452,7 +452,7 @@ public class RemotingServiceImpl implements RemotingService, ConnectionLifeCycle
@Override
public synchronized Set<RemotingConnection> getConnections() {
- Set<RemotingConnection> conns = new HashSet<RemotingConnection>(connections.size());
+ Set<RemotingConnection> conns = new HashSet<>(connections.size());
for (ConnectionEntry entry : connections.values()) {
conns.add(entry.connection);
@@ -661,7 +661,7 @@ public class RemotingServiceImpl implements RemotingService, ConnectionLifeCycle
try {
long now = System.currentTimeMillis();
- Set<Object> idsToRemove = new HashSet<Object>();
+ Set<Object> idsToRemove = new HashSet<>();
for (ConnectionEntry entry : connections.values()) {
final RemotingConnection conn = entry.connection;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/replication/ReplicationEndpoint.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/replication/ReplicationEndpoint.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/replication/ReplicationEndpoint.java
index 2caaa8d..63e3935 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/replication/ReplicationEndpoint.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/replication/ReplicationEndpoint.java
@@ -102,20 +102,20 @@ public final class ReplicationEndpoint implements ChannelHandler, ActiveMQCompon
/**
* Files reserved in each journal for synchronization of existing data from the 'live' server.
*/
- private final Map<JournalContent, Map<Long, JournalSyncFile>> filesReservedForSync = new HashMap<JournalContent, Map<Long, JournalSyncFile>>();
+ private final Map<JournalContent, Map<Long, JournalSyncFile>> filesReservedForSync = new HashMap<>();
/**
* Used to hold the real Journals before the backup is synchronized. This field should be
* {@code null} on an up-to-date server.
*/
- private Map<JournalContent, Journal> journalsHolder = new HashMap<JournalContent, Journal>();
+ private Map<JournalContent, Journal> journalsHolder = new HashMap<>();
private StorageManager storageManager;
private PagingManager pageManager;
- private final ConcurrentMap<SimpleString, ConcurrentMap<Integer, Page>> pageIndex = new ConcurrentHashMap<SimpleString, ConcurrentMap<Integer, Page>>();
- private final ConcurrentMap<Long, ReplicatedLargeMessage> largeMessages = new ConcurrentHashMap<Long, ReplicatedLargeMessage>();
+ private final ConcurrentMap<SimpleString, ConcurrentMap<Integer, Page>> pageIndex = new ConcurrentHashMap<>();
+ private final ConcurrentMap<Long, ReplicatedLargeMessage> largeMessages = new ConcurrentHashMap<>();
// Used on tests, to simulate failures on delete pages
private boolean deletePages = true;
@@ -715,7 +715,7 @@ public final class ReplicationEndpoint implements ChannelHandler, ActiveMQCompon
ConcurrentMap<Integer, Page> resultIndex = pageIndex.get(storeName);
if (resultIndex == null) {
- resultIndex = new ConcurrentHashMap<Integer, Page>();
+ resultIndex = new ConcurrentHashMap<>();
ConcurrentMap<Integer, Page> mapResult = pageIndex.putIfAbsent(storeName, resultIndex);
if (mapResult != null) {
resultIndex = mapResult;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/replication/ReplicationManager.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/replication/ReplicationManager.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/replication/ReplicationManager.java
index 4759cfa..255415b 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/replication/ReplicationManager.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/replication/ReplicationManager.java
@@ -109,7 +109,7 @@ public final class ReplicationManager implements ActiveMQComponent {
private final Object replicationLock = new Object();
- private final Queue<OperationContext> pendingTokens = new ConcurrentLinkedQueue<OperationContext>();
+ private final Queue<OperationContext> pendingTokens = new ConcurrentLinkedQueue<>();
private final ExecutorFactory executorFactory;
@@ -302,7 +302,7 @@ public final class ReplicationManager implements ActiveMQComponent {
*/
public Set<OperationContext> getActiveTokens() {
- LinkedHashSet<OperationContext> activeContexts = new LinkedHashSet<OperationContext>();
+ LinkedHashSet<OperationContext> activeContexts = new LinkedHashSet<>();
// The same context will be replicated on the pending tokens...
// as the multiple operations will be replicated on the same context
@@ -577,7 +577,7 @@ public final class ReplicationManager implements ActiveMQComponent {
*/
public void sendLargeMessageIdListMessage(Map<Long, Pair<String, Long>> largeMessages) {
ArrayList<Long> idsToSend;
- idsToSend = new ArrayList<Long>(largeMessages.keySet());
+ idsToSend = new ArrayList<>(largeMessages.keySet());
if (enabled)
sendReplicatePacket(new ReplicationStartSyncMessage(idsToSend));
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/security/impl/SecurityStoreImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/security/impl/SecurityStoreImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/security/impl/SecurityStoreImpl.java
index 514ec8d..2807b47 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/security/impl/SecurityStoreImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/security/impl/SecurityStoreImpl.java
@@ -55,7 +55,7 @@ public class SecurityStoreImpl implements SecurityStore, HierarchicalRepositoryC
private final ActiveMQSecurityManager securityManager;
- private final ConcurrentMap<String, ConcurrentHashSet<SimpleString>> cache = new ConcurrentHashMap<String, ConcurrentHashSet<SimpleString>>();
+ private final ConcurrentMap<String, ConcurrentHashSet<SimpleString>> cache = new ConcurrentHashMap<>();
private final long invalidationInterval;
@@ -196,7 +196,7 @@ public class SecurityStoreImpl implements SecurityStore, HierarchicalRepositoryC
throw ActiveMQMessageBundle.BUNDLE.userNoPermissions(session.getUsername(), checkType, saddress);
}
// if we get here we're granted, add to the cache
- ConcurrentHashSet<SimpleString> set = new ConcurrentHashSet<SimpleString>();
+ ConcurrentHashSet<SimpleString> set = new ConcurrentHashSet<>();
ConcurrentHashSet<SimpleString> act = cache.putIfAbsent(user + "." + checkType.name(), set);
if (act != null) {
set = act;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/ClusterManager.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/ClusterManager.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/ClusterManager.java
index 1a6271d..9bb449a 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/ClusterManager.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/ClusterManager.java
@@ -135,9 +135,9 @@ public final class ClusterManager implements ActiveMQComponent {
private volatile State state = State.STOPPED;
// the cluster connections which links this node to other cluster nodes
- private final Map<String, ClusterConnection> clusterConnections = new HashMap<String, ClusterConnection>();
+ private final Map<String, ClusterConnection> clusterConnections = new HashMap<>();
- private final Set<ServerLocatorInternal> clusterLocators = new ConcurrentHashSet<ServerLocatorInternal>();
+ private final Set<ServerLocatorInternal> clusterLocators = new ConcurrentHashSet<>();
private final Executor executor;
@@ -359,15 +359,15 @@ public final class ClusterManager implements ActiveMQComponent {
}
public Map<String, Bridge> getBridges() {
- return new HashMap<String, Bridge>(bridges);
+ return new HashMap<>(bridges);
}
public Set<ClusterConnection> getClusterConnections() {
- return new HashSet<ClusterConnection>(clusterConnections.values());
+ return new HashSet<>(clusterConnections.values());
}
public Set<BroadcastGroup> getBroadcastGroups() {
- return new HashSet<BroadcastGroup>(broadcastGroups.values());
+ return new HashSet<>(broadcastGroups.values());
}
public ClusterConnection getClusterConnection(final String name) {
@@ -682,7 +682,7 @@ public final class ClusterManager implements ActiveMQComponent {
}
private synchronized Collection<ClusterConnection> cloneClusterConnections() {
- ArrayList<ClusterConnection> list = new ArrayList<ClusterConnection>(clusterConnections.values());
+ ArrayList<ClusterConnection> list = new ArrayList<>(clusterConnections.values());
return list;
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/BridgeImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/BridgeImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/BridgeImpl.java
index 2ddcaeb..ac75a1c 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/BridgeImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/BridgeImpl.java
@@ -98,7 +98,7 @@ public class BridgeImpl implements Bridge, SessionFailureListener, SendAcknowled
private final SimpleString forwardingAddress;
- private final java.util.Queue<MessageReference> refs = new ConcurrentLinkedQueue<MessageReference>();
+ private final java.util.Queue<MessageReference> refs = new ConcurrentLinkedQueue<>();
private final Transformer transformer;
@@ -228,7 +228,7 @@ public class BridgeImpl implements Bridge, SessionFailureListener, SendAcknowled
@Override
public List<MessageReference> getDeliveringMessages() {
synchronized (this) {
- return new ArrayList<MessageReference>(refs);
+ return new ArrayList<>(refs);
}
}
@@ -270,7 +270,7 @@ public class BridgeImpl implements Bridge, SessionFailureListener, SendAcknowled
private void cancelRefs() {
MessageReference ref;
- LinkedList<MessageReference> list = new LinkedList<MessageReference>();
+ LinkedList<MessageReference> list = new LinkedList<>();
while ((ref = refs.poll()) != null) {
if (isTrace) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/BroadcastGroupImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/BroadcastGroupImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/BroadcastGroupImpl.java
index 7a5dbc4..277b925 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/BroadcastGroupImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/BroadcastGroupImpl.java
@@ -50,7 +50,7 @@ public class BroadcastGroupImpl implements BroadcastGroup, Runnable {
private final String name;
- private final List<TransportConfiguration> connectors = new ArrayList<TransportConfiguration>();
+ private final List<TransportConfiguration> connectors = new ArrayList<>();
private boolean started;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/ClusterConnectionBridge.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/ClusterConnectionBridge.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/ClusterConnectionBridge.java
index 3963b02..7bcc6b2 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/ClusterConnectionBridge.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/ClusterConnectionBridge.java
@@ -156,7 +156,7 @@ public class ClusterConnectionBridge extends BridgeImpl {
// TODO - we can optimise this
- Set<SimpleString> propNames = new HashSet<SimpleString>(messageCopy.getPropertyNames());
+ Set<SimpleString> propNames = new HashSet<>(messageCopy.getPropertyNames());
byte[] queueIds = message.getBytesProperty(idsHeaderName);
@@ -289,8 +289,8 @@ public class ClusterConnectionBridge extends BridgeImpl {
}
public static String buildSelectorFromArray(String[] list) {
- List<String> includes = new ArrayList<String>();
- List<String> excludes = new ArrayList<String>();
+ List<String> includes = new ArrayList<>();
+ List<String> excludes = new ArrayList<>();
// Split the list into addresses to match and addresses to exclude.
for (int i = 0; i < list.length; i++) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/ClusterConnectionImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/ClusterConnectionImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/ClusterConnectionImpl.java
index 12ca5e3..9624ab9 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/ClusterConnectionImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/ClusterConnectionImpl.java
@@ -123,9 +123,9 @@ public final class ClusterConnectionImpl implements ClusterConnection, AfterConn
* however we need the guard to synchronize multiple step operations during topology updates.
*/
private final Object recordsGuard = new Object();
- private final Map<String, MessageFlowRecord> records = new ConcurrentHashMap<String, MessageFlowRecord>();
+ private final Map<String, MessageFlowRecord> records = new ConcurrentHashMap<>();
- private final Map<String, MessageFlowRecord> disconnectedRecords = new ConcurrentHashMap<String, MessageFlowRecord>();
+ private final Map<String, MessageFlowRecord> disconnectedRecords = new ConcurrentHashMap<>();
private final ScheduledExecutorService scheduledExecutor;
@@ -147,7 +147,7 @@ public final class ClusterConnectionImpl implements ClusterConnection, AfterConn
private final boolean allowDirectConnectionsOnly;
- private final Set<TransportConfiguration> allowableConnections = new HashSet<TransportConfiguration>();
+ private final Set<TransportConfiguration> allowableConnections = new HashSet<>();
private final ClusterManager manager;
@@ -547,7 +547,7 @@ public final class ClusterConnectionImpl implements ClusterConnection, AfterConn
@Override
public Map<String, String> getNodes() {
synchronized (recordsGuard) {
- Map<String, String> nodes = new HashMap<String, String>();
+ Map<String, String> nodes = new HashMap<>();
for (Entry<String, MessageFlowRecord> entry : records.entrySet()) {
RemotingConnection fwdConnection = entry.getValue().getBridge().getForwardingConnection();
if (fwdConnection != null) {
@@ -828,7 +828,7 @@ public final class ClusterConnectionImpl implements ClusterConnection, AfterConn
private final Queue queue;
- private final Map<SimpleString, RemoteQueueBinding> bindings = new HashMap<SimpleString, RemoteQueueBinding>();
+ private final Map<SimpleString, RemoteQueueBinding> bindings = new HashMap<>();
private volatile boolean isClosed = false;
@@ -1122,7 +1122,7 @@ public final class ClusterConnectionImpl implements ClusterConnection, AfterConn
private synchronized void clearBindings() throws Exception {
ActiveMQServerLogger.LOGGER.debug(ClusterConnectionImpl.this + " clearing bindings");
- for (RemoteQueueBinding binding : new HashSet<RemoteQueueBinding>(bindings.values())) {
+ for (RemoteQueueBinding binding : new HashSet<>(bindings.values())) {
removeBinding(binding.getClusterName());
}
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/RemoteQueueBindingImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/RemoteQueueBindingImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/RemoteQueueBindingImpl.java
index 883d36e..6ff0733 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/RemoteQueueBindingImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/RemoteQueueBindingImpl.java
@@ -49,9 +49,9 @@ public class RemoteQueueBindingImpl implements RemoteQueueBinding {
private final Filter queueFilter;
- private final Set<Filter> filters = new HashSet<Filter>();
+ private final Set<Filter> filters = new HashSet<>();
- private final Map<SimpleString, Integer> filterCounts = new HashMap<SimpleString, Integer>();
+ private final Map<SimpleString, Integer> filterCounts = new HashMap<>();
private int consumerCount;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/group/impl/LocalGroupingHandler.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/group/impl/LocalGroupingHandler.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/group/impl/LocalGroupingHandler.java
index 09a8fc3..eb43313 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/group/impl/LocalGroupingHandler.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/group/impl/LocalGroupingHandler.java
@@ -46,9 +46,9 @@ import org.apache.activemq.artemis.utils.TypedProperties;
*/
public final class LocalGroupingHandler extends GroupHandlingAbstract {
- private final ConcurrentMap<SimpleString, GroupBinding> map = new ConcurrentHashMap<SimpleString, GroupBinding>();
+ private final ConcurrentMap<SimpleString, GroupBinding> map = new ConcurrentHashMap<>();
- private final ConcurrentMap<SimpleString, List<GroupBinding>> groupMap = new ConcurrentHashMap<SimpleString, List<GroupBinding>>();
+ private final ConcurrentMap<SimpleString, List<GroupBinding>> groupMap = new ConcurrentHashMap<>();
private final SimpleString name;
@@ -65,7 +65,7 @@ public final class LocalGroupingHandler extends GroupHandlingAbstract {
* when the group is waiting for them.
* During a small window between the server is started and the wait wasn't called yet, this will contain bindings that were already added
*/
- private List<SimpleString> expectedBindings = new LinkedList<SimpleString>();
+ private List<SimpleString> expectedBindings = new LinkedList<>();
private final long groupTimeout;
@@ -136,7 +136,7 @@ public final class LocalGroupingHandler extends GroupHandlingAbstract {
addRecord = true;
groupBinding = new GroupBinding(proposal.getGroupId(), proposal.getClusterName());
groupBinding.setId(storageManager.generateID());
- List<GroupBinding> newList = new ArrayList<GroupBinding>();
+ List<GroupBinding> newList = new ArrayList<>();
List<GroupBinding> oldList = groupMap.putIfAbsent(groupBinding.getClusterName(), newList);
if (oldList != null) {
newList = oldList;
@@ -196,7 +196,7 @@ public final class LocalGroupingHandler extends GroupHandlingAbstract {
@Override
public void addGroupBinding(final GroupBinding groupBinding) {
map.put(groupBinding.getGroupId(), groupBinding);
- List<GroupBinding> newList = new ArrayList<GroupBinding>();
+ List<GroupBinding> newList = new ArrayList<>();
List<GroupBinding> oldList = groupMap.putIfAbsent(groupBinding.getClusterName(), newList);
if (oldList != null) {
newList = oldList;
@@ -248,10 +248,10 @@ public final class LocalGroupingHandler extends GroupHandlingAbstract {
List<SimpleString> bindingsAlreadyAdded;
if (expectedBindings == null) {
bindingsAlreadyAdded = Collections.emptyList();
- expectedBindings = new LinkedList<SimpleString>();
+ expectedBindings = new LinkedList<>();
}
else {
- bindingsAlreadyAdded = new ArrayList<SimpleString>(expectedBindings);
+ bindingsAlreadyAdded = new ArrayList<>(expectedBindings);
//clear the bindings
expectedBindings.clear();
}
@@ -331,7 +331,7 @@ public final class LocalGroupingHandler extends GroupHandlingAbstract {
if (expectedBindings == null) {
// just in case the component is restarted
- expectedBindings = new LinkedList<SimpleString>();
+ expectedBindings = new LinkedList<>();
}
if (reaperPeriod > 0 && groupTimeout > 0) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/group/impl/RemoteGroupingHandler.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/group/impl/RemoteGroupingHandler.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/group/impl/RemoteGroupingHandler.java
index 57763d5..06ddc95 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/group/impl/RemoteGroupingHandler.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/group/impl/RemoteGroupingHandler.java
@@ -48,7 +48,7 @@ public final class RemoteGroupingHandler extends GroupHandlingAbstract {
private final SimpleString name;
- private final Map<SimpleString, Response> responses = new ConcurrentHashMap<SimpleString, Response>();
+ private final Map<SimpleString, Response> responses = new ConcurrentHashMap<>();
private final Lock lock = new ReentrantLock();
@@ -58,7 +58,7 @@ public final class RemoteGroupingHandler extends GroupHandlingAbstract {
private final long groupTimeout;
- private final ConcurrentMap<SimpleString, List<SimpleString>> groupMap = new ConcurrentHashMap<SimpleString, List<SimpleString>>();
+ private final ConcurrentMap<SimpleString, List<SimpleString>> groupMap = new ConcurrentHashMap<>();
private final ConcurrentHashSet<Notification> pendingNotifications = new ConcurrentHashSet();
@@ -240,7 +240,7 @@ public final class RemoteGroupingHandler extends GroupHandlingAbstract {
try {
lock.lock();
responses.put(response.getGroupId(), response);
- List<SimpleString> newList = new ArrayList<SimpleString>();
+ List<SimpleString> newList = new ArrayList<>();
List<SimpleString> oldList = groupMap.putIfAbsent(response.getChosenClusterName(), newList);
if (oldList != null) {
newList = oldList;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerImpl.java
index 70d3bbd..8b3dae0 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerImpl.java
@@ -230,7 +230,7 @@ public class ActiveMQServerImpl implements ActiveMQServer {
*/
private QueueCreator jmsQueueCreator;
- private final Map<String, ServerSession> sessions = new ConcurrentHashMap<String, ServerSession>();
+ private final Map<String, ServerSession> sessions = new ConcurrentHashMap<>();
/**
* This class here has the same principle of CountDownLatch but you can reuse the counters.
@@ -238,7 +238,7 @@ public class ActiveMQServerImpl implements ActiveMQServer {
*/
private final ReusableLatch activationLatch = new ReusableLatch(0);
- private final Set<ActivateCallback> activateCallbacks = new ConcurrentHashSet<ActivateCallback>();
+ private final Set<ActivateCallback> activateCallbacks = new ConcurrentHashSet<>();
private volatile GroupingHandler groupingHandler;
@@ -329,11 +329,11 @@ public class ActiveMQServerImpl implements ActiveMQServer {
this.securityManager = securityManager;
- addressSettingsRepository = new HierarchicalObjectRepository<AddressSettings>();
+ addressSettingsRepository = new HierarchicalObjectRepository<>();
addressSettingsRepository.setDefault(new AddressSettings());
- securityRepository = new HierarchicalObjectRepository<Set<Role>>();
+ securityRepository = new HierarchicalObjectRepository<>();
securityRepository.setDefault(new HashSet<Role>());
@@ -1130,7 +1130,7 @@ public class ActiveMQServerImpl implements ActiveMQServer {
@Override
public synchronized List<ServerSession> getSessions(final String connectionID) {
Set<Entry<String, ServerSession>> sessionEntries = sessions.entrySet();
- List<ServerSession> matchingSessions = new ArrayList<ServerSession>();
+ List<ServerSession> matchingSessions = new ArrayList<>();
for (Entry<String, ServerSession> sessionEntry : sessionEntries) {
ServerSession serverSession = sessionEntry.getValue();
if (serverSession.getConnectionID().toString().equals(connectionID)) {
@@ -1142,7 +1142,7 @@ public class ActiveMQServerImpl implements ActiveMQServer {
@Override
public synchronized Set<ServerSession> getSessions() {
- return new HashSet<ServerSession>(sessions.values());
+ return new HashSet<>(sessions.values());
}
@Override
@@ -1773,11 +1773,11 @@ public class ActiveMQServerImpl implements ActiveMQServer {
journalLoader.handleGroupingBindings(groupingInfos);
- Map<SimpleString, List<Pair<byte[], Long>>> duplicateIDMap = new HashMap<SimpleString, List<Pair<byte[], Long>>>();
+ Map<SimpleString, List<Pair<byte[], Long>>> duplicateIDMap = new HashMap<>();
- HashSet<Pair<Long, Long>> pendingLargeMessages = new HashSet<Pair<Long, Long>>();
+ HashSet<Pair<Long, Long>> pendingLargeMessages = new HashSet<>();
- List<PageCountPending> pendingNonTXPageCounter = new LinkedList<PageCountPending>();
+ List<PageCountPending> pendingNonTXPageCounter = new LinkedList<>();
journalInfo[1] = storageManager.loadMessageJournal(postOffice, pagingManager, resourceManager, queueBindingInfosMap, duplicateIDMap, pendingLargeMessages, pendingNonTXPageCounter, journalLoader);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/AnyLiveNodeLocatorForReplication.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/AnyLiveNodeLocatorForReplication.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/AnyLiveNodeLocatorForReplication.java
index 6d2923a..859daaa 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/AnyLiveNodeLocatorForReplication.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/AnyLiveNodeLocatorForReplication.java
@@ -40,8 +40,8 @@ public class AnyLiveNodeLocatorForReplication extends LiveNodeLocator {
private final Lock lock = new ReentrantLock();
private final Condition condition = lock.newCondition();
private final ActiveMQServerImpl server;
- Map<String, Pair<TransportConfiguration, TransportConfiguration>> untriedConnectors = new HashMap<String, Pair<TransportConfiguration, TransportConfiguration>>();
- Map<String, Pair<TransportConfiguration, TransportConfiguration>> triedConnectors = new HashMap<String, Pair<TransportConfiguration, TransportConfiguration>>();
+ Map<String, Pair<TransportConfiguration, TransportConfiguration>> untriedConnectors = new HashMap<>();
+ Map<String, Pair<TransportConfiguration, TransportConfiguration>> triedConnectors = new HashMap<>();
private String nodeID;
@@ -83,7 +83,7 @@ public class AnyLiveNodeLocatorForReplication extends LiveNodeLocator {
public void nodeUP(TopologyMember topologyMember, boolean last) {
try {
lock.lock();
- Pair<TransportConfiguration, TransportConfiguration> connector = new Pair<TransportConfiguration, TransportConfiguration>(topologyMember.getLive(), topologyMember.getBackup());
+ Pair<TransportConfiguration, TransportConfiguration> connector = new Pair<>(topologyMember.getLive(), topologyMember.getBackup());
if (server.checkLiveIsNotColocated(topologyMember.getNodeId())) {
untriedConnectors.put(topologyMember.getNodeId(), connector);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ConnectorsService.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ConnectorsService.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ConnectorsService.java
index 789b9b6..912f721 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ConnectorsService.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ConnectorsService.java
@@ -52,7 +52,7 @@ public final class ConnectorsService implements ActiveMQComponent {
private final Configuration configuration;
- private final Set<ConnectorService> connectors = new HashSet<ConnectorService>();
+ private final Set<ConnectorService> connectors = new HashSet<>();
private final ServiceRegistry serviceRegistry;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/LastValueQueue.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/LastValueQueue.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/LastValueQueue.java
index c474a45..5420688 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/LastValueQueue.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/LastValueQueue.java
@@ -44,7 +44,7 @@ import org.apache.activemq.artemis.core.settings.impl.AddressSettings;
*/
public class LastValueQueue extends QueueImpl {
- private final Map<SimpleString, HolderReference> map = new ConcurrentHashMap<SimpleString, HolderReference>();
+ private final Map<SimpleString, HolderReference> map = new ConcurrentHashMap<>();
public LastValueQueue(final long persistenceID,
final SimpleString address,
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/LegacyLDAPSecuritySettingPlugin.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/LegacyLDAPSecuritySettingPlugin.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/LegacyLDAPSecuritySettingPlugin.java
index cc24dd5..21de3d7 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/LegacyLDAPSecuritySettingPlugin.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/LegacyLDAPSecuritySettingPlugin.java
@@ -202,7 +202,7 @@ public class LegacyLDAPSecuritySettingPlugin implements SecuritySettingPlugin {
return;
}
- Hashtable<String, String> env = new Hashtable<String, String>();
+ Hashtable<String, String> env = new Hashtable<>();
env.put(Context.INITIAL_CONTEXT_FACTORY, initialContextFactory);
if (connectionUsername != null && !"".equals(connectionUsername)) {
env.put(Context.SECURITY_PRINCIPAL, connectionUsername);
@@ -242,7 +242,7 @@ public class LegacyLDAPSecuritySettingPlugin implements SecuritySettingPlugin {
searchControls.setReturningAttributes(new String[]{roleAttribute});
searchControls.setSearchScope(SearchControls.SUBTREE_SCOPE);
- Map<String, Set<Role>> securityRoles = new HashMap<String, Set<Role>>();
+ Map<String, Set<Role>> securityRoles = new HashMap<>();
try {
NamingEnumeration<SearchResult> searchResults = context.search(destinationBase, filter, searchControls);
int i = 0;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/NamedLiveNodeLocatorForReplication.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/NamedLiveNodeLocatorForReplication.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/NamedLiveNodeLocatorForReplication.java
index 38bbc54..862e3a6 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/NamedLiveNodeLocatorForReplication.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/NamedLiveNodeLocatorForReplication.java
@@ -80,7 +80,7 @@ public class NamedLiveNodeLocatorForReplication extends LiveNodeLocator {
try {
lock.lock();
if (backupGroupName.equals(topologyMember.getBackupGroupName()) && topologyMember.getLive() != null) {
- liveConfiguration = new Pair<TransportConfiguration, TransportConfiguration>(topologyMember.getLive(), topologyMember.getBackup());
+ liveConfiguration = new Pair<>(topologyMember.getLive(), topologyMember.getBackup());
nodeID = topologyMember.getNodeId();
condition.signal();
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/NamedLiveNodeLocatorForScaleDown.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/NamedLiveNodeLocatorForScaleDown.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/NamedLiveNodeLocatorForScaleDown.java
index 6b6c25b..663148a 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/NamedLiveNodeLocatorForScaleDown.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/NamedLiveNodeLocatorForScaleDown.java
@@ -86,7 +86,7 @@ public class NamedLiveNodeLocatorForScaleDown extends LiveNodeLocator {
public void nodeUP(TopologyMember topologyMember, boolean last) {
try {
lock.lock();
- Pair<TransportConfiguration, TransportConfiguration> connector = new Pair<TransportConfiguration, TransportConfiguration>(topologyMember.getLive(), topologyMember.getBackup());
+ Pair<TransportConfiguration, TransportConfiguration> connector = new Pair<>(topologyMember.getLive(), topologyMember.getBackup());
if (topologyMember.getNodeId().equals(myNodeID)) {
if (ActiveMQServerLogger.LOGGER.isTraceEnabled()) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/PostOfficeJournalLoader.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/PostOfficeJournalLoader.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/PostOfficeJournalLoader.java
index cd6908e..e67142e 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/PostOfficeJournalLoader.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/PostOfficeJournalLoader.java
@@ -337,7 +337,7 @@ public class PostOfficeJournalLoader implements JournalLoader {
pg.open();
List<PagedMessage> pgMessages = pg.read(storageManager);
- Map<Long, AtomicInteger> countsPerQueueOnPage = new HashMap<Long, AtomicInteger>();
+ Map<Long, AtomicInteger> countsPerQueueOnPage = new HashMap<>();
for (PagedMessage pgd : pgMessages) {
if (pgd.getTransactionID() <= 0) {
@@ -405,7 +405,7 @@ public class PostOfficeJournalLoader implements JournalLoader {
private Map<SimpleString, Map<Long, Map<Long, List<PageCountPending>>>> generateMapsOnPendingCount(Map<Long, Queue> queues,
List<PageCountPending> pendingNonTXPageCounter,
Transaction txRecoverCounter) throws Exception {
- Map<SimpleString, Map<Long, Map<Long, List<PageCountPending>>>> perAddressMap = new HashMap<SimpleString, Map<Long, Map<Long, List<PageCountPending>>>>();
+ Map<SimpleString, Map<Long, Map<Long, List<PageCountPending>>>> perAddressMap = new HashMap<>();
for (PageCountPending pgCount : pendingNonTXPageCounter) {
long queueID = pgCount.getQueueID();
long pageID = pgCount.getPageID();
@@ -441,7 +441,7 @@ public class PostOfficeJournalLoader implements JournalLoader {
List<PageCountPending> pendingCounters = perQueueMap.get(queueID);
if (pendingCounters == null) {
- pendingCounters = new LinkedList<PageCountPending>();
+ pendingCounters = new LinkedList<>();
perQueueMap.put(queueID, pendingCounters);
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/QueueImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/QueueImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/QueueImpl.java
index bea9f6d..5d7053e 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/QueueImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/QueueImpl.java
@@ -143,10 +143,10 @@ public class QueueImpl implements Queue {
// Messages will first enter intermediateMessageReferences
// Before they are added to messageReferences
// This is to avoid locking the queue on the producer
- private final ConcurrentLinkedQueue<MessageReference> intermediateMessageReferences = new ConcurrentLinkedQueue<MessageReference>();
+ private final ConcurrentLinkedQueue<MessageReference> intermediateMessageReferences = new ConcurrentLinkedQueue<>();
// This is where messages are stored
- private final PriorityLinkedList<MessageReference> messageReferences = new PriorityLinkedListImpl<MessageReference>(QueueImpl.NUM_PRIORITIES);
+ private final PriorityLinkedList<MessageReference> messageReferences = new PriorityLinkedListImpl<>(QueueImpl.NUM_PRIORITIES);
// The quantity of pagedReferences on messageReferences priority list
private final AtomicInteger pagedReferences = new AtomicInteger(0);
@@ -157,7 +157,7 @@ public class QueueImpl implements Queue {
// used to control if we should recalculate certain positions inside deliverAsync
private volatile boolean consumersChanged = true;
- private final List<ConsumerHolder> consumerList = new CopyOnWriteArrayList<ConsumerHolder>();
+ private final List<ConsumerHolder> consumerList = new CopyOnWriteArrayList<>();
private final ScheduledDeliveryHandler scheduledDeliveryHandler;
@@ -190,7 +190,7 @@ public class QueueImpl implements Queue {
private Redistributor redistributor;
- private final Set<ScheduledFuture<?>> futures = new ConcurrentHashSet<ScheduledFuture<?>>();
+ private final Set<ScheduledFuture<?>> futures = new ConcurrentHashSet<>();
private ScheduledFuture<?> redistributorFuture;
@@ -198,9 +198,9 @@ public class QueueImpl implements Queue {
// We cache the consumers here since we don't want to include the redistributor
- private final Set<Consumer> consumerSet = new HashSet<Consumer>();
+ private final Set<Consumer> consumerSet = new HashSet<>();
- private final Map<SimpleString, Consumer> groups = new HashMap<SimpleString, Consumer>();
+ private final Map<SimpleString, Consumer> groups = new HashMap<>();
private volatile SimpleString expiryAddress;
@@ -252,7 +252,7 @@ public class QueueImpl implements Queue {
}
synchronized (this) {
- ArrayList<SimpleString> groupsUsed = new ArrayList<SimpleString>();
+ ArrayList<SimpleString> groupsUsed = new ArrayList<>();
groupsUsed.addAll(groups.keySet());
return groupsUsed;
}
@@ -740,7 +740,7 @@ public class QueueImpl implements Queue {
for (SimpleString groupID : groups.keySet()) {
if (consumer == groups.get(groupID)) {
if (groupsToRemove == null) {
- groupsToRemove = new LinkedList<SimpleString>();
+ groupsToRemove = new LinkedList<>();
}
groupsToRemove.add(groupID);
}
@@ -823,7 +823,7 @@ public class QueueImpl implements Queue {
@Override
public synchronized Set<Consumer> getConsumers() {
- return new HashSet<Consumer>(consumerSet);
+ return new HashSet<>(consumerSet);
}
@Override
@@ -944,7 +944,7 @@ public class QueueImpl implements Queue {
List<ConsumerHolder> consumerListClone = cloneConsumersList();
- Map<String, List<MessageReference>> mapReturn = new HashMap<String, List<MessageReference>>();
+ Map<String, List<MessageReference>> mapReturn = new HashMap<>();
for (ConsumerHolder holder : consumerListClone) {
List<MessageReference> msgs = holder.consumer.getDeliveringMessages();
@@ -2551,7 +2551,7 @@ public class QueueImpl implements Queue {
List<ConsumerHolder> consumerListClone;
synchronized (this) {
- consumerListClone = new ArrayList<ConsumerHolder>(consumerList);
+ consumerListClone = new ArrayList<>(consumerList);
}
return consumerListClone;
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/RefsOperation.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/RefsOperation.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/RefsOperation.java
index e11af87..d117186 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/RefsOperation.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/RefsOperation.java
@@ -35,7 +35,7 @@ public class RefsOperation extends TransactionOperationAbstract {
private final StorageManager storageManager;
private Queue queue;
- List<MessageReference> refsToAck = new ArrayList<MessageReference>();
+ List<MessageReference> refsToAck = new ArrayList<>();
List<ServerMessage> pagedMessagesToPostACK = null;
@@ -59,7 +59,7 @@ public class RefsOperation extends TransactionOperationAbstract {
refsToAck.add(ref);
if (ref.isPaged()) {
if (pagedMessagesToPostACK == null) {
- pagedMessagesToPostACK = new ArrayList<ServerMessage>();
+ pagedMessagesToPostACK = new ArrayList<>();
}
pagedMessagesToPostACK.add(ref.getMessage());
}
@@ -67,7 +67,7 @@ public class RefsOperation extends TransactionOperationAbstract {
@Override
public void afterRollback(final Transaction tx) {
- Map<QueueImpl, LinkedList<MessageReference>> queueMap = new HashMap<QueueImpl, LinkedList<MessageReference>>();
+ Map<QueueImpl, LinkedList<MessageReference>> queueMap = new HashMap<>();
long timeBase = System.currentTimeMillis();
@@ -90,7 +90,7 @@ public class RefsOperation extends TransactionOperationAbstract {
LinkedList<MessageReference> toCancel = queueMap.get(ref.getQueue());
if (toCancel == null) {
- toCancel = new LinkedList<MessageReference>();
+ toCancel = new LinkedList<>();
queueMap.put((QueueImpl) ref.getQueue(), toCancel);
}
@@ -165,14 +165,14 @@ public class RefsOperation extends TransactionOperationAbstract {
@Override
public synchronized List<MessageReference> getRelatedMessageReferences() {
- List<MessageReference> listRet = new LinkedList<MessageReference>();
+ List<MessageReference> listRet = new LinkedList<>();
listRet.addAll(listRet);
return listRet;
}
@Override
public synchronized List<MessageReference> getListOnConsumer(long consumerID) {
- List<MessageReference> list = new LinkedList<MessageReference>();
+ List<MessageReference> list = new LinkedList<>();
for (MessageReference ref : refsToAck) {
if (ref.getConsumerId() != null && ref.getConsumerId().equals(consumerID)) {
list.add(ref);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/RoutingContextImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/RoutingContextImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/RoutingContextImpl.java
index 1a5bcbd..6bbeaf4 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/RoutingContextImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/RoutingContextImpl.java
@@ -30,7 +30,7 @@ import org.apache.activemq.artemis.core.transaction.Transaction;
public final class RoutingContextImpl implements RoutingContext {
// The pair here is Durable and NonDurable
- private final Map<SimpleString, RouteContextList> map = new HashMap<SimpleString, RouteContextList>();
+ private final Map<SimpleString, RouteContextList> map = new HashMap<>();
private Transaction transaction;
@@ -119,9 +119,9 @@ public final class RoutingContextImpl implements RoutingContext {
private static class ContextListing implements RouteContextList {
- private final List<Queue> durableQueue = new ArrayList<Queue>(1);
+ private final List<Queue> durableQueue = new ArrayList<>(1);
- private final List<Queue> nonDurableQueue = new ArrayList<Queue>(1);
+ private final List<Queue> nonDurableQueue = new ArrayList<>(1);
private final List<Queue> ackedQueues = new ArrayList<>();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ScaleDownHandler.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ScaleDownHandler.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ScaleDownHandler.java
index 48a56bf..8f63476 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ScaleDownHandler.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ScaleDownHandler.java
@@ -142,7 +142,7 @@ public class ScaleDownHandler {
ActiveMQServerLogger.LOGGER.debug("Scaling down messages on address " + address);
long messageCount = 0;
- final HashMap<Queue, QueuesXRefInnerManager> controls = new HashMap<Queue, QueuesXRefInnerManager>();
+ final HashMap<Queue, QueuesXRefInnerManager> controls = new HashMap<>();
PagingStore pageStore = pagingManager.getPageStore(address);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ScheduledDeliveryHandlerImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ScheduledDeliveryHandlerImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ScheduledDeliveryHandlerImpl.java
index 9fc5bab..f9ee1ce 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ScheduledDeliveryHandlerImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ScheduledDeliveryHandlerImpl.java
@@ -86,7 +86,7 @@ public class ScheduledDeliveryHandlerImpl implements ScheduledDeliveryHandler {
@Override
public List<MessageReference> getScheduledReferences() {
- List<MessageReference> refs = new LinkedList<MessageReference>();
+ List<MessageReference> refs = new LinkedList<>();
synchronized (scheduledReferences) {
for (RefScheduled ref : scheduledReferences) {
@@ -98,7 +98,7 @@ public class ScheduledDeliveryHandlerImpl implements ScheduledDeliveryHandler {
@Override
public List<MessageReference> cancel(final Filter filter) {
- List<MessageReference> refs = new ArrayList<MessageReference>();
+ List<MessageReference> refs = new ArrayList<>();
synchronized (scheduledReferences) {
Iterator<RefScheduled> iter = scheduledReferences.iterator();
@@ -170,7 +170,7 @@ public class ScheduledDeliveryHandlerImpl implements ScheduledDeliveryHandler {
@Override
public void run() {
- HashMap<Queue, LinkedList<MessageReference>> refs = new HashMap<Queue, LinkedList<MessageReference>>();
+ HashMap<Queue, LinkedList<MessageReference>> refs = new HashMap<>();
runnables.remove(deliveryTime);
@@ -212,7 +212,7 @@ public class ScheduledDeliveryHandlerImpl implements ScheduledDeliveryHandler {
LinkedList<MessageReference> references = refs.get(reference.getQueue());
if (references == null) {
- references = new LinkedList<MessageReference>();
+ references = new LinkedList<>();
refs.put(reference.getQueue(), references);
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ServerConsumerImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ServerConsumerImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ServerConsumerImpl.java
index e74b60e..243d139 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ServerConsumerImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ServerConsumerImpl.java
@@ -117,7 +117,7 @@ public class ServerConsumerImpl implements ServerConsumer, ReadyListener {
private final StorageManager storageManager;
- protected final java.util.Queue<MessageReference> deliveringRefs = new ConcurrentLinkedQueue<MessageReference>();
+ protected final java.util.Queue<MessageReference> deliveringRefs = new ConcurrentLinkedQueue<>();
private final SessionCallback callback;
@@ -260,7 +260,7 @@ public class ServerConsumerImpl implements ServerConsumer, ReadyListener {
@Override
public List<MessageReference> getDeliveringMessages() {
- List<MessageReference> refs = new LinkedList<MessageReference>();
+ List<MessageReference> refs = new LinkedList<>();
synchronized (lock) {
List<MessageReference> refsOnConsumer = session.getInTXMessagesForConsumer(this.id);
if (refsOnConsumer != null) {
@@ -529,7 +529,7 @@ public class ServerConsumerImpl implements ServerConsumer, ReadyListener {
largeMessageDeliverer = null;
}
- LinkedList<MessageReference> refs = new LinkedList<MessageReference>();
+ LinkedList<MessageReference> refs = new LinkedList<>();
synchronized (lock) {
if (!deliveringRefs.isEmpty()) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ServerSessionImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ServerSessionImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ServerSessionImpl.java
index 26d9bb4..d036fdf 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ServerSessionImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ServerSessionImpl.java
@@ -114,7 +114,7 @@ public class ServerSessionImpl implements ServerSession, FailureListener {
protected final RemotingConnection remotingConnection;
- protected final Map<Long, ServerConsumer> consumers = new ConcurrentHashMap<Long, ServerConsumer>();
+ protected final Map<Long, ServerConsumer> consumers = new ConcurrentHashMap<>();
protected Transaction tx;
@@ -132,7 +132,7 @@ public class ServerSessionImpl implements ServerSession, FailureListener {
protected volatile boolean started = false;
- protected final Map<SimpleString, TempQueueCleanerUpper> tempQueueCleannerUppers = new HashMap<SimpleString, TempQueueCleanerUpper>();
+ protected final Map<SimpleString, TempQueueCleanerUpper> tempQueueCleannerUppers = new HashMap<>();
protected final String name;
@@ -158,7 +158,7 @@ public class ServerSessionImpl implements ServerSession, FailureListener {
private QueueCreator queueCreator;
// Session's usage should be by definition single threaded, hence it's not needed to use a concurrentHashMap here
- protected final Map<SimpleString, Pair<UUID, AtomicLong>> targetAddressInfos = new HashMap<SimpleString, Pair<UUID, AtomicLong>>();
+ protected final Map<SimpleString, Pair<UUID, AtomicLong>> targetAddressInfos = new HashMap<>();
private final long creationTime = System.currentTimeMillis();
@@ -311,7 +311,7 @@ public class ServerSessionImpl implements ServerSession, FailureListener {
@Override
public Set<ServerConsumer> getServerConsumers() {
- Set<ServerConsumer> consumersClone = new HashSet<ServerConsumer>(consumers.values());
+ Set<ServerConsumer> consumersClone = new HashSet<>(consumers.values());
return Collections.unmodifiableSet(consumersClone);
}
@@ -339,7 +339,7 @@ public class ServerSessionImpl implements ServerSession, FailureListener {
//putting closing of consumers outside the sync block
//https://issues.jboss.org/browse/HORNETQ-1141
- Set<ServerConsumer> consumersClone = new HashSet<ServerConsumer>(consumers.values());
+ Set<ServerConsumer> consumersClone = new HashSet<>(consumers.values());
for (ServerConsumer consumer : consumersClone) {
try {
@@ -649,7 +649,7 @@ public class ServerSessionImpl implements ServerSession, FailureListener {
throw ActiveMQMessageBundle.BUNDLE.addressIsNull();
}
- List<SimpleString> names = new ArrayList<SimpleString>();
+ List<SimpleString> names = new ArrayList<>();
// make an exception for the management address (see HORNETQ-29)
if (address.equals(managementAddress)) {
@@ -1159,7 +1159,7 @@ public class ServerSessionImpl implements ServerSession, FailureListener {
@Override
public List<Xid> xaGetInDoubtXids() {
- List<Xid> xids = new ArrayList<Xid>();
+ List<Xid> xids = new ArrayList<>();
xids.addAll(resourceManager.getPreparedTransactions());
xids.addAll(resourceManager.getHeuristicCommittedTransactions());
@@ -1366,7 +1366,7 @@ public class ServerSessionImpl implements ServerSession, FailureListener {
@Override
public void setTransferring(final boolean transferring) {
- Set<ServerConsumer> consumersClone = new HashSet<ServerConsumer>(consumers.values());
+ Set<ServerConsumer> consumersClone = new HashSet<>(consumers.values());
for (ServerConsumer consumer : consumersClone) {
consumer.setTransferring(transferring);
@@ -1376,7 +1376,7 @@ public class ServerSessionImpl implements ServerSession, FailureListener {
@Override
public void addMetaData(String key, String data) {
if (metaData == null) {
- metaData = new HashMap<String, String>();
+ metaData = new HashMap<>();
}
metaData.put(key, data);
}
@@ -1511,11 +1511,11 @@ public class ServerSessionImpl implements ServerSession, FailureListener {
}
private Map<SimpleString, Pair<UUID, AtomicLong>> cloneTargetAddresses() {
- return new HashMap<SimpleString, Pair<UUID, AtomicLong>>(targetAddressInfos);
+ return new HashMap<>(targetAddressInfos);
}
private void setStarted(final boolean s) {
- Set<ServerConsumer> consumersClone = new HashSet<ServerConsumer>(consumers.values());
+ Set<ServerConsumer> consumersClone = new HashSet<>(consumers.values());
for (ServerConsumer consumer : consumersClone) {
consumer.setStarted(s);
@@ -1551,7 +1551,7 @@ public class ServerSessionImpl implements ServerSession, FailureListener {
final Transaction theTx) throws Exception {
boolean wasStarted = started;
- List<MessageReference> toCancel = new ArrayList<MessageReference>();
+ List<MessageReference> toCancel = new ArrayList<>();
for (ServerConsumer consumer : consumers.values()) {
if (wasStarted) {
@@ -1621,7 +1621,7 @@ public class ServerSessionImpl implements ServerSession, FailureListener {
Pair<UUID, AtomicLong> value = targetAddressInfos.get(msg.getAddress());
if (value == null) {
- targetAddressInfos.put(msg.getAddress(), new Pair<UUID, AtomicLong>(msg.getUserID(), new AtomicLong(1)));
+ targetAddressInfos.put(msg.getAddress(), new Pair<>(msg.getUserID(), new AtomicLong(1)));
}
else {
value.setA(msg.getUserID());
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/management/impl/ManagementServiceImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/management/impl/ManagementServiceImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/management/impl/ManagementServiceImpl.java
index 053f81d..891e719 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/management/impl/ManagementServiceImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/management/impl/ManagementServiceImpl.java
@@ -124,7 +124,7 @@ public class ManagementServiceImpl implements ManagementService {
private boolean notificationsEnabled;
- private final Set<NotificationListener> listeners = new ConcurrentHashSet<NotificationListener>();
+ private final Set<NotificationListener> listeners = new ConcurrentHashSet<>();
private final ObjectNameBuilder objectNameBuilder;
@@ -139,7 +139,7 @@ public class ManagementServiceImpl implements ManagementService {
managementAddress = configuration.getManagementAddress();
managementNotificationAddress = configuration.getManagementNotificationAddress();
- registry = new ConcurrentHashMap<String, Object>();
+ registry = new ConcurrentHashMap<>();
broadcaster = new NotificationBroadcasterSupport();
notificationsEnabled = true;
objectNameBuilder = ObjectNameBuilder.create(configuration.getJMXDomain());
@@ -282,7 +282,7 @@ public class ManagementServiceImpl implements ManagementService {
@Override
public void unregisterAcceptors() {
- List<String> acceptors = new ArrayList<String>();
+ List<String> acceptors = new ArrayList<>();
synchronized (this) {
for (String resourceName : registry.keySet()) {
if (resourceName.startsWith(ResourceNames.CORE_ACCEPTOR)) {
@@ -431,8 +431,8 @@ public class ManagementServiceImpl implements ManagementService {
@Override
public synchronized Object[] getResources(final Class<?> resourceType) {
- List<Object> resources = new ArrayList<Object>();
- Collection<Object> clone = new ArrayList<Object>(registry.values());
+ List<Object> resources = new ArrayList<>();
+ Collection<Object> clone = new ArrayList<>(registry.values());
for (Object entry : clone) {
if (resourceType.isAssignableFrom(entry.getClass())) {
resources.add(entry);
@@ -441,7 +441,7 @@ public class ManagementServiceImpl implements ManagementService {
return resources.toArray(new Object[resources.size()]);
}
- private final Set<ObjectName> registeredNames = new HashSet<ObjectName>();
+ private final Set<ObjectName> registeredNames = new HashSet<>();
@Override
public void registerInJMX(final ObjectName objectName, final Object managedResource) throws Exception {
@@ -521,7 +521,7 @@ public class ManagementServiceImpl implements ManagementService {
@Override
public synchronized void stop() throws Exception {
- Set<String> resourceNames = new HashSet<String>(registry.keySet());
+ Set<String> resourceNames = new HashSet<>(registry.keySet());
for (String resourceName : resourceNames) {
unregisterFromRegistry(resourceName);
@@ -529,7 +529,7 @@ public class ManagementServiceImpl implements ManagementService {
if (jmxManagementEnabled) {
if (!registeredNames.isEmpty()) {
- List<String> unexpectedResourceNames = new ArrayList<String>();
+ List<String> unexpectedResourceNames = new ArrayList<>();
for (String name : resourceNames) {
// only addresses and queues should still be registered
if (!(name.startsWith(ResourceNames.CORE_ADDRESS) || name.startsWith(ResourceNames.CORE_QUEUE))) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/settings/impl/HierarchicalObjectRepository.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/settings/impl/HierarchicalObjectRepository.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/settings/impl/HierarchicalObjectRepository.java
index fa20293..ad375c4 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/settings/impl/HierarchicalObjectRepository.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/settings/impl/HierarchicalObjectRepository.java
@@ -49,7 +49,7 @@ public class HierarchicalObjectRepository<T> implements HierarchicalRepository<T
/**
* all the matches
*/
- private final Map<String, Match<T>> matches = new HashMap<String, Match<T>>();
+ private final Map<String, Match<T>> matches = new HashMap<>();
/**
* Certain values cannot be removed after installed.
@@ -58,7 +58,7 @@ public class HierarchicalObjectRepository<T> implements HierarchicalRepository<T
* this could cause issues on shutdown.
* Notice you can still change these values. You just can't remove them.
*/
- private final Set<String> immutables = new HashSet<String>();
+ private final Set<String> immutables = new HashSet<>();
/**
* a regex comparator
@@ -68,7 +68,7 @@ public class HierarchicalObjectRepository<T> implements HierarchicalRepository<T
/**
* a cache
*/
- private final Map<String, T> cache = new ConcurrentHashMap<String, T>();
+ private final Map<String, T> cache = new ConcurrentHashMap<>();
/**
* Need a lock instead of using multiple {@link ConcurrentHashMap}s.
@@ -89,7 +89,7 @@ public class HierarchicalObjectRepository<T> implements HierarchicalRepository<T
/**
* any registered listeners, these get fired on changes to the repository
*/
- private final ArrayList<HierarchicalRepositoryChangeListener> listeners = new ArrayList<HierarchicalRepositoryChangeListener>();
+ private final ArrayList<HierarchicalRepositoryChangeListener> listeners = new ArrayList<>();
@Override
public void disableListeners() {
@@ -123,7 +123,7 @@ public class HierarchicalObjectRepository<T> implements HierarchicalRepository<T
public List<T> values() {
lock.readLock().lock();
try {
- ArrayList<T> values = new ArrayList<T>(matches.size());
+ ArrayList<T> values = new ArrayList<>(matches.size());
for (Match<T> matchValue : matches.values()) {
values.add(matchValue.getValue());
@@ -152,7 +152,7 @@ public class HierarchicalObjectRepository<T> implements HierarchicalRepository<T
immutables.add(match);
}
Match.verify(match);
- Match<T> match1 = new Match<T>(match);
+ Match<T> match1 = new Match<>(match);
match1.setValue(value);
matches.put(match, match1);
}
@@ -228,9 +228,9 @@ public class HierarchicalObjectRepository<T> implements HierarchicalRepository<T
* @return
*/
private List<Match<T>> sort(final Map<String, Match<T>> possibleMatches) {
- List<String> keys = new ArrayList<String>(possibleMatches.keySet());
+ List<String> keys = new ArrayList<>(possibleMatches.keySet());
Collections.sort(keys, matchComparator);
- List<Match<T>> matches1 = new ArrayList<Match<T>>(possibleMatches.size());
+ List<Match<T>> matches1 = new ArrayList<>(possibleMatches.size());
for (String key : keys) {
matches1.add(possibleMatches.get(key));
}
@@ -350,7 +350,7 @@ public class HierarchicalObjectRepository<T> implements HierarchicalRepository<T
* @return
*/
private Map<String, Match<T>> getPossibleMatches(final String match) {
- HashMap<String, Match<T>> possibleMatches = new HashMap<String, Match<T>>();
+ HashMap<String, Match<T>> possibleMatches = new HashMap<>();
for (Entry<String, Match<T>> entry : matches.entrySet()) {
Match<T> entryMatch = entry.getValue();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/transaction/impl/ResourceManagerImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/transaction/impl/ResourceManagerImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/transaction/impl/ResourceManagerImpl.java
index e811dd0..0db783f 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/transaction/impl/ResourceManagerImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/transaction/impl/ResourceManagerImpl.java
@@ -36,9 +36,9 @@ import org.apache.activemq.artemis.core.transaction.Transaction;
public class ResourceManagerImpl implements ResourceManager {
- private final ConcurrentMap<Xid, Transaction> transactions = new ConcurrentHashMap<Xid, Transaction>();
+ private final ConcurrentMap<Xid, Transaction> transactions = new ConcurrentHashMap<>();
- private final List<HeuristicCompletionHolder> heuristicCompletions = new ArrayList<HeuristicCompletionHolder>();
+ private final List<HeuristicCompletionHolder> heuristicCompletions = new ArrayList<>();
private final int defaultTimeoutSeconds;
@@ -113,7 +113,7 @@ public class ResourceManagerImpl implements ResourceManager {
@Override
public List<Xid> getPreparedTransactions() {
- List<Xid> xids = new ArrayList<Xid>();
+ List<Xid> xids = new ArrayList<>();
for (Map.Entry<Xid, Transaction> entry : transactions.entrySet()) {
if (entry.getValue().getState() == Transaction.State.PREPARED) {
@@ -125,7 +125,7 @@ public class ResourceManagerImpl implements ResourceManager {
@Override
public Map<Xid, Long> getPreparedTransactionsWithCreationTime() {
- Map<Xid, Long> xidsWithCreationTime = new HashMap<Xid, Long>();
+ Map<Xid, Long> xidsWithCreationTime = new HashMap<>();
for (Map.Entry<Xid, Transaction> entry : transactions.entrySet()) {
xidsWithCreationTime.put(entry.getKey(), entry.getValue().getCreateTime());
@@ -162,7 +162,7 @@ public class ResourceManagerImpl implements ResourceManager {
}
private List<Xid> getHeuristicCompletedTransactions(final boolean isCommit) {
- List<Xid> xids = new ArrayList<Xid>();
+ List<Xid> xids = new ArrayList<>();
for (HeuristicCompletionHolder holder : heuristicCompletions) {
if (holder.isCommit == isCommit) {
xids.add(holder.xid);
@@ -183,7 +183,7 @@ public class ResourceManagerImpl implements ResourceManager {
return;
}
- Set<Transaction> timedoutTransactions = new HashSet<Transaction>();
+ Set<Transaction> timedoutTransactions = new HashSet<>();
long now = System.currentTimeMillis();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/core/transaction/impl/TransactionImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/transaction/impl/TransactionImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/transaction/impl/TransactionImpl.java
index c84e6f0..3490fee 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/transaction/impl/TransactionImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/transaction/impl/TransactionImpl.java
@@ -394,10 +394,10 @@ public class TransactionImpl implements Transaction {
public synchronized List<TransactionOperation> getAllOperations() {
if (operations != null) {
- return new ArrayList<TransactionOperation>(operations);
+ return new ArrayList<>(operations);
}
else {
- return new ArrayList<TransactionOperation>();
+ return new ArrayList<>();
}
}
@@ -430,7 +430,7 @@ public class TransactionImpl implements Transaction {
private void checkCreateOperations() {
if (operations == null) {
- operations = new ArrayList<TransactionOperation>();
+ operations = new ArrayList<>();
}
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/CertificateLoginModule.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/CertificateLoginModule.java b/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/CertificateLoginModule.java
index 20d107e..d2fe1fe 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/CertificateLoginModule.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/CertificateLoginModule.java
@@ -45,7 +45,7 @@ public abstract class CertificateLoginModule extends PropertiesLoader implements
private X509Certificate[] certificates;
private String username;
private Set<String> roles;
- private Set<Principal> principals = new HashSet<Principal>();
+ private Set<Principal> principals = new HashSet<>();
/**
* Overriding to allow for proper initialization. Standard JAAS.
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/GuestLoginModule.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/GuestLoginModule.java b/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/GuestLoginModule.java
index 22da502..a1b5964 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/GuestLoginModule.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/GuestLoginModule.java
@@ -48,7 +48,7 @@ public class GuestLoginModule implements LoginModule {
private Subject subject;
private boolean debug;
private boolean credentialsInvalidate;
- private Set<Principal> principals = new HashSet<Principal>();
+ private Set<Principal> principals = new HashSet<>();
private CallbackHandler callbackHandler;
private boolean loginSucceeded;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/InVMLoginModule.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/InVMLoginModule.java b/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/InVMLoginModule.java
index d91d639..b1b3b42 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/InVMLoginModule.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/InVMLoginModule.java
@@ -41,7 +41,7 @@ public class InVMLoginModule implements LoginModule {
private SecurityConfiguration configuration;
private Subject subject;
private String user;
- private Set<Principal> principals = new HashSet<Principal>();
+ private Set<Principal> principals = new HashSet<>();
private CallbackHandler callbackHandler;
private boolean loginSucceeded;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/LDAPLoginModule.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/LDAPLoginModule.java b/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/LDAPLoginModule.java
index 15346ac..7afb8e4 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/LDAPLoginModule.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/LDAPLoginModule.java
@@ -79,7 +79,7 @@ public class LDAPLoginModule implements LoginModule {
private CallbackHandler handler;
private LDAPLoginProperty[] config;
private String username;
- private Set<RolePrincipal> groups = new HashSet<RolePrincipal>();
+ private Set<RolePrincipal> groups = new HashSet<>();
@Override
public void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options) {
@@ -191,7 +191,7 @@ public class LDAPLoginModule implements LoginModule {
}
// setup attributes
- List<String> list = new ArrayList<String>();
+ List<String> list = new ArrayList<>();
if (isLoginPropertySet(USER_ROLE_NAME)) {
list.add(getLDAPPropertyValue(USER_ROLE_NAME));
}
@@ -313,7 +313,7 @@ public class LDAPLoginModule implements LoginModule {
expandRolesBool = Boolean.valueOf(getLDAPPropertyValue(EXPAND_ROLES)).booleanValue();
if (list == null) {
- list = new ArrayList<String>();
+ list = new ArrayList<>();
}
if (!isLoginPropertySet(ROLE_NAME)) {
return list;
@@ -333,8 +333,8 @@ public class LDAPLoginModule implements LoginModule {
ActiveMQServerLogger.LOGGER.debug(" base DN: " + getLDAPPropertyValue(ROLE_BASE));
ActiveMQServerLogger.LOGGER.debug(" filter: " + filter);
}
- HashSet<String> haveSeenNames = new HashSet<String>();
- Queue<String> pendingNameExpansion = new LinkedList<String>();
+ HashSet<String> haveSeenNames = new HashSet<>();
+ Queue<String> pendingNameExpansion = new LinkedList<>();
NamingEnumeration<SearchResult> results = context.search(getLDAPPropertyValue(ROLE_BASE), filter, constraints);
while (results.hasMore()) {
SearchResult result = results.next();
@@ -443,7 +443,7 @@ public class LDAPLoginModule implements LoginModule {
return values;
}
if (values == null) {
- values = new ArrayList<String>();
+ values = new ArrayList<>();
}
Attribute attr = attrs.get(attrId);
if (attr == null) {
@@ -459,7 +459,7 @@ public class LDAPLoginModule implements LoginModule {
protected DirContext open() throws NamingException {
try {
- Hashtable<String, String> env = new Hashtable<String, String>();
+ Hashtable<String, String> env = new Hashtable<>();
env.put(Context.INITIAL_CONTEXT_FACTORY, getLDAPPropertyValue(INITIAL_CONTEXT_FACTORY));
if (isLoginPropertySet(CONNECTION_USERNAME)) {
env.put(Context.SECURITY_PRINCIPAL, getLDAPPropertyValue(CONNECTION_USERNAME));
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/PropertiesLoader.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/PropertiesLoader.java b/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/PropertiesLoader.java
index a83ce0d..ba8839a 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/PropertiesLoader.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/PropertiesLoader.java
@@ -24,7 +24,7 @@ import org.apache.activemq.artemis.core.server.ActiveMQServerLogger;
public class PropertiesLoader {
- static Map<FileNameKey, ReloadableProperties> staticCache = new HashMap<FileNameKey, ReloadableProperties>();
+ static Map<FileNameKey, ReloadableProperties> staticCache = new HashMap<>();
protected boolean debug;
public void init(Map options) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/PropertiesLoginModule.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/PropertiesLoginModule.java b/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/PropertiesLoginModule.java
index 0a75a24..c870b28 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/PropertiesLoginModule.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/PropertiesLoginModule.java
@@ -45,7 +45,7 @@ public class PropertiesLoginModule extends PropertiesLoader implements LoginModu
private Properties users;
private Properties roles;
private String user;
- private final Set<Principal> principals = new HashSet<Principal>();
+ private final Set<Principal> principals = new HashSet<>();
private boolean loginSucceeded;
@Override
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/TextFileCertificateLoginModule.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/TextFileCertificateLoginModule.java b/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/TextFileCertificateLoginModule.java
index b1e4ba7..8bfac9b 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/TextFileCertificateLoginModule.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/TextFileCertificateLoginModule.java
@@ -84,7 +84,7 @@ public class TextFileCertificateLoginModule extends CertificateLoginModule {
*/
@Override
protected Set<String> getUserRoles(String username) throws LoginException {
- Set<String> userRoles = new HashSet<String>();
+ Set<String> userRoles = new HashSet<>();
for (Enumeration<Object> enumeration = roles.keys(); enumeration.hasMoreElements(); ) {
String groupName = (String) enumeration.nextElement();
String[] userList = (roles.getProperty(groupName) + "").split(",");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/artemis-server/src/test/java/org/apache/activemq/artemis/core/config/impl/FileConfigurationParserTest.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/test/java/org/apache/activemq/artemis/core/config/impl/FileConfigurationParserTest.java b/artemis-server/src/test/java/org/apache/activemq/artemis/core/config/impl/FileConfigurationParserTest.java
index e2d2f83..99a45ef 100644
--- a/artemis-server/src/test/java/org/apache/activemq/artemis/core/config/impl/FileConfigurationParserTest.java
+++ b/artemis-server/src/test/java/org/apache/activemq/artemis/core/config/impl/FileConfigurationParserTest.java
@@ -106,7 +106,7 @@ public class FileConfigurationParserTest extends ActiveMQTestBase {
//if we change key, it should be able to decode correctly
codec = new DefaultSensitiveStringCodec();
- Map<String, String> prop = new HashMap<String, String>();
+ Map<String, String> prop = new HashMap<>();
prop.put("key", "newkey");
codec.init(prop);
[28/32] activemq-artemis git commit: Convert mac linefeeds to unix
Posted by cl...@apache.org.
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerInfoTest.java
index 140cc56..ae8ed2e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerInfoTest.java
@@ -1 +1,64 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ProducerInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ProducerInfoTest extends BaseCommandTestSupport {
public static ProducerInfoTest SINGLETON = new ProducerInfoTest();
@Override
public Object createObject() throws Exception {
ProducerInfo info = new ProducerInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ProducerInfo info = (ProducerInfo) object;
info.setProducerId(createProducerId("ProducerId:1"));
info.setDestination(createActiveMQDestination("Destination:2"));
{
BrokerId value[] = new BrokerId[2];
for (int i = 0; i < 2;
i++) {
value[i] = createBrokerId("BrokerPath:3");
}
info.setBrokerPath(value);
}
info.setDispatchAsync(true);
info.setWindowSize(1);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ProducerInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ProducerInfoTest extends BaseCommandTestSupport {
+
+ public static ProducerInfoTest SINGLETON = new ProducerInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ProducerInfo info = new ProducerInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ProducerInfo info = (ProducerInfo) object;
+
+ info.setProducerId(createProducerId("ProducerId:1"));
+ info.setDestination(createActiveMQDestination("Destination:2"));
+ {
+ BrokerId value[] = new BrokerId[2];
+ for (int i = 0; i < 2; i++) {
+ value[i] = createBrokerId("BrokerPath:3");
+ }
+ info.setBrokerPath(value);
+ }
+ info.setDispatchAsync(true);
+ info.setWindowSize(1);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/RemoveInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/RemoveInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/RemoveInfoTest.java
index f76aed2..da8213e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/RemoveInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/RemoveInfoTest.java
@@ -1 +1,55 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for RemoveInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class RemoveInfoTest extends BaseCommandTestSupport {
public static RemoveInfoTest SINGLETON = new RemoveInfoTest();
@Override
public Object createObject() throws Exception {
RemoveInfo info = new RemoveInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
RemoveInfo info = (RemoveInfo) object;
info.setObjectId(createDataStructure("ObjectId:1"));
info.setLastDeliveredSequenceId(1);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for RemoveInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class RemoveInfoTest extends BaseCommandTestSupport {
+
+ public static RemoveInfoTest SINGLETON = new RemoveInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ RemoveInfo info = new RemoveInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ RemoveInfo info = (RemoveInfo) object;
+
+ info.setObjectId(createDataStructure("ObjectId:1"));
+ info.setLastDeliveredSequenceId(1);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/RemoveSubscriptionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/RemoveSubscriptionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/RemoveSubscriptionInfoTest.java
index ac56900..9953dc0 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/RemoveSubscriptionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/RemoveSubscriptionInfoTest.java
@@ -1 +1,56 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for RemoveSubscriptionInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class RemoveSubscriptionInfoTest extends BaseCommandTestSupport {
public static RemoveSubscriptionInfoTest SINGLETON = new RemoveSubscriptionInfoTest();
@Override
public Object createObject() throws Exception {
RemoveSubscriptionInfo info = new RemoveSubscriptionInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
RemoveSubscriptionInfo info = (RemoveSubscriptionInfo) object;
info.setConnectionId(createConnectionId("ConnectionId:1"));
info.setSubcriptionName("SubcriptionName:2");
info.setCli
entId("ClientId:3");
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for RemoveSubscriptionInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class RemoveSubscriptionInfoTest extends BaseCommandTestSupport {
+
+ public static RemoveSubscriptionInfoTest SINGLETON = new RemoveSubscriptionInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ RemoveSubscriptionInfo info = new RemoveSubscriptionInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ RemoveSubscriptionInfo info = (RemoveSubscriptionInfo) object;
+
+ info.setConnectionId(createConnectionId("ConnectionId:1"));
+ info.setSubcriptionName("SubcriptionName:2");
+ info.setClientId("ClientId:3");
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ReplayCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ReplayCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ReplayCommandTest.java
index ab5f536..1b7f1c3 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ReplayCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ReplayCommandTest.java
@@ -1 +1,55 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ReplayCommand
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ReplayCommandTest extends BaseCommandTestSupport {
public static ReplayCommandTest SINGLETON = new ReplayCommandTest();
@Override
public Object createObject() throws Exception {
ReplayCommand info = new ReplayCommand();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ReplayCommand info = (ReplayCommand) object;
info.setFirstNakNumber(1);
info.setLastNakNumber(2);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ReplayCommand
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ReplayCommandTest extends BaseCommandTestSupport {
+
+ public static ReplayCommandTest SINGLETON = new ReplayCommandTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ReplayCommand info = new ReplayCommand();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ReplayCommand info = (ReplayCommand) object;
+
+ info.setFirstNakNumber(1);
+ info.setLastNakNumber(2);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ResponseTest.java
index 6fb0a1c..70b4a04 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ResponseTest.java
@@ -1 +1,54 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for Response
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ResponseTest extends BaseCommandTestSupport {
public static ResponseTest SINGLETON = new ResponseTest();
@Override
public Object createObject() throws Exception {
Response info = new Response();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
Response info = (Response) object;
info.setCorrelationId(1);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for Response
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ResponseTest extends BaseCommandTestSupport {
+
+ public static ResponseTest SINGLETON = new ResponseTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ Response info = new Response();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ Response info = (Response) object;
+
+ info.setCorrelationId(1);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SessionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SessionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SessionIdTest.java
index de21d3f..538c65e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SessionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SessionIdTest.java
@@ -1 +1,55 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for SessionId
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class SessionIdTest extends DataFileGeneratorTestSupport {
public static SessionIdTest SINGLETON = new SessionIdTest();
@Override
public Object createObject() throws Exception {
SessionId info = new SessionId();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
SessionId info = (SessionId) object;
info.setConnectionId("ConnectionId:1");
info.setValue(1);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for SessionId
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class SessionIdTest extends DataFileGeneratorTestSupport {
+
+ public static SessionIdTest SINGLETON = new SessionIdTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ SessionId info = new SessionId();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ SessionId info = (SessionId) object;
+
+ info.setConnectionId("ConnectionId:1");
+ info.setValue(1);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SessionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SessionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SessionInfoTest.java
index b2d8f59..5a1d605 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SessionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SessionInfoTest.java
@@ -1 +1,54 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for SessionInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class SessionInfoTest extends BaseCommandTestSupport {
public static SessionInfoTest SINGLETON = new SessionInfoTest();
@Override
public Object createObject() throws Exception {
SessionInfo info = new SessionInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
SessionInfo info = (SessionInfo) object;
info.setSessionId(createSessionId("SessionId:1"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for SessionInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class SessionInfoTest extends BaseCommandTestSupport {
+
+ public static SessionInfoTest SINGLETON = new SessionInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ SessionInfo info = new SessionInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ SessionInfo info = (SessionInfo) object;
+
+ info.setSessionId(createSessionId("SessionId:1"));
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ShutdownInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ShutdownInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ShutdownInfoTest.java
index b4699f7..ca53bcc 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ShutdownInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ShutdownInfoTest.java
@@ -1 +1,53 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ShutdownInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ShutdownInfoTest extends BaseCommandTestSupport {
public static ShutdownInfoTest SINGLETON = new ShutdownInfoTest();
@Override
public Object createObject() throws Exception {
ShutdownInfo info = new ShutdownInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ShutdownInfo info = (ShutdownInfo) object;
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ShutdownInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ShutdownInfoTest extends BaseCommandTestSupport {
+
+ public static ShutdownInfoTest SINGLETON = new ShutdownInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ShutdownInfo info = new ShutdownInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ShutdownInfo info = (ShutdownInfo) object;
+
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SubscriptionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SubscriptionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SubscriptionInfoTest.java
index 23b5232..727d9e3 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SubscriptionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SubscriptionInfoTest.java
@@ -1 +1,58 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for SubscriptionInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class SubscriptionInfoTest extends DataFileGeneratorTestSupport {
public static SubscriptionInfoTest SINGLETON = new SubscriptionInfoTest();
@Override
public Object createObject() throws Exception {
SubscriptionInfo info = new SubscriptionInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
SubscriptionInfo info = (SubscriptionInfo) object;
info.setClientId("ClientId:1");
info.setDestination(createActiveMQDestination("Destination:2"));
info.setSelector("Selector:3");
info.setSubcriptionName(
"SubcriptionName:4");
info.setSubscribedDestination(createActiveMQDestination("SubscribedDestination:5"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for SubscriptionInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class SubscriptionInfoTest extends DataFileGeneratorTestSupport {
+
+ public static SubscriptionInfoTest SINGLETON = new SubscriptionInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ SubscriptionInfo info = new SubscriptionInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ SubscriptionInfo info = (SubscriptionInfo) object;
+
+ info.setClientId("ClientId:1");
+ info.setDestination(createActiveMQDestination("Destination:2"));
+ info.setSelector("Selector:3");
+ info.setSubcriptionName("SubcriptionName:4");
+ info.setSubscribedDestination(createActiveMQDestination("SubscribedDestination:5"));
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/TransactionIdTestSupport.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/TransactionIdTestSupport.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/TransactionIdTestSupport.java
index 26eeb4a..485d3b6 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/TransactionIdTestSupport.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/TransactionIdTestSupport.java
@@ -1 +1,44 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for TransactionId
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public abstract class TransactionIdTestSupport extends DataFileGeneratorTestSupport {
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
TransactionId info = (TransactionId) object;
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for TransactionId
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public abstract class TransactionIdTestSupport extends DataFileGeneratorTestSupport {
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ TransactionId info = (TransactionId) object;
+
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/TransactionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/TransactionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/TransactionInfoTest.java
index c1b0a04..b588d79 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/TransactionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/TransactionInfoTest.java
@@ -1 +1,56 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for TransactionInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class TransactionInfoTest extends BaseCommandTestSupport {
public static TransactionInfoTest SINGLETON = new TransactionInfoTest();
@Override
public Object createObject() throws Exception {
TransactionInfo info = new TransactionInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
TransactionInfo info = (TransactionInfo) object;
info.setConnectionId(createConnectionId("ConnectionId:1"));
info.setTransactionId(createTransactionId("TransactionId:2"));
info.setType((byte) 1);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for TransactionInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class TransactionInfoTest extends BaseCommandTestSupport {
+
+ public static TransactionInfoTest SINGLETON = new TransactionInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ TransactionInfo info = new TransactionInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ TransactionInfo info = (TransactionInfo) object;
+
+ info.setConnectionId(createConnectionId("ConnectionId:1"));
+ info.setTransactionId(createTransactionId("TransactionId:2"));
+ info.setType((byte) 1);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/XATransactionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/XATransactionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/XATransactionIdTest.java
index 034e1ff..7b5590a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/XATransactionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/XATransactionIdTest.java
@@ -1 +1,56 @@
-/**
*
* 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.openwire.v7;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for XATransactionId
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class XATransactionIdTest extends TransactionIdTestSupport {
public static XATransactionIdTest SINGLETON = new XATransactionIdTest();
@Override
public Object createObject() throws Exception {
XATransactionId info = new XATransactionId();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
XATransactionId info = (XATransactionId) object;
info.setFormatId(1);
info.setGlobalTransactionId("GlobalTransactionId:1".getBytes());
info.setBranchQualifier("BranchQualifier:2".getBytes());
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v7;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for XATransactionId
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class XATransactionIdTest extends TransactionIdTestSupport {
+
+ public static XATransactionIdTest SINGLETON = new XATransactionIdTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ XATransactionId info = new XATransactionId();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ XATransactionId info = (XATransactionId) object;
+
+ info.setFormatId(1);
+ info.setGlobalTransactionId("GlobalTransactionId:1".getBytes());
+ info.setBranchQualifier("BranchQualifier:2".getBytes());
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/BrokerIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/BrokerIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/BrokerIdTest.java
index dc36319..ac69b7b 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/BrokerIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/BrokerIdTest.java
@@ -1 +1,54 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for BrokerId
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class BrokerIdTest extends DataFileGeneratorTestSupport {
public static BrokerIdTest SINGLETON = new BrokerIdTest();
@Override
public Object createObject() throws Exception {
BrokerId info = new BrokerId();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
BrokerId info = (BrokerId) object;
info.setValue("Value:1");
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for BrokerId
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class BrokerIdTest extends DataFileGeneratorTestSupport {
+
+ public static BrokerIdTest SINGLETON = new BrokerIdTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ BrokerId info = new BrokerId();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ BrokerId info = (BrokerId) object;
+
+ info.setValue("Value:1");
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/BrokerInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/BrokerInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/BrokerInfoTest.java
index 3f1af52..54c3790 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/BrokerInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/BrokerInfoTest.java
@@ -1 +1,71 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for BrokerInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class BrokerInfoTest extends BaseCommandTestSupport {
public static BrokerInfoTest SINGLETON = new BrokerInfoTest();
@Override
public Object createObject() throws Exception {
BrokerInfo info = new BrokerInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
BrokerInfo info = (BrokerInfo) object;
info.setBrokerId(createBrokerId("BrokerId:1"));
info.setBrokerURL("BrokerURL:2");
{
BrokerInfo value[] = new BrokerInfo[0];
for (int i = 0; i < 0; i++) {
value[i] = createBrokerInfo("
PeerBrokerInfos:3");
}
info.setPeerBrokerInfos(value);
}
info.setBrokerName("BrokerName:4");
info.setSlaveBroker(true);
info.setMasterBroker(false);
info.setFaultTolerantConfiguration(true);
info.setDuplexConnection(false);
info.setNetworkConnection(true);
info.setConnectionId(1);
info.setBrokerUploadUrl("BrokerUploadUrl:5");
info.setNetworkProperties("NetworkProperties:6");
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for BrokerInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class BrokerInfoTest extends BaseCommandTestSupport {
+
+ public static BrokerInfoTest SINGLETON = new BrokerInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ BrokerInfo info = new BrokerInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ BrokerInfo info = (BrokerInfo) object;
+
+ info.setBrokerId(createBrokerId("BrokerId:1"));
+ info.setBrokerURL("BrokerURL:2");
+ {
+ BrokerInfo value[] = new BrokerInfo[0];
+ for (int i = 0; i < 0; i++) {
+ value[i] = createBrokerInfo("PeerBrokerInfos:3");
+ }
+ info.setPeerBrokerInfos(value);
+ }
+ info.setBrokerName("BrokerName:4");
+ info.setSlaveBroker(true);
+ info.setMasterBroker(false);
+ info.setFaultTolerantConfiguration(true);
+ info.setDuplexConnection(false);
+ info.setNetworkConnection(true);
+ info.setConnectionId(1);
+ info.setBrokerUploadUrl("BrokerUploadUrl:5");
+ info.setNetworkProperties("NetworkProperties:6");
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionControlTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionControlTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionControlTest.java
index 3e15949..872a0ec 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionControlTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionControlTest.java
@@ -1 +1,62 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ConnectionControl
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ConnectionControlTest extends BaseCommandTestSupport {
public static ConnectionControlTest SINGLETON = new ConnectionControlTest();
@Override
public Object createObject() throws Exception {
ConnectionControl info = new ConnectionControl();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ConnectionControl info = (ConnectionControl) object;
info.setClose(true);
info.setExit(false);
info.setFaultTolerant(true);
info.setResume(false);
info.setSuspend(true);
info.setConnectedBroke
rs("ConnectedBrokers:1");
info.setReconnectTo("ReconnectTo:2");
info.setRebalanceConnection(false);
info.setToken("Token:3".getBytes());
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ConnectionControl
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ConnectionControlTest extends BaseCommandTestSupport {
+
+ public static ConnectionControlTest SINGLETON = new ConnectionControlTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ConnectionControl info = new ConnectionControl();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ConnectionControl info = (ConnectionControl) object;
+
+ info.setClose(true);
+ info.setExit(false);
+ info.setFaultTolerant(true);
+ info.setResume(false);
+ info.setSuspend(true);
+ info.setConnectedBrokers("ConnectedBrokers:1");
+ info.setReconnectTo("ReconnectTo:2");
+ info.setRebalanceConnection(false);
+ info.setToken("Token:3".getBytes());
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionErrorTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionErrorTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionErrorTest.java
index d17f681..8ba145c 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionErrorTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionErrorTest.java
@@ -1 +1,55 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ConnectionError
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ConnectionErrorTest extends BaseCommandTestSupport {
public static ConnectionErrorTest SINGLETON = new ConnectionErrorTest();
@Override
public Object createObject() throws Exception {
ConnectionError info = new ConnectionError();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ConnectionError info = (ConnectionError) object;
info.setException(createThrowable("Exception:1"));
info.setConnectionId(createConnectionId("ConnectionId:2"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ConnectionError
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ConnectionErrorTest extends BaseCommandTestSupport {
+
+ public static ConnectionErrorTest SINGLETON = new ConnectionErrorTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ConnectionError info = new ConnectionError();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ConnectionError info = (ConnectionError) object;
+
+ info.setException(createThrowable("Exception:1"));
+ info.setConnectionId(createConnectionId("ConnectionId:2"));
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionIdTest.java
index e2b71cf..66d94c2 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionIdTest.java
@@ -1 +1,54 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ConnectionId
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ConnectionIdTest extends DataFileGeneratorTestSupport {
public static ConnectionIdTest SINGLETON = new ConnectionIdTest();
@Override
public Object createObject() throws Exception {
ConnectionId info = new ConnectionId();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ConnectionId info = (ConnectionId) object;
info.setValue("Value:1");
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ConnectionId
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ConnectionIdTest extends DataFileGeneratorTestSupport {
+
+ public static ConnectionIdTest SINGLETON = new ConnectionIdTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ConnectionId info = new ConnectionId();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ConnectionId info = (ConnectionId) object;
+
+ info.setValue("Value:1");
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionInfoTest.java
index 0e6eba3..9b368b4 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionInfoTest.java
@@ -1 +1,70 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ConnectionInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ConnectionInfoTest extends BaseCommandTestSupport {
public static ConnectionInfoTest SINGLETON = new ConnectionInfoTest();
@Override
public Object createObject() throws Exception {
ConnectionInfo info = new ConnectionInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ConnectionInfo info = (ConnectionInfo) object;
info.setConnectionId(createConnectionId("ConnectionId:1"));
info.setClientId("ClientId:2");
info.setPassword("Password:3");
info.setUserName("UserName:4");
{
Br
okerId value[] = new BrokerId[2];
for (int i = 0; i < 2; i++) {
value[i] = createBrokerId("BrokerPath:5");
}
info.setBrokerPath(value);
}
info.setBrokerMasterConnector(true);
info.setManageable(false);
info.setClientMaster(true);
info.setFaultTolerant(false);
info.setFailoverReconnect(true);
info.setClientIp("ClientIp:6");
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ConnectionInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ConnectionInfoTest extends BaseCommandTestSupport {
+
+ public static ConnectionInfoTest SINGLETON = new ConnectionInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ConnectionInfo info = new ConnectionInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ConnectionInfo info = (ConnectionInfo) object;
+
+ info.setConnectionId(createConnectionId("ConnectionId:1"));
+ info.setClientId("ClientId:2");
+ info.setPassword("Password:3");
+ info.setUserName("UserName:4");
+ {
+ BrokerId value[] = new BrokerId[2];
+ for (int i = 0; i < 2; i++) {
+ value[i] = createBrokerId("BrokerPath:5");
+ }
+ info.setBrokerPath(value);
+ }
+ info.setBrokerMasterConnector(true);
+ info.setManageable(false);
+ info.setClientMaster(true);
+ info.setFaultTolerant(false);
+ info.setFailoverReconnect(true);
+ info.setClientIp("ClientIp:6");
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerControlTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerControlTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerControlTest.java
index d18d22e..c1114ab 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerControlTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerControlTest.java
@@ -1 +1,60 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ConsumerControl
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ConsumerControlTest extends BaseCommandTestSupport {
public static ConsumerControlTest SINGLETON = new ConsumerControlTest();
@Override
public Object createObject() throws Exception {
ConsumerControl info = new ConsumerControl();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ConsumerControl info = (ConsumerControl) object;
info.setDestination(createActiveMQDestination("Destination:1"));
info.setClose(true);
info.setConsumerId(createConsumerId("ConsumerId:2"));
info.setPrefetch(1);
info.setFlush(false);
info.setStart(true);
info.setStop(false);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ConsumerControl
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ConsumerControlTest extends BaseCommandTestSupport {
+
+ public static ConsumerControlTest SINGLETON = new ConsumerControlTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ConsumerControl info = new ConsumerControl();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ConsumerControl info = (ConsumerControl) object;
+
+ info.setDestination(createActiveMQDestination("Destination:1"));
+ info.setClose(true);
+ info.setConsumerId(createConsumerId("ConsumerId:2"));
+ info.setPrefetch(1);
+ info.setFlush(false);
+ info.setStart(true);
+ info.setStop(false);
+ }
+}
[22/32] activemq-artemis git commit: Remove unnecessary semicolons
Posted by cl...@apache.org.
Remove unnecessary semicolons
Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/d0223af6
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/d0223af6
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/d0223af6
Branch: refs/heads/master
Commit: d0223af640ec380d83200690cf9adc9da48e7919
Parents: 7bf3923
Author: Ville Skyttä <vi...@iki.fi>
Authored: Sun Dec 6 12:01:05 2015 +0200
Committer: Ville Skyttä <vi...@iki.fi>
Committed: Mon Dec 7 22:55:05 2015 +0200
----------------------------------------------------------------------
.../main/java/org/apache/activemq/ActiveMQConnectionFactory.java | 1 -
.../src/test/java/org/apache/activemq/JMSConsumerTest.java | 1 -
.../src/test/java/org/apache/activemq/JmsQueueBrowserTest.java | 2 --
.../apache/activemq/JmsSendReceiveWithMessageExpirationTest.java | 2 --
.../src/test/java/org/apache/activemq/SpringTestSupport.java | 2 --
.../src/test/java/org/apache/activemq/TestSupport.java | 2 --
.../src/test/java/org/apache/activemq/broker/BrokerBenchmark.java | 2 --
.../test/java/org/apache/activemq/broker/BrokerTestSupport.java | 2 --
.../java/org/apache/activemq/broker/MarshallingBrokerTest.java | 2 --
.../activemq/broker/policy/MessageListenerDeadLetterTest.java | 2 --
.../activemq/broker/region/QueueDuplicatesFromStoreTest.java | 2 --
.../src/test/java/org/apache/activemq/bugs/AMQ1936Test.java | 1 -
.../src/test/java/org/apache/activemq/bugs/AMQ3014Test.java | 1 -
.../src/test/java/org/apache/activemq/bugs/AMQ3405Test.java | 2 --
.../src/test/java/org/apache/activemq/bugs/AMQ4083Test.java | 2 --
.../test/java/org/apache/activemq/bugs/AMQ4485LowLimitTest.java | 1 -
.../test/java/org/apache/activemq/joramtests/ActiveMQAdmin.java | 1 -
.../test/java/org/apache/activemq/network/NetworkFailoverTest.java | 1 -
.../src/test/java/org/apache/activemq/perf/NetworkedSyncTest.java | 1 -
.../activemq/store/kahadb/KahaDBStoreRecoveryBrokerTest.java | 1 -
.../java/org/apache/activemq/store/kahadb/plist/PListTest.java | 2 --
.../org/apache/activemq/transport/tcp/ServerSocketTstFactory.java | 2 --
.../java/org/apache/activemq/transport/tcp/SocketTstFactory.java | 2 --
.../activemq/usecases/ConcurrentProducerDurableConsumerTest.java | 1 -
.../activemq/usecases/ConcurrentProducerQueueConsumerTest.java | 1 -
.../java/org/apache/activemq/usecases/ExpiredMessagesTest.java | 2 --
.../java/org/apache/activemq/usecases/JdbcDurableSubDupTest.java | 1 -
.../usecases/TestBrokerConnectionDuplexExcludedDestinations.java | 1 -
.../src/test/java/org/apache/activemq/util/LinkedNodeTest.java | 2 --
29 files changed, 45 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/d0223af6/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/ActiveMQConnectionFactory.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/ActiveMQConnectionFactory.java b/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/ActiveMQConnectionFactory.java
index 02e5c62..da9e91a 100644
--- a/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/ActiveMQConnectionFactory.java
+++ b/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/ActiveMQConnectionFactory.java
@@ -209,7 +209,6 @@ public class ActiveMQConnectionFactory extends JNDIBaseStorable implements Conne
params.clear();
this.vmBrokerUri = URISupport.createRemainingURI(uri, params);
- ;
}
}
catch (URISyntaxException e) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/d0223af6/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JMSConsumerTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JMSConsumerTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JMSConsumerTest.java
index bb00a2b..6bf47f6 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JMSConsumerTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JMSConsumerTest.java
@@ -168,7 +168,6 @@ public class JMSConsumerTest extends JmsTestSupport {
}
}
}
- ;
final ExecutorService executor = Executors.newCachedThreadPool();
consumer.setMessageListener(new MessageListener() {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/d0223af6/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsQueueBrowserTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsQueueBrowserTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsQueueBrowserTest.java
index fdba2e3..12e7827 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsQueueBrowserTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsQueueBrowserTest.java
@@ -121,7 +121,6 @@ public class JmsQueueBrowserTest extends JmsTestSupport {
for (int i = 0; i < 10; i++) {
outbound[i] = session.createTextMessage(i + " Message");
}
- ;
// lets consume any outstanding messages from previous test runs
while (consumer.receive(1000) != null) {
@@ -178,7 +177,6 @@ public class JmsQueueBrowserTest extends JmsTestSupport {
for (int i = 0; i < 10; i++) {
outbound[i] = session.createTextMessage(i + " Message");
}
- ;
// lets consume any outstanding messages from previous test runs
while (consumer.receive(1000) != null) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/d0223af6/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsSendReceiveWithMessageExpirationTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsSendReceiveWithMessageExpirationTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsSendReceiveWithMessageExpirationTest.java
index 5932c06..6e4e214 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsSendReceiveWithMessageExpirationTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsSendReceiveWithMessageExpirationTest.java
@@ -154,7 +154,6 @@ public class JmsSendReceiveWithMessageExpirationTest extends TestSupport {
}
received.acknowledge();
}
- ;
assertEquals("got all (normal plus one with ttl) messages", messageCount + 1, messages.size());
@@ -162,7 +161,6 @@ public class JmsSendReceiveWithMessageExpirationTest extends TestSupport {
while ((received = dlqConsumer.receive(1000)) != null) {
dlqMessages.add(received);
}
- ;
assertEquals("got dlq messages", data.length - 1, dlqMessages.size());
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/d0223af6/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/SpringTestSupport.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/SpringTestSupport.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/SpringTestSupport.java
index 3418bf9..bea4d4e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/SpringTestSupport.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/SpringTestSupport.java
@@ -39,8 +39,6 @@ public abstract class SpringTestSupport extends TestCase {
protected abstract AbstractApplicationContext createApplicationContext();
- ;
-
@Override
protected void tearDown() throws Exception {
if (context != null) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/d0223af6/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/TestSupport.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/TestSupport.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/TestSupport.java
index 247047d..9ab35dc 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/TestSupport.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/TestSupport.java
@@ -172,8 +172,6 @@ public abstract class TestSupport extends CombinationTestSupport {
public static enum PersistenceAdapterChoice {LevelDB, KahaDB, AMQ, JDBC, MEM}
- ;
-
public PersistenceAdapter setDefaultPersistenceAdapter(BrokerService broker) throws IOException {
return setPersistenceAdapter(broker, defaultPersistenceAdapter);
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/d0223af6/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/BrokerBenchmark.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/BrokerBenchmark.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/BrokerBenchmark.java
index b2f3204..ddb46c8 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/BrokerBenchmark.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/BrokerBenchmark.java
@@ -175,8 +175,6 @@ public class BrokerBenchmark extends BrokerTestSupport {
producersFinished.release();
}
}
-
- ;
}.start();
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/d0223af6/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/BrokerTestSupport.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/BrokerTestSupport.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/BrokerTestSupport.java
index 4ded65e..e79d511 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/BrokerTestSupport.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/BrokerTestSupport.java
@@ -351,8 +351,6 @@ public class BrokerTestSupport extends CombinationTestSupport {
}
}
- ;
-
protected void assertNoMessagesLeft(StubConnection connection) throws InterruptedException {
long wait = FAST_NO_MESSAGE_LEFT_ASSERT ? 0 : maxWait;
while (true) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/d0223af6/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/MarshallingBrokerTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/MarshallingBrokerTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/MarshallingBrokerTest.java
index 36c5e71..0733e39 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/MarshallingBrokerTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/MarshallingBrokerTest.java
@@ -62,8 +62,6 @@ public class MarshallingBrokerTest extends BrokerTest {
protected void dispatch(Command command) throws InterruptedException, IOException {
super.dispatch(wireFormat.unmarshal(wireFormat.marshal(command)));
}
-
- ;
};
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/d0223af6/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/MessageListenerDeadLetterTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/MessageListenerDeadLetterTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/MessageListenerDeadLetterTest.java
index cdbd6fb..312f62e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/MessageListenerDeadLetterTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/policy/MessageListenerDeadLetterTest.java
@@ -96,8 +96,6 @@ public class MessageListenerDeadLetterTest extends DeadLetterTestSupport {
super.tearDown();
}
- ;
-
@Override
protected ActiveMQConnectionFactory createConnectionFactory() throws Exception {
ActiveMQConnectionFactory answer = super.createConnectionFactory();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/d0223af6/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/QueueDuplicatesFromStoreTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/QueueDuplicatesFromStoreTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/QueueDuplicatesFromStoreTest.java
index c85a678..4daa2f5 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/QueueDuplicatesFromStoreTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/broker/region/QueueDuplicatesFromStoreTest.java
@@ -164,8 +164,6 @@ public class QueueDuplicatesFromStoreTest extends TestCase {
public void destroy() {
}
- ;
-
@Override
public void gc() {
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/d0223af6/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1936Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1936Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1936Test.java
index 345fb69..dac6bf4 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1936Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ1936Test.java
@@ -75,7 +75,6 @@ public class AMQ1936Test extends TestCase {
broker.setDeleteAllMessagesOnStartup(true);
broker.start();
connectionFactory = new ActiveMQConnectionFactory("vm://test");
- ;
}
@Override
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/d0223af6/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3014Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3014Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3014Test.java
index a67ef33..1e3c737 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3014Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3014Test.java
@@ -195,7 +195,6 @@ public class AMQ3014Test {
}
Assert.assertFalse("Timed out waiting for bridge to form.", remoteBrokerInfos.isEmpty());
- ;
Assert.assertNotNull("Local broker ID is null.", remoteBrokerInfos.get(0).getBrokerId());
}
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/d0223af6/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3405Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3405Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3405Test.java
index 39cf640..5a58dd3 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3405Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ3405Test.java
@@ -192,8 +192,6 @@ public class AMQ3405Test extends TestSupport {
}
}
- ;
-
@Override
protected ActiveMQConnectionFactory createConnectionFactory() throws Exception {
ActiveMQConnectionFactory answer = super.createConnectionFactory();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/d0223af6/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4083Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4083Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4083Test.java
index 1e4d062..882105b 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4083Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4083Test.java
@@ -493,7 +493,6 @@ public class AMQ4083Test {
}
received.acknowledge();
}
- ;
assertEquals("got messages", messageCount + 1, messages.size());
@@ -501,7 +500,6 @@ public class AMQ4083Test {
while ((received = dlqConsumer.receive(1000)) != null) {
dlqMessages.add(received);
}
- ;
assertEquals("got dlq messages", data.length - 1, dlqMessages.size());
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/d0223af6/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4485LowLimitTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4485LowLimitTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4485LowLimitTest.java
index a034b37..4c48c2c 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4485LowLimitTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4485LowLimitTest.java
@@ -246,7 +246,6 @@ public class AMQ4485LowLimitTest extends JmsMultipleBrokersTestSupport {
if (tally.expected.size() == 1) {
startConsumer(tally.brokerName, tally.destination);
}
- ;
return false;
}
LOG.info("got tally on " + tally.brokerName);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/d0223af6/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/joramtests/ActiveMQAdmin.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/joramtests/ActiveMQAdmin.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/joramtests/ActiveMQAdmin.java
index 3befdb6..b3383f3 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/joramtests/ActiveMQAdmin.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/joramtests/ActiveMQAdmin.java
@@ -45,7 +45,6 @@ public class ActiveMQAdmin implements Admin {
final Hashtable<String, String> env = new Hashtable<>();
env.put("java.naming.factory.initial", "org.eclipse.jetty.jndi.InitialContextFactory");
env.put("java.naming.factory.url.pkgs", "org.eclipse.jetty.jndi");
- ;
context = new InitialContext(env);
}
catch (NamingException e) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/d0223af6/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/NetworkFailoverTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/NetworkFailoverTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/NetworkFailoverTest.java
index 5cb9a12..5e24b5e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/NetworkFailoverTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/NetworkFailoverTest.java
@@ -92,7 +92,6 @@ public class NetworkFailoverTest extends TestCase {
catch (JMSException e) {
e.printStackTrace();
}
- ;
}
catch (Exception e) {
LOG.warn("*** Responder listener caught exception: ", e);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/d0223af6/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/perf/NetworkedSyncTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/perf/NetworkedSyncTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/perf/NetworkedSyncTest.java
index 4cff30c..215456b 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/perf/NetworkedSyncTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/perf/NetworkedSyncTest.java
@@ -253,7 +253,6 @@ class Producer implements Runnable {
class Consumer implements Runnable {
private static final Logger LOG = LoggerFactory.getLogger(Consumer.class);
- ;
/**
* connect to broker and receive messages
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/d0223af6/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBStoreRecoveryBrokerTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBStoreRecoveryBrokerTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBStoreRecoveryBrokerTest.java
index 2163e5c..bddfde8 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBStoreRecoveryBrokerTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBStoreRecoveryBrokerTest.java
@@ -46,7 +46,6 @@ public class KahaDBStoreRecoveryBrokerTest extends RecoveryBrokerTest {
enum CorruptionType {None, FailToLoad, LoadInvalid, LoadCorrupt, LoadOrderIndex0}
- ;
public CorruptionType failTest = CorruptionType.None;
@Override
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/d0223af6/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/kahadb/plist/PListTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/kahadb/plist/PListTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/kahadb/plist/PListTest.java
index 7cff644..73adb52 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/kahadb/plist/PListTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/kahadb/plist/PListTest.java
@@ -232,7 +232,6 @@ public class PListTest {
}
}
}
- ;
class B implements Runnable {
@@ -259,7 +258,6 @@ public class PListTest {
}
}
}
- ;
executor.execute(new A());
executor.execute(new A());
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/d0223af6/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/ServerSocketTstFactory.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/ServerSocketTstFactory.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/ServerSocketTstFactory.java
index af3dbb7..6d68166 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/ServerSocketTstFactory.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/ServerSocketTstFactory.java
@@ -52,8 +52,6 @@ public class ServerSocketTstFactory extends ServerSocketFactory {
}
}
- ;
-
private final Random rnd;
public ServerSocketTstFactory() {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/d0223af6/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/SocketTstFactory.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/SocketTstFactory.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/SocketTstFactory.java
index 34158cb..f35fe69 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/SocketTstFactory.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/tcp/SocketTstFactory.java
@@ -139,8 +139,6 @@ public class SocketTstFactory extends SocketFactory {
}
}
- ;
-
private final Random rnd;
public SocketTstFactory() {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/d0223af6/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ConcurrentProducerDurableConsumerTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ConcurrentProducerDurableConsumerTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ConcurrentProducerDurableConsumerTest.java
index e470949..75922ec 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ConcurrentProducerDurableConsumerTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ConcurrentProducerDurableConsumerTest.java
@@ -264,7 +264,6 @@ public class ConcurrentProducerDurableConsumerTest extends TestSupport {
LOG.info("Signalled add consumer");
}
}
- ;
if (count % 5000 == 0) {
LOG.info("Sent " + count + ", singleSendMax:" + max);
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/d0223af6/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ConcurrentProducerQueueConsumerTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ConcurrentProducerQueueConsumerTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ConcurrentProducerQueueConsumerTest.java
index 14ac31f..dd126d8 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ConcurrentProducerQueueConsumerTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ConcurrentProducerQueueConsumerTest.java
@@ -249,7 +249,6 @@ public class ConcurrentProducerQueueConsumerTest extends TestSupport {
LOG.info("Signalled add consumer");
}
}
- ;
if (count % 5000 == 0) {
LOG.info("Sent " + count + ", singleSendMax:" + max);
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/d0223af6/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ExpiredMessagesTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ExpiredMessagesTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ExpiredMessagesTest.java
index d1f1358..8e55aba 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ExpiredMessagesTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ExpiredMessagesTest.java
@@ -214,8 +214,6 @@ public class ExpiredMessagesTest extends CombinationTestSupport {
}
- ;
-
private MessageConsumer createDlqConsumer(Connection connection) throws Exception {
return connection.createSession(false, Session.AUTO_ACKNOWLEDGE).createConsumer(dlqDestination);
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/d0223af6/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/JdbcDurableSubDupTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/JdbcDurableSubDupTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/JdbcDurableSubDupTest.java
index 88adefe..7dea0df 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/JdbcDurableSubDupTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/JdbcDurableSubDupTest.java
@@ -198,7 +198,6 @@ public class JdbcDurableSubDupTest {
}
catch (InterruptedException e) {
}
- ;
try {
TextMessage m = (TextMessage) message;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/d0223af6/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TestBrokerConnectionDuplexExcludedDestinations.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TestBrokerConnectionDuplexExcludedDestinations.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TestBrokerConnectionDuplexExcludedDestinations.java
index 53fda1a..b0f4f2a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TestBrokerConnectionDuplexExcludedDestinations.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TestBrokerConnectionDuplexExcludedDestinations.java
@@ -163,7 +163,6 @@ public class TestBrokerConnectionDuplexExcludedDestinations extends TestCase {
// we should be able to receive excluded queue message on Hub
MessageConsumer excludedConsumerHub = hubSession.createConsumer(excludedQueueHub);
msg = excludedConsumerHub.receive(200);
- ;
assertEquals(excludedMsgHub, msg);
hubProducer.close();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/d0223af6/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/util/LinkedNodeTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/util/LinkedNodeTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/util/LinkedNodeTest.java
index becd42a..4243375 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/util/LinkedNodeTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/util/LinkedNodeTest.java
@@ -31,8 +31,6 @@ public class LinkedNodeTest extends TestCase {
this.v = v;
}
- ;
-
@Override
public String toString() {
return "" + v;
[32/32] activemq-artemis git commit: This closes #258
Posted by cl...@apache.org.
This closes #258
Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/8abf9cfa
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/8abf9cfa
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/8abf9cfa
Branch: refs/heads/master
Commit: 8abf9cfaa6fa4b09a418f4d40e91517746d4427a
Parents: b0007c4 6288f37
Author: Clebert Suconic <cl...@apache.org>
Authored: Mon Dec 7 19:09:05 2015 -0500
Committer: Clebert Suconic <cl...@apache.org>
Committed: Mon Dec 7 19:09:05 2015 -0500
----------------------------------------------------------------------
.../apache/activemq/artemis/boot/Artemis.java | 8 +-
.../apache/activemq/artemis/cli/Artemis.java | 3 +-
.../activemq/artemis/cli/commands/Create.java | 4 +-
.../cli/commands/tools/DecodeJournal.java | 2 +-
.../artemis/cli/commands/tools/PrintData.java | 12 +-
.../artemis/integration/FileBroker.java | 2 +-
.../artemis/api/core/ActiveMQExceptionType.java | 2 +-
.../activemq/artemis/api/core/SimpleString.java | 2 +-
.../artemis/utils/ConcurrentHashSet.java | 2 +-
.../activemq/artemis/utils/FactoryFinder.java | 2 +-
.../apache/activemq/artemis/utils/FileUtil.java | 3 +-
.../artemis/utils/PasswordMaskingUtil.java | 2 +-
.../activemq/artemis/utils/TypedProperties.java | 8 +-
.../apache/activemq/artemis/utils/UTF8Util.java | 6 +-
.../activemq/artemis/utils/UUIDGenerator.java | 4 +-
.../activemq/artemis/utils/uri/URISchema.java | 2 +-
.../apache/activemq/artemis/utils/PairTest.java | 2 +-
.../api/core/JGroupsBroadcastEndpoint.java | 4 +-
.../api/core/TransportConfiguration.java | 2 +-
.../api/core/management/ManagementHelper.java | 4 +-
.../core/client/impl/AddressQueryImpl.java | 2 +-
.../core/client/impl/ClientConsumerImpl.java | 2 +-
.../impl/ClientProducerCreditManagerImpl.java | 4 +-
.../client/impl/ClientSessionFactoryImpl.java | 18 +--
.../core/client/impl/ClientSessionImpl.java | 12 +-
.../core/client/impl/DelegatingSession.java | 2 +-
.../core/client/impl/ServerLocatorImpl.java | 14 +-
.../artemis/core/client/impl/Topology.java | 2 +-
.../core/client/impl/TopologyMemberImpl.java | 2 +-
.../artemis/core/cluster/DiscoveryGroup.java | 8 +-
.../artemis/core/message/impl/MessageImpl.java | 2 +-
.../core/protocol/core/impl/ChannelImpl.java | 2 +-
.../core/impl/RemotingConnectionImpl.java | 4 +-
.../ClusterTopologyChangeMessage.java | 2 +-
.../ClusterTopologyChangeMessage_V2.java | 2 +-
.../SessionBindingQueryResponseMessage.java | 2 +-
.../SessionXAGetInDoubtXidsResponseMessage.java | 2 +-
.../impl/TransportConfigurationUtil.java | 2 +-
.../remoting/impl/netty/NettyConnection.java | 2 +-
.../remoting/impl/netty/NettyConnector.java | 4 +-
.../impl/netty/SharedNioEventLoopGroup.java | 2 +-
.../remoting/impl/netty/TransportConstants.java | 4 +-
.../activemq/artemis/reader/MessageUtil.java | 4 +-
.../protocol/AbstractRemotingConnection.java | 12 +-
.../artemis/utils/ConfigurationHelper.java | 4 +-
.../activemq/artemis/utils/LinkedListImpl.java | 6 +-
.../activemq/artemis/utils/MemorySize.java | 2 +-
.../artemis/utils/OrderedExecutorFactory.java | 2 +-
.../artemis/utils/PriorityLinkedListImpl.java | 2 +-
.../artemis/utils/SecurityFormatter.java | 6 +-
.../artemis/utils/SoftValueHashMap.java | 12 +-
.../activemq/artemis/utils/VersionLoader.java | 2 +-
.../apache/activemq/artemis/utils/XMLUtil.java | 2 +-
.../activemq/artemis/utils/json/JSONArray.java | 6 +-
.../artemis/util/CompressionUtilTest.java | 6 +-
.../artemis/util/ConcurrentHashSetTest.java | 2 +-
.../util/TimeAndCounterIDGeneratorTest.java | 2 +-
.../artemis/jms/client/ActiveMQConnection.java | 12 +-
.../jms/client/ActiveMQConnectionMetaData.java | 2 +-
.../artemis/jms/client/ActiveMQDestination.java | 2 +-
.../artemis/jms/client/ActiveMQJMSProducer.java | 2 +-
.../artemis/jms/client/ActiveMQMapMessage.java | 2 +-
.../artemis/jms/client/ActiveMQMessage.java | 4 +-
.../artemis/jms/client/ActiveMQSession.java | 4 +-
.../artemis/jms/client/SelectorTranslator.java | 2 +-
.../artemis/jms/client/ThreadAwareContext.java | 2 +-
.../activemq/artemis/jndi/ReadOnlyContext.java | 22 +--
.../artemis/uri/ConnectionFactoryURITest.java | 2 +-
.../artemis/jms/bridge/impl/JMSBridgeImpl.java | 5 +-
.../management/impl/JMSQueueControlImpl.java | 2 +-
.../management/impl/JMSServerControlImpl.java | 10 +-
.../management/impl/JMSTopicControlImpl.java | 4 +-
.../persistence/config/PersistedBindings.java | 4 +-
.../journal/JMSJournalStorageManagerImpl.java | 30 ++--
.../ConnectionFactoryConfigurationImpl.java | 2 +-
.../config/impl/JMSConfigurationImpl.java | 6 +-
.../TransportConfigurationEncodingSupport.java | 6 +-
.../jms/server/impl/JMSServerManagerImpl.java | 35 ++--
.../core/io/aio/AIOSequentialFileFactory.java | 2 +-
.../artemis/core/io/buffer/TimedBuffer.java | 4 +-
.../core/io/nio/NIOSequentialFileFactory.java | 2 +-
.../core/journal/PreparedTransactionInfo.java | 4 +-
.../journal/impl/AbstractJournalUpdateTask.java | 4 +-
.../core/journal/impl/FileWrapperJournal.java | 2 +-
.../core/journal/impl/JournalCompactor.java | 12 +-
.../core/journal/impl/JournalFileImpl.java | 2 +-
.../journal/impl/JournalFilesRepository.java | 6 +-
.../artemis/core/journal/impl/JournalImpl.java | 30 ++--
.../core/journal/impl/JournalRecord.java | 4 +-
.../core/journal/impl/JournalTransaction.java | 14 +-
.../artemis/maven/ArtemisAbstractPlugin.java | 2 +-
.../converter/jms/ServerJMSMapMessage.java | 2 +-
.../core/protocol/proton/TestConversions.java | 2 +-
.../hornetq/util/HQPropertiesConverter.java | 2 +-
.../core/protocol/mqtt/MQTTConnection.java | 4 +-
.../protocol/mqtt/MQTTConnectionManager.java | 2 +-
.../core/protocol/mqtt/MQTTSessionState.java | 4 +-
.../protocol/openwire/OpenWireConnection.java | 24 +--
.../openwire/OpenWireProtocolManager.java | 14 +-
.../core/protocol/openwire/amq/AMQConsumer.java | 2 +-
.../protocol/openwire/amq/AMQServerSession.java | 8 +-
.../core/protocol/openwire/amq/AMQSession.java | 2 +-
.../context/AbstractProtonSessionContext.java | 4 +-
.../server/ProtonServerSessionContext.java | 2 +-
.../org/proton/plug/test/AbstractJMSTest.java | 2 +-
.../protocol/stomp/ActiveMQStompException.java | 2 +-
.../core/protocol/stomp/StompConnection.java | 14 +-
.../core/protocol/stomp/StompDecoder.java | 2 +-
.../artemis/core/protocol/stomp/StompFrame.java | 2 +-
.../protocol/stomp/StompProtocolManager.java | 6 +-
.../core/protocol/stomp/StompSession.java | 6 +-
.../artemis/core/protocol/stomp/StompUtils.java | 2 +-
.../core/protocol/stomp/v11/StompFrameV11.java | 2 +-
.../ra/ActiveMQRAConnectionMetaData.java | 2 +-
.../artemis/ra/ActiveMQRAManagedConnection.java | 2 +-
.../ra/ActiveMQRAManagedConnectionFactory.java | 2 +-
.../activemq/artemis/ra/ActiveMQRASession.java | 4 +-
.../ra/ActiveMQRASessionFactoryImpl.java | 6 +-
.../activemq/artemis/ra/ActiveMQRaUtils.java | 8 +-
.../artemis/ra/ActiveMQResourceAdapter.java | 12 +-
.../artemis/ra/inflow/ActiveMQActivation.java | 8 +-
.../ra/inflow/ActiveMQActivationSpec.java | 4 +-
.../ra/inflow/ActiveMQMessageHandler.java | 2 +-
.../artemis/ra/recovery/RecoveryManager.java | 2 +-
.../artemis/rest/MessageServiceManager.java | 2 +-
.../artemis/rest/queue/ConsumersResource.java | 2 +-
.../artemis/rest/queue/PostMessage.java | 2 +-
.../rest/queue/QueueDestinationsResource.java | 2 +-
.../artemis/rest/queue/QueueServiceManager.java | 2 +-
.../artemis/rest/queue/push/FilePushStore.java | 8 +-
.../artemis/rest/queue/push/PushConsumer.java | 4 +-
.../rest/queue/push/PushConsumerResource.java | 2 +-
.../rest/queue/push/xml/PushRegistration.java | 2 +-
.../artemis/rest/topic/FileTopicPushStore.java | 2 +-
.../rest/topic/PushSubscriptionsResource.java | 2 +-
.../rest/topic/SubscriptionsResource.java | 2 +-
.../rest/topic/TopicDestinationsResource.java | 2 +-
.../artemis/rest/topic/TopicServiceManager.java | 2 +-
.../activemq/artemis/rest/util/TimeoutTask.java | 10 +-
.../activemq/artemis/rest/test/RawAckTest.java | 2 +-
.../selector/filter/ComparisonExpression.java | 4 +-
.../selector/filter/UnaryExpression.java | 4 +-
.../activemq/artemis/selector/SelectorTest.java | 10 +-
.../activemq/artemis/osgi/OsgiBroker.java | 4 +-
.../activemq/artemis/osgi/ProtocolTracker.java | 4 +-
.../core/config/impl/ConfigurationImpl.java | 30 ++--
.../core/config/impl/SecurityConfiguration.java | 4 +-
.../deployers/impl/FileConfigurationParser.java | 36 ++---
.../impl/ActiveMQServerControlImpl.java | 13 +-
.../management/impl/AddressControlImpl.java | 4 +-
.../core/management/impl/MBeanInfoHelper.java | 2 +-
.../core/management/impl/QueueControlImpl.java | 6 +-
.../core/messagecounter/MessageCounter.java | 4 +-
.../impl/MessageCounterManagerImpl.java | 4 +-
.../core/paging/cursor/PagedReferenceImpl.java | 4 +-
.../paging/cursor/impl/LivePageCacheImpl.java | 2 +-
.../cursor/impl/PageCursorProviderImpl.java | 8 +-
.../impl/PageSubscriptionCounterImpl.java | 14 +-
.../cursor/impl/PageSubscriptionImpl.java | 18 +--
.../activemq/artemis/core/paging/impl/Page.java | 4 +-
.../artemis/core/paging/impl/PageSyncTimer.java | 2 +-
.../paging/impl/PageTransactionInfoImpl.java | 2 +-
.../core/paging/impl/PagingManagerImpl.java | 4 +-
.../core/paging/impl/PagingStoreFactoryNIO.java | 2 +-
.../core/paging/impl/PagingStoreImpl.java | 6 +-
.../impl/journal/DescribeJournal.java | 10 +-
.../impl/journal/JournalStorageManager.java | 50 +++---
.../impl/journal/OperationContextImpl.java | 4 +-
.../core/postoffice/impl/AddressImpl.java | 2 +-
.../core/postoffice/impl/BindingsImpl.java | 10 +-
.../postoffice/impl/DuplicateIDCacheImpl.java | 8 +-
.../core/postoffice/impl/PostOfficeImpl.java | 20 +--
.../postoffice/impl/SimpleAddressManager.java | 6 +-
.../postoffice/impl/WildcardAddressManager.java | 4 +-
.../protocol/core/impl/CoreProtocolManager.java | 8 +-
.../BackupReplicationStartFailedMessage.java | 2 +-
.../core/registry/MapBindingRegistry.java | 2 +-
.../core/remoting/impl/invm/InVMAcceptor.java | 2 +-
.../core/remoting/impl/invm/InVMConnection.java | 2 +-
.../core/remoting/impl/invm/InVMConnector.java | 4 +-
.../core/remoting/impl/invm/InVMRegistry.java | 2 +-
.../impl/netty/HttpAcceptorHandler.java | 4 +-
.../impl/netty/HttpKeepAliveRunnable.java | 2 +-
.../core/remoting/impl/netty/NettyAcceptor.java | 2 +-
.../server/impl/RemotingServiceImpl.java | 12 +-
.../core/replication/ReplicationEndpoint.java | 10 +-
.../core/replication/ReplicationManager.java | 6 +-
.../core/security/impl/SecurityStoreImpl.java | 4 +-
.../core/server/cluster/ClusterManager.java | 12 +-
.../core/server/cluster/impl/BridgeImpl.java | 6 +-
.../server/cluster/impl/BroadcastGroupImpl.java | 2 +-
.../cluster/impl/ClusterConnectionBridge.java | 6 +-
.../cluster/impl/ClusterConnectionImpl.java | 12 +-
.../cluster/impl/RemoteQueueBindingImpl.java | 4 +-
.../server/group/impl/LocalGroupingHandler.java | 16 +-
.../group/impl/RemoteGroupingHandler.java | 6 +-
.../core/server/impl/ActiveMQServerImpl.java | 18 +--
.../impl/AnyLiveNodeLocatorForReplication.java | 6 +-
.../core/server/impl/ConnectorsService.java | 2 +-
.../core/server/impl/LastValueQueue.java | 2 +-
.../impl/LegacyLDAPSecuritySettingPlugin.java | 4 +-
.../NamedLiveNodeLocatorForReplication.java | 2 +-
.../impl/NamedLiveNodeLocatorForScaleDown.java | 2 +-
.../server/impl/PostOfficeJournalLoader.java | 6 +-
.../artemis/core/server/impl/QueueImpl.java | 22 +--
.../artemis/core/server/impl/RefsOperation.java | 12 +-
.../core/server/impl/RoutingContextImpl.java | 6 +-
.../core/server/impl/ScaleDownHandler.java | 2 +-
.../impl/ScheduledDeliveryHandlerImpl.java | 8 +-
.../core/server/impl/ServerConsumerImpl.java | 6 +-
.../core/server/impl/ServerSessionImpl.java | 28 ++--
.../management/impl/ManagementServiceImpl.java | 16 +-
.../impl/HierarchicalObjectRepository.java | 18 +--
.../transaction/impl/ResourceManagerImpl.java | 12 +-
.../core/transaction/impl/TransactionImpl.java | 6 +-
.../security/jaas/CertificateLoginModule.java | 2 +-
.../core/security/jaas/GuestLoginModule.java | 2 +-
.../spi/core/security/jaas/InVMLoginModule.java | 2 +-
.../spi/core/security/jaas/LDAPLoginModule.java | 14 +-
.../core/security/jaas/PropertiesLoader.java | 2 +-
.../security/jaas/PropertiesLoginModule.java | 2 +-
.../jaas/TextFileCertificateLoginModule.java | 2 +-
.../impl/FileConfigurationParserTest.java | 2 +-
.../core/list/PriorityLinkedListTest.java | 2 +-
.../jaas/CertificateLoginModuleTest.java | 8 +-
.../PropertiesLoginModuleRaceConditionTest.java | 6 +-
.../core/security/jaas/StubX509Certificate.java | 4 +-
.../group/impl/ClusteredResetMockTest.java | 4 +-
.../impl/ScheduledDeliveryHandlerTest.java | 2 +-
.../artemis/core/settings/RepositoryTest.java | 18 +--
.../artemis/tests/util/ActiveMQTestBase.java | 52 +++---
.../xa/recovery/ActiveMQXAResourceRecovery.java | 2 +-
.../xa/ActiveMQXAResourceWrapperImplTest.java | 2 +-
.../jms/example/ClusteredJgroupsExample.java | 4 +-
.../ColocatedFailoverScaleDownExample.java | 4 +-
.../jms/example/ColocatedFailoverExample.java | 4 +-
.../jms/example/HAPolicyAutoBackupExample.java | 2 +-
.../artemis/jms/example/ScaleDownExample.java | 4 +-
.../artemis/jms/example/BridgeExample.java | 4 +-
.../jms/example/ClientKickoffExample.java | 2 +-
.../artemis/jms/example/EmbeddedExample.java | 2 +-
.../artemis/jms/example/EmbeddedExample.java | 2 +-
.../artemis/jms/example/JMSBridgeExample.java | 2 +-
.../jms/example/MessageGroupExample.java | 2 +-
.../jms/example/MessageGroup2Example.java | 2 +-
.../jms/example/MessagePriorityExample.java | 2 +-
.../jms/example/RequestReplyExample.java | 2 +-
.../jms-to-rest/src/main/java/JmsReceive.java | 2 +-
.../rest/jms-to-rest/src/main/java/JmsSend.java | 2 +-
.../rest/push/src/main/java/PostOrder.java | 2 +-
.../push/src/main/java/ReceiveShipping.java | 2 +-
.../artemis/jms/example/XAHeuristicExample.java | 2 +-
.../artemis/jms/example/XASendExample.java | 2 +-
.../integration/vertx/VertxConstants.java | 8 +-
.../activemq/ActiveMQConnectionFactory.java | 3 +-
.../apache/activemq/broker/BrokerService.java | 4 +-
.../activemq/broker/SslBrokerService.java | 3 -
.../artemiswrapper/ArtemisBrokerWrapper.java | 12 +-
.../artemiswrapper/InVMNamingContext.java | 6 +-
.../artemiswrapper/NonSerializableFactory.java | 1 -
.../transport/tcp/TcpTransportFactory.java | 4 +-
.../org/apache/activemq/usage/SystemUsage.java | 2 +-
.../activemq/ActiveMQInputStreamTest.java | 2 -
.../activemq/ActiveMQMessageAuditTest.java | 8 +-
.../ActiveMQXAConnectionFactoryTest.java | 2 +-
.../apache/activemq/CombinationTestSupport.java | 18 +--
.../org/apache/activemq/JMSConsumerTest.java | 1 -
.../org/apache/activemq/JMSMessageTest.java | 4 +-
.../activemq/JmsConnectionStartStopTest.java | 2 +-
.../JmsConsumerResetActiveListenerTest.java | 4 +-
.../activemq/JmsMultipleBrokersTestSupport.java | 6 +-
.../activemq/JmsMultipleClientsTestSupport.java | 2 +-
.../apache/activemq/JmsQueueBrowserTest.java | 5 +-
...eiveTwoConnectionsStartBeforeBrokerTest.java | 2 +-
.../org/apache/activemq/JmsRedeliveredTest.java | 2 -
.../activemq/JmsRollbackRedeliveryTest.java | 6 +-
...JmsSendReceiveWithMessageExpirationTest.java | 6 +-
.../apache/activemq/JmsTempDestinationTest.java | 2 +-
.../activemq/JmsTopicRequestReplyTest.java | 2 +-
.../org/apache/activemq/LoadTestBurnIn.java | 3 +-
.../apache/activemq/MessageEvictionTest.java | 2 +-
.../activemq/MessageListenerRedeliveryTest.java | 2 +-
.../activemq/MessageTransformationTest.java | 30 ++--
.../activemq/PerDestinationStoreLimitTest.java | 2 +-
.../activemq/ProducerFlowControlTest.java | 2 +-
.../org/apache/activemq/SpringTestSupport.java | 4 +-
.../java/org/apache/activemq/TestSupport.java | 2 -
.../advisory/AdvisoryTempDestinationTests.java | 2 +-
.../activemq/advisory/ConsumerListenerTest.java | 2 +-
.../advisory/DestinationListenerTest.java | 2 +-
.../activemq/advisory/ProducerListenerTest.java | 2 +-
.../activemq/advisory/TempDestDeleteTest.java | 2 +-
.../activemq/advisory/TempQueueMemoryTest.java | 2 +-
.../apache/activemq/blob/FTPTestSupport.java | 2 +-
.../org/apache/activemq/broker/AMQ4351Test.java | 2 +-
.../apache/activemq/broker/BrokerBenchmark.java | 2 -
.../activemq/broker/BrokerRedeliveryTest.java | 1 -
.../org/apache/activemq/broker/BrokerTest.java | 6 +-
.../activemq/broker/BrokerTestSupport.java | 4 +-
.../DurablePersistentFalseRestartTest.java | 2 +-
.../activemq/broker/MarshallingBrokerTest.java | 4 +-
.../broker/NioQueueSubscriptionTest.java | 2 +-
.../activemq/broker/OutOfOrderXMLTest.java | 1 -
.../activemq/broker/QueueMbeanRestartTest.java | 2 +-
.../activemq/broker/RecoveryBrokerTest.java | 6 +-
.../org/apache/activemq/broker/StubBroker.java | 4 +-
.../apache/activemq/broker/StubConnection.java | 4 +-
.../activemq/broker/TopicSubscriptionTest.java | 6 -
.../activemq/broker/XARecoveryBrokerTest.java | 2 +-
.../broker/advisory/AdvisoryJmxTest.java | 2 +-
.../broker/ft/JDBCQueueMasterSlaveTest.java | 6 -
.../broker/ft/QueueMasterSlaveTestSupport.java | 2 +-
.../broker/jmx/MBeanOperationTimeoutTest.java | 2 +-
.../apache/activemq/broker/jmx/MBeanTest.java | 2 +-
.../apache/activemq/broker/jmx/PurgeTest.java | 12 +-
.../broker/mLevelDBXARecoveryBrokerTest.java | 1 -
.../policy/AbortSlowAckConsumer0Test.java | 1 -
.../broker/policy/AbortSlowConsumer0Test.java | 1 -
.../broker/policy/AbortSlowConsumerBase.java | 18 +--
.../policy/MessageListenerDeadLetterTest.java | 2 -
.../broker/policy/NoConsumerDeadLetterTest.java | 9 +-
.../PriorityNetworkDispatchPolicyTest.java | 2 +-
.../policy/StrictOrderDispatchPolicyTest.java | 4 +-
.../region/QueueDuplicatesFromStoreTest.java | 5 +-
.../region/QueueResendDuringShutdownTest.java | 3 -
.../region/SubscriptionAddRemoveQueueTest.java | 4 +-
...iquePropertyMessageEvictionStrategyTest.java | 2 +-
.../broker/region/cursors/CursorSupport.java | 8 +-
.../region/cursors/NegativeQueueTest.java | 6 +-
.../region/cursors/OrderPendingListTest.java | 2 +-
.../StoreQueueCursorLevelDBNoDuplicateTest.java | 3 -
.../broker/scheduler/JobSchedulerStoreTest.java | 2 +-
.../KahaDBSchedulerMissingJournalLogsTest.java | 4 +-
.../memory/InMemoryJobSchedulerStoreTest.java | 2 +-
.../store/RecoverExpiredMessagesTest.java | 2 +-
.../DestinationInterceptorDurableSubTest.java | 2 +-
.../MirroredQueueCorrectMemoryUsageTest.java | 2 +-
.../broker/virtual/VirtualDestPerfTest.java | 11 +-
.../broker/virtual/VirtualTopicDLQTest.java | 2 +-
.../broker/virtual/VirtualTopicPubSubTest.java | 2 +-
.../org/apache/activemq/bugs/AMQ1853Test.java | 4 +-
.../java/org/apache/activemq/bugs/AMQ1866.java | 2 +-
.../org/apache/activemq/bugs/AMQ1917Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ1936Test.java | 3 +-
.../org/apache/activemq/bugs/AMQ2021Test.java | 4 +-
.../org/apache/activemq/bugs/AMQ2103Test.java | 3 +-
.../org/apache/activemq/bugs/AMQ2149Test.java | 9 +-
.../org/apache/activemq/bugs/AMQ2171Test.java | 5 +-
.../org/apache/activemq/bugs/AMQ2401Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ2413Test.java | 6 +-
.../org/apache/activemq/bugs/AMQ2489Test.java | 4 +-
.../org/apache/activemq/bugs/AMQ2512Test.java | 2 +-
.../activemq/bugs/AMQ2584ConcurrentDlqTest.java | 2 +-
.../org/apache/activemq/bugs/AMQ2584Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ2616Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ2801Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ2870Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ2910Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ2983Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ3014Test.java | 1 -
.../org/apache/activemq/bugs/AMQ3140Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ3167Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ3274Test.java | 6 +-
.../org/apache/activemq/bugs/AMQ3405Test.java | 2 -
.../org/apache/activemq/bugs/AMQ3622Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ3625Test.java | 1 -
.../org/apache/activemq/bugs/AMQ3674Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ3732Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ3841Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ3961Test.java | 6 +-
.../org/apache/activemq/bugs/AMQ4062Test.java | 1 -
.../org/apache/activemq/bugs/AMQ4083Test.java | 6 +-
.../org/apache/activemq/bugs/AMQ4092Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ4157Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ4220Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ4221Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ4361Test.java | 4 +-
.../org/apache/activemq/bugs/AMQ4407Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ4413Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ4475Test.java | 2 +-
.../activemq/bugs/AMQ4485LowLimitTest.java | 11 +-
...XBrokersWithNDestsFanoutTransactionTest.java | 10 +-
.../org/apache/activemq/bugs/AMQ4485Test.java | 6 +-
.../org/apache/activemq/bugs/AMQ4607Test.java | 4 +-
.../org/apache/activemq/bugs/AMQ4677Test.java | 2 -
.../org/apache/activemq/bugs/AMQ4853Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ4950Test.java | 2 +-
.../org/apache/activemq/bugs/AMQ4952Test.java | 6 +-
.../activemq/bugs/AMQ5266SingleDestTest.java | 10 +-
.../bugs/AMQ5266StarvedConsumerTest.java | 14 +-
.../org/apache/activemq/bugs/AMQ5266Test.java | 11 +-
.../org/apache/activemq/bugs/AMQ5450Test.java | 2 +-
.../activemq/bugs/DurableConsumerTest.java | 4 +-
.../bugs/MemoryUsageBlockResumeTest.java | 4 +-
.../OptimizeAcknowledgeWithExpiredMsgsTest.java | 2 +-
.../activemq/bugs/QueueWorkerPrefetchTest.java | 2 +-
.../bugs/RawRollbackSharedConsumerTests.java | 4 +-
.../apache/activemq/bugs/RawRollbackTests.java | 4 +-
.../bugs/TrapMessageInJDBCStoreTest.java | 7 +-
.../activemq/bugs/amq1095/ActiveMQTestCase.java | 2 +-
.../command/ActiveMQDestinationTest.java | 4 +-
.../command/ActiveMQMapMessageTest.java | 3 +-
.../command/ActiveMQStreamMessageTest.java | 4 +-
.../config/BrokerXmlConfigFromJNDITest.java | 2 +-
.../activemq/console/command/AMQ3410Test.java | 10 +-
.../activemq/console/command/AMQ3411Test.java | 10 +-
.../console/command/PurgeCommandTest.java | 12 +-
.../ActiveMQWASInitialContextFactoryTest.java | 3 +-
.../apache/activemq/jndi/JNDITestSupport.java | 2 +-
.../activemq/joramtests/ActiveMQAdmin.java | 3 +-
.../BrokerNetworkWithStuckMessagesTest.java | 10 +-
.../CheckDuplicateMessagesOnDuplexTest.java | 4 +-
.../network/FailoverStaticNetworkTest.java | 12 +-
.../network/NetworkDestinationFilterTest.java | 2 +-
.../activemq/network/NetworkFailoverTest.java | 1 -
.../activemq/network/NetworkLoadTest.java | 4 +-
.../activemq/network/NetworkReconnectTest.java | 2 +-
.../activemq/network/NetworkTestSupport.java | 2 +-
.../network/SSHTunnelNetworkReconnectTest.java | 2 +-
.../jms/QueueBridgeStandaloneReconnectTest.java | 2 +-
.../jms/QueueOutboundBridgeReconnectTest.java | 2 +-
.../jms/TopicBridgeStandaloneReconnectTest.java | 2 +-
.../jms/TopicOutboundBridgeReconnectTest.java | 2 +-
.../activemq/openwire/DataFileGenerator.java | 2 +-
.../openwire/DataFileGeneratorTestSupport.java | 2 +-
.../activemq/openwire/v4/BrokerIdTest.java | 4 -
.../activemq/openwire/v4/BrokerInfoTest.java | 5 -
.../openwire/v4/ConnectionControlTest.java | 5 -
.../openwire/v4/ConnectionErrorTest.java | 5 -
.../activemq/openwire/v4/ConnectionIdTest.java | 4 -
.../openwire/v4/ConnectionInfoTest.java | 5 -
.../openwire/v4/ConsumerControlTest.java | 5 -
.../activemq/openwire/v4/ConsumerIdTest.java | 4 -
.../activemq/openwire/v4/ConsumerInfoTest.java | 5 -
.../openwire/v4/ControlCommandTest.java | 5 -
.../openwire/v4/DataArrayResponseTest.java | 5 -
.../activemq/openwire/v4/DataResponseTest.java | 5 -
.../openwire/v4/DestinationInfoTest.java | 5 -
.../openwire/v4/DiscoveryEventTest.java | 4 -
.../openwire/v4/ExceptionResponseTest.java | 5 -
.../activemq/openwire/v4/FlushCommandTest.java | 5 -
.../openwire/v4/IntegerResponseTest.java | 5 -
.../openwire/v4/JournalQueueAckTest.java | 4 -
.../openwire/v4/JournalTopicAckTest.java | 4 -
.../activemq/openwire/v4/JournalTraceTest.java | 4 -
.../openwire/v4/JournalTransactionTest.java | 4 -
.../activemq/openwire/v4/KeepAliveInfoTest.java | 5 -
.../openwire/v4/LastPartialCommandTest.java | 5 -
.../openwire/v4/LocalTransactionIdTest.java | 5 -
.../activemq/openwire/v4/MessageAckTest.java | 5 -
.../v4/MessageDispatchNotificationTest.java | 5 -
.../openwire/v4/MessageDispatchTest.java | 5 -
.../activemq/openwire/v4/MessageIdTest.java | 4 -
.../activemq/openwire/v4/MessagePullTest.java | 5 -
.../openwire/v4/NetworkBridgeFilterTest.java | 4 -
.../openwire/v4/PartialCommandTest.java | 4 -
.../activemq/openwire/v4/ProducerAckTest.java | 5 -
.../activemq/openwire/v4/ProducerIdTest.java | 4 -
.../activemq/openwire/v4/ProducerInfoTest.java | 5 -
.../activemq/openwire/v4/RemoveInfoTest.java | 5 -
.../openwire/v4/RemoveSubscriptionInfoTest.java | 5 -
.../activemq/openwire/v4/ReplayCommandTest.java | 5 -
.../activemq/openwire/v4/ResponseTest.java | 5 -
.../activemq/openwire/v4/SessionIdTest.java | 4 -
.../activemq/openwire/v4/SessionInfoTest.java | 5 -
.../activemq/openwire/v4/ShutdownInfoTest.java | 5 -
.../openwire/v4/SubscriptionInfoTest.java | 4 -
.../openwire/v4/TransactionIdTestSupport.java | 4 -
.../openwire/v4/TransactionInfoTest.java | 5 -
.../openwire/v4/XATransactionIdTest.java | 5 -
.../activemq/openwire/v5/BrokerIdTest.java | 4 -
.../activemq/openwire/v5/BrokerInfoTest.java | 5 -
.../openwire/v5/ConnectionControlTest.java | 5 -
.../openwire/v5/ConnectionErrorTest.java | 5 -
.../activemq/openwire/v5/ConnectionIdTest.java | 4 -
.../openwire/v5/ConnectionInfoTest.java | 5 -
.../openwire/v5/ConsumerControlTest.java | 5 -
.../activemq/openwire/v5/ConsumerIdTest.java | 4 -
.../activemq/openwire/v5/ConsumerInfoTest.java | 5 -
.../openwire/v5/ControlCommandTest.java | 5 -
.../openwire/v5/DataArrayResponseTest.java | 5 -
.../activemq/openwire/v5/DataResponseTest.java | 5 -
.../openwire/v5/DestinationInfoTest.java | 5 -
.../openwire/v5/DiscoveryEventTest.java | 4 -
.../openwire/v5/ExceptionResponseTest.java | 5 -
.../activemq/openwire/v5/FlushCommandTest.java | 5 -
.../openwire/v5/IntegerResponseTest.java | 5 -
.../openwire/v5/JournalQueueAckTest.java | 4 -
.../openwire/v5/JournalTopicAckTest.java | 4 -
.../activemq/openwire/v5/JournalTraceTest.java | 4 -
.../openwire/v5/JournalTransactionTest.java | 4 -
.../activemq/openwire/v5/KeepAliveInfoTest.java | 5 -
.../openwire/v5/LastPartialCommandTest.java | 5 -
.../openwire/v5/LocalTransactionIdTest.java | 5 -
.../activemq/openwire/v5/MessageAckTest.java | 5 -
.../v5/MessageDispatchNotificationTest.java | 5 -
.../openwire/v5/MessageDispatchTest.java | 5 -
.../activemq/openwire/v5/MessageIdTest.java | 4 -
.../activemq/openwire/v5/MessagePullTest.java | 5 -
.../openwire/v5/NetworkBridgeFilterTest.java | 4 -
.../openwire/v5/PartialCommandTest.java | 4 -
.../activemq/openwire/v5/ProducerAckTest.java | 5 -
.../activemq/openwire/v5/ProducerIdTest.java | 4 -
.../activemq/openwire/v5/ProducerInfoTest.java | 5 -
.../activemq/openwire/v5/RemoveInfoTest.java | 5 -
.../openwire/v5/RemoveSubscriptionInfoTest.java | 5 -
.../activemq/openwire/v5/ReplayCommandTest.java | 5 -
.../activemq/openwire/v5/ResponseTest.java | 5 -
.../activemq/openwire/v5/SessionIdTest.java | 4 -
.../activemq/openwire/v5/SessionInfoTest.java | 5 -
.../activemq/openwire/v5/ShutdownInfoTest.java | 5 -
.../openwire/v5/SubscriptionInfoTest.java | 4 -
.../openwire/v5/TransactionIdTestSupport.java | 4 -
.../openwire/v5/TransactionInfoTest.java | 5 -
.../openwire/v5/XATransactionIdTest.java | 5 -
.../activemq/openwire/v6/BrokerIdTest.java | 4 -
.../activemq/openwire/v6/BrokerInfoTest.java | 5 -
.../openwire/v6/ConnectionControlTest.java | 5 -
.../openwire/v6/ConnectionErrorTest.java | 5 -
.../activemq/openwire/v6/ConnectionIdTest.java | 4 -
.../openwire/v6/ConnectionInfoTest.java | 5 -
.../openwire/v6/ConsumerControlTest.java | 5 -
.../activemq/openwire/v6/ConsumerIdTest.java | 4 -
.../activemq/openwire/v6/ConsumerInfoTest.java | 5 -
.../openwire/v6/ControlCommandTest.java | 5 -
.../openwire/v6/DataArrayResponseTest.java | 5 -
.../activemq/openwire/v6/DataResponseTest.java | 5 -
.../openwire/v6/DestinationInfoTest.java | 5 -
.../openwire/v6/DiscoveryEventTest.java | 4 -
.../openwire/v6/ExceptionResponseTest.java | 5 -
.../activemq/openwire/v6/FlushCommandTest.java | 5 -
.../openwire/v6/IntegerResponseTest.java | 5 -
.../openwire/v6/JournalQueueAckTest.java | 4 -
.../openwire/v6/JournalTopicAckTest.java | 4 -
.../activemq/openwire/v6/JournalTraceTest.java | 4 -
.../openwire/v6/JournalTransactionTest.java | 4 -
.../activemq/openwire/v6/KeepAliveInfoTest.java | 5 -
.../openwire/v6/LastPartialCommandTest.java | 5 -
.../openwire/v6/LocalTransactionIdTest.java | 5 -
.../activemq/openwire/v6/MessageAckTest.java | 5 -
.../v6/MessageDispatchNotificationTest.java | 5 -
.../openwire/v6/MessageDispatchTest.java | 5 -
.../activemq/openwire/v6/MessageIdTest.java | 4 -
.../activemq/openwire/v6/MessagePullTest.java | 5 -
.../openwire/v6/NetworkBridgeFilterTest.java | 4 -
.../openwire/v6/PartialCommandTest.java | 4 -
.../activemq/openwire/v6/ProducerAckTest.java | 5 -
.../activemq/openwire/v6/ProducerIdTest.java | 4 -
.../activemq/openwire/v6/ProducerInfoTest.java | 5 -
.../activemq/openwire/v6/RemoveInfoTest.java | 5 -
.../openwire/v6/RemoveSubscriptionInfoTest.java | 5 -
.../activemq/openwire/v6/ReplayCommandTest.java | 5 -
.../activemq/openwire/v6/ResponseTest.java | 5 -
.../activemq/openwire/v6/SessionIdTest.java | 4 -
.../activemq/openwire/v6/SessionInfoTest.java | 5 -
.../activemq/openwire/v6/ShutdownInfoTest.java | 5 -
.../openwire/v6/SubscriptionInfoTest.java | 4 -
.../openwire/v6/TransactionIdTestSupport.java | 4 -
.../openwire/v6/TransactionInfoTest.java | 5 -
.../openwire/v6/XATransactionIdTest.java | 5 -
.../activemq/openwire/v7/BrokerIdTest.java | 51 +++++-
.../activemq/openwire/v7/BrokerInfoTest.java | 67 +++++++-
.../openwire/v7/ConnectionControlTest.java | 57 ++++++-
.../openwire/v7/ConnectionErrorTest.java | 51 +++++-
.../activemq/openwire/v7/ConnectionIdTest.java | 51 +++++-
.../openwire/v7/ConnectionInfoTest.java | 65 +++++++-
.../openwire/v7/ConsumerControlTest.java | 56 ++++++-
.../activemq/openwire/v7/ConsumerIdTest.java | 53 +++++-
.../activemq/openwire/v7/ConsumerInfoTest.java | 79 ++++++++-
.../openwire/v7/ControlCommandTest.java | 50 +++++-
.../openwire/v7/DataArrayResponseTest.java | 56 ++++++-
.../activemq/openwire/v7/DataResponseTest.java | 50 +++++-
.../openwire/v7/DestinationInfoTest.java | 60 ++++++-
.../openwire/v7/DiscoveryEventTest.java | 52 +++++-
.../openwire/v7/ExceptionResponseTest.java | 50 +++++-
.../activemq/openwire/v7/FlushCommandTest.java | 49 +++++-
.../openwire/v7/IntegerResponseTest.java | 50 +++++-
.../openwire/v7/JournalQueueAckTest.java | 52 +++++-
.../openwire/v7/JournalTopicAckTest.java | 56 ++++++-
.../activemq/openwire/v7/JournalTraceTest.java | 51 +++++-
.../openwire/v7/JournalTransactionTest.java | 53 +++++-
.../activemq/openwire/v7/KeepAliveInfoTest.java | 49 +++++-
.../openwire/v7/LastPartialCommandTest.java | 49 +++++-
.../openwire/v7/LocalTransactionIdTest.java | 51 +++++-
.../activemq/openwire/v7/MessageAckTest.java | 57 ++++++-
.../v7/MessageDispatchNotificationTest.java | 53 +++++-
.../openwire/v7/MessageDispatchTest.java | 53 +++++-
.../activemq/openwire/v7/MessageIdTest.java | 53 +++++-
.../activemq/openwire/v7/MessagePullTest.java | 54 ++++++-
.../openwire/v7/MessageTestSupport.java | 87 +++++++++-
.../openwire/v7/NetworkBridgeFilterTest.java | 52 +++++-
.../openwire/v7/PartialCommandTest.java | 52 +++++-
.../activemq/openwire/v7/ProducerAckTest.java | 51 +++++-
.../activemq/openwire/v7/ProducerIdTest.java | 53 +++++-
.../activemq/openwire/v7/ProducerInfoTest.java | 60 ++++++-
.../activemq/openwire/v7/RemoveInfoTest.java | 51 +++++-
.../openwire/v7/RemoveSubscriptionInfoTest.java | 52 +++++-
.../activemq/openwire/v7/ReplayCommandTest.java | 51 +++++-
.../activemq/openwire/v7/ResponseTest.java | 50 +++++-
.../activemq/openwire/v7/SessionIdTest.java | 52 +++++-
.../activemq/openwire/v7/SessionInfoTest.java | 50 +++++-
.../activemq/openwire/v7/ShutdownInfoTest.java | 49 +++++-
.../openwire/v7/SubscriptionInfoTest.java | 55 ++++++-
.../openwire/v7/TransactionIdTestSupport.java | 41 ++++-
.../openwire/v7/TransactionInfoTest.java | 52 +++++-
.../openwire/v7/XATransactionIdTest.java | 52 +++++-
.../activemq/openwire/v8/BrokerIdTest.java | 51 +++++-
.../activemq/openwire/v8/BrokerInfoTest.java | 67 +++++++-
.../openwire/v8/ConnectionControlTest.java | 58 ++++++-
.../openwire/v8/ConnectionErrorTest.java | 51 +++++-
.../activemq/openwire/v8/ConnectionIdTest.java | 51 +++++-
.../openwire/v8/ConnectionInfoTest.java | 66 +++++++-
.../openwire/v8/ConsumerControlTest.java | 56 ++++++-
.../activemq/openwire/v8/ConsumerIdTest.java | 53 +++++-
.../activemq/openwire/v8/ConsumerInfoTest.java | 79 ++++++++-
.../openwire/v8/ControlCommandTest.java | 50 +++++-
.../openwire/v8/DataArrayResponseTest.java | 56 ++++++-
.../activemq/openwire/v8/DataResponseTest.java | 50 +++++-
.../openwire/v8/DestinationInfoTest.java | 60 ++++++-
.../openwire/v8/DiscoveryEventTest.java | 52 +++++-
.../openwire/v8/ExceptionResponseTest.java | 50 +++++-
.../activemq/openwire/v8/FlushCommandTest.java | 49 +++++-
.../openwire/v8/IntegerResponseTest.java | 50 +++++-
.../openwire/v8/JournalQueueAckTest.java | 52 +++++-
.../openwire/v8/JournalTopicAckTest.java | 56 ++++++-
.../activemq/openwire/v8/JournalTraceTest.java | 51 +++++-
.../openwire/v8/JournalTransactionTest.java | 53 +++++-
.../activemq/openwire/v8/KeepAliveInfoTest.java | 49 +++++-
.../openwire/v8/LastPartialCommandTest.java | 49 +++++-
.../openwire/v8/LocalTransactionIdTest.java | 51 +++++-
.../activemq/openwire/v8/MessageAckTest.java | 57 ++++++-
.../v8/MessageDispatchNotificationTest.java | 53 +++++-
.../openwire/v8/MessageDispatchTest.java | 53 +++++-
.../activemq/openwire/v8/MessageIdTest.java | 53 +++++-
.../activemq/openwire/v8/MessagePullTest.java | 54 ++++++-
.../openwire/v8/MessageTestSupport.java | 87 +++++++++-
.../openwire/v8/NetworkBridgeFilterTest.java | 52 +++++-
.../openwire/v8/PartialCommandTest.java | 52 +++++-
.../activemq/openwire/v8/ProducerAckTest.java | 51 +++++-
.../activemq/openwire/v8/ProducerIdTest.java | 53 +++++-
.../activemq/openwire/v8/ProducerInfoTest.java | 60 ++++++-
.../activemq/openwire/v8/RemoveInfoTest.java | 51 +++++-
.../openwire/v8/RemoveSubscriptionInfoTest.java | 52 +++++-
.../activemq/openwire/v8/ReplayCommandTest.java | 51 +++++-
.../activemq/openwire/v8/ResponseTest.java | 50 +++++-
.../activemq/openwire/v8/SessionIdTest.java | 52 +++++-
.../activemq/openwire/v8/SessionInfoTest.java | 50 +++++-
.../activemq/openwire/v8/ShutdownInfoTest.java | 49 +++++-
.../openwire/v8/SubscriptionInfoTest.java | 55 ++++++-
.../openwire/v8/TransactionIdTestSupport.java | 41 ++++-
.../openwire/v8/TransactionInfoTest.java | 52 +++++-
.../openwire/v8/XATransactionIdTest.java | 52 +++++-
.../activemq/openwire/v9/BrokerIdTest.java | 51 +++++-
.../activemq/openwire/v9/BrokerInfoTest.java | 67 +++++++-
.../openwire/v9/ConnectionControlTest.java | 58 ++++++-
.../openwire/v9/ConnectionErrorTest.java | 51 +++++-
.../activemq/openwire/v9/ConnectionIdTest.java | 51 +++++-
.../openwire/v9/ConnectionInfoTest.java | 66 +++++++-
.../openwire/v9/ConsumerControlTest.java | 56 ++++++-
.../activemq/openwire/v9/ConsumerIdTest.java | 53 +++++-
.../activemq/openwire/v9/ConsumerInfoTest.java | 79 ++++++++-
.../openwire/v9/ControlCommandTest.java | 50 +++++-
.../openwire/v9/DataArrayResponseTest.java | 56 ++++++-
.../activemq/openwire/v9/DataResponseTest.java | 50 +++++-
.../openwire/v9/DestinationInfoTest.java | 60 ++++++-
.../openwire/v9/DiscoveryEventTest.java | 52 +++++-
.../openwire/v9/ExceptionResponseTest.java | 50 +++++-
.../activemq/openwire/v9/FlushCommandTest.java | 49 +++++-
.../openwire/v9/IntegerResponseTest.java | 50 +++++-
.../openwire/v9/JournalQueueAckTest.java | 52 +++++-
.../openwire/v9/JournalTopicAckTest.java | 56 ++++++-
.../activemq/openwire/v9/JournalTraceTest.java | 51 +++++-
.../openwire/v9/JournalTransactionTest.java | 53 +++++-
.../activemq/openwire/v9/KeepAliveInfoTest.java | 49 +++++-
.../openwire/v9/LastPartialCommandTest.java | 49 +++++-
.../openwire/v9/LocalTransactionIdTest.java | 51 +++++-
.../activemq/openwire/v9/MessageAckTest.java | 57 ++++++-
.../v9/MessageDispatchNotificationTest.java | 53 +++++-
.../openwire/v9/MessageDispatchTest.java | 53 +++++-
.../activemq/openwire/v9/MessageIdTest.java | 53 +++++-
.../activemq/openwire/v9/MessagePullTest.java | 54 ++++++-
.../openwire/v9/MessageTestSupport.java | 87 +++++++++-
.../openwire/v9/NetworkBridgeFilterTest.java | 52 +++++-
.../openwire/v9/PartialCommandTest.java | 52 +++++-
.../activemq/openwire/v9/ProducerAckTest.java | 51 +++++-
.../activemq/openwire/v9/ProducerIdTest.java | 53 +++++-
.../activemq/openwire/v9/ProducerInfoTest.java | 60 ++++++-
.../activemq/openwire/v9/RemoveInfoTest.java | 51 +++++-
.../openwire/v9/RemoveSubscriptionInfoTest.java | 52 +++++-
.../activemq/openwire/v9/ReplayCommandTest.java | 51 +++++-
.../activemq/openwire/v9/ResponseTest.java | 50 +++++-
.../activemq/openwire/v9/SessionIdTest.java | 52 +++++-
.../activemq/openwire/v9/SessionInfoTest.java | 50 +++++-
.../activemq/openwire/v9/ShutdownInfoTest.java | 49 +++++-
.../openwire/v9/SubscriptionInfoTest.java | 55 ++++++-
.../openwire/v9/TransactionIdTestSupport.java | 41 ++++-
.../openwire/v9/TransactionInfoTest.java | 52 +++++-
.../openwire/v9/XATransactionIdTest.java | 52 +++++-
.../activemq/perf/ConnectionChurnTest.java | 2 +-
.../apache/activemq/perf/NetworkedSyncTest.java | 1 -
.../SimpleNonPersistentQueueNetworkTest.java | 2 +-
.../perf/SimpleNonPersistentQueueTest.java | 2 +-
...veTwoConnectionsWithSenderUsingPoolTest.java | 2 -
.../org/apache/activemq/proxy/AMQ4889Test.java | 4 +-
.../apache/activemq/proxy/ProxyTestSupport.java | 2 +-
...actCachedLDAPAuthorizationMapLegacyTest.java | 2 +-
.../activemq/security/AuthorizationMapTest.java | 6 +-
...JaasCertificateAuthenticationBrokerTest.java | 10 +-
.../JaasDualAuthenticationBrokerTest.java | 4 +-
.../security/LDAPAuthenticationTest.java | 7 -
.../security/LDAPAuthorizationMapTest.java | 2 +-
.../activemq/security/SecurityJMXTest.java | 2 +-
.../SimpleSecurityBrokerSystemTest.java | 11 +-
.../apache/activemq/spring/ConsumerBean.java | 4 +-
.../org/apache/activemq/spring/SpringTest.java | 2 +-
.../store/AutoStorePerDestinationTest.java | 2 +-
.../activemq/store/StorePerDestinationTest.java | 6 +-
.../jdbc/JDBCIOExceptionHandlerMockeryTest.java | 2 +-
.../store/jdbc/JDBCIOExceptionHandlerTest.java | 2 +-
.../store/jdbc/JDBCMessagePriorityTest.java | 6 +-
.../store/jdbc/JDBCTablePrefixAssignedTest.java | 2 +-
.../store/jdbc/LeaseDatabaseLockerTest.java | 2 +-
.../store/kahadb/KahaDBFastEnqueueTest.java | 2 +-
.../kahadb/KahaDBStoreRecoveryBrokerTest.java | 3 +-
.../activemq/store/kahadb/KahaDBStoreTest.java | 2 +-
.../activemq/store/kahadb/plist/PListTest.java | 16 +-
.../activemq/streams/JMSInputStreamTest.java | 4 +-
.../test/JmsSendReceiveTestSupport.java | 1 -
.../TemporaryDestinationToFromNameTest.java | 1 -
.../message/NestedMapAndListPropertyTest.java | 4 +-
.../test/message/NestedMapMessageTest.java | 4 +-
.../transport/StubCompositeTransport.java | 2 +-
.../activemq/transport/StubTransport.java | 2 +-
.../transport/StubTransportListener.java | 4 +-
.../activemq/transport/TopicClusterTest.java | 2 +-
.../transport/TransportBrokerTestSupport.java | 3 +-
.../DiscoveryNetworkReconnectTest.java | 4 +-
.../discovery/DiscoveryTransportBrokerTest.java | 2 +-
.../DiscoveryTransportNoBrokerTest.java | 2 +-
.../transport/failover/AMQ1925Test.java | 2 +-
.../failover/ConnectionHangOnStartupTest.java | 4 +-
.../transport/failover/FailoverClusterTest.java | 6 +-
.../failover/FailoverClusterTestSupport.java | 10 +-
.../failover/FailoverComplexClusterTest.java | 2 -
.../FailoverConsumerOutstandingCommitTest.java | 2 +-
.../FailoverConsumerUnconsumedTest.java | 4 +-
.../failover/FailoverPrefetchZeroTest.java | 2 +-
.../failover/FailoverPriorityTest.java | 2 +-
.../failover/FailoverTransactionTest.java | 12 +-
.../transport/failover/SlowConnectionTest.java | 2 +-
.../fanout/FanoutTransportBrokerTest.java | 2 +-
.../tcp/QualityOfServiceUtilsTest.java | 2 +-
.../transport/tcp/ServerSocketTstFactory.java | 2 -
.../transport/tcp/SocketTstFactory.java | 4 +-
.../transport/tcp/SslTransportFactoryTest.java | 2 +-
.../tcp/TcpFaultyTransportFactory.java | 2 +-
.../tcp/WireformatNegociationTest.java | 6 +-
.../udp/UdpTransportUsingServerTest.java | 1 -
.../transport/vm/VMTransportThreadSafeTest.java | 4 +-
.../vm/VmTransportNetworkBrokerTest.java | 2 +-
.../activemq/usecases/AMQStackOverFlowTest.java | 2 +-
.../usecases/ChangeSentMessageTest.java | 2 +-
.../activemq/usecases/CompositeConsumeTest.java | 1 -
.../ConcurrentDestinationCreationTest.java | 2 +-
.../ConcurrentProducerDurableConsumerTest.java | 7 +-
.../ConcurrentProducerQueueConsumerTest.java | 5 +-
.../usecases/ConsumeTopicPrefetchTest.java | 2 +-
.../DurableConsumerCloseAndReconnectTest.java | 3 -
.../DurableSubDelayedUnsubscribeTest.java | 8 +-
...ConcurrentCommitActivateNoDuplicateTest.java | 12 +-
.../DurableSubProcessMultiRestartTest.java | 3 +-
.../usecases/DurableSubProcessTest.java | 12 +-
.../DurableSubProcessWithRestartTest.java | 12 +-
...neSelectorConcurrentConsumeIndexUseTest.java | 2 +-
.../DurableSubsOfflineSelectorIndexUseTest.java | 2 +-
...ableSubscriberWithNetworkDisconnectTest.java | 2 +-
.../DurableSubscriptionOffline1Test.java | 4 +-
.../DurableSubscriptionOffline2Test.java | 2 +-
.../DurableSubscriptionOffline3Test.java | 2 +-
.../DurableSubscriptionOffline4Test.java | 2 +-
.../DurableSubscriptionOfflineTest.java | 3 +-
.../DurableSubscriptionOfflineTestBase.java | 2 +-
.../usecases/ExceptionListenerTest.java | 2 +-
.../activemq/usecases/ExpiredMessagesTest.java | 3 -
.../usecases/JdbcDurableSubDupTest.java | 3 +-
.../usecases/MessageGroupCloseTest.java | 8 +-
.../usecases/MessageGroupDelayedTest.java | 4 +-
.../usecases/MessageGroupLateArrivalsTest.java | 7 +-
.../MessageGroupReconnectDistributionTest.java | 4 +-
.../usecases/MultiBrokersMultiClientsTest.java | 6 +-
.../MultiBrokersMultiClientsUsingTcpTest.java | 2 +-
.../MulticastDiscoveryOnFaultyNetworkTest.java | 2 +-
.../NetworkBridgeProducerFlowControlTest.java | 2 +-
.../usecases/NoDuplicateOnTopicNetworkTest.java | 4 +-
.../NonBlockingConsumerRedeliveryTest.java | 26 +--
.../ObjectMessageNotSerializableTest.java | 17 +-
.../activemq/usecases/QueueDuplicatesTest.java | 2 +-
.../QueueMemoryFullMultiBrokersTest.java | 2 +-
.../usecases/ReliableReconnectTest.java | 2 -
.../RequestReplyNoAdvisoryNetworkTest.java | 2 +-
...estReplyTempDestRemovalAdvisoryRaceTest.java | 12 +-
...uestReplyToTopicViaThreeNetworkHopsTest.java | 2 +-
...tualDestinationsWithWildcardLevelDBTest.java | 10 --
...kerConnectionDuplexExcludedDestinations.java | 1 -
.../usecases/ThreeBrokerQueueNetworkTest.java | 4 +-
.../ThreeBrokerQueueNetworkUsingTcpTest.java | 2 +-
.../usecases/ThreeBrokerTopicNetworkTest.java | 2 +-
.../ThreeBrokerTopicNetworkUsingTcpTest.java | 2 +-
.../usecases/TopicDurableConnectStatsTest.java | 2 +-
.../activemq/usecases/TopicRedeliverTest.java | 2 +-
.../usecases/TransactionRollbackOrderTest.java | 8 +-
.../usecases/TwoBrokerQueueSendReceiveTest.java | 2 +-
.../usecases/TwoBrokerTopicSendReceiveTest.java | 2 +-
.../TwoBrokerTopicSendReceiveUsingTcpTest.java | 5 +-
.../TwoBrokerVirtualTopicForwardingTest.java | 2 +-
.../activemq/usecases/UnlimitedEnqueueTest.java | 2 +-
.../VerifyNetworkConsumersDisconnectTest.java | 6 +-
.../apache/activemq/util/LinkedNodeTest.java | 2 -
.../org/apache/activemq/util/MessageIdList.java | 6 +-
.../activemq/util/ReflectionSupportTest.java | 6 +-
.../org/apache/activemq/util/SimplePojo.java | 6 +-
.../xbean/ConnectorXBeanConfigTest.java | 1 -
.../xbean/ManagementContextXBeanConfigTest.java | 4 +-
.../BridgeServerLocatorConfigurationTest.java | 14 +-
.../byteman/ConcurrentDeliveryCancelTest.java | 6 +-
.../HierarchicalObjectRepositoryTest.java | 2 +-
.../tests/extras/byteman/MessageCopyTest.java | 2 +-
.../tests/extras/byteman/PagingLeakTest.java | 4 +-
.../tests/extras/byteman/TimeoutXATest.java | 2 +-
.../tests/extras/jms/bridge/BridgeTestBase.java | 4 +-
.../jms/bridge/ClusteredBridgeTestBase.java | 6 +-
.../tests/extras/jms/bridge/JMSBridgeTest.java | 8 +-
...MDBMultipleHandlersServerDisconnectTest.java | 4 +-
.../protocols/hornetq/HornetQProtocolTest.java | 6 +-
.../integration/SimpleNotificationService.java | 4 +-
.../client/AutoCreateJmsQueueTest.java | 4 +-
.../tests/integration/client/ConsumerTest.java | 2 +-
.../client/ConsumerWindowSizeTest.java | 12 +-
.../client/DeadLetterAddressTest.java | 2 +-
.../integration/client/HangConsumerTest.java | 2 +-
.../client/JmsNettyNioStressTest.java | 4 +-
.../integration/client/JournalCrashTest.java | 4 +-
.../integration/client/LargeMessageTest.java | 6 +-
.../client/MessageConcurrencyTest.java | 10 +-
.../client/MessageConsumerRollbackTest.java | 2 +-
.../MessageGroupingConnectionFactoryTest.java | 2 +-
.../integration/client/MessageGroupingTest.java | 2 +-
.../tests/integration/client/NIOvsOIOTest.java | 4 +-
.../tests/integration/client/PagingTest.java | 28 ++--
.../client/ProducerFlowControlTest.java | 2 +-
.../client/SessionCloseOnGCTest.java | 32 ++--
.../integration/cluster/NodeManagerTest.java | 2 +-
.../cluster/RealNodeManagerTest.java | 2 +-
.../cluster/bridge/BridgeFailoverTest.java | 6 +-
.../cluster/bridge/BridgeReconnectTest.java | 52 +++---
.../cluster/bridge/BridgeStartTest.java | 56 +++----
.../integration/cluster/bridge/BridgeTest.java | 162 +++++++++----------
.../BridgeWithDiscoveryGroupStartTest.java | 16 +-
.../cluster/distribution/ClusterTestBase.java | 26 +--
.../distribution/ClusteredGroupingTest.java | 2 +-
.../distribution/MessageRedistributionTest.java | 2 +-
.../MessageRedistributionWithDiscoveryTest.java | 2 +-
.../failover/AsynchronousFailoverTest.java | 6 +-
.../cluster/failover/BackupSyncJournalTest.java | 4 +-
.../failover/BackupSyncLargeMessageTest.java | 2 +-
.../cluster/failover/BackupSyncPagingTest.java | 2 +-
.../ClusterWithBackupFailoverTestBase.java | 2 +-
.../cluster/failover/FailoverListenerTest.java | 2 +-
.../failover/FailoverOnFlowControlTest.java | 2 +-
.../cluster/failover/FailoverTest.java | 8 +-
.../cluster/failover/FailoverTestBase.java | 4 +-
...ultipleLivesMultipleBackupsFailoverTest.java | 2 +-
.../MultipleServerFailoverTestBase.java | 20 +--
.../cluster/failover/NettyFailoverTest.java | 2 +-
.../cluster/failover/QuorumFailOverTest.java | 4 +-
...dMultipleServerFailoverExtraBackupsTest.java | 2 +-
.../cluster/failover/SecurityFailoverTest.java | 2 +-
.../SingleLiveMultipleBackupsFailoverTest.java | 2 +-
.../MultiThreadRandomReattachTestBase.java | 46 +++---
.../MultiThreadReattachSupportTestBase.java | 2 +-
.../cluster/reattach/OrderReattachTest.java | 8 +-
.../cluster/reattach/RandomReattachTest.java | 42 ++---
.../cluster/topology/IsolatedTopologyTest.java | 16 +-
.../cluster/topology/NonHATopologyTest.java | 2 +-
.../cluster/util/MultiServerTestBase.java | 6 +-
.../discovery/DiscoveryBaseTest.java | 6 +-
.../http/CoreClientOverHttpTest.java | 2 +-
.../interceptors/InterceptorTest.java | 5 +-
.../jms/ActiveMQConnectionFactoryTest.java | 6 +-
.../tests/integration/jms/FloodServerTest.java | 2 +-
.../ManualReconnectionToSingleServerTest.java | 2 +-
.../integration/jms/SimpleJNDIClientTest.java | 6 +-
.../jms/client/ReSendMessageTest.java | 4 +-
...onClosedOnRemotingConnectionFailureTest.java | 2 +-
.../integration/jms/client/StoreConfigTest.java | 6 +-
.../jms/client/TopicCleanupTest.java | 2 +-
.../jms/cluster/JMSFailoverListenerTest.java | 2 +-
.../jms/cluster/JMSFailoverTest.java | 2 +-
.../jms/connection/CloseConnectionOnGCTest.java | 14 +-
.../ConnectionFactorySerializationTest.java | 8 +-
.../jms/connection/InvalidConnectorTest.java | 4 +-
.../JmsProducerCompletionListenerTest.java | 2 +-
.../jms/server/JMSServerStartStopTest.java | 2 +-
.../jms/server/config/JMSConfigurationTest.java | 2 +-
.../ConnectionFactoryControlTest.java | 2 +-
.../server/management/JMSQueueControlTest.java | 2 +-
.../server/management/JMSServerControlTest.java | 6 +-
.../jms/server/management/TopicControlTest.java | 2 +-
.../journal/NIOJournalCompactTest.java | 48 +++---
.../management/AddressControlTest.java | 4 +-
.../management/AddressControlUsingCoreTest.java | 2 +-
.../management/BridgeControlTest.java | 4 +-
.../management/BridgeControlUsingCoreTest.java | 4 +-
.../management/BroadcastGroupControlTest.java | 2 +-
.../ClusterConnectionControl2Test.java | 4 +-
.../ClusterConnectionControlTest.java | 4 +-
.../integration/management/JMXDomainTest.java | 2 +-
.../management/ManagementActivationTest.java | 2 +-
.../management/ManagementHelperTest.java | 8 +-
.../management/ManagementWithStompTest.java | 2 +-
.../management/SecurityNotificationTest.java | 4 +-
.../integration/mqtt/imported/MQTTTest.java | 10 +-
.../mqtt/imported/MQTTTestSupport.java | 6 +-
.../integration/mqtt/imported/PahoMQTTTest.java | 2 +-
.../util/ResourceLoadingSslContext.java | 4 +-
.../integration/openwire/BasicOpenWireTest.java | 2 +-
.../integration/openwire/OpenWireTestBase.java | 6 +-
.../openwire/amq/JMSConsumer3Test.java | 3 +-
.../openwire/amq/JMSMessageTest.java | 4 +-
.../amq/JmsConnectionStartStopTest.java | 2 +-
.../amq/JmsConsumerResetActiveListenerTest.java | 4 +-
.../openwire/amq/JmsResourceProvider.java | 4 +-
.../openwire/amq/JmsTopicRedeliverTest.java | 3 +-
.../openwire/amq/JmsTopicRequestReplyTest.java | 2 +-
.../openwire/amq/JmsTransactionTestSupport.java | 20 +--
.../amq/MessageListenerRedeliveryTest.java | 2 +-
.../openwire/amq/ProducerFlowControlTest.java | 2 +-
.../openwire/interop/GeneralInteropTest.java | 4 +-
.../paging/MultipleProducersPagingTest.java | 2 +-
.../integration/paging/PagingSendTest.java | 4 +-
.../PagingWithFailoverAndCountersTest.java | 2 +-
.../paging/SpawnedServerSupport.java | 4 +-
...AddressSettingsConfigurationStorageTest.java | 2 +-
.../DeleteMessagesOnStartupTest.java | 4 +-
...nnectionFactoryConfigurationStorageTest.java | 14 +-
.../persistence/JMSDynamicConfigTest.java | 2 +-
.../integration/persistence/RestartSMTest.java | 8 +-
.../RolesConfigurationStorageTest.java | 2 +-
...ansportConfigurationEncodingSupportTest.java | 12 +-
.../persistence/XmlImportExportTest.java | 2 +-
.../tests/integration/proton/ProtonTest.java | 2 +-
.../ra/ActiveMQMessageHandlerSecurityTest.java | 2 +-
.../tests/integration/ra/JMSContextTest.java | 2 +-
.../integration/ra/OutgoingConnectionTest.java | 2 +-
.../ra/OutgoingConnectionTestJTA.java | 2 +-
.../integration/ra/ResourceAdapterTest.java | 2 +-
.../integration/remoting/BatchDelayTest.java | 4 +-
.../integration/remoting/DirectDeliverTest.java | 2 +-
.../remoting/NetworkAddressTestBase.java | 8 +-
.../integration/remoting/ReconnectTest.java | 4 +-
.../replication/ReplicationTest.java | 4 +-
.../scheduling/ScheduledMessageTest.java | 2 +-
.../integration/security/SecurityTest.java | 60 +++----
.../integration/server/ExpiryRunnerTest.java | 2 +-
.../integration/server/FakeStorageManager.java | 4 +-
.../integration/server/PredefinedQueueTest.java | 4 +-
.../ssl/CoreClientOverOneWaySSLTest.java | 2 +-
.../ssl/CoreClientOverTwoWaySSLTest.java | 2 +-
.../tests/integration/stomp/ExtraStompTest.java | 20 +--
.../tests/integration/stomp/StompTestBase.java | 2 +-
.../integration/stomp/StompWebSocketTest.java | 2 +-
.../stomp/util/AbstractClientStompFrame.java | 6 +-
.../util/AbstractStompClientConnection.java | 4 +-
.../integration/stomp/v11/StompV11TestBase.java | 2 +-
.../netty/ActiveMQFrameDecoder2Test.java | 2 +-
.../NettyConnectorWithHTTPUpgradeTest.java | 4 +-
.../vertx/ActiveMQVertxUnitTest.java | 10 +-
.../integration/xa/BasicXaRecoveryTest.java | 2 +-
.../tests/integration/xa/BasicXaTest.java | 2 +-
.../tests/integration/xa/XaTimeoutTest.java | 4 +-
.../artemis/tests/util/JMSTestBase.java | 4 +-
.../tests/util/TransportConfigurationUtils.java | 10 +-
.../jms/tests/ActiveMQServerTestCase.java | 10 +-
.../artemis/jms/tests/CTSMiscellaneousTest.java | 2 +-
.../jms/tests/ConnectionFactoryTest.java | 2 +-
.../activemq/artemis/jms/tests/JMSTest.java | 4 +-
.../activemq/artemis/jms/tests/JMSTestCase.java | 2 +-
.../activemq/artemis/jms/tests/QueueTest.java | 2 +-
.../tests/message/BodyIsAssignableFromTest.java | 2 +-
.../jms/tests/message/MessageBodyTest.java | 3 +-
.../jms/tests/message/MessageHeaderTest.java | 2 +-
.../tests/message/MessageHeaderTestBase.java | 1 -
.../jms/tests/message/ObjectMessageTest.java | 6 +-
.../jms/tests/message/SimpleJMSMessage.java | 2 +-
.../tests/message/SimpleJMSStreamMessage.java | 2 +-
.../jms/tests/selector/SelectorTest.java | 4 +-
.../jms/tests/tools/ServerManagement.java | 2 +-
.../jms/tests/tools/container/InVMContext.java | 4 +-
.../container/InVMInitialContextFactory.java | 2 +-
.../tests/tools/container/LocalTestServer.java | 8 +-
.../activemq/artemis/jms/ActiveMQAdmin.java | 2 +-
.../paging/MeasurePagingMultiThreadTest.java | 2 +-
.../sends/AbstractSendReceivePerfTest.java | 2 +-
.../tests/soak/client/ClientSoakTest.java | 2 +-
.../stress/journal/AddAndRemoveStressTest.java | 8 +-
.../JournalCleanupCompactStressTest.java | 6 +-
.../journal/JournalRestartStressTest.java | 2 +-
.../journal/MultiThreadConsumerStressTest.java | 2 +-
.../NIOMultiThreadCompactorStressTest.java | 6 +-
.../paging/MultipleConsumersPageStressTest.java | 8 +-
.../stress/paging/PageCursorStressTest.java | 2 +-
.../tests/stress/paging/PageStressTest.java | 2 +-
.../tests/stress/stomp/StompStressTest.java | 2 +-
.../core/server/impl/QueueConcurrentTest.java | 2 +-
.../timing/core/server/impl/QueueImplTest.java | 4 +-
.../jms/bridge/impl/JMSBridgeImplTest.java | 10 +-
.../MultiThreadAsynchronousFileTest.java | 4 +-
.../core/config/impl/ConnectorsServiceTest.java | 2 +-
.../impl/fakes/FakeConnectorServiceFactory.java | 4 +-
.../journal/impl/AlignedJournalImplTest.java | 12 +-
.../core/journal/impl/JournalAsyncTest.java | 4 +-
.../core/journal/impl/JournalImplTestBase.java | 14 +-
.../unit/core/journal/impl/ReclaimerTest.java | 8 +-
.../impl/SequentialFileFactoryTestBase.java | 2 +-
.../unit/core/journal/impl/TimedBufferTest.java | 4 +-
.../impl/fakes/FakeSequentialFileFactory.java | 6 +-
.../unit/core/message/impl/MessageImplTest.java | 2 +-
.../tests/unit/core/paging/impl/PageTest.java | 2 +-
.../core/paging/impl/PagingManagerImplTest.java | 2 +-
.../core/paging/impl/PagingStoreImplTest.java | 14 +-
.../impl/BatchIDGeneratorUnitTest.java | 4 +-
.../impl/DuplicateDetectionUnitTest.java | 2 +-
.../impl/WildcardAddressManagerUnitTest.java | 2 +-
.../impl/invm/InVMConnectorFactoryTest.java | 2 +-
.../impl/netty/NettyAcceptorFactoryTest.java | 2 +-
.../remoting/impl/netty/NettyAcceptorTest.java | 2 +-
.../impl/netty/NettyConnectorFactoryTest.java | 2 +-
.../remoting/impl/netty/NettyConnectorTest.java | 12 +-
.../impl/ActiveMQSecurityManagerImplTest.java | 28 ++--
.../unit/core/server/impl/QueueImplTest.java | 38 ++---
.../core/server/impl/fakes/FakeConsumer.java | 2 +-
.../ra/ActiveMQResourceAdapterConfigTest.java | 2 +-
.../ra/ConnectionFactoryPropertiesTest.java | 46 +++---
.../tests/unit/ra/ResourceAdapterTest.java | 14 +-
.../artemis/tests/unit/util/InVMContext.java | 6 +-
.../tests/unit/util/InVMNamingContext.java | 6 +-
.../artemis/tests/unit/util/LinkedListTest.java | 12 +-
.../ObjectInputStreamWithClassLoaderTest.java | 2 +-
.../tests/unit/util/SoftValueMapTest.java | 6 +-
.../artemis/tests/unit/util/UUIDTest.java | 2 +-
1050 files changed, 9371 insertions(+), 2990 deletions(-)
----------------------------------------------------------------------
[12/32] activemq-artemis git commit: Remove redundant type arguments
Posted by cl...@apache.org.
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/NonBlockingConsumerRedeliveryTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/NonBlockingConsumerRedeliveryTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/NonBlockingConsumerRedeliveryTest.java
index f4775cc..f29680f 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/NonBlockingConsumerRedeliveryTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/NonBlockingConsumerRedeliveryTest.java
@@ -60,9 +60,9 @@ public class NonBlockingConsumerRedeliveryTest {
@Test
public void testMessageDeleiveredWhenNonBlockingEnabled() throws Exception {
- final LinkedHashSet<Message> received = new LinkedHashSet<Message>();
- final LinkedHashSet<Message> beforeRollback = new LinkedHashSet<Message>();
- final LinkedHashSet<Message> afterRollback = new LinkedHashSet<Message>();
+ final LinkedHashSet<Message> received = new LinkedHashSet<>();
+ final LinkedHashSet<Message> beforeRollback = new LinkedHashSet<>();
+ final LinkedHashSet<Message> afterRollback = new LinkedHashSet<>();
Connection connection = connectionFactory.createConnection();
Session session = connection.createSession(true, Session.AUTO_ACKNOWLEDGE);
@@ -112,9 +112,9 @@ public class NonBlockingConsumerRedeliveryTest {
@Test
public void testMessageDeleiveredInCorrectOrder() throws Exception {
- final LinkedHashSet<Message> received = new LinkedHashSet<Message>();
- final LinkedHashSet<Message> beforeRollback = new LinkedHashSet<Message>();
- final LinkedHashSet<Message> afterRollback = new LinkedHashSet<Message>();
+ final LinkedHashSet<Message> received = new LinkedHashSet<>();
+ final LinkedHashSet<Message> beforeRollback = new LinkedHashSet<>();
+ final LinkedHashSet<Message> afterRollback = new LinkedHashSet<>();
Connection connection = connectionFactory.createConnection();
Session session = connection.createSession(true, Session.AUTO_ACKNOWLEDGE);
@@ -178,9 +178,9 @@ public class NonBlockingConsumerRedeliveryTest {
@Test
public void testMessageDeleiveryDoesntStop() throws Exception {
- final LinkedHashSet<Message> received = new LinkedHashSet<Message>();
- final LinkedHashSet<Message> beforeRollback = new LinkedHashSet<Message>();
- final LinkedHashSet<Message> afterRollback = new LinkedHashSet<Message>();
+ final LinkedHashSet<Message> received = new LinkedHashSet<>();
+ final LinkedHashSet<Message> beforeRollback = new LinkedHashSet<>();
+ final LinkedHashSet<Message> afterRollback = new LinkedHashSet<>();
Connection connection = connectionFactory.createConnection();
Session session = connection.createSession(true, Session.AUTO_ACKNOWLEDGE);
@@ -229,7 +229,7 @@ public class NonBlockingConsumerRedeliveryTest {
@Test
public void testNonBlockingMessageDeleiveryIsDelayed() throws Exception {
- final LinkedHashSet<Message> received = new LinkedHashSet<Message>();
+ final LinkedHashSet<Message> received = new LinkedHashSet<>();
ActiveMQConnection connection = (ActiveMQConnection) connectionFactory.createConnection();
connection.getRedeliveryPolicy().setInitialRedeliveryDelay(TimeUnit.SECONDS.toMillis(6));
@@ -271,7 +271,7 @@ public class NonBlockingConsumerRedeliveryTest {
@Test
public void testNonBlockingMessageDeleiveryWithRollbacks() throws Exception {
- final LinkedHashSet<Message> received = new LinkedHashSet<Message>();
+ final LinkedHashSet<Message> received = new LinkedHashSet<>();
ActiveMQConnection connection = (ActiveMQConnection) connectionFactory.createConnection();
final Session session = connection.createSession(true, Session.AUTO_ACKNOWLEDGE);
@@ -343,8 +343,8 @@ public class NonBlockingConsumerRedeliveryTest {
@Test
public void testNonBlockingMessageDeleiveryWithAllRolledBack() throws Exception {
- final LinkedHashSet<Message> received = new LinkedHashSet<Message>();
- final LinkedHashSet<Message> dlqed = new LinkedHashSet<Message>();
+ final LinkedHashSet<Message> received = new LinkedHashSet<>();
+ final LinkedHashSet<Message> dlqed = new LinkedHashSet<>();
ActiveMQConnection connection = (ActiveMQConnection) connectionFactory.createConnection();
connection.getRedeliveryPolicy().setMaximumRedeliveries(5);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ObjectMessageNotSerializableTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ObjectMessageNotSerializableTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ObjectMessageNotSerializableTest.java
index ab21c0b..67e9101 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ObjectMessageNotSerializableTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ObjectMessageNotSerializableTest.java
@@ -44,7 +44,7 @@ public class ObjectMessageNotSerializableTest extends CombinationTestSupport {
BrokerService broker;
AtomicInteger numReceived = new AtomicInteger(0);
- final Vector<Throwable> exceptions = new Vector<Throwable>();
+ final Vector<Throwable> exceptions = new Vector<>();
public static Test suite() {
return suite(ObjectMessageNotSerializableTest.class);
@@ -138,7 +138,7 @@ public class ObjectMessageNotSerializableTest extends CombinationTestSupport {
final MyObject obj = new MyObject("A message");
final CountDownLatch consumerStarted = new CountDownLatch(3);
- final Vector<Throwable> exceptions = new Vector<Throwable>();
+ final Vector<Throwable> exceptions = new Vector<>();
Thread vmConsumerThread = new Thread("Consumer Thread") {
@Override
public void run() {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/QueueDuplicatesTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/QueueDuplicatesTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/QueueDuplicatesTest.java
index 1c8f7af..18c19f5 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/QueueDuplicatesTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/QueueDuplicatesTest.java
@@ -149,7 +149,7 @@ public class QueueDuplicatesTest extends TestCase {
private static class SimpleConsumer implements MessageListener {
- private Map<String, Message> msgs = new HashMap<String, Message>();
+ private Map<String, Message> msgs = new HashMap<>();
@Override
public void onMessage(Message message) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/QueueMemoryFullMultiBrokersTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/QueueMemoryFullMultiBrokersTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/QueueMemoryFullMultiBrokersTest.java
index 316f4f6..e1f1d21 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/QueueMemoryFullMultiBrokersTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/QueueMemoryFullMultiBrokersTest.java
@@ -87,7 +87,7 @@ public class QueueMemoryFullMultiBrokersTest extends JmsMultipleBrokersTestSuppo
memoryManager.getMemoryUsage().setLimit(1024 * 50); // 50 MB
broker.setSystemUsage(memoryManager);
- final List<PolicyEntry> policyEntries = new ArrayList<PolicyEntry>();
+ final List<PolicyEntry> policyEntries = new ArrayList<>();
final PolicyEntry entry = new PolicyEntry();
entry.setQueue(">");
entry.setMemoryLimit(1024 * 4); // Set to 2 kb
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/RequestReplyNoAdvisoryNetworkTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/RequestReplyNoAdvisoryNetworkTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/RequestReplyNoAdvisoryNetworkTest.java
index 593c921..54781ee 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/RequestReplyNoAdvisoryNetworkTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/RequestReplyNoAdvisoryNetworkTest.java
@@ -53,7 +53,7 @@ public class RequestReplyNoAdvisoryNetworkTest extends JmsMultipleBrokersTestSup
private static final transient Logger LOG = LoggerFactory.getLogger(RequestReplyNoAdvisoryNetworkTest.class);
- Vector<BrokerService> brokers = new Vector<BrokerService>();
+ Vector<BrokerService> brokers = new Vector<>();
BrokerService a, b;
ActiveMQQueue sendQ = new ActiveMQQueue("sendQ");
static final String connectionIdMarker = "ID:marker.";
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/RequestReplyTempDestRemovalAdvisoryRaceTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/RequestReplyTempDestRemovalAdvisoryRaceTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/RequestReplyTempDestRemovalAdvisoryRaceTest.java
index c3a15b3..9211bf2 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/RequestReplyTempDestRemovalAdvisoryRaceTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/RequestReplyTempDestRemovalAdvisoryRaceTest.java
@@ -85,8 +85,8 @@ public class RequestReplyTempDestRemovalAdvisoryRaceTest extends JmsMultipleBrok
final AtomicLong forwardFailures = new AtomicLong(0);
protected final AtomicBoolean shutdown = new AtomicBoolean(false);
- HashSet<NetworkConnector> networkConnectors = new HashSet<NetworkConnector>();
- HashSet<Connection> advisoryConsumerConnections = new HashSet<Connection>();
+ HashSet<NetworkConnector> networkConnectors = new HashSet<>();
+ HashSet<Connection> advisoryConsumerConnections = new HashSet<>();
Appender slowDownAppender;
CountDownLatch consumerDemandExists;
@@ -117,7 +117,7 @@ public class RequestReplyTempDestRemovalAdvisoryRaceTest extends JmsMultipleBrok
waitForBridgeFormation(1);
- HashSet<NetworkBridge> bridgesStart = new HashSet<NetworkBridge>();
+ HashSet<NetworkBridge> bridgesStart = new HashSet<>();
for (NetworkConnector networkConnector : networkConnectors) {
bridgesStart.addAll(networkConnector.activeBridges());
}
@@ -150,7 +150,7 @@ public class RequestReplyTempDestRemovalAdvisoryRaceTest extends JmsMultipleBrok
LOG.info("shutting down");
shutdown.compareAndSet(false, true);
- HashSet<NetworkBridge> bridgesEnd = new HashSet<NetworkBridge>();
+ HashSet<NetworkBridge> bridgesEnd = new HashSet<>();
for (NetworkConnector networkConnector : networkConnectors) {
bridgesEnd.addAll(networkConnector.activeBridges());
}
@@ -203,7 +203,7 @@ public class RequestReplyTempDestRemovalAdvisoryRaceTest extends JmsMultipleBrok
waitForBridgeFormation(1);
- HashSet<NetworkBridge> bridgesStart = new HashSet<NetworkBridge>();
+ HashSet<NetworkBridge> bridgesStart = new HashSet<>();
for (NetworkConnector networkConnector : networkConnectors) {
bridgesStart.addAll(networkConnector.activeBridges());
}
@@ -235,7 +235,7 @@ public class RequestReplyTempDestRemovalAdvisoryRaceTest extends JmsMultipleBrok
LOG.info("shutting down");
shutdown.compareAndSet(false, true);
- HashSet<NetworkBridge> bridgesEnd = new HashSet<NetworkBridge>();
+ HashSet<NetworkBridge> bridgesEnd = new HashSet<>();
for (NetworkConnector networkConnector : networkConnectors) {
bridgesEnd.addAll(networkConnector.activeBridges());
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/RequestReplyToTopicViaThreeNetworkHopsTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/RequestReplyToTopicViaThreeNetworkHopsTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/RequestReplyToTopicViaThreeNetworkHopsTest.java
index 787312f..001142e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/RequestReplyToTopicViaThreeNetworkHopsTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/RequestReplyToTopicViaThreeNetworkHopsTest.java
@@ -619,7 +619,7 @@ public class RequestReplyToTopicViaThreeNetworkHopsTest {
excl_dest = ActiveMQDestination.createDestination(">", ActiveMQDestination.QUEUE_TYPE);
}
- excludes = new ArrayList<ActiveMQDestination>();
+ excludes = new ArrayList<>();
excludes.add(excl_dest);
nw_conn.setExcludedDestinations(excludes);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ThreeBrokerQueueNetworkTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ThreeBrokerQueueNetworkTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ThreeBrokerQueueNetworkTest.java
index a7b020a..9c0a205 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ThreeBrokerQueueNetworkTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ThreeBrokerQueueNetworkTest.java
@@ -130,7 +130,7 @@ public class ThreeBrokerQueueNetworkTest extends JmsMultipleBrokersTestSupport {
Destination dest = createDestination("TEST.FOO", false);
// Send messages for broker A
- HashMap<String, Object> props = new HashMap<String, Object>();
+ HashMap<String, Object> props = new HashMap<>();
props.put("broker", "BROKER_A");
sendMessages("BrokerB", dest, MESSAGE_COUNT, props);
@@ -176,7 +176,7 @@ public class ThreeBrokerQueueNetworkTest extends JmsMultipleBrokersTestSupport {
Thread.sleep(2000); //et subscriptions get propagated
// Send messages for broker A
- HashMap<String, Object> props = new HashMap<String, Object>();
+ HashMap<String, Object> props = new HashMap<>();
props.put("broker", "BROKER_A");
sendMessages("BrokerB", dest, MESSAGE_COUNT, props);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ThreeBrokerQueueNetworkUsingTcpTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ThreeBrokerQueueNetworkUsingTcpTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ThreeBrokerQueueNetworkUsingTcpTest.java
index c78530c..93baeca 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ThreeBrokerQueueNetworkUsingTcpTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ThreeBrokerQueueNetworkUsingTcpTest.java
@@ -68,6 +68,6 @@ public class ThreeBrokerQueueNetworkUsingTcpTest extends ThreeBrokerQueueNetwork
public void setUp() throws Exception {
super.setUp();
- bridges = new ArrayList<DemandForwardingBridge>();
+ bridges = new ArrayList<>();
}
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ThreeBrokerTopicNetworkTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ThreeBrokerTopicNetworkTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ThreeBrokerTopicNetworkTest.java
index 73a4b10..381ae05 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ThreeBrokerTopicNetworkTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ThreeBrokerTopicNetworkTest.java
@@ -109,7 +109,7 @@ public class ThreeBrokerTopicNetworkTest extends JmsMultipleBrokersTestSupport {
Thread.sleep(2000);
// Send messages
// Send messages for broker A
- HashMap<String, Object> props = new HashMap<String, Object>();
+ HashMap<String, Object> props = new HashMap<>();
props.put("dummy", 33);
sendMessages("BrokerA", dest, MESSAGE_COUNT, props);
props.put("dummy", 34);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ThreeBrokerTopicNetworkUsingTcpTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ThreeBrokerTopicNetworkUsingTcpTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ThreeBrokerTopicNetworkUsingTcpTest.java
index 110b880..848193a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ThreeBrokerTopicNetworkUsingTcpTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ThreeBrokerTopicNetworkUsingTcpTest.java
@@ -68,6 +68,6 @@ public class ThreeBrokerTopicNetworkUsingTcpTest extends ThreeBrokerTopicNetwork
public void setUp() throws Exception {
super.setUp();
- bridges = new ArrayList<DemandForwardingBridge>();
+ bridges = new ArrayList<>();
}
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TopicDurableConnectStatsTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TopicDurableConnectStatsTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TopicDurableConnectStatsTest.java
index 2384aa6..b1e1db6 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TopicDurableConnectStatsTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TopicDurableConnectStatsTest.java
@@ -52,7 +52,7 @@ public class TopicDurableConnectStatsTest extends org.apache.activemq.TestSuppor
private static final Logger LOG = LoggerFactory.getLogger(TopicDurableConnectStatsTest.class);
private BrokerService broker;
private ActiveMQTopic topic;
- private final Vector<Throwable> exceptions = new Vector<Throwable>();
+ private final Vector<Throwable> exceptions = new Vector<>();
private final int messageSize = 4000;
protected MBeanServerConnection mbeanServer;
protected String domain = "org.apache.activemq";
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TransactionRollbackOrderTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TransactionRollbackOrderTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TransactionRollbackOrderTest.java
index 2421107..0978480 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TransactionRollbackOrderTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TransactionRollbackOrderTest.java
@@ -57,10 +57,10 @@ public final class TransactionRollbackOrderTest extends TestCase {
private Connection connection;
private CountDownLatch latch = new CountDownLatch(1);
private int numMessages = 5;
- private List<String> msgSent = new ArrayList<String>();
- private List<String> msgCommitted = new ArrayList<String>();
- private List<String> msgRolledBack = new ArrayList<String>();
- private List<String> msgRedelivered = new ArrayList<String>();
+ private List<String> msgSent = new ArrayList<>();
+ private List<String> msgCommitted = new ArrayList<>();
+ private List<String> msgRolledBack = new ArrayList<>();
+ private List<String> msgRedelivered = new ArrayList<>();
public void testTransaction() throws Exception {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerTopicSendReceiveTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerTopicSendReceiveTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerTopicSendReceiveTest.java
index eeee147..361f514 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerTopicSendReceiveTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerTopicSendReceiveTest.java
@@ -40,7 +40,7 @@ public class TwoBrokerTopicSendReceiveTest extends JmsTopicSendReceiveWithTwoCon
protected ActiveMQConnectionFactory sendFactory;
protected ActiveMQConnectionFactory receiveFactory;
- protected HashMap<String, BrokerService> brokers = new HashMap<String, BrokerService>();
+ protected HashMap<String, BrokerService> brokers = new HashMap<>();
@Override
protected void setUp() throws Exception {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerVirtualTopicForwardingTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerVirtualTopicForwardingTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerVirtualTopicForwardingTest.java
index 4abe687..7c042b9 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerVirtualTopicForwardingTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerVirtualTopicForwardingTest.java
@@ -170,7 +170,7 @@ public class TwoBrokerVirtualTopicForwardingTest extends JmsMultipleBrokersTestS
NetworkConnector bridge = bridgeBrokers(local, remote);
bridge.setDecreaseNetworkConsumerPriority(true);
- LinkedList<ActiveMQDestination> excludedDestinations = new LinkedList<ActiveMQDestination>();
+ LinkedList<ActiveMQDestination> excludedDestinations = new LinkedList<>();
excludedDestinations.add(new ActiveMQQueue("Consumer.*.VirtualTopic.>"));
bridge.setExcludedDestinations(excludedDestinations);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/UnlimitedEnqueueTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/UnlimitedEnqueueTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/UnlimitedEnqueueTest.java
index 876da5c..cfeef5c 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/UnlimitedEnqueueTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/UnlimitedEnqueueTest.java
@@ -81,7 +81,7 @@ public class UnlimitedEnqueueTest {
brokerService.getSystemUsage().getTempUsage().setLimit((numMessages * payLoadSize) + (1000 * payLoadSize));
PolicyMap policyMap = new PolicyMap();
- List<PolicyEntry> entries = new ArrayList<PolicyEntry>();
+ List<PolicyEntry> entries = new ArrayList<>();
PolicyEntry policy = new PolicyEntry();
// NB: ensure queue cursor limit is below the default 70% usage that the destination will use
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/VerifyNetworkConsumersDisconnectTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/VerifyNetworkConsumersDisconnectTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/VerifyNetworkConsumersDisconnectTest.java
index 5ba78d0..5c9a3bf 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/VerifyNetworkConsumersDisconnectTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/VerifyNetworkConsumersDisconnectTest.java
@@ -53,7 +53,7 @@ public class VerifyNetworkConsumersDisconnectTest extends JmsMultipleBrokersTest
public static final int TIMEOUT = 30000;
protected Map<String, MessageConsumer> consumerMap;
- final Map<Thread, Throwable> unhandledExceptions = new HashMap<Thread, Throwable>();
+ final Map<Thread, Throwable> unhandledExceptions = new HashMap<>();
private void assertNoUnhandledExceptions() {
for (Entry<Thread, Throwable> e : unhandledExceptions.entrySet()) {
@@ -220,7 +220,7 @@ public class VerifyNetworkConsumersDisconnectTest extends JmsMultipleBrokersTest
QueueViewMBean queueViewMBean = (QueueViewMBean) context.newProxyInstance(brokers.get(brokerName).broker.getAdminView().getQueues()[0], QueueViewMBean.class, false);
long currentCount = queueViewMBean.getConsumerCount();
LOG.info("On " + brokerName + " current consumer count for " + queueViewMBean + ", " + currentCount);
- LinkedList<String> consumerIds = new LinkedList<String>();
+ LinkedList<String> consumerIds = new LinkedList<>();
for (ObjectName objectName : queueViewMBean.getSubscriptions()) {
consumerIds.add(objectName.getKeyProperty("consumerId"));
}
@@ -254,7 +254,7 @@ public class VerifyNetworkConsumersDisconnectTest extends JmsMultipleBrokersTest
createBroker(new URI("broker:(tcp://localhost:6161" + i + ")/Broker" + i + "?persistent=false&useJmx=true&brokerId=Broker" + i));
}
- consumerMap = new LinkedHashMap<String, MessageConsumer>();
+ consumerMap = new LinkedHashMap<>();
}
@Override
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/util/MessageIdList.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/util/MessageIdList.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/util/MessageIdList.java
index 828449f..8b87de5 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/util/MessageIdList.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/util/MessageIdList.java
@@ -41,7 +41,7 @@ public class MessageIdList extends Assert implements MessageListener {
private static final Logger LOG = LoggerFactory.getLogger(MessageIdList.class);
- private final List<String> messageIds = new ArrayList<String>();
+ private final List<String> messageIds = new ArrayList<>();
private final Object semaphore;
private boolean verbose;
private MessageListener parent;
@@ -86,7 +86,7 @@ public class MessageIdList extends Assert implements MessageListener {
*/
public List<String> flushMessages() {
synchronized (semaphore) {
- List<String> answer = new ArrayList<String>(messageIds);
+ List<String> answer = new ArrayList<>(messageIds);
messageIds.clear();
return answer;
}
@@ -94,7 +94,7 @@ public class MessageIdList extends Assert implements MessageListener {
public synchronized List<String> getMessageIds() {
synchronized (semaphore) {
- return new ArrayList<String>(messageIds);
+ return new ArrayList<>(messageIds);
}
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/util/ReflectionSupportTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/util/ReflectionSupportTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/util/ReflectionSupportTest.java
index 43a585f..0f4b902 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/util/ReflectionSupportTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/util/ReflectionSupportTest.java
@@ -31,9 +31,9 @@ import org.apache.activemq.command.ActiveMQTopic;
public class ReflectionSupportTest extends TestCase {
- List<ActiveMQDestination> favorites = new ArrayList<ActiveMQDestination>();
+ List<ActiveMQDestination> favorites = new ArrayList<>();
String favoritesString = "[queue://test, topic://test]";
- List<ActiveMQDestination> nonFavorites = new ArrayList<ActiveMQDestination>();
+ List<ActiveMQDestination> nonFavorites = new ArrayList<>();
String nonFavoritesString = "[topic://test1]";
@Override
@@ -45,7 +45,7 @@ public class ReflectionSupportTest extends TestCase {
public void testSetProperties() throws URISyntaxException {
SimplePojo pojo = new SimplePojo();
- HashMap<String, String> map = new HashMap<String, String>();
+ HashMap<String, String> map = new HashMap<>();
map.put("age", "27");
map.put("name", "Hiram");
map.put("enabled", "true");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/util/SimplePojo.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/util/SimplePojo.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/util/SimplePojo.java
index b0ba089..a1f9ed3 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/util/SimplePojo.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/util/SimplePojo.java
@@ -28,9 +28,9 @@ public class SimplePojo {
int age;
boolean enabled;
URI uri;
- List<ActiveMQDestination> favorites = new ArrayList<ActiveMQDestination>();
- List<ActiveMQDestination> nonFavorites = new ArrayList<ActiveMQDestination>();
- List<ActiveMQDestination> others = new ArrayList<ActiveMQDestination>();
+ List<ActiveMQDestination> favorites = new ArrayList<>();
+ List<ActiveMQDestination> nonFavorites = new ArrayList<>();
+ List<ActiveMQDestination> others = new ArrayList<>();
String[] systems;
public int getAge() {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/xbean/ManagementContextXBeanConfigTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/xbean/ManagementContextXBeanConfigTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/xbean/ManagementContextXBeanConfigTest.java
index 734cd1c..e3001a2 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/xbean/ManagementContextXBeanConfigTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/xbean/ManagementContextXBeanConfigTest.java
@@ -49,7 +49,7 @@ public class ManagementContextXBeanConfigTest extends TestCase {
assertEquals(2011, brokerService.getManagementContext().getConnectorPort());
assertEquals("test.domain", brokerService.getManagementContext().getJmxDomainName());
// Make sure the broker is registered in the right jmx domain.
- Hashtable<String, String> map = new Hashtable<String, String>();
+ Hashtable<String, String> map = new Hashtable<>();
map.put("type", "Broker");
map.put("brokerName", JMXSupport.encodeObjectNamePart("localhost"));
ObjectName on = new ObjectName("test.domain", map);
@@ -59,7 +59,7 @@ public class ManagementContextXBeanConfigTest extends TestCase {
public void testSuccessAuthentication() throws Exception {
JMXServiceURL url = new JMXServiceURL("service:jmx:rmi:///jndi/rmi://localhost:2011/jmxrmi");
- Map<String, Object> env = new HashMap<String, Object>();
+ Map<String, Object> env = new HashMap<>();
env.put(JMXConnector.CREDENTIALS, new String[]{"admin", "activemq"});
JMXConnector connector = JMXConnectorFactory.connect(url, env);
assertAuthentication(connector);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/BridgeServerLocatorConfigurationTest.java
----------------------------------------------------------------------
diff --git a/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/BridgeServerLocatorConfigurationTest.java b/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/BridgeServerLocatorConfigurationTest.java
index 8f835de..20d3722 100644
--- a/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/BridgeServerLocatorConfigurationTest.java
+++ b/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/BridgeServerLocatorConfigurationTest.java
@@ -64,10 +64,10 @@ public class BridgeServerLocatorConfigurationTest extends ActiveMQTestBase {
* It the overrides the return value to be the value of the connection ttl. Note that the unused String parameter is required to
* ensure that byteman populates the $1 variable, otherwise it will not bind correctly.
*/ public void testConnectionTTLOnBridge() throws Exception {
- Map<String, Object> server0Params = new HashMap<String, Object>();
+ Map<String, Object> server0Params = new HashMap<>();
ActiveMQServer serverWithBridge = createClusteredServerWithParams(isNetty(), 0, true, server0Params);
- Map<String, Object> server1Params = new HashMap<String, Object>();
+ Map<String, Object> server1Params = new HashMap<>();
if (isNetty()) {
server1Params.put("port", org.apache.activemq.artemis.core.remoting.impl.netty.TransportConstants.DEFAULT_PORT + 1);
}
@@ -82,28 +82,28 @@ public class BridgeServerLocatorConfigurationTest extends ActiveMQTestBase {
final String forwardAddress = "forwardAddress";
final String queueName1 = "queue1";
- Map<String, TransportConfiguration> connectors = new HashMap<String, TransportConfiguration>();
+ Map<String, TransportConfiguration> connectors = new HashMap<>();
TransportConfiguration server1tc = new TransportConfiguration(getConnector(), server1Params);
connectors.put(server1tc.getName(), server1tc);
serverWithBridge.getConfiguration().setConnectorConfigurations(connectors);
- ArrayList<String> staticConnectors = new ArrayList<String>();
+ ArrayList<String> staticConnectors = new ArrayList<>();
staticConnectors.add(server1tc.getName());
BridgeConfiguration bridgeConfiguration = new BridgeConfiguration().setName(BRIDGE_NAME).setQueueName(queueName0).setForwardingAddress(forwardAddress).setConnectionTTL(BRIDGE_TTL).setRetryInterval(1000).setReconnectAttempts(0).setReconnectAttemptsOnSameNode(0).setConfirmationWindowSize(1024).setStaticConnectors(staticConnectors);
- List<BridgeConfiguration> bridgeConfigs = new ArrayList<BridgeConfiguration>();
+ List<BridgeConfiguration> bridgeConfigs = new ArrayList<>();
bridgeConfigs.add(bridgeConfiguration);
serverWithBridge.getConfiguration().setBridgeConfigurations(bridgeConfigs);
CoreQueueConfiguration queueConfig0 = new CoreQueueConfiguration().setAddress(testAddress).setName(queueName0);
- List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<>();
queueConfigs0.add(queueConfig0);
serverWithBridge.getConfiguration().setQueueConfigurations(queueConfigs0);
CoreQueueConfiguration queueConfig1 = new CoreQueueConfiguration().setAddress(forwardAddress).setName(queueName1);
- List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<>();
queueConfigs1.add(queueConfig1);
server1.getConfiguration().setQueueConfigurations(queueConfigs1);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/ConcurrentDeliveryCancelTest.java
----------------------------------------------------------------------
diff --git a/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/ConcurrentDeliveryCancelTest.java b/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/ConcurrentDeliveryCancelTest.java
index 946be53..5b2dd0d 100644
--- a/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/ConcurrentDeliveryCancelTest.java
+++ b/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/ConcurrentDeliveryCancelTest.java
@@ -138,7 +138,7 @@ public class ConcurrentDeliveryCancelTest extends JMSTestBase {
System.out.println(".....");
- final List<ServerSession> serverSessions = new LinkedList<ServerSession>();
+ final List<ServerSession> serverSessions = new LinkedList<>();
// We will force now the failure simultaneously from several places
for (ServerSession srvSess : server.getSessions()) {
@@ -150,7 +150,7 @@ public class ConcurrentDeliveryCancelTest extends JMSTestBase {
resetLatches(2); // from Transactional reaper
- List<Thread> threads = new LinkedList<Thread>();
+ List<Thread> threads = new LinkedList<>();
threads.add(new Thread("ConsumerCloser") {
@Override
@@ -219,7 +219,7 @@ public class ConcurrentDeliveryCancelTest extends JMSTestBase {
connection.start();
Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
MessageConsumer consumer = session.createConsumer(queue);
- HashMap<Integer, AtomicInteger> mapCount = new HashMap<Integer, AtomicInteger>();
+ HashMap<Integer, AtomicInteger> mapCount = new HashMap<>();
while (true) {
TextMessage message = (TextMessage) consumer.receiveNoWait();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/HierarchicalObjectRepositoryTest.java
----------------------------------------------------------------------
diff --git a/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/HierarchicalObjectRepositoryTest.java b/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/HierarchicalObjectRepositoryTest.java
index 361cbc7..2c47bf0 100644
--- a/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/HierarchicalObjectRepositoryTest.java
+++ b/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/HierarchicalObjectRepositoryTest.java
@@ -50,7 +50,7 @@ public class HierarchicalObjectRepositoryTest {
latch = new CountDownLatch(1);
latch2 = new CountDownLatch(1);
executor = Executors.newSingleThreadExecutor();
- repo = new HierarchicalObjectRepository<String>();
+ repo = new HierarchicalObjectRepository<>();
addToRepo(repo, A);
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/MessageCopyTest.java
----------------------------------------------------------------------
diff --git a/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/MessageCopyTest.java b/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/MessageCopyTest.java
index 2e37e56..5d7f5cd 100644
--- a/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/MessageCopyTest.java
+++ b/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/MessageCopyTest.java
@@ -132,7 +132,7 @@ public class MessageCopyTest {
}
}
- ArrayList<Thread> threads = new ArrayList<Thread>();
+ ArrayList<Thread> threads = new ArrayList<>();
for (int i = 0; i < T1_number; i++) {
T1 t = new T1();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/PagingLeakTest.java
----------------------------------------------------------------------
diff --git a/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/PagingLeakTest.java b/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/PagingLeakTest.java
index 0372878..cfd481c 100644
--- a/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/PagingLeakTest.java
+++ b/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/PagingLeakTest.java
@@ -76,7 +76,7 @@ public class PagingLeakTest extends ActiveMQTestBase {
public void testValidateLeak() throws Throwable {
System.out.println("location::" + getBindingsDir());
- List<PagePositionImpl> positions = new ArrayList<PagePositionImpl>();
+ List<PagePositionImpl> positions = new ArrayList<>();
for (int i = 0; i < 300; i++) {
positions.add(new PagePositionImpl(3, 3));
@@ -100,7 +100,7 @@ public class PagingLeakTest extends ActiveMQTestBase {
// This is just to validate the rules are correctly applied on byteman
assertEquals("You have changed something on PagePositionImpl in such way that these byteman rules are no longer working", 0, pagePosInstances.get());
- final ArrayList<Exception> errors = new ArrayList<Exception>();
+ final ArrayList<Exception> errors = new ArrayList<>();
// A backup that will be waiting to be activated
Configuration config = createDefaultNettyConfig();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/jms/bridge/BridgeTestBase.java
----------------------------------------------------------------------
diff --git a/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/jms/bridge/BridgeTestBase.java b/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/jms/bridge/BridgeTestBase.java
index e4317fb..4ed91c0 100644
--- a/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/jms/bridge/BridgeTestBase.java
+++ b/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/jms/bridge/BridgeTestBase.java
@@ -117,7 +117,7 @@ public abstract class BridgeTestBase extends ActiveMQTestBase {
jmsServer0.setRegistry(new JndiBindingRegistry(context0));
jmsServer0.start();
- params1 = new HashMap<String, Object>();
+ params1 = new HashMap<>();
params1.put(TransportConstants.SERVER_ID_PROP_NAME, 1);
Configuration conf1 = createBasicConfig().setJournalDirectory(getJournalDir(1, false)).setBindingsDirectory(getBindingsDir(1, false)).addAcceptorConfiguration(new TransportConfiguration(INVM_ACCEPTOR_FACTORY, params1));
@@ -388,7 +388,7 @@ public abstract class BridgeTestBase extends ActiveMQTestBase {
// Consume the messages
- Set<String> msgs = new HashSet<String>();
+ Set<String> msgs = new HashSet<>();
int count = 0;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/jms/bridge/ClusteredBridgeTestBase.java
----------------------------------------------------------------------
diff --git a/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/jms/bridge/ClusteredBridgeTestBase.java b/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/jms/bridge/ClusteredBridgeTestBase.java
index b1565d8..fe86bbd 100644
--- a/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/jms/bridge/ClusteredBridgeTestBase.java
+++ b/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/jms/bridge/ClusteredBridgeTestBase.java
@@ -66,7 +66,7 @@ public abstract class ClusteredBridgeTestBase extends ActiveMQTestBase {
private static int index = 0;
- protected Map<String, ServerGroup> groups = new HashMap<String, ServerGroup>();
+ protected Map<String, ServerGroup> groups = new HashMap<>();
@Override
@Before
@@ -137,11 +137,11 @@ public abstract class ClusteredBridgeTestBase extends ActiveMQTestBase {
}
public void create() throws Exception {
- Map<String, Object> params0 = new HashMap<String, Object>();
+ Map<String, Object> params0 = new HashMap<>();
params0.put(TransportConstants.SERVER_ID_PROP_NAME, id);
liveConnector = new TransportConfiguration(INVM_CONNECTOR_FACTORY, params0, "in-vm-live");
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put(TransportConstants.SERVER_ID_PROP_NAME, id + ID_OFFSET);
backupConnector = new TransportConfiguration(INVM_CONNECTOR_FACTORY, params, "in-vm-backup");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/jms/bridge/JMSBridgeTest.java
----------------------------------------------------------------------
diff --git a/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/jms/bridge/JMSBridgeTest.java b/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/jms/bridge/JMSBridgeTest.java
index 9d13e29..aa862b4 100644
--- a/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/jms/bridge/JMSBridgeTest.java
+++ b/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/jms/bridge/JMSBridgeTest.java
@@ -717,7 +717,7 @@ public class JMSBridgeTest extends BridgeTestBase {
Connection connTarget = null;
DefaultSensitiveStringCodec codec = new DefaultSensitiveStringCodec();
- Map<String, String> prop = new HashMap<String, String>();
+ Map<String, String> prop = new HashMap<>();
prop.put("key", "bridgekey");
codec.init(prop);
@@ -942,7 +942,7 @@ public class JMSBridgeTest extends BridgeTestBase {
JMSBridgeTest.log.trace("Sending " + NUM_MESSAGES + " messages");
- List<String> ids1 = new ArrayList<String>();
+ List<String> ids1 = new ArrayList<>();
Session sessSource = connSource.createSession(false, Session.AUTO_ACKNOWLEDGE);
@@ -983,7 +983,7 @@ public class JMSBridgeTest extends BridgeTestBase {
connTarget.start();
- List<TextMessage> msgs = new ArrayList<TextMessage>();
+ List<TextMessage> msgs = new ArrayList<>();
for (int i = 0; i < NUM_MESSAGES; i++) {
TextMessage tm = (TextMessage) cons.receive(5000);
@@ -1021,7 +1021,7 @@ public class JMSBridgeTest extends BridgeTestBase {
Iterator<TextMessage> iter = msgs.iterator();
- List<String> ids2 = new ArrayList<String>();
+ List<String> ids2 = new ArrayList<>();
while (iter.hasNext()) {
Message msg = iter.next();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/jms/ra/MDBMultipleHandlersServerDisconnectTest.java
----------------------------------------------------------------------
diff --git a/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/jms/ra/MDBMultipleHandlersServerDisconnectTest.java b/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/jms/ra/MDBMultipleHandlersServerDisconnectTest.java
index a240c12..41f47b5 100644
--- a/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/jms/ra/MDBMultipleHandlersServerDisconnectTest.java
+++ b/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/jms/ra/MDBMultipleHandlersServerDisconnectTest.java
@@ -64,7 +64,7 @@ import org.junit.Test;
*/
public class MDBMultipleHandlersServerDisconnectTest extends ActiveMQRATestBase {
- final ConcurrentHashMap<Integer, AtomicInteger> mapCounter = new ConcurrentHashMap<Integer, AtomicInteger>();
+ final ConcurrentHashMap<Integer, AtomicInteger> mapCounter = new ConcurrentHashMap<>();
volatile ActiveMQResourceAdapter resourceAdapter;
@@ -329,7 +329,7 @@ public class MDBMultipleHandlersServerDisconnectTest extends ActiveMQRATestBase
}
private List<ServerSession> lookupServerSessions(String parameter) {
- List<ServerSession> serverSessions = new LinkedList<ServerSession>();
+ List<ServerSession> serverSessions = new LinkedList<>();
for (ServerSession session : server.getSessions()) {
if (session.getMetaData(parameter) != null) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/protocols/hornetq/HornetQProtocolTest.java
----------------------------------------------------------------------
diff --git a/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/protocols/hornetq/HornetQProtocolTest.java b/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/protocols/hornetq/HornetQProtocolTest.java
index 7a33df1..29c7677 100644
--- a/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/protocols/hornetq/HornetQProtocolTest.java
+++ b/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/protocols/hornetq/HornetQProtocolTest.java
@@ -49,7 +49,7 @@ public class HornetQProtocolTest extends ActiveMQTestBase {
@Override
@Before
public void setUp() throws Exception {
- HashMap<String, Object> params = new HashMap<String, Object>();
+ HashMap<String, Object> params = new HashMap<>();
params.put(org.hornetq.core.remoting.impl.netty.TransportConstants.PORT_PROP_NAME, "" + 5445);
params.put(org.hornetq.core.remoting.impl.netty.TransportConstants.PROTOCOLS_PROP_NAME, "HORNETQ");
TransportConfiguration transportConfig = new TransportConfiguration(NETTY_ACCEPTOR_FACTORY, params);
@@ -217,7 +217,7 @@ public class HornetQProtocolTest extends ActiveMQTestBase {
}
private org.hornetq.api.core.client.ClientSession createHQClientSession() throws Exception {
- Map<String, Object> map = new HashMap<String, Object>();
+ Map<String, Object> map = new HashMap<>();
map.put("host", "localhost");
map.put("port", 5445);
@@ -228,7 +228,7 @@ public class HornetQProtocolTest extends ActiveMQTestBase {
}
private ClientSession createCoreClientSession() throws Exception {
- Map<String, Object> map = new HashMap<String, Object>();
+ Map<String, Object> map = new HashMap<>();
map.put("host", "localhost");
map.put("port", 61616);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/SimpleNotificationService.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/SimpleNotificationService.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/SimpleNotificationService.java
index 626918a..2e94aa5 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/SimpleNotificationService.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/SimpleNotificationService.java
@@ -29,7 +29,7 @@ public class SimpleNotificationService implements NotificationService {
// Attributes ----------------------------------------------------
- private final List<NotificationListener> listeners = new ArrayList<NotificationListener>();
+ private final List<NotificationListener> listeners = new ArrayList<>();
// Static --------------------------------------------------------
@@ -70,7 +70,7 @@ public class SimpleNotificationService implements NotificationService {
public static class Listener implements NotificationListener {
- private final List<Notification> notifications = new ArrayList<Notification>();
+ private final List<Notification> notifications = new ArrayList<>();
@Override
public void onNotification(final Notification notification) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/AutoCreateJmsQueueTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/AutoCreateJmsQueueTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/AutoCreateJmsQueueTest.java
index 11b8da5..4c29d6c 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/AutoCreateJmsQueueTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/AutoCreateJmsQueueTest.java
@@ -103,7 +103,7 @@ public class AutoCreateJmsQueueTest extends JMSTestBase {
((ActiveMQJAASSecurityManager) server.getSecurityManager()).getConfiguration().setDefaultUser("guest");
((ActiveMQJAASSecurityManager) server.getSecurityManager()).getConfiguration().addRole("guest", "rejectAll");
Role role = new Role("rejectAll", false, false, false, false, false, false, false);
- Set<Role> roles = new HashSet<Role>();
+ Set<Role> roles = new HashSet<>();
roles.add(role);
server.getSecurityRepository().addMatch("#", roles);
Connection connection = cf.createConnection();
@@ -187,7 +187,7 @@ public class AutoCreateJmsQueueTest extends JMSTestBase {
((ActiveMQJAASSecurityManager) server.getSecurityManager()).getConfiguration().setDefaultUser("guest");
((ActiveMQJAASSecurityManager) server.getSecurityManager()).getConfiguration().addRole("guest", "allowAll");
Role role = new Role("allowAll", true, true, true, true, true, true, true);
- Set<Role> roles = new HashSet<Role>();
+ Set<Role> roles = new HashSet<>();
roles.add(role);
server.getSecurityRepository().addMatch("#", roles);
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/ConsumerTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/ConsumerTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/ConsumerTest.java
index cf404c8..2868644 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/ConsumerTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/ConsumerTest.java
@@ -373,7 +373,7 @@ public class ConsumerTest extends ActiveMQTestBase {
@Test
public void testReceiveAndResend() throws Exception {
- final Set<Object> sessions = new ConcurrentHashSet<Object>();
+ final Set<Object> sessions = new ConcurrentHashSet<>();
final AtomicInteger errors = new AtomicInteger(0);
final SimpleString QUEUE_RESPONSE = SimpleString.toSimpleString("QUEUE_RESPONSE");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/ConsumerWindowSizeTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/ConsumerWindowSizeTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/ConsumerWindowSizeTest.java
index f68f5a6..f1b5a1f 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/ConsumerWindowSizeTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/ConsumerWindowSizeTest.java
@@ -102,8 +102,8 @@ public class ConsumerWindowSizeTest extends ActiveMQTestBase {
int numConsumers = 5;
- ArrayList<ClientConsumer> consumers = new ArrayList<ClientConsumer>();
- ArrayList<ClientSession> sessions = new ArrayList<ClientSession>();
+ ArrayList<ClientConsumer> consumers = new ArrayList<>();
+ ArrayList<ClientSession> sessions = new ArrayList<>();
for (int i = 0; i < numConsumers; i++) {
ClientSession session1 = sf.createSession();
ClientConsumer consumer = session1.createConsumer("testWindow");
@@ -205,8 +205,8 @@ public class ConsumerWindowSizeTest extends ActiveMQTestBase {
int numConsumers = 5;
- ArrayList<ClientConsumer> consumers = new ArrayList<ClientConsumer>();
- ArrayList<ClientSession> sessions = new ArrayList<ClientSession>();
+ ArrayList<ClientConsumer> consumers = new ArrayList<>();
+ ArrayList<ClientSession> sessions = new ArrayList<>();
for (int i = 0; i < numConsumers; i++) {
ClientSession session1 = sf.createSession();
ClientConsumer consumer = session1.createConsumer("testWindow");
@@ -257,8 +257,8 @@ public class ConsumerWindowSizeTest extends ActiveMQTestBase {
int numConsumers = 5;
- ArrayList<ClientConsumer> consumers = new ArrayList<ClientConsumer>();
- ArrayList<ClientSession> sessions = new ArrayList<ClientSession>();
+ ArrayList<ClientConsumer> consumers = new ArrayList<>();
+ ArrayList<ClientSession> sessions = new ArrayList<>();
for (int i = 0; i < numConsumers; i++) {
ClientSession session1 = sf.createSession();
ClientConsumer consumer = session1.createConsumer("testWindow");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/DeadLetterAddressTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/DeadLetterAddressTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/DeadLetterAddressTest.java
index 89764ba..48580f5 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/DeadLetterAddressTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/DeadLetterAddressTest.java
@@ -268,7 +268,7 @@ public class DeadLetterAddressTest extends ActiveMQTestBase {
ClientSessionFactory sessionFactory = createSessionFactory(locator);
ClientSession sendSession = sessionFactory.createSession(false, true, true);
ClientProducer producer = sendSession.createProducer(qName);
- Map<String, Long> origIds = new HashMap<String, Long>();
+ Map<String, Long> origIds = new HashMap<>();
for (int i = 0; i < NUM_MESSAGES; i++) {
ClientMessage tm = createTextMessage(clientSession, "Message:" + i);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/HangConsumerTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/HangConsumerTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/HangConsumerTest.java
index c38f8a6..121972d 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/HangConsumerTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/HangConsumerTest.java
@@ -431,7 +431,7 @@ public class HangConsumerTest extends ActiveMQTestBase {
messagesJournal.start();
- LinkedList<RecordInfo> infos = new LinkedList<RecordInfo>();
+ LinkedList<RecordInfo> infos = new LinkedList<>();
messagesJournal.load(infos, null, null);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/JmsNettyNioStressTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/JmsNettyNioStressTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/JmsNettyNioStressTest.java
index dbd4e24..b7ea680 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/JmsNettyNioStressTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/JmsNettyNioStressTest.java
@@ -82,7 +82,7 @@ public class JmsNettyNioStressTest extends ActiveMQTestBase {
public void doTestStressSend(final boolean netty) throws Exception {
// first set up the server
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put(TransportConstants.PORT_PROP_NAME, 61616);
params.put(TransportConstants.HOST_PROP_NAME, "localhost");
params.put(TransportConstants.USE_NIO_PROP_NAME, true);
@@ -96,7 +96,7 @@ public class JmsNettyNioStressTest extends ActiveMQTestBase {
server.start();
// now the client side
- Map<String, Object> connectionParams = new HashMap<String, Object>();
+ Map<String, Object> connectionParams = new HashMap<>();
connectionParams.put(TransportConstants.PORT_PROP_NAME, 61616);
connectionParams.put(TransportConstants.HOST_PROP_NAME, "localhost");
connectionParams.put(TransportConstants.USE_NIO_PROP_NAME, true);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/JournalCrashTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/JournalCrashTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/JournalCrashTest.java
index f9e31d0..91ac760 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/JournalCrashTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/JournalCrashTest.java
@@ -193,8 +193,8 @@ public class JournalCrashTest extends ActiveMQTestBase {
NIOSequentialFileFactory factory = new NIOSequentialFileFactory(new File(getJournalDir()), 100);
JournalImpl journal = new JournalImpl(ActiveMQDefaultConfiguration.getDefaultJournalFileSize(), 2, 0, 0, factory, "activemq-data", "amq", 100);
- ArrayList<RecordInfo> records = new ArrayList<RecordInfo>();
- ArrayList<PreparedTransactionInfo> transactions = new ArrayList<PreparedTransactionInfo>();
+ ArrayList<RecordInfo> records = new ArrayList<>();
+ ArrayList<PreparedTransactionInfo> transactions = new ArrayList<>();
journal.start();
journal.load(records, transactions, null);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/LargeMessageTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/LargeMessageTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/LargeMessageTest.java
index 00841fe..d99ba63 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/LargeMessageTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/LargeMessageTest.java
@@ -1817,7 +1817,7 @@ public class LargeMessageTest extends LargeMessageTestBase {
final int PAGE_SIZE = 10 * 1024;
- HashMap<String, AddressSettings> map = new HashMap<String, AddressSettings>();
+ HashMap<String, AddressSettings> map = new HashMap<>();
AddressSettings value = new AddressSettings();
map.put(ADDRESS.toString(), value);
@@ -1944,7 +1944,7 @@ public class LargeMessageTest extends LargeMessageTestBase {
final int PAGE_SIZE = 10 * 1024;
- HashMap<String, AddressSettings> map = new HashMap<String, AddressSettings>();
+ HashMap<String, AddressSettings> map = new HashMap<>();
AddressSettings value = new AddressSettings();
map.put(ADDRESS.toString(), value);
@@ -2238,7 +2238,7 @@ public class LargeMessageTest extends LargeMessageTestBase {
final int PAGE_SIZE = 10 * 1024;
- HashMap<String, AddressSettings> map = new HashMap<String, AddressSettings>();
+ HashMap<String, AddressSettings> map = new HashMap<>();
AddressSettings value = new AddressSettings();
map.put(ADDRESS.toString(), value);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/MessageConcurrencyTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/MessageConcurrencyTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/MessageConcurrencyTest.java
index 362f409..c9b1464 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/MessageConcurrencyTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/MessageConcurrencyTest.java
@@ -67,9 +67,9 @@ public class MessageConcurrencyTest extends ActiveMQTestBase {
ClientSession createSession = sf.createSession();
- Set<ClientSession> sendSessions = new HashSet<ClientSession>();
+ Set<ClientSession> sendSessions = new HashSet<>();
- Set<Sender> senders = new HashSet<Sender>();
+ Set<Sender> senders = new HashSet<>();
final int numSessions = 100;
@@ -131,9 +131,9 @@ public class MessageConcurrencyTest extends ActiveMQTestBase {
consumeSession.start();
- Set<ClientSession> sendSessions = new HashSet<ClientSession>();
+ Set<ClientSession> sendSessions = new HashSet<>();
- final Set<Sender> senders = new HashSet<Sender>();
+ final Set<Sender> senders = new HashSet<>();
final int numSessions = 100;
@@ -193,7 +193,7 @@ public class MessageConcurrencyTest extends ActiveMQTestBase {
private class Sender extends Thread {
- private final BlockingQueue<ClientMessage> queue = new LinkedBlockingQueue<ClientMessage>();
+ private final BlockingQueue<ClientMessage> queue = new LinkedBlockingQueue<>();
private final ClientProducer producer;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/MessageConsumerRollbackTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/MessageConsumerRollbackTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/MessageConsumerRollbackTest.java
index 7de970d..de9a4cc 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/MessageConsumerRollbackTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/MessageConsumerRollbackTest.java
@@ -112,7 +112,7 @@ public class MessageConsumerRollbackTest extends ActiveMQTestBase {
session.start();
- HashSet<Integer> values = new HashSet<Integer>();
+ HashSet<Integer> values = new HashSet<>();
for (int i = 0; i < numberOfMessages; i++) {
ClientMessage msg = consumer.receive(1000);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/MessageGroupingConnectionFactoryTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/MessageGroupingConnectionFactoryTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/MessageGroupingConnectionFactoryTest.java
index c4356c7..f38ea31 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/MessageGroupingConnectionFactoryTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/MessageGroupingConnectionFactoryTest.java
@@ -118,7 +118,7 @@ public class MessageGroupingConnectionFactoryTest extends ActiveMQTestBase {
private static class DummyMessageHandler implements MessageHandler {
- ArrayList<ClientMessage> list = new ArrayList<ClientMessage>();
+ ArrayList<ClientMessage> list = new ArrayList<>();
private final CountDownLatch latch;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/MessageGroupingTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/MessageGroupingTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/MessageGroupingTest.java
index 4aaaa0b..3da716d 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/MessageGroupingTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/MessageGroupingTest.java
@@ -549,7 +549,7 @@ public class MessageGroupingTest extends ActiveMQTestBase {
private static class DummyMessageHandler implements MessageHandler {
- ArrayList<ClientMessage> list = new ArrayList<ClientMessage>();
+ ArrayList<ClientMessage> list = new ArrayList<>();
private CountDownLatch latch;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/NIOvsOIOTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/NIOvsOIOTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/NIOvsOIOTest.java
index 460b581..54d7ca7 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/NIOvsOIOTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/NIOvsOIOTest.java
@@ -78,7 +78,7 @@ public class NIOvsOIOTest extends ActiveMQTestBase {
Sender[] senders = new Sender[numSenders];
- List<ClientSessionFactory> factories = new ArrayList<ClientSessionFactory>();
+ List<ClientSessionFactory> factories = new ArrayList<>();
ServerLocator locator = createInVMNonHALocator();
@@ -143,7 +143,7 @@ public class NIOvsOIOTest extends ActiveMQTestBase {
private void testPerf(boolean nio) throws Exception {
Configuration config = createDefaultInVMConfig();
- Map<String, Object> params = new HashMap<String, Object>();
+ Map<String, Object> params = new HashMap<>();
params.put(TransportConstants.USE_NIO_PROP_NAME, nio);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/PagingTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/PagingTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/PagingTest.java
index f97546a..94a9dbe 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/PagingTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/PagingTest.java
@@ -111,7 +111,7 @@ public class PagingTest extends ActiveMQTestBase {
final int PAGE_SIZE = 10 * 1024;
- HashMap<String, AddressSettings> map = new HashMap<String, AddressSettings>();
+ HashMap<String, AddressSettings> map = new HashMap<>();
AddressSettings value = new AddressSettings();
map.put(ADDRESS.toString(), value);
@@ -829,7 +829,7 @@ public class PagingTest extends ActiveMQTestBase {
Pair<List<RecordInfo>, List<PreparedTransactionInfo>> journalData = loadMessageJournal(config);
- HashSet<Long> deletedQueueReferences = new HashSet<Long>();
+ HashSet<Long> deletedQueueReferences = new HashSet<>();
for (RecordInfo info : journalData.getA()) {
if (info.getUserRecordType() == JournalRecordIds.ADD_REF) {
@@ -961,7 +961,7 @@ public class PagingTest extends ActiveMQTestBase {
assertEquals(numberOfMessages, getMessageCount(queue));
- LinkedList<Xid> xids = new LinkedList<Xid>();
+ LinkedList<Xid> xids = new LinkedList<>();
int msgReceived = 0;
for (int i = 0; i < numberOfTX; i++) {
@@ -1492,9 +1492,9 @@ public class PagingTest extends ActiveMQTestBase {
}
}
- ArrayList<RecordInfo> records = new ArrayList<RecordInfo>();
+ ArrayList<RecordInfo> records = new ArrayList<>();
- List<PreparedTransactionInfo> list = new ArrayList<PreparedTransactionInfo>();
+ List<PreparedTransactionInfo> list = new ArrayList<>();
JournalImpl jrn = new JournalImpl(config.getJournalFileSize(), 2, 0, 0, new NIOSequentialFileFactory(server.getConfiguration().getJournalLocation(), 1), "activemq-data", "amq", 1);
jrn.start();
@@ -3128,7 +3128,7 @@ public class PagingTest extends ActiveMQTestBase {
public void testDropMessages() throws Exception {
clearDataRecreateServerDirs();
- HashMap<String, AddressSettings> settings = new HashMap<String, AddressSettings>();
+ HashMap<String, AddressSettings> settings = new HashMap<>();
AddressSettings set = new AddressSettings();
set.setAddressFullMessagePolicy(AddressFullMessagePolicy.DROP);
@@ -3238,7 +3238,7 @@ public class PagingTest extends ActiveMQTestBase {
public void testDropMessagesExpiring() throws Exception {
clearDataRecreateServerDirs();
- HashMap<String, AddressSettings> settings = new HashMap<String, AddressSettings>();
+ HashMap<String, AddressSettings> settings = new HashMap<>();
AddressSettings set = new AddressSettings();
set.setAddressFullMessagePolicy(AddressFullMessagePolicy.DROP);
@@ -3468,7 +3468,7 @@ public class PagingTest extends ActiveMQTestBase {
Configuration configuration = createDefaultInVMConfig();
- Map<String, AddressSettings> addresses = new HashMap<String, AddressSettings>();
+ Map<String, AddressSettings> addresses = new HashMap<>();
addresses.put("#", new AddressSettings());
@@ -3552,7 +3552,7 @@ public class PagingTest extends ActiveMQTestBase {
Configuration configuration = createDefaultInVMConfig();
- Map<String, AddressSettings> addresses = new HashMap<String, AddressSettings>();
+ Map<String, AddressSettings> addresses = new HashMap<>();
addresses.put("#", new AddressSettings());
@@ -4122,7 +4122,7 @@ public class PagingTest extends ActiveMQTestBase {
Configuration config = createDefaultInVMConfig().setThreadPoolMaxSize(5).setJournalSyncNonTransactional(false);
- Map<String, AddressSettings> settings = new HashMap<String, AddressSettings>();
+ Map<String, AddressSettings> settings = new HashMap<>();
AddressSettings dla = new AddressSettings().setMaxDeliveryAttempts(5).setDeadLetterAddress(new SimpleString("DLA"));
settings.put(ADDRESS.toString(), dla);
@@ -4339,7 +4339,7 @@ public class PagingTest extends ActiveMQTestBase {
Configuration config = createDefaultInVMConfig().setMessageExpiryScanPeriod(500).setJournalSyncNonTransactional(false);
- Map<String, AddressSettings> settings = new HashMap<String, AddressSettings>();
+ Map<String, AddressSettings> settings = new HashMap<>();
AddressSettings dla = new AddressSettings().setMaxDeliveryAttempts(5).setDeadLetterAddress(new SimpleString("DLA")).setExpiryAddress(new SimpleString("DLA"));
settings.put(ADDRESS.toString(), dla);
@@ -4481,7 +4481,7 @@ public class PagingTest extends ActiveMQTestBase {
Configuration config = createDefaultInVMConfig();
- HashMap<String, AddressSettings> settings = new HashMap<String, AddressSettings>();
+ HashMap<String, AddressSettings> settings = new HashMap<>();
AddressSettings set = new AddressSettings();
set.setAddressFullMessagePolicy(AddressFullMessagePolicy.FAIL);
@@ -4563,7 +4563,7 @@ public class PagingTest extends ActiveMQTestBase {
Configuration config = createDefaultInVMConfig();
- HashMap<String, AddressSettings> settings = new HashMap<String, AddressSettings>();
+ HashMap<String, AddressSettings> settings = new HashMap<>();
AddressSettings set = new AddressSettings();
set.setAddressFullMessagePolicy(AddressFullMessagePolicy.FAIL);
@@ -4637,7 +4637,7 @@ public class PagingTest extends ActiveMQTestBase {
Configuration config = createDefaultInVMConfig();
- HashMap<String, AddressSettings> settings = new HashMap<String, AddressSettings>();
+ HashMap<String, AddressSettings> settings = new HashMap<>();
AddressSettings set = new AddressSettings();
set.setAddressFullMessagePolicy(AddressFullMessagePolicy.FAIL);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/ProducerFlowControlTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/ProducerFlowControlTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/ProducerFlowControlTest.java
index 093206d..033f4c1 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/ProducerFlowControlTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/ProducerFlowControlTest.java
@@ -611,7 +611,7 @@ public class ProducerFlowControlTest extends ActiveMQTestBase {
ClientProducerCredits credits = null;
- List<ClientProducerCredits> creditsList = new ArrayList<ClientProducerCredits>();
+ List<ClientProducerCredits> creditsList = new ArrayList<>();
for (int i = 0; i < ClientProducerCreditManagerImpl.MAX_UNREFERENCED_CREDITS_CACHE_SIZE; i++) {
ClientProducer prod = session.createProducer("address" + i);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/SessionCloseOnGCTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/SessionCloseOnGCTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/SessionCloseOnGCTest.java
index d5a13d9..3f25a47 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/SessionCloseOnGCTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/SessionCloseOnGCTest.java
@@ -58,8 +58,8 @@ public class SessionCloseOnGCTest extends ActiveMQTestBase {
s1.close();
s2.close();
- WeakReference<ClientSession> wrs1 = new WeakReference<ClientSession>(s1);
- WeakReference<ClientSession> wrs2 = new WeakReference<ClientSession>(s2);
+ WeakReference<ClientSession> wrs1 = new WeakReference<>(s1);
+ WeakReference<ClientSession> wrs2 = new WeakReference<>(s2);
s1 = null;
s2 = null;
@@ -69,7 +69,7 @@ public class SessionCloseOnGCTest extends ActiveMQTestBase {
locator = null;
ActiveMQTestBase.checkWeakReferences(wrs1, wrs2);
- WeakReference<ClientSessionFactory> fref = new WeakReference<ClientSessionFactory>(factory);
+ WeakReference<ClientSessionFactory> fref = new WeakReference<>(factory);
factory.close();
@@ -90,8 +90,8 @@ public class SessionCloseOnGCTest extends ActiveMQTestBase {
s1.close();
s2.close();
- WeakReference<ClientSession> wrs1 = new WeakReference<ClientSession>(s1);
- WeakReference<ClientSession> wrs2 = new WeakReference<ClientSession>(s2);
+ WeakReference<ClientSession> wrs1 = new WeakReference<>(s1);
+ WeakReference<ClientSession> wrs2 = new WeakReference<>(s2);
s1 = null;
s2 = null;
@@ -101,7 +101,7 @@ public class SessionCloseOnGCTest extends ActiveMQTestBase {
locator = null;
ActiveMQTestBase.checkWeakReferences(wrs1, wrs2);
- WeakReference<ClientSessionFactory> fref = new WeakReference<ClientSessionFactory>(factory);
+ WeakReference<ClientSessionFactory> fref = new WeakReference<>(factory);
factory.close();
@@ -120,8 +120,8 @@ public class SessionCloseOnGCTest extends ActiveMQTestBase {
s1.close();
s2.close();
- WeakReference<ClientSession> wrs1 = new WeakReference<ClientSession>(s1);
- WeakReference<ClientSession> wrs2 = new WeakReference<ClientSession>(s2);
+ WeakReference<ClientSession> wrs1 = new WeakReference<>(s1);
+ WeakReference<ClientSession> wrs2 = new WeakReference<>(s2);
s1 = null;
s2 = null;
@@ -131,7 +131,7 @@ public class SessionCloseOnGCTest extends ActiveMQTestBase {
locator = null;
ActiveMQTestBase.checkWeakReferences(wrs1, wrs2);
- WeakReference<ClientSessionFactory> fref = new WeakReference<ClientSessionFactory>(factory);
+ WeakReference<ClientSessionFactory> fref = new WeakReference<>(factory);
factory = null;
@@ -145,8 +145,8 @@ public class SessionCloseOnGCTest extends ActiveMQTestBase {
ClientSession s1 = factory.createSession();
ClientSession s2 = factory.createSession();
- WeakReference<ClientSession> wrs1 = new WeakReference<ClientSession>(s1);
- WeakReference<ClientSession> wrs2 = new WeakReference<ClientSession>(s2);
+ WeakReference<ClientSession> wrs1 = new WeakReference<>(s1);
+ WeakReference<ClientSession> wrs2 = new WeakReference<>(s2);
s1 = null;
s2 = null;
@@ -156,7 +156,7 @@ public class SessionCloseOnGCTest extends ActiveMQTestBase {
locator = null;
ActiveMQTestBase.checkWeakReferences(wrs1, wrs2);
- WeakReference<ClientSessionFactory> fref = new WeakReference<ClientSessionFactory>(factory);
+ WeakReference<ClientSessionFactory> fref = new WeakReference<>(factory);
factory = null;
@@ -167,7 +167,7 @@ public class SessionCloseOnGCTest extends ActiveMQTestBase {
public void testValidateFactoryGC5() throws Exception {
ClientSessionFactory factory = locator.createSessionFactory();
- WeakReference<ClientSessionFactory> fref = new WeakReference<ClientSessionFactory>(factory);
+ WeakReference<ClientSessionFactory> fref = new WeakReference<>(factory);
factory = null;
@@ -206,9 +206,9 @@ public class SessionCloseOnGCTest extends ActiveMQTestBase {
Assert.assertEquals(1, server.getRemotingService().getConnections().size());
- WeakReference<ClientSession> ref1 = new WeakReference<ClientSession>(session1);
- WeakReference<ClientSession> ref2 = new WeakReference<ClientSession>(session2);
- WeakReference<ClientSession> ref3 = new WeakReference<ClientSession>(session3);
+ WeakReference<ClientSession> ref1 = new WeakReference<>(session1);
+ WeakReference<ClientSession> ref2 = new WeakReference<>(session2);
+ WeakReference<ClientSession> ref3 = new WeakReference<>(session3);
session1 = null;
session2 = null;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/NodeManagerTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/NodeManagerTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/NodeManagerTest.java
index c5f0917..901bfa3 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/NodeManagerTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/NodeManagerTest.java
@@ -123,7 +123,7 @@ public class NodeManagerTest extends ActiveMQTestBase {
public void performWork(NodeManagerAction... actions) throws Exception {
NodeManager nodeManager = new InVMNodeManager(false);
- List<NodeRunner> nodeRunners = new ArrayList<NodeRunner>();
+ List<NodeRunner> nodeRunners = new ArrayList<>();
Thread[] threads = new Thread[actions.length];
for (NodeManagerAction action : actions) {
NodeRunner nodeRunner = new NodeRunner(nodeManager, action);
[05/32] activemq-artemis git commit: Remove unused imports
Posted by cl...@apache.org.
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/SessionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/SessionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/SessionInfoTest.java
index b9394ad..28ce0d1 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/SessionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/SessionInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ShutdownInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ShutdownInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ShutdownInfoTest.java
index 9f39bd6..dac9f3e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ShutdownInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/ShutdownInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/SubscriptionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/SubscriptionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/SubscriptionInfoTest.java
index 3e2a518..a682521 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/SubscriptionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/SubscriptionInfoTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/TransactionIdTestSupport.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/TransactionIdTestSupport.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/TransactionIdTestSupport.java
index 191459c..d4cde65 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/TransactionIdTestSupport.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/TransactionIdTestSupport.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/TransactionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/TransactionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/TransactionInfoTest.java
index c0ec50e..6ca9ea8 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/TransactionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/TransactionInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/XATransactionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/XATransactionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/XATransactionIdTest.java
index c4b9652..65ec257 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/XATransactionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v4/XATransactionIdTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v4;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/BrokerIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/BrokerIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/BrokerIdTest.java
index aafd080..9b01645 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/BrokerIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/BrokerIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/BrokerInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/BrokerInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/BrokerInfoTest.java
index ccabc06..b3cdfb0 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/BrokerInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/BrokerInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionControlTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionControlTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionControlTest.java
index 1dc5569..62dec7d 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionControlTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionControlTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionErrorTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionErrorTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionErrorTest.java
index 2c9b4a5..a82a16f 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionErrorTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionErrorTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionIdTest.java
index ed8ad98..ec17470 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionInfoTest.java
index b5f7c18..f6a8485 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConnectionInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConsumerControlTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConsumerControlTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConsumerControlTest.java
index e7dad8b..a1a2c59 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConsumerControlTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConsumerControlTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConsumerIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConsumerIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConsumerIdTest.java
index 2defb2b..96455c6 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConsumerIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConsumerIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConsumerInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConsumerInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConsumerInfoTest.java
index a6562bb..e41e91a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConsumerInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ConsumerInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ControlCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ControlCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ControlCommandTest.java
index f09db15..9f9b1f0 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ControlCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ControlCommandTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DataArrayResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DataArrayResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DataArrayResponseTest.java
index 3f95002..d6e68f7 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DataArrayResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DataArrayResponseTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DataResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DataResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DataResponseTest.java
index 64b8f61..0eaf748 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DataResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DataResponseTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DestinationInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DestinationInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DestinationInfoTest.java
index 7db3624..1bea2b2 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DestinationInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DestinationInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DiscoveryEventTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DiscoveryEventTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DiscoveryEventTest.java
index 0022260..7ad1e81 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DiscoveryEventTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/DiscoveryEventTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ExceptionResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ExceptionResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ExceptionResponseTest.java
index 7a14f70..adc0c8a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ExceptionResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ExceptionResponseTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/FlushCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/FlushCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/FlushCommandTest.java
index 06a860a..cdd6a6a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/FlushCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/FlushCommandTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/IntegerResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/IntegerResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/IntegerResponseTest.java
index 61cadb5..ef2addb 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/IntegerResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/IntegerResponseTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalQueueAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalQueueAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalQueueAckTest.java
index 70c0414..df6ba9f 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalQueueAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalQueueAckTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalTopicAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalTopicAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalTopicAckTest.java
index 9ba2ae6..e8af0d0 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalTopicAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalTopicAckTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalTraceTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalTraceTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalTraceTest.java
index 05e4402..7a34e1f 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalTraceTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalTraceTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalTransactionTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalTransactionTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalTransactionTest.java
index 629e951..36e0761 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalTransactionTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/JournalTransactionTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/KeepAliveInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/KeepAliveInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/KeepAliveInfoTest.java
index da6de09..f265b91 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/KeepAliveInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/KeepAliveInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/LastPartialCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/LastPartialCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/LastPartialCommandTest.java
index ce965e0..1a22aba 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/LastPartialCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/LastPartialCommandTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/LocalTransactionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/LocalTransactionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/LocalTransactionIdTest.java
index cc7fa8a..2d2cc71 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/LocalTransactionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/LocalTransactionIdTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageAckTest.java
index b558c44..65a1430 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageAckTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageDispatchNotificationTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageDispatchNotificationTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageDispatchNotificationTest.java
index 343fa7b..08dad35 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageDispatchNotificationTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageDispatchNotificationTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageDispatchTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageDispatchTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageDispatchTest.java
index 67081b6..a9e2db5 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageDispatchTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageDispatchTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageIdTest.java
index 8651193..8db2c7b 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessageIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessagePullTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessagePullTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessagePullTest.java
index 17a1a83..909ecf7 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessagePullTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/MessagePullTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/NetworkBridgeFilterTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/NetworkBridgeFilterTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/NetworkBridgeFilterTest.java
index 5b0bf2b..453001d 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/NetworkBridgeFilterTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/NetworkBridgeFilterTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/PartialCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/PartialCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/PartialCommandTest.java
index 2fbaef7..91a838b 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/PartialCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/PartialCommandTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ProducerAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ProducerAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ProducerAckTest.java
index 79b1dbc..86bab60 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ProducerAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ProducerAckTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ProducerIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ProducerIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ProducerIdTest.java
index a9a919c..a261c2b 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ProducerIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ProducerIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ProducerInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ProducerInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ProducerInfoTest.java
index 5fd9479..d185753 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ProducerInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ProducerInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/RemoveInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/RemoveInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/RemoveInfoTest.java
index 5dee5f2..98815db 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/RemoveInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/RemoveInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/RemoveSubscriptionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/RemoveSubscriptionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/RemoveSubscriptionInfoTest.java
index aae5c42..34a925d 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/RemoveSubscriptionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/RemoveSubscriptionInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ReplayCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ReplayCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ReplayCommandTest.java
index b217cc3..ee4b774 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ReplayCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ReplayCommandTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ResponseTest.java
index 85953a5..d7d4df7 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ResponseTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/SessionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/SessionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/SessionIdTest.java
index 452ed0b..1d3f0dd 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/SessionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/SessionIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/SessionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/SessionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/SessionInfoTest.java
index e45f15b..4b44d15 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/SessionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/SessionInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ShutdownInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ShutdownInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ShutdownInfoTest.java
index d503d8b..d6765ab 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ShutdownInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/ShutdownInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/SubscriptionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/SubscriptionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/SubscriptionInfoTest.java
index b42e95e..68d09ae 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/SubscriptionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/SubscriptionInfoTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/TransactionIdTestSupport.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/TransactionIdTestSupport.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/TransactionIdTestSupport.java
index 5adf159..65c1763 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/TransactionIdTestSupport.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/TransactionIdTestSupport.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/TransactionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/TransactionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/TransactionInfoTest.java
index a7bf040..5912cce 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/TransactionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/TransactionInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/XATransactionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/XATransactionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/XATransactionIdTest.java
index d7885d4..d20e621 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/XATransactionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v5/XATransactionIdTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v5;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/BrokerIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/BrokerIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/BrokerIdTest.java
index ff7bf87..baeca15 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/BrokerIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/BrokerIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/BrokerInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/BrokerInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/BrokerInfoTest.java
index 163f029..c78ec21 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/BrokerInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/BrokerInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionControlTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionControlTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionControlTest.java
index 6084882..f6d2445 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionControlTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionControlTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionErrorTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionErrorTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionErrorTest.java
index 2ea5ae3..f29d4e6 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionErrorTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionErrorTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionIdTest.java
index cdd8311..82b030a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionInfoTest.java
index ecb1463..2eae19e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConnectionInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConsumerControlTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConsumerControlTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConsumerControlTest.java
index 1a7bd18..8f50bd8 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConsumerControlTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConsumerControlTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConsumerIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConsumerIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConsumerIdTest.java
index 9a41c88..378576e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConsumerIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConsumerIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConsumerInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConsumerInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConsumerInfoTest.java
index 205bee1..c7c2c09 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConsumerInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ConsumerInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ControlCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ControlCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ControlCommandTest.java
index 1f2bae3..69dd3e5 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ControlCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ControlCommandTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DataArrayResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DataArrayResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DataArrayResponseTest.java
index ba31ed7..ebcb6a7 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DataArrayResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DataArrayResponseTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DataResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DataResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DataResponseTest.java
index 8d3560c..3fe1e1b 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DataResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DataResponseTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DestinationInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DestinationInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DestinationInfoTest.java
index 62d32fb..f170c94 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DestinationInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DestinationInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DiscoveryEventTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DiscoveryEventTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DiscoveryEventTest.java
index 1c3dc6f..8e59bfd 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DiscoveryEventTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/DiscoveryEventTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ExceptionResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ExceptionResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ExceptionResponseTest.java
index 48867ad..ae2c2c7 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ExceptionResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ExceptionResponseTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/FlushCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/FlushCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/FlushCommandTest.java
index 5de7678..02fc89b 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/FlushCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/FlushCommandTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/IntegerResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/IntegerResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/IntegerResponseTest.java
index 845c9d0..3dcd605 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/IntegerResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/IntegerResponseTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalQueueAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalQueueAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalQueueAckTest.java
index 9fc7c57..00da5c7 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalQueueAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalQueueAckTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalTopicAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalTopicAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalTopicAckTest.java
index ffb9f10..5ff65ce 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalTopicAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalTopicAckTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalTraceTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalTraceTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalTraceTest.java
index d922740..25e956d 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalTraceTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalTraceTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalTransactionTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalTransactionTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalTransactionTest.java
index 8a0146e..9a3f17b 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalTransactionTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/JournalTransactionTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/KeepAliveInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/KeepAliveInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/KeepAliveInfoTest.java
index 2ac9449..1ddbc88 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/KeepAliveInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/KeepAliveInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/LastPartialCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/LastPartialCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/LastPartialCommandTest.java
index d28beff..dbbd5d1 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/LastPartialCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/LastPartialCommandTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/LocalTransactionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/LocalTransactionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/LocalTransactionIdTest.java
index ed303a4..a1b9e9a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/LocalTransactionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/LocalTransactionIdTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageAckTest.java
index cd83d57..14e2809 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageAckTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageDispatchNotificationTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageDispatchNotificationTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageDispatchNotificationTest.java
index 6e6d41e..4cc75f0 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageDispatchNotificationTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageDispatchNotificationTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageDispatchTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageDispatchTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageDispatchTest.java
index aed0261..36c7d5c 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageDispatchTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageDispatchTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageIdTest.java
index ac72169..fb8ebdc 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessageIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessagePullTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessagePullTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessagePullTest.java
index 73ddc4a..9a0da99 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessagePullTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/MessagePullTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/NetworkBridgeFilterTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/NetworkBridgeFilterTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/NetworkBridgeFilterTest.java
index 92aa4b9..15da6e5 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/NetworkBridgeFilterTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/NetworkBridgeFilterTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/PartialCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/PartialCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/PartialCommandTest.java
index 9478f10..ca5f501 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/PartialCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/PartialCommandTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ProducerAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ProducerAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ProducerAckTest.java
index b2e6162..36285a0 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ProducerAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ProducerAckTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ProducerIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ProducerIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ProducerIdTest.java
index f95444a..10e3d74 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ProducerIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ProducerIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ProducerInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ProducerInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ProducerInfoTest.java
index 20a28c3..6eaf17e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ProducerInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ProducerInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/RemoveInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/RemoveInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/RemoveInfoTest.java
index f192d89..663ed3d 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/RemoveInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/RemoveInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/RemoveSubscriptionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/RemoveSubscriptionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/RemoveSubscriptionInfoTest.java
index a15bb20..e9791ea 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/RemoveSubscriptionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/RemoveSubscriptionInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ReplayCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ReplayCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ReplayCommandTest.java
index e3f6b07..5eb8091 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ReplayCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ReplayCommandTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ResponseTest.java
index 56384ae..12e755b 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ResponseTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/SessionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/SessionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/SessionIdTest.java
index debd654..cc05667 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/SessionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/SessionIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/SessionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/SessionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/SessionInfoTest.java
index 25d62ab..6849a19 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/SessionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/SessionInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ShutdownInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ShutdownInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ShutdownInfoTest.java
index 886e126..2821a90 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ShutdownInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/ShutdownInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/SubscriptionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/SubscriptionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/SubscriptionInfoTest.java
index b65ee99..b2522a8 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/SubscriptionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/SubscriptionInfoTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/TransactionIdTestSupport.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/TransactionIdTestSupport.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/TransactionIdTestSupport.java
index 3a58bd8..277cbd2 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/TransactionIdTestSupport.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/TransactionIdTestSupport.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/TransactionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/TransactionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/TransactionInfoTest.java
index b963cd3..7154c06 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/TransactionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/TransactionInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/XATransactionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/XATransactionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/XATransactionIdTest.java
index 73d7969..fb2f5c8 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/XATransactionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v6/XATransactionIdTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v6;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
[27/32] activemq-artemis git commit: Convert mac linefeeds to unix
Posted by cl...@apache.org.
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerIdTest.java
index 270c9ce..835175f 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerIdTest.java
@@ -1 +1,56 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ConsumerId
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ConsumerIdTest extends DataFileGeneratorTestSupport {
public static ConsumerIdTest SINGLETON = new ConsumerIdTest();
@Override
public Object createObject() throws Exception {
ConsumerId info = new ConsumerId();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ConsumerId info = (ConsumerId) object;
info.setConnectionId("ConnectionId:1");
info.setSessionId(1);
info.setValue(2);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ConsumerId
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ConsumerIdTest extends DataFileGeneratorTestSupport {
+
+ public static ConsumerIdTest SINGLETON = new ConsumerIdTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ConsumerId info = new ConsumerId();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ConsumerId info = (ConsumerId) object;
+
+ info.setConnectionId("ConnectionId:1");
+ info.setSessionId(1);
+ info.setValue(2);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerInfoTest.java
index 926d22d..a88bc5e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerInfoTest.java
@@ -1 +1,83 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ConsumerInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ConsumerInfoTest extends BaseCommandTestSupport {
public static ConsumerInfoTest SINGLETON = new ConsumerInfoTest();
@Override
public Object createObject() throws Exception {
ConsumerInfo info = new ConsumerInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ConsumerInfo info = (ConsumerInfo) object;
info.setConsumerId(createConsumerId("ConsumerId:1"));
info.setBrowser(true);
info.setDestination(createActiveMQDestination("Destination:2"));
info.setPrefetchSize(1);
info.setMaximumPen
dingMessageLimit(2);
info.setDispatchAsync(false);
info.setSelector("Selector:3");
info.setSubscriptionName("SubscriptionName:4");
info.setNoLocal(true);
info.setExclusive(false);
info.setRetroactive(true);
info.setPriority((byte) 1);
{
BrokerId value[] = new BrokerId[2];
for (int i = 0; i < 2; i++) {
value[i] = createBrokerId("BrokerPath:5");
}
info.setBrokerPath(value);
}
info.setAdditionalPredicate(createBooleanExpression("AdditionalPredicate:6"));
info.setNetworkSubscription(false);
info.setOptimizedAcknowledge(true);
info.setNoRangeAcks(false);
{
ConsumerId value[] = new ConsumerId[2];
for (int i = 0; i < 2; i++) {
value[i] = createConsumerId("NetworkConsumerPath:7");
}
info.setNetworkConsumerPath(value);
}
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ConsumerInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ConsumerInfoTest extends BaseCommandTestSupport {
+
+ public static ConsumerInfoTest SINGLETON = new ConsumerInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ConsumerInfo info = new ConsumerInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ConsumerInfo info = (ConsumerInfo) object;
+
+ info.setConsumerId(createConsumerId("ConsumerId:1"));
+ info.setBrowser(true);
+ info.setDestination(createActiveMQDestination("Destination:2"));
+ info.setPrefetchSize(1);
+ info.setMaximumPendingMessageLimit(2);
+ info.setDispatchAsync(false);
+ info.setSelector("Selector:3");
+ info.setSubscriptionName("SubscriptionName:4");
+ info.setNoLocal(true);
+ info.setExclusive(false);
+ info.setRetroactive(true);
+ info.setPriority((byte) 1);
+ {
+ BrokerId value[] = new BrokerId[2];
+ for (int i = 0; i < 2; i++) {
+ value[i] = createBrokerId("BrokerPath:5");
+ }
+ info.setBrokerPath(value);
+ }
+ info.setAdditionalPredicate(createBooleanExpression("AdditionalPredicate:6"));
+ info.setNetworkSubscription(false);
+ info.setOptimizedAcknowledge(true);
+ info.setNoRangeAcks(false);
+ {
+ ConsumerId value[] = new ConsumerId[2];
+ for (int i = 0; i < 2; i++) {
+ value[i] = createConsumerId("NetworkConsumerPath:7");
+ }
+ info.setNetworkConsumerPath(value);
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ControlCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ControlCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ControlCommandTest.java
index 6d07684..564c57d 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ControlCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ControlCommandTest.java
@@ -1 +1,54 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ControlCommand
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ControlCommandTest extends BaseCommandTestSupport {
public static ControlCommandTest SINGLETON = new ControlCommandTest();
@Override
public Object createObject() throws Exception {
ControlCommand info = new ControlCommand();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ControlCommand info = (ControlCommand) object;
info.setCommand("Command:1");
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ControlCommand
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ControlCommandTest extends BaseCommandTestSupport {
+
+ public static ControlCommandTest SINGLETON = new ControlCommandTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ControlCommand info = new ControlCommand();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ControlCommand info = (ControlCommand) object;
+
+ info.setCommand("Command:1");
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DataArrayResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DataArrayResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DataArrayResponseTest.java
index 5c91e50..0050f6d 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DataArrayResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DataArrayResponseTest.java
@@ -1 +1,60 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for DataArrayResponse
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class DataArrayResponseTest extends ResponseTest {
public static DataArrayResponseTest SINGLETON = new DataArrayResponseTest();
@Override
public Object createObject() throws Exception {
DataArrayResponse info = new DataArrayResponse();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
DataArrayResponse info = (DataArrayResponse) object;
{
DataStructure value[] = new DataStructure[2];
for (int i = 0; i < 2; i++) {
value[i] = createDataStructure("Data:1");
}
info.setD
ata(value);
}
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for DataArrayResponse
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class DataArrayResponseTest extends ResponseTest {
+
+ public static DataArrayResponseTest SINGLETON = new DataArrayResponseTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ DataArrayResponse info = new DataArrayResponse();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ DataArrayResponse info = (DataArrayResponse) object;
+
+ {
+ DataStructure value[] = new DataStructure[2];
+ for (int i = 0; i < 2; i++) {
+ value[i] = createDataStructure("Data:1");
+ }
+ info.setData(value);
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DataResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DataResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DataResponseTest.java
index 996b1bd..98c0805 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DataResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DataResponseTest.java
@@ -1 +1,54 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for DataResponse
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class DataResponseTest extends ResponseTest {
public static DataResponseTest SINGLETON = new DataResponseTest();
@Override
public Object createObject() throws Exception {
DataResponse info = new DataResponse();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
DataResponse info = (DataResponse) object;
info.setData(createDataStructure("Data:1"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for DataResponse
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class DataResponseTest extends ResponseTest {
+
+ public static DataResponseTest SINGLETON = new DataResponseTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ DataResponse info = new DataResponse();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ DataResponse info = (DataResponse) object;
+
+ info.setData(createDataStructure("Data:1"));
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DestinationInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DestinationInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DestinationInfoTest.java
index b218e1c..b28280e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DestinationInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DestinationInfoTest.java
@@ -1 +1,64 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for DestinationInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class DestinationInfoTest extends BaseCommandTestSupport {
public static DestinationInfoTest SINGLETON = new DestinationInfoTest();
@Override
public Object createObject() throws Exception {
DestinationInfo info = new DestinationInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
DestinationInfo info = (DestinationInfo) object;
info.setConnectionId(createConnectionId("ConnectionId:1"));
info.setDestination(createActiveMQDestination("Destination:2"));
info.setOperationType((byte) 1);
info.setT
imeout(1);
{
BrokerId value[] = new BrokerId[2];
for (int i = 0; i < 2; i++) {
value[i] = createBrokerId("BrokerPath:3");
}
info.setBrokerPath(value);
}
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for DestinationInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class DestinationInfoTest extends BaseCommandTestSupport {
+
+ public static DestinationInfoTest SINGLETON = new DestinationInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ DestinationInfo info = new DestinationInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ DestinationInfo info = (DestinationInfo) object;
+
+ info.setConnectionId(createConnectionId("ConnectionId:1"));
+ info.setDestination(createActiveMQDestination("Destination:2"));
+ info.setOperationType((byte) 1);
+ info.setTimeout(1);
+ {
+ BrokerId value[] = new BrokerId[2];
+ for (int i = 0; i < 2; i++) {
+ value[i] = createBrokerId("BrokerPath:3");
+ }
+ info.setBrokerPath(value);
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DiscoveryEventTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DiscoveryEventTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DiscoveryEventTest.java
index 45f4249..8fecb6e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DiscoveryEventTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DiscoveryEventTest.java
@@ -1 +1,55 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for DiscoveryEvent
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class DiscoveryEventTest extends DataFileGeneratorTestSupport {
public static DiscoveryEventTest SINGLETON = new DiscoveryEventTest();
@Override
public Object createObject() throws Exception {
DiscoveryEvent info = new DiscoveryEvent();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
DiscoveryEvent info = (DiscoveryEvent) object;
info.setServiceName("ServiceName:1");
info.setBrokerName("BrokerName:2");
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for DiscoveryEvent
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class DiscoveryEventTest extends DataFileGeneratorTestSupport {
+
+ public static DiscoveryEventTest SINGLETON = new DiscoveryEventTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ DiscoveryEvent info = new DiscoveryEvent();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ DiscoveryEvent info = (DiscoveryEvent) object;
+
+ info.setServiceName("ServiceName:1");
+ info.setBrokerName("BrokerName:2");
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ExceptionResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ExceptionResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ExceptionResponseTest.java
index 43b5c77..c2463e1 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ExceptionResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ExceptionResponseTest.java
@@ -1 +1,54 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ExceptionResponse
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ExceptionResponseTest extends ResponseTest {
public static ExceptionResponseTest SINGLETON = new ExceptionResponseTest();
@Override
public Object createObject() throws Exception {
ExceptionResponse info = new ExceptionResponse();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ExceptionResponse info = (ExceptionResponse) object;
info.setException(createThrowable("Exception:1"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ExceptionResponse
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ExceptionResponseTest extends ResponseTest {
+
+ public static ExceptionResponseTest SINGLETON = new ExceptionResponseTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ExceptionResponse info = new ExceptionResponse();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ExceptionResponse info = (ExceptionResponse) object;
+
+ info.setException(createThrowable("Exception:1"));
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/FlushCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/FlushCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/FlushCommandTest.java
index e13d189..2b0a559 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/FlushCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/FlushCommandTest.java
@@ -1 +1,53 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for FlushCommand
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class FlushCommandTest extends BaseCommandTestSupport {
public static FlushCommandTest SINGLETON = new FlushCommandTest();
@Override
public Object createObject() throws Exception {
FlushCommand info = new FlushCommand();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
FlushCommand info = (FlushCommand) object;
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for FlushCommand
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class FlushCommandTest extends BaseCommandTestSupport {
+
+ public static FlushCommandTest SINGLETON = new FlushCommandTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ FlushCommand info = new FlushCommand();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ FlushCommand info = (FlushCommand) object;
+
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/IntegerResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/IntegerResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/IntegerResponseTest.java
index 6a4b8e2..27cf628 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/IntegerResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/IntegerResponseTest.java
@@ -1 +1,54 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for IntegerResponse
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class IntegerResponseTest extends ResponseTest {
public static IntegerResponseTest SINGLETON = new IntegerResponseTest();
@Override
public Object createObject() throws Exception {
IntegerResponse info = new IntegerResponse();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
IntegerResponse info = (IntegerResponse) object;
info.setResult(1);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for IntegerResponse
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class IntegerResponseTest extends ResponseTest {
+
+ public static IntegerResponseTest SINGLETON = new IntegerResponseTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ IntegerResponse info = new IntegerResponse();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ IntegerResponse info = (IntegerResponse) object;
+
+ info.setResult(1);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalQueueAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalQueueAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalQueueAckTest.java
index a93374c..d1832dc 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalQueueAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalQueueAckTest.java
@@ -1 +1,55 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for JournalQueueAck
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class JournalQueueAckTest extends DataFileGeneratorTestSupport {
public static JournalQueueAckTest SINGLETON = new JournalQueueAckTest();
@Override
public Object createObject() throws Exception {
JournalQueueAck info = new JournalQueueAck();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
JournalQueueAck info = (JournalQueueAck) object;
info.setDestination(createActiveMQDestination("Destination:1"));
info.setMessageAck(createMessageAck("MessageAck:2"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for JournalQueueAck
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class JournalQueueAckTest extends DataFileGeneratorTestSupport {
+
+ public static JournalQueueAckTest SINGLETON = new JournalQueueAckTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ JournalQueueAck info = new JournalQueueAck();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ JournalQueueAck info = (JournalQueueAck) object;
+
+ info.setDestination(createActiveMQDestination("Destination:1"));
+ info.setMessageAck(createMessageAck("MessageAck:2"));
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTopicAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTopicAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTopicAckTest.java
index 4f8c818..f8cc811 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTopicAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTopicAckTest.java
@@ -1 +1,59 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for JournalTopicAck
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class JournalTopicAckTest extends DataFileGeneratorTestSupport {
public static JournalTopicAckTest SINGLETON = new JournalTopicAckTest();
@Override
public Object createObject() throws Exception {
JournalTopicAck info = new JournalTopicAck();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
JournalTopicAck info = (JournalTopicAck) object;
info.setDestination(createActiveMQDestination("Destination:1"));
info.setMessageId(createMessageId("MessageId:2"));
info.setMessageSequenceId(1);
info.setSubscri
tionName("SubscritionName:3");
info.setClientId("ClientId:4");
info.setTransactionId(createTransactionId("TransactionId:5"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for JournalTopicAck
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class JournalTopicAckTest extends DataFileGeneratorTestSupport {
+
+ public static JournalTopicAckTest SINGLETON = new JournalTopicAckTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ JournalTopicAck info = new JournalTopicAck();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ JournalTopicAck info = (JournalTopicAck) object;
+
+ info.setDestination(createActiveMQDestination("Destination:1"));
+ info.setMessageId(createMessageId("MessageId:2"));
+ info.setMessageSequenceId(1);
+ info.setSubscritionName("SubscritionName:3");
+ info.setClientId("ClientId:4");
+ info.setTransactionId(createTransactionId("TransactionId:5"));
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTraceTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTraceTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTraceTest.java
index 8eb0a2d..9574bcc 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTraceTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTraceTest.java
@@ -1 +1,54 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for JournalTrace
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class JournalTraceTest extends DataFileGeneratorTestSupport {
public static JournalTraceTest SINGLETON = new JournalTraceTest();
@Override
public Object createObject() throws Exception {
JournalTrace info = new JournalTrace();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
JournalTrace info = (JournalTrace) object;
info.setMessage("Message:1");
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for JournalTrace
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class JournalTraceTest extends DataFileGeneratorTestSupport {
+
+ public static JournalTraceTest SINGLETON = new JournalTraceTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ JournalTrace info = new JournalTrace();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ JournalTrace info = (JournalTrace) object;
+
+ info.setMessage("Message:1");
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTransactionTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTransactionTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTransactionTest.java
index 496154a..76eeb47 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTransactionTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTransactionTest.java
@@ -1 +1,56 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for JournalTransaction
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class JournalTransactionTest extends DataFileGeneratorTestSupport {
public static JournalTransactionTest SINGLETON = new JournalTransactionTest();
@Override
public Object createObject() throws Exception {
JournalTransaction info = new JournalTransaction();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
JournalTransaction info = (JournalTransaction) object;
info.setTransactionId(createTransactionId("TransactionId:1"));
info.setType((byte) 1);
info.setWasPrepared(true);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for JournalTransaction
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class JournalTransactionTest extends DataFileGeneratorTestSupport {
+
+ public static JournalTransactionTest SINGLETON = new JournalTransactionTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ JournalTransaction info = new JournalTransaction();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ JournalTransaction info = (JournalTransaction) object;
+
+ info.setTransactionId(createTransactionId("TransactionId:1"));
+ info.setType((byte) 1);
+ info.setWasPrepared(true);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/KeepAliveInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/KeepAliveInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/KeepAliveInfoTest.java
index 7d012cb..543f75c 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/KeepAliveInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/KeepAliveInfoTest.java
@@ -1 +1,53 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for KeepAliveInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class KeepAliveInfoTest extends BaseCommandTestSupport {
public static KeepAliveInfoTest SINGLETON = new KeepAliveInfoTest();
@Override
public Object createObject() throws Exception {
KeepAliveInfo info = new KeepAliveInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
KeepAliveInfo info = (KeepAliveInfo) object;
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for KeepAliveInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class KeepAliveInfoTest extends BaseCommandTestSupport {
+
+ public static KeepAliveInfoTest SINGLETON = new KeepAliveInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ KeepAliveInfo info = new KeepAliveInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ KeepAliveInfo info = (KeepAliveInfo) object;
+
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/LastPartialCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/LastPartialCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/LastPartialCommandTest.java
index 5dd36d8..a423fee 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/LastPartialCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/LastPartialCommandTest.java
@@ -1 +1,53 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for LastPartialCommand
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class LastPartialCommandTest extends PartialCommandTest {
public static LastPartialCommandTest SINGLETON = new LastPartialCommandTest();
@Override
public Object createObject() throws Exception {
LastPartialCommand info = new LastPartialCommand();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
LastPartialCommand info = (LastPartialCommand) object;
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for LastPartialCommand
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class LastPartialCommandTest extends PartialCommandTest {
+
+ public static LastPartialCommandTest SINGLETON = new LastPartialCommandTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ LastPartialCommand info = new LastPartialCommand();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ LastPartialCommand info = (LastPartialCommand) object;
+
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/LocalTransactionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/LocalTransactionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/LocalTransactionIdTest.java
index 4e99e09..cb183f8 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/LocalTransactionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/LocalTransactionIdTest.java
@@ -1 +1,55 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for LocalTransactionId
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class LocalTransactionIdTest extends TransactionIdTestSupport {
public static LocalTransactionIdTest SINGLETON = new LocalTransactionIdTest();
@Override
public Object createObject() throws Exception {
LocalTransactionId info = new LocalTransactionId();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
LocalTransactionId info = (LocalTransactionId) object;
info.setValue(1);
info.setConnectionId(createConnectionId("ConnectionId:1"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for LocalTransactionId
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class LocalTransactionIdTest extends TransactionIdTestSupport {
+
+ public static LocalTransactionIdTest SINGLETON = new LocalTransactionIdTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ LocalTransactionId info = new LocalTransactionId();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ LocalTransactionId info = (LocalTransactionId) object;
+
+ info.setValue(1);
+ info.setConnectionId(createConnectionId("ConnectionId:1"));
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageAckTest.java
index 5d87613..8e5378e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageAckTest.java
@@ -1 +1,61 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for MessageAck
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class MessageAckTest extends BaseCommandTestSupport {
public static MessageAckTest SINGLETON = new MessageAckTest();
@Override
public Object createObject() throws Exception {
MessageAck info = new MessageAck();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
MessageAck info = (MessageAck) object;
info.setDestination(createActiveMQDestination("Destination:1"));
info.setTransactionId(createTransactionId("TransactionId:2"));
info.setConsumerId(createConsumerId("ConsumerId:3"));
info.setAckType((byte) 1)
;
info.setFirstMessageId(createMessageId("FirstMessageId:4"));
info.setLastMessageId(createMessageId("LastMessageId:5"));
info.setMessageCount(1);
info.setPoisonCause(createThrowable("PoisonCause:6"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for MessageAck
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class MessageAckTest extends BaseCommandTestSupport {
+
+ public static MessageAckTest SINGLETON = new MessageAckTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ MessageAck info = new MessageAck();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ MessageAck info = (MessageAck) object;
+
+ info.setDestination(createActiveMQDestination("Destination:1"));
+ info.setTransactionId(createTransactionId("TransactionId:2"));
+ info.setConsumerId(createConsumerId("ConsumerId:3"));
+ info.setAckType((byte) 1);
+ info.setFirstMessageId(createMessageId("FirstMessageId:4"));
+ info.setLastMessageId(createMessageId("LastMessageId:5"));
+ info.setMessageCount(1);
+ info.setPoisonCause(createThrowable("PoisonCause:6"));
+ }
+}
[14/32] activemq-artemis git commit: Remove redundant type arguments
Posted by cl...@apache.org.
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4952Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4952Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4952Test.java
index 549f77b..dd4c7b3 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4952Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ4952Test.java
@@ -297,7 +297,7 @@ public class AMQ4952Test {
protected BrokerService createProducerBroker() throws Exception {
String networkToPorts[] = new String[]{"2006"};
- HashMap<String, String> networkProps = new HashMap<String, String>();
+ HashMap<String, String> networkProps = new HashMap<>();
networkProps.put("networkTTL", "10");
networkProps.put("conduitSubscriptions", "true");
@@ -313,7 +313,7 @@ public class AMQ4952Test {
// lazy init listener on broker start
TransportConnector transportConnector = new TransportConnector();
transportConnector.setUri(new URI("tcp://localhost:2003"));
- List<TransportConnector> transportConnectors = new ArrayList<TransportConnector>();
+ List<TransportConnector> transportConnectors = new ArrayList<>();
transportConnectors.add(transportConnector);
broker.setTransportConnectors(transportConnectors);
@@ -379,7 +379,7 @@ public class AMQ4952Test {
// lazy init listener on broker start
TransportConnector transportConnector = new TransportConnector();
transportConnector.setUri(new URI(scheme + "://localhost:" + listenPort));
- List<TransportConnector> transportConnectors = new ArrayList<TransportConnector>();
+ List<TransportConnector> transportConnectors = new ArrayList<>();
transportConnectors.add(transportConnector);
broker.setTransportConnectors(transportConnectors);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266SingleDestTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266SingleDestTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266SingleDestTest.java
index 405e56b..6cf42f3 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266SingleDestTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266SingleDestTest.java
@@ -206,7 +206,7 @@ public class AMQ5266SingleDestTest {
List<String> idList = entry.getValue();
- int distinctConsumed = new TreeSet<String>(idList).size();
+ int distinctConsumed = new TreeSet<>(idList).size();
StringBuilder sb = new StringBuilder();
sb.append(" Queue: " + entry.getKey() +
@@ -247,7 +247,7 @@ public class AMQ5266SingleDestTest {
this.activemqURL = activemqURL;
this.activemqQueues = activemqQueues;
- threads = new ArrayList<PublisherThread>();
+ threads = new ArrayList<>();
// Build the threads and tell them how many messages to publish
for (int i = 0; i < threadCount; i++) {
@@ -397,7 +397,7 @@ public class AMQ5266SingleDestTest {
private String[] queues = null;
// Map of IDs that were consumed, keyed by queue name.
// We'll compare these against what was published to know if any got stuck or dropped.
- private Map<String, List<String>> idsByQueue = new HashMap<String, List<String>>();
+ private Map<String, List<String>> idsByQueue = new HashMap<>();
private Map<String, List<ConsumerThread>> threads;
public ExportQueueConsumer(String activemqURL,
@@ -416,12 +416,12 @@ public class AMQ5266SingleDestTest {
queues[i] = queues[i].trim();
}
- threads = new HashMap<String, List<ConsumerThread>>();
+ threads = new HashMap<>();
// For each queue, create a list of threads and set up the list of ids
for (String q : queues) {
- List<ConsumerThread> list = new ArrayList<ConsumerThread>();
+ List<ConsumerThread> list = new ArrayList<>();
idsByQueue.put(q, Collections.synchronizedList(new ArrayList<String>()));
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266StarvedConsumerTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266StarvedConsumerTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266StarvedConsumerTest.java
index 86dcf5a..b47c17a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266StarvedConsumerTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266StarvedConsumerTest.java
@@ -212,7 +212,7 @@ public class AMQ5266StarvedConsumerTest {
List<String> idList = entry.getValue();
- int distinctConsumed = new TreeSet<String>(idList).size();
+ int distinctConsumed = new TreeSet<>(idList).size();
StringBuilder sb = new StringBuilder();
sb.append(" Queue: " + entry.getKey() +
@@ -250,7 +250,7 @@ public class AMQ5266StarvedConsumerTest {
this.activemqURL = activemqURL;
this.activemqQueues = activemqQueues;
- threads = new ArrayList<PublisherThread>();
+ threads = new ArrayList<>();
// Build the threads and tell them how many messages to publish
for (int i = 0; i < threadCount; i++) {
@@ -407,7 +407,7 @@ public class AMQ5266StarvedConsumerTest {
private String[] queues = null;
// Map of IDs that were consumed, keyed by queue name.
// We'll compare these against what was published to know if any got stuck or dropped.
- private Map<String, List<String>> idsByQueue = new HashMap<String, List<String>>();
+ private Map<String, List<String>> idsByQueue = new HashMap<>();
private Map<String, List<ConsumerThread>> threads;
public ExportQueueConsumer(String activemqURL,
@@ -426,12 +426,12 @@ public class AMQ5266StarvedConsumerTest {
queues[i] = queues[i].trim();
}
- threads = new HashMap<String, List<ConsumerThread>>();
+ threads = new HashMap<>();
// For each queue, create a list of threads and set up the list of ids
for (String q : queues) {
- List<ConsumerThread> list = new ArrayList<ConsumerThread>();
+ List<ConsumerThread> list = new ArrayList<>();
idsByQueue.put(q, Collections.synchronizedList(new ArrayList<String>()));
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266Test.java
index 582600c..4765fab 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5266Test.java
@@ -193,7 +193,7 @@ public class AMQ5266Test {
List<String> idList = entry.getValue();
- int distinctConsumed = new TreeSet<String>(idList).size();
+ int distinctConsumed = new TreeSet<>(idList).size();
StringBuilder sb = new StringBuilder();
sb.append(" Queue: " + entry.getKey() +
@@ -231,7 +231,7 @@ public class AMQ5266Test {
this.activemqURL = activemqURL;
this.activemqQueues = activemqQueues;
- threads = new ArrayList<PublisherThread>();
+ threads = new ArrayList<>();
// Build the threads and tell them how many messages to publish
for (int i = 0; i < threadCount; i++) {
@@ -382,7 +382,7 @@ public class AMQ5266Test {
private String[] queues = null;
// Map of IDs that were consumed, keyed by queue name.
// We'll compare these against what was published to know if any got stuck or dropped.
- private Map<String, List<String>> idsByQueue = new HashMap<String, List<String>>();
+ private Map<String, List<String>> idsByQueue = new HashMap<>();
private Map<String, List<ConsumerThread>> threads;
public ExportQueueConsumer(String activemqURL,
@@ -401,12 +401,12 @@ public class AMQ5266Test {
queues[i] = queues[i].trim();
}
- threads = new HashMap<String, List<ConsumerThread>>();
+ threads = new HashMap<>();
// For each queue, create a list of threads and set up the list of ids
for (String q : queues) {
- List<ConsumerThread> list = new ArrayList<ConsumerThread>();
+ List<ConsumerThread> list = new ArrayList<>();
idsByQueue.put(q, Collections.synchronizedList(new ArrayList<String>()));
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5450Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5450Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5450Test.java
index 21380e5..7ea4044 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5450Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/AMQ5450Test.java
@@ -132,7 +132,7 @@ public class AMQ5450Test {
MultiKahaDBPersistenceAdapter multiKahaDBPersistenceAdapter = new MultiKahaDBPersistenceAdapter();
multiKahaDBPersistenceAdapter.deleteAllMessages();
- ArrayList<FilteredKahaDBPersistenceAdapter> adapters = new ArrayList<FilteredKahaDBPersistenceAdapter>();
+ ArrayList<FilteredKahaDBPersistenceAdapter> adapters = new ArrayList<>();
if (compositeMatch) {
StringBuffer compositeDestBuf = new StringBuffer();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/DurableConsumerTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/DurableConsumerTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/DurableConsumerTest.java
index 695b1a4..3046423 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/DurableConsumerTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/DurableConsumerTest.java
@@ -74,7 +74,7 @@ public class DurableConsumerTest extends CombinationTestSupport {
protected byte[] payload = new byte[1024 * 32];
protected ConnectionFactory factory;
- protected Vector<Exception> exceptions = new Vector<Exception>();
+ protected Vector<Exception> exceptions = new Vector<>();
private static final String TOPIC_NAME = "failoverTopic";
private static final String CONNECTION_URL = "failover:(tcp://localhost:61616,tcp://localhost:61617)";
@@ -184,7 +184,7 @@ public class DurableConsumerTest extends CombinationTestSupport {
Thread publisherThread = new Thread(new MessagePublisher());
publisherThread.start();
final int numSubs = 100;
- final List<SimpleTopicSubscriber> list = new ArrayList<SimpleTopicSubscriber>(numSubs);
+ final List<SimpleTopicSubscriber> list = new ArrayList<>(numSubs);
for (int i = 0; i < numSubs; i++) {
final int id = i;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/MemoryUsageBlockResumeTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/MemoryUsageBlockResumeTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/MemoryUsageBlockResumeTest.java
index 84ed4d5..1026a05 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/MemoryUsageBlockResumeTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/MemoryUsageBlockResumeTest.java
@@ -65,7 +65,7 @@ public class MemoryUsageBlockResumeTest extends TestSupport implements Thread.Un
Destination bigDestination = new ActiveMQQueue("FooTwoBig");
private String connectionUri;
- private final Vector<Throwable> exceptions = new Vector<Throwable>();
+ private final Vector<Throwable> exceptions = new Vector<>();
@Test(timeout = 60 * 1000)
public void testBlockByOtherResumeNoException() throws Exception {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/QueueWorkerPrefetchTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/QueueWorkerPrefetchTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/QueueWorkerPrefetchTest.java
index 1885325..95057b9 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/QueueWorkerPrefetchTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/QueueWorkerPrefetchTest.java
@@ -87,7 +87,7 @@ public class QueueWorkerPrefetchTest extends TestCase implements MessageListener
*/
private final AtomicLong acksReceived = new AtomicLong(0);
- private final AtomicReference<CountDownLatch> latch = new AtomicReference<CountDownLatch>();
+ private final AtomicReference<CountDownLatch> latch = new AtomicReference<>();
private String connectionUri;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/RawRollbackSharedConsumerTests.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/RawRollbackSharedConsumerTests.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/RawRollbackSharedConsumerTests.java
index d458348..549922d 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/RawRollbackSharedConsumerTests.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/RawRollbackSharedConsumerTests.java
@@ -105,7 +105,7 @@ public class RawRollbackSharedConsumerTests {
connection.start();
Session session = connection.createSession(true, Session.AUTO_ACKNOWLEDGE);
String next = "";
- List<String> msgs = new ArrayList<String>();
+ List<String> msgs = new ArrayList<>();
MessageConsumer consumer = session.createConsumer(queue);
while (next != null) {
next = receiveAndConvert(consumer);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/RawRollbackTests.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/RawRollbackTests.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/RawRollbackTests.java
index 3c25220..74437b7 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/RawRollbackTests.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/RawRollbackTests.java
@@ -106,7 +106,7 @@ public class RawRollbackTests {
connection.start();
Session session = connection.createSession(true, Session.AUTO_ACKNOWLEDGE);
String next = "";
- List<String> msgs = new ArrayList<String>();
+ List<String> msgs = new ArrayList<>();
while (next != null) {
next = receiveAndConvert(session);
if (next != null)
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/TrapMessageInJDBCStoreTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/TrapMessageInJDBCStoreTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/TrapMessageInJDBCStoreTest.java
index 36a80b4..b6787e6 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/TrapMessageInJDBCStoreTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/TrapMessageInJDBCStoreTest.java
@@ -149,7 +149,7 @@ public class TrapMessageInJDBCStoreTest extends TestCase {
Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination destination = session.createQueue(queue);
- ArrayList<TextMessage> consumedMessages = new ArrayList<TextMessage>();
+ ArrayList<TextMessage> consumedMessages = new ArrayList<>();
MessageConsumer messageConsumer = session.createConsumer(destination);
@@ -226,7 +226,7 @@ public class TrapMessageInJDBCStoreTest extends TestCase {
try {
ResultSet result = statement.executeQuery();
- ArrayList<Long> dbSeq = new ArrayList<Long>();
+ ArrayList<Long> dbSeq = new ArrayList<>();
while (result.next()) {
dbSeq.add(result.getLong(1));
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/amq1095/ActiveMQTestCase.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/amq1095/ActiveMQTestCase.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/amq1095/ActiveMQTestCase.java
index cd0a1c4..89b89db 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/amq1095/ActiveMQTestCase.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/amq1095/ActiveMQTestCase.java
@@ -55,7 +55,7 @@ public class ActiveMQTestCase extends TestCase {
private BrokerService broker;
protected Connection connection;
protected Destination destination;
- private final List<MessageConsumer> consumersToEmpty = new LinkedList<MessageConsumer>();
+ private final List<MessageConsumer> consumersToEmpty = new LinkedList<>();
protected final long RECEIVE_TIMEOUT = 500;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQDestinationTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQDestinationTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQDestinationTest.java
index 46ede44..bd5dd0d 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQDestinationTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQDestinationTest.java
@@ -56,11 +56,11 @@ public class ActiveMQDestinationTest extends DataStructureTestSupport {
}
public void testSorting() throws Exception {
- SortedSet<ActiveMQDestination> set = new TreeSet<ActiveMQDestination>();
+ SortedSet<ActiveMQDestination> set = new TreeSet<>();
ActiveMQDestination[] destinations = {new ActiveMQQueue("A"), new ActiveMQQueue("B"), new ActiveMQTopic("A"), new ActiveMQTopic("B")};
List<ActiveMQDestination> expected = Arrays.asList(destinations);
set.addAll(expected);
- List<ActiveMQDestination> actual = new ArrayList<ActiveMQDestination>(set);
+ List<ActiveMQDestination> actual = new ArrayList<>(set);
assertEquals("Sorted order", expected, actual);
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/config/BrokerXmlConfigFromJNDITest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/config/BrokerXmlConfigFromJNDITest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/config/BrokerXmlConfigFromJNDITest.java
index a1da8f5..8d658e7 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/config/BrokerXmlConfigFromJNDITest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/config/BrokerXmlConfigFromJNDITest.java
@@ -36,7 +36,7 @@ public class BrokerXmlConfigFromJNDITest extends JmsTopicSendReceiveWithTwoConne
// we could put these properties into a jndi.properties
// on the classpath instead
- Hashtable<String, String> properties = new Hashtable<String, String>();
+ Hashtable<String, String> properties = new Hashtable<>();
properties.put("java.naming.factory.initial", "org.apache.activemq.jndi.ActiveMQInitialContextFactory");
// configure the embedded broker using an XML config file
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/console/command/AMQ3410Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/console/command/AMQ3410Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/console/command/AMQ3410Test.java
index 6ba38ef..317fd55 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/console/command/AMQ3410Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/console/command/AMQ3410Test.java
@@ -71,7 +71,7 @@ public class AMQ3410Test extends TestCase {
command.setCommandContext(context);
- List<String> tokens = new ArrayList<String>();
+ List<String> tokens = new ArrayList<>();
tokens.addAll(DEFAULT_OPTIONS);
tokens.addAll(DEFAULT_TOKENS);
@@ -88,7 +88,7 @@ public class AMQ3410Test extends TestCase {
command.setCommandContext(context);
- List<String> tokens = new ArrayList<String>();
+ List<String> tokens = new ArrayList<>();
tokens.addAll(DEFAULT_OPTIONS);
tokens.add("--factory");
tokens.add(DummyConnectionFactory.class.getCanonicalName());
@@ -108,7 +108,7 @@ public class AMQ3410Test extends TestCase {
command.setCommandContext(context);
- List<String> tokens = new ArrayList<String>();
+ List<String> tokens = new ArrayList<>();
tokens.addAll(DEFAULT_OPTIONS);
tokens.add("--factory");
tokens.add("org.apache.activemq.console.command.TestAMQ3410.DoesntExistFactory");
@@ -135,7 +135,7 @@ public class AMQ3410Test extends TestCase {
command.setCommandContext(context);
- List<String> tokens = new ArrayList<String>();
+ List<String> tokens = new ArrayList<>();
tokens.addAll(DEFAULT_OPTIONS);
tokens.add("--factory");
tokens.add(InvalidConnectionFactory.class.getCanonicalName());
@@ -164,7 +164,7 @@ public class AMQ3410Test extends TestCase {
command.setCommandContext(context);
- List<String> tokens = new ArrayList<String>();
+ List<String> tokens = new ArrayList<>();
tokens.addAll(DEFAULT_OPTIONS);
tokens.add("--factory");
tokens.add("java.lang.Object");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/console/command/AMQ3411Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/console/command/AMQ3411Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/console/command/AMQ3411Test.java
index dc307cb..9ca9d18 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/console/command/AMQ3411Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/console/command/AMQ3411Test.java
@@ -70,7 +70,7 @@ public class AMQ3411Test extends TestCase {
command.setCommandContext(context);
- List<String> tokens = new ArrayList<String>();
+ List<String> tokens = new ArrayList<>();
tokens.addAll(DEFAULT_OPTIONS);
tokens.addAll(DEFAULT_TOKENS);
@@ -92,7 +92,7 @@ public class AMQ3411Test extends TestCase {
command.setCommandContext(context);
- List<String> tokens = new ArrayList<String>();
+ List<String> tokens = new ArrayList<>();
tokens.addAll(DEFAULT_OPTIONS);
tokens.add("--password");
tokens.add(password);
@@ -117,7 +117,7 @@ public class AMQ3411Test extends TestCase {
command.setCommandContext(context);
- List<String> tokens = new ArrayList<String>();
+ List<String> tokens = new ArrayList<>();
tokens.addAll(DEFAULT_OPTIONS);
tokens.add("--passwordFactory");
tokens.add(LowercasingPasswordFactory.class.getCanonicalName());
@@ -141,7 +141,7 @@ public class AMQ3411Test extends TestCase {
command.setCommandContext(context);
- List<String> tokens = new ArrayList<String>();
+ List<String> tokens = new ArrayList<>();
tokens.addAll(DEFAULT_OPTIONS);
tokens.add("--passwordFactory");
tokens.add("org.apache.activemq.console.command.TestAMQ3411.DoesntExistFactory");
@@ -173,7 +173,7 @@ public class AMQ3411Test extends TestCase {
command.setCommandContext(context);
- List<String> tokens = new ArrayList<String>();
+ List<String> tokens = new ArrayList<>();
tokens.addAll(DEFAULT_OPTIONS);
tokens.add("--passwordFactory");
tokens.add("java.lang.Object");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/console/command/PurgeCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/console/command/PurgeCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/console/command/PurgeCommandTest.java
index 374fa01..cc30cb0 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/console/command/PurgeCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/console/command/PurgeCommandTest.java
@@ -237,7 +237,7 @@ public class PurgeCommandTest extends TestCase {
purgeCommand.setCommandContext(context);
purgeCommand.setJmxUseLocal(true);
- List<String> tokens = new ArrayList<String>();
+ List<String> tokens = new ArrayList<>();
tokens.add("--msgsel");
tokens.add(MSG_SEL_WITH_PROPERTY);
@@ -263,7 +263,7 @@ public class PurgeCommandTest extends TestCase {
purgeCommand.setCommandContext(context);
purgeCommand.setJmxUseLocal(true);
- List<String> tokens = new ArrayList<String>();
+ List<String> tokens = new ArrayList<>();
tokens.add("--msgsel");
tokens.add(MSG_SEL_COMPLEX);
@@ -314,7 +314,7 @@ public class PurgeCommandTest extends TestCase {
purgeCommand.setCommandContext(context);
purgeCommand.setJmxUseLocal(true);
- List<String> tokens = new ArrayList<String>();
+ List<String> tokens = new ArrayList<>();
tokens.add("--msgsel");
tokens.add(MSG_SEL_COMPLEX_SQL_AND);
@@ -352,7 +352,7 @@ public class PurgeCommandTest extends TestCase {
purgeCommand.setCommandContext(context);
purgeCommand.setJmxUseLocal(true);
- List<String> tokens = new ArrayList<String>();
+ List<String> tokens = new ArrayList<>();
tokens.add("--msgsel");
tokens.add(MSG_SEL_COMPLEX_SQL_OR);
@@ -403,7 +403,7 @@ public class PurgeCommandTest extends TestCase {
purgeCommand.setCommandContext(context);
purgeCommand.setJmxUseLocal(true);
- List<String> tokens = new ArrayList<String>();
+ List<String> tokens = new ArrayList<>();
tokens.add("--msgsel");
tokens.add("(XTestProperty LIKE '1:*') AND (JMSPriority>3)");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/jndi/ActiveMQWASInitialContextFactoryTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/jndi/ActiveMQWASInitialContextFactoryTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/jndi/ActiveMQWASInitialContextFactoryTest.java
index 2045534..0a4fb47 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/jndi/ActiveMQWASInitialContextFactoryTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/jndi/ActiveMQWASInitialContextFactoryTest.java
@@ -24,7 +24,7 @@ public class ActiveMQWASInitialContextFactoryTest extends JNDITestSupport {
@SuppressWarnings("unchecked")
public void testTransformEnvironment() {
- Hashtable<Object, Object> originalEnvironment = new Hashtable<Object, Object>();
+ Hashtable<Object, Object> originalEnvironment = new Hashtable<>();
originalEnvironment.put("java.naming.connectionFactoryNames", "ConnectionFactory");
originalEnvironment.put("java.naming.topic.jms.systemMessageTopic", "jms/systemMessageTopic");
originalEnvironment.put(Context.PROVIDER_URL, "tcp://localhost:61616;tcp://localhost:61617");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/jndi/JNDITestSupport.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/jndi/JNDITestSupport.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/jndi/JNDITestSupport.java
index f1bb0cb..a00ffee 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/jndi/JNDITestSupport.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/jndi/JNDITestSupport.java
@@ -38,7 +38,7 @@ public abstract class JNDITestSupport extends TestCase {
private static final org.apache.commons.logging.Log LOG = org.apache.commons.logging.LogFactory.getLog(JNDITestSupport.class);
- protected Hashtable<String, String> environment = new Hashtable<String, String>();
+ protected Hashtable<String, String> environment = new Hashtable<>();
protected Context context;
protected void assertConnectionFactoryPresent(String lookupName) throws NamingException {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/joramtests/ActiveMQAdmin.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/joramtests/ActiveMQAdmin.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/joramtests/ActiveMQAdmin.java
index d5109d9..3befdb6 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/joramtests/ActiveMQAdmin.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/joramtests/ActiveMQAdmin.java
@@ -42,7 +42,7 @@ public class ActiveMQAdmin implements Admin {
{
try {
// Use the jetty JNDI context since it's mutable.
- final Hashtable<String, String> env = new Hashtable<String, String>();
+ final Hashtable<String, String> env = new Hashtable<>();
env.put("java.naming.factory.initial", "org.eclipse.jetty.jndi.InitialContextFactory");
env.put("java.naming.factory.url.pkgs", "org.eclipse.jetty.jndi");
;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/BrokerNetworkWithStuckMessagesTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/BrokerNetworkWithStuckMessagesTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/BrokerNetworkWithStuckMessagesTest.java
index aa6f9b9..fe6f31c 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/BrokerNetworkWithStuckMessagesTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/BrokerNetworkWithStuckMessagesTest.java
@@ -90,8 +90,8 @@ public class BrokerNetworkWithStuckMessagesTest {
private BrokerService secondRemoteBroker;
private DemandForwardingBridge bridge;
- protected Map<String, BrokerService> brokers = new HashMap<String, BrokerService>();
- protected ArrayList<StubConnection> connections = new ArrayList<StubConnection>();
+ protected Map<String, BrokerService> brokers = new HashMap<>();
+ protected ArrayList<StubConnection> connections = new ArrayList<>();
protected TransportConnector connector;
protected TransportConnector remoteConnector;
@@ -491,7 +491,7 @@ public class BrokerNetworkWithStuckMessagesTest {
session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
Queue destination = session.createQueue(queueName);
QueueBrowser browser = session.createBrowser(destination);
- List<Message> list = new ArrayList<Message>();
+ List<Message> list = new ArrayList<>();
for (Enumeration<Message> enumn = browser.getEnumeration(); enumn.hasMoreElements(); ) {
list.add(enumn.nextElement());
}
@@ -511,7 +511,7 @@ public class BrokerNetworkWithStuckMessagesTest {
}
private Object[] browseQueueWithJmx(BrokerService broker) throws Exception {
- Hashtable<String, String> params = new Hashtable<String, String>();
+ Hashtable<String, String> params = new Hashtable<>();
params.put("brokerName", broker.getBrokerName());
params.put("type", "Broker");
params.put("destinationType", "Queue");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/CheckDuplicateMessagesOnDuplexTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/CheckDuplicateMessagesOnDuplexTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/CheckDuplicateMessagesOnDuplexTest.java
index c60abe6..1912215 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/CheckDuplicateMessagesOnDuplexTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/CheckDuplicateMessagesOnDuplexTest.java
@@ -180,7 +180,7 @@ public class CheckDuplicateMessagesOnDuplexTest {
localBroker.setManagementContext(managementContext);
PersistenceAdapter persistenceAdapter = persistenceAdapterFactory("target/local");
localBroker.setPersistenceAdapter(persistenceAdapter);
- List<TransportConnector> transportConnectors = new ArrayList<TransportConnector>();
+ List<TransportConnector> transportConnectors = new ArrayList<>();
DebugTransportFactory tf = new DebugTransportFactory();
TransportServer transport = tf.doBind(URI.create("nio://127.0.0.1:23539"));
TransportConnector transportConnector = new TransportConnector(transport);
@@ -200,7 +200,7 @@ public class CheckDuplicateMessagesOnDuplexTest {
remoteBroker.setManagementContext(managementContext);
PersistenceAdapter persistenceAdapter = persistenceAdapterFactory("target/remote");
remoteBroker.setPersistenceAdapter(persistenceAdapter);
- List<NetworkConnector> networkConnectors = new ArrayList<NetworkConnector>();
+ List<NetworkConnector> networkConnectors = new ArrayList<>();
DiscoveryNetworkConnector networkConnector = new DiscoveryNetworkConnector();
networkConnector.setName("to local");
// set maxInactivityDuration to 0, otherwise the broker restarts while you are in the debugger
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/FailoverStaticNetworkTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/FailoverStaticNetworkTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/FailoverStaticNetworkTest.java
index 8fcc6fa..d541a15 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/FailoverStaticNetworkTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/FailoverStaticNetworkTest.java
@@ -84,7 +84,7 @@ public class FailoverStaticNetworkTest {
// lazy init listener on broker start
TransportConnector transportConnector = new TransportConnector();
transportConnector.setUri(new URI(scheme + "://localhost:" + listenPort));
- List<TransportConnector> transportConnectors = new ArrayList<TransportConnector>();
+ List<TransportConnector> transportConnectors = new ArrayList<>();
transportConnectors.add(transportConnector);
broker.setTransportConnectors(transportConnectors);
if (networkToPorts != null && networkToPorts.length > 0) {
@@ -191,7 +191,7 @@ public class FailoverStaticNetworkTest {
}
private Set<String> getNetworkBridgeMBeanName(BrokerService brokerB) throws Exception {
- Set<String> names = new HashSet<String>();
+ Set<String> names = new HashSet<>();
for (ObjectName objectName : brokerB.getManagementContext().queryNames(null, null)) {
if (objectName.getKeyProperty("networkBridge") != null) {
names.add(objectName.getKeyProperty("networkBridge"));
@@ -202,7 +202,7 @@ public class FailoverStaticNetworkTest {
@Test
public void testSendReceiveFailoverDuplex() throws Exception {
- final Vector<Throwable> errors = new Vector<Throwable>();
+ final Vector<Throwable> errors = new Vector<>();
final String dataDir = "target/data/shared";
brokerA = createBroker("61617", dataDir);
brokerA.start();
@@ -224,7 +224,7 @@ public class FailoverStaticNetworkTest {
});
executor.shutdown();
- HashMap<String, String> networkConnectorProps = new HashMap<String, String>();
+ HashMap<String, String> networkConnectorProps = new HashMap<>();
networkConnectorProps.put("duplex", "true");
brokerB = createBroker("tcp", "62617", new String[]{"61617", "63617"}, networkConnectorProps);
brokerB.start();
@@ -268,7 +268,7 @@ public class FailoverStaticNetworkTest {
});
executor.shutdown();
- HashMap<String, String> networkConnectorProps = new HashMap<String, String>();
+ HashMap<String, String> networkConnectorProps = new HashMap<>();
networkConnectorProps.put("duplex", "true");
networkConnectorProps.put("networkTTL", "2");
@@ -330,7 +330,7 @@ public class FailoverStaticNetworkTest {
@Test
public void testRepeatedSendReceiveWithMasterSlaveAlternateDuplex() throws Exception {
- HashMap<String, String> networkConnectorProps = new HashMap<String, String>();
+ HashMap<String, String> networkConnectorProps = new HashMap<>();
networkConnectorProps.put("duplex", "true");
doTestRepeatedSendReceiveWithMasterSlaveAlternate(networkConnectorProps);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/NetworkDestinationFilterTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/NetworkDestinationFilterTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/NetworkDestinationFilterTest.java
index c65f36a..b1db5af 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/NetworkDestinationFilterTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/NetworkDestinationFilterTest.java
@@ -32,7 +32,7 @@ public class NetworkDestinationFilterTest extends TestCase {
public void testFilter() throws Exception {
NetworkBridgeConfiguration config = new NetworkBridgeConfiguration();
assertEquals(AdvisorySupport.CONSUMER_ADVISORY_TOPIC_PREFIX + ">", config.getDestinationFilter());
- List<ActiveMQDestination> dests = new ArrayList<ActiveMQDestination>();
+ List<ActiveMQDestination> dests = new ArrayList<>();
config.setDynamicallyIncludedDestinations(dests);
assertEquals(AdvisorySupport.CONSUMER_ADVISORY_TOPIC_PREFIX + ">", config.getDestinationFilter());
dests.add(new ActiveMQQueue("TEST.>"));
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/NetworkLoadTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/NetworkLoadTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/NetworkLoadTest.java
index 0a8ed30..335a63c 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/NetworkLoadTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/NetworkLoadTest.java
@@ -185,7 +185,7 @@ public class NetworkLoadTest extends TestCase {
memoryManager.getMemoryUsage().setLimit(1024 * 1024 * 50); // 50 MB
broker.setSystemUsage(memoryManager);
- final List<PolicyEntry> policyEntries = new ArrayList<PolicyEntry>();
+ final List<PolicyEntry> policyEntries = new ArrayList<>();
final PolicyEntry entry = new PolicyEntry();
entry.setQueue(">");
entry.setMemoryLimit(1024 * 1024 * 1); // Set to 1 MB
@@ -230,7 +230,7 @@ public class NetworkLoadTest extends TestCase {
Session fromSession = fromConnection.createSession(false, Session.AUTO_ACKNOWLEDGE);
MessageConsumer consumer = fromSession.createConsumer(new ActiveMQQueue("Q" + from));
- final AtomicReference<ActiveMQTextMessage> lastMessageReceived = new AtomicReference<ActiveMQTextMessage>();
+ final AtomicReference<ActiveMQTextMessage> lastMessageReceived = new AtomicReference<>();
final AtomicLong producedMessages = new AtomicLong();
final AtomicLong receivedMessages = new AtomicLong();
final AtomicBoolean done = new AtomicBoolean();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/NetworkReconnectTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/NetworkReconnectTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/NetworkReconnectTest.java
index 34d779e..8e345f4 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/NetworkReconnectTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/NetworkReconnectTest.java
@@ -56,7 +56,7 @@ public class NetworkReconnectTest extends TestCase {
private ActiveMQConnectionFactory producerConnectionFactory;
private ActiveMQConnectionFactory consumerConnectionFactory;
private Destination destination;
- private ArrayList<Connection> connections = new ArrayList<Connection>();
+ private ArrayList<Connection> connections = new ArrayList<>();
public void xtestMultipleProducerBrokerRestarts() throws Exception {
for (int i = 0; i < 10; i++) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/NetworkTestSupport.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/NetworkTestSupport.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/NetworkTestSupport.java
index bb875dc..722459c 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/NetworkTestSupport.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/NetworkTestSupport.java
@@ -36,7 +36,7 @@ import org.apache.activemq.usage.SystemUsage;
public class NetworkTestSupport extends BrokerTestSupport {
- protected ArrayList<StubConnection> connections = new ArrayList<StubConnection>();
+ protected ArrayList<StubConnection> connections = new ArrayList<>();
protected TransportConnector connector;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/SSHTunnelNetworkReconnectTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/SSHTunnelNetworkReconnectTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/SSHTunnelNetworkReconnectTest.java
index 5e74f1d..ba10f45 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/SSHTunnelNetworkReconnectTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/SSHTunnelNetworkReconnectTest.java
@@ -31,7 +31,7 @@ import org.apache.activemq.broker.BrokerService;
*/
public class SSHTunnelNetworkReconnectTest extends NetworkReconnectTest {
- ArrayList<Process> processes = new ArrayList<Process>();
+ ArrayList<Process> processes = new ArrayList<>();
@Override
protected BrokerService createFirstBroker() throws Exception {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/jms/QueueBridgeStandaloneReconnectTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/jms/QueueBridgeStandaloneReconnectTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/jms/QueueBridgeStandaloneReconnectTest.java
index 2f2a489..b76c859 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/jms/QueueBridgeStandaloneReconnectTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/jms/QueueBridgeStandaloneReconnectTest.java
@@ -51,7 +51,7 @@ public class QueueBridgeStandaloneReconnectTest {
private Destination outbound;
private Destination inbound;
- private final ArrayList<Connection> connections = new ArrayList<Connection>();
+ private final ArrayList<Connection> connections = new ArrayList<>();
@Test(timeout = 60 * 1000)
public void testSendAndReceiveOverConnectedBridges() throws Exception {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/jms/QueueOutboundBridgeReconnectTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/jms/QueueOutboundBridgeReconnectTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/jms/QueueOutboundBridgeReconnectTest.java
index 7a4582a..04e2a29 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/jms/QueueOutboundBridgeReconnectTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/jms/QueueOutboundBridgeReconnectTest.java
@@ -54,7 +54,7 @@ public class QueueOutboundBridgeReconnectTest {
private ActiveMQConnectionFactory producerConnectionFactory;
private ActiveMQConnectionFactory consumerConnectionFactory;
private Destination destination;
- private final ArrayList<Connection> connections = new ArrayList<Connection>();
+ private final ArrayList<Connection> connections = new ArrayList<>();
@Test
public void testMultipleProducerBrokerRestarts() throws Exception {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/jms/TopicBridgeStandaloneReconnectTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/jms/TopicBridgeStandaloneReconnectTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/jms/TopicBridgeStandaloneReconnectTest.java
index 8f62a4f..34236ff 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/jms/TopicBridgeStandaloneReconnectTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/jms/TopicBridgeStandaloneReconnectTest.java
@@ -51,7 +51,7 @@ public class TopicBridgeStandaloneReconnectTest {
private Destination outbound;
private Destination inbound;
- private final ArrayList<Connection> connections = new ArrayList<Connection>();
+ private final ArrayList<Connection> connections = new ArrayList<>();
@Test
public void testSendAndReceiveOverConnectedBridges() throws Exception {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/jms/TopicOutboundBridgeReconnectTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/jms/TopicOutboundBridgeReconnectTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/jms/TopicOutboundBridgeReconnectTest.java
index 745d1ae..dfcf4a8 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/jms/TopicOutboundBridgeReconnectTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/network/jms/TopicOutboundBridgeReconnectTest.java
@@ -54,7 +54,7 @@ public class TopicOutboundBridgeReconnectTest {
private ActiveMQConnectionFactory producerConnectionFactory;
private ActiveMQConnectionFactory consumerConnectionFactory;
private Destination destination;
- private final ArrayList<Connection> connections = new ArrayList<Connection>();
+ private final ArrayList<Connection> connections = new ArrayList<>();
@Test
public void testMultipleProducerBrokerRestarts() throws Exception {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/DataFileGenerator.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/DataFileGenerator.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/DataFileGenerator.java
index 31bb4ed..029ee71 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/DataFileGenerator.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/DataFileGenerator.java
@@ -51,7 +51,7 @@ public abstract class DataFileGenerator extends org.junit.Assert {
*/
public static ArrayList<DataFileGenerator> getAllDataFileGenerators() throws Exception {
// System.out.println("Looking for generators in : "+classFileDir);
- ArrayList<DataFileGenerator> l = new ArrayList<DataFileGenerator>();
+ ArrayList<DataFileGenerator> l = new ArrayList<>();
File[] files = CLASS_FILE_DIR.listFiles();
for (int i = 0; files != null && i < files.length; i++) {
File file = files[i];
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/DataFileGeneratorTestSupport.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/DataFileGeneratorTestSupport.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/DataFileGeneratorTestSupport.java
index 4251614..cbaa099 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/DataFileGeneratorTestSupport.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/DataFileGeneratorTestSupport.java
@@ -103,7 +103,7 @@ public abstract class DataFileGeneratorTestSupport extends TestSupport {
ByteArrayInputStream in = new ByteArrayInputStream(buffer.toByteArray());
DataInputStream dis = new DataInputStream(in);
Object actual = openWireformat.unmarshal(dis);
- assertBeansEqual("", new HashSet<Object>(), expected, actual);
+ assertBeansEqual("", new HashSet<>(), expected, actual);
LOG.info("Parsed: " + actual);
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/perf/ConnectionChurnTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/perf/ConnectionChurnTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/perf/ConnectionChurnTest.java
index 83a98c2..fdb1d96 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/perf/ConnectionChurnTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/perf/ConnectionChurnTest.java
@@ -45,7 +45,7 @@ public class ConnectionChurnTest extends TestCase {
public void testPerformance() throws Exception {
ConnectionFactory factory = createConnectionFactory();
- List<Connection> list = new ArrayList<Connection>();
+ List<Connection> list = new ArrayList<>();
for (int i = 0; i < CONNECTION_COUNT; i++) {
Connection connection = factory.createConnection();
connection.start();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/perf/SimpleNonPersistentQueueNetworkTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/perf/SimpleNonPersistentQueueNetworkTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/perf/SimpleNonPersistentQueueNetworkTest.java
index a240448..eb45c68 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/perf/SimpleNonPersistentQueueNetworkTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/perf/SimpleNonPersistentQueueNetworkTest.java
@@ -74,7 +74,7 @@ public class SimpleNonPersistentQueueNetworkTest extends SimpleNetworkTest {
protected void configureBroker(BrokerService answer) throws Exception {
answer.setPersistent(false);
answer.setMonitorConnectionSplits(true);
- final List<PolicyEntry> policyEntries = new ArrayList<PolicyEntry>();
+ final List<PolicyEntry> policyEntries = new ArrayList<>();
final PolicyEntry entry = new PolicyEntry();
entry.setQueue(">");
entry.setMemoryLimit(1024 * 1024 * 100); // Set to 1 MB
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/perf/SimpleNonPersistentQueueTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/perf/SimpleNonPersistentQueueTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/perf/SimpleNonPersistentQueueTest.java
index ed5d525..38dddd6 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/perf/SimpleNonPersistentQueueTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/perf/SimpleNonPersistentQueueTest.java
@@ -64,7 +64,7 @@ public class SimpleNonPersistentQueueTest extends SimpleQueueTest {
@Override
protected void configureBroker(BrokerService answer, String uri) throws Exception {
// answer.setPersistent(false);
- final List<PolicyEntry> policyEntries = new ArrayList<PolicyEntry>();
+ final List<PolicyEntry> policyEntries = new ArrayList<>();
final PolicyEntry entry = new PolicyEntry();
entry.setQueue(">");
entry.setMemoryLimit(1024 * 1024 * 1); // Set to 1 MB
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/proxy/AMQ4889Test.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/proxy/AMQ4889Test.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/proxy/AMQ4889Test.java
index 9450595..df05d7f 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/proxy/AMQ4889Test.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/proxy/AMQ4889Test.java
@@ -62,7 +62,7 @@ public class AMQ4889Test {
brokerService = new BrokerService();
brokerService.setPersistent(false);
- ArrayList<BrokerPlugin> plugins = new ArrayList<BrokerPlugin>();
+ ArrayList<BrokerPlugin> plugins = new ArrayList<>();
BrokerPlugin authenticationPlugin = configureAuthentication();
plugins.add(authenticationPlugin);
BrokerPlugin[] array = new BrokerPlugin[plugins.size()];
@@ -82,7 +82,7 @@ public class AMQ4889Test {
}
protected BrokerPlugin configureAuthentication() throws Exception {
- List<AuthenticationUser> users = new ArrayList<AuthenticationUser>();
+ List<AuthenticationUser> users = new ArrayList<>();
users.add(new AuthenticationUser(USER, GOOD_USER_PASSWORD, "users"));
SimpleAuthenticationPlugin authenticationPlugin = new SimpleAuthenticationPlugin(users);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/proxy/ProxyTestSupport.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/proxy/ProxyTestSupport.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/proxy/ProxyTestSupport.java
index 97c66b6..02284df 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/proxy/ProxyTestSupport.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/proxy/ProxyTestSupport.java
@@ -31,7 +31,7 @@ import org.apache.activemq.usage.SystemUsage;
public class ProxyTestSupport extends BrokerTestSupport {
- protected ArrayList<StubConnection> connections = new ArrayList<StubConnection>();
+ protected ArrayList<StubConnection> connections = new ArrayList<>();
protected TransportConnector connector;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/AbstractCachedLDAPAuthorizationMapLegacyTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/AbstractCachedLDAPAuthorizationMapLegacyTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/AbstractCachedLDAPAuthorizationMapLegacyTest.java
index 5ca32d7..902ee10 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/AbstractCachedLDAPAuthorizationMapLegacyTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/AbstractCachedLDAPAuthorizationMapLegacyTest.java
@@ -373,7 +373,7 @@ public abstract class AbstractCachedLDAPAuthorizationMapLegacyTest extends Abstr
String ldapPass,
DirContext context) throws Exception {
// Cleanup everything used for testing.
- List<String> dns = new LinkedList<String>();
+ List<String> dns = new LinkedList<>();
dns.add(deleteFromDn);
while (!dns.isEmpty()) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/AuthorizationMapTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/AuthorizationMapTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/AuthorizationMapTest.java
index 8475355..e0796ba 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/AuthorizationMapTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/AuthorizationMapTest.java
@@ -94,7 +94,7 @@ public class AuthorizationMapTest extends TestCase {
protected AuthorizationMap createWildcardAuthorizationMap() {
DefaultAuthorizationMap answer = new DefaultAuthorizationMap();
- List<DestinationMapEntry> entries = new ArrayList<DestinationMapEntry>();
+ List<DestinationMapEntry> entries = new ArrayList<>();
AuthorizationEntry entry = new AuthorizationEntry();
entry.setQueue(">");
@@ -129,7 +129,7 @@ public class AuthorizationMapTest extends TestCase {
protected AuthorizationMap createAuthorizationMap() {
DefaultAuthorizationMap answer = new DefaultAuthorizationMap();
- List<DestinationMapEntry> entries = new ArrayList<DestinationMapEntry>();
+ List<DestinationMapEntry> entries = new ArrayList<>();
AuthorizationEntry entry = new AuthorizationEntry();
entry.setGroupClass("org.apache.activemq.jaas.GroupPrincipal");
@@ -162,7 +162,7 @@ public class AuthorizationMapTest extends TestCase {
protected AuthorizationMap createAuthorizationMapWithTempDest() {
DefaultAuthorizationMap answer = new DefaultAuthorizationMap();
- List<DestinationMapEntry> entries = new ArrayList<DestinationMapEntry>();
+ List<DestinationMapEntry> entries = new ArrayList<>();
AuthorizationEntry entry = new AuthorizationEntry();
entry.setQueue(">");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/JaasCertificateAuthenticationBrokerTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/JaasCertificateAuthenticationBrokerTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/JaasCertificateAuthenticationBrokerTest.java
index 72cbfc1..07b007a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/JaasCertificateAuthenticationBrokerTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/JaasCertificateAuthenticationBrokerTest.java
@@ -62,7 +62,7 @@ public class JaasCertificateAuthenticationBrokerTest extends TestCase {
}
private void setConfiguration(Set<String> userNames, Set<String> groupNames, boolean loginShouldSucceed) {
- HashMap<String, String> configOptions = new HashMap<String, String>();
+ HashMap<String, String> configOptions = new HashMap<>();
String userNamesString;
{
@@ -95,10 +95,10 @@ public class JaasCertificateAuthenticationBrokerTest extends TestCase {
public void testAddConnectionSuccess() {
String dnUserName = "dnUserName";
- HashSet<String> userNames = new HashSet<String>();
+ HashSet<String> userNames = new HashSet<>();
userNames.add(dnUserName);
- HashSet<String> groupNames = new HashSet<String>();
+ HashSet<String> groupNames = new HashSet<>();
groupNames.add("testGroup1");
groupNames.add("testGroup2");
groupNames.add("tesetGroup3");
@@ -155,9 +155,9 @@ public class JaasCertificateAuthenticationBrokerTest extends TestCase {
}
public void testAddConnectionFailure() {
- HashSet<String> userNames = new HashSet<String>();
+ HashSet<String> userNames = new HashSet<>();
- HashSet<String> groupNames = new HashSet<String>();
+ HashSet<String> groupNames = new HashSet<>();
groupNames.add("testGroup1");
groupNames.add("testGroup2");
groupNames.add("tesetGroup3");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/JaasDualAuthenticationBrokerTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/JaasDualAuthenticationBrokerTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/JaasDualAuthenticationBrokerTest.java
index 17db0a8..a3a5cd6 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/JaasDualAuthenticationBrokerTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/JaasDualAuthenticationBrokerTest.java
@@ -66,8 +66,8 @@ public class JaasDualAuthenticationBrokerTest extends TestCase {
* using the StubLoginModule
*/
void createLoginConfig() {
- HashMap<String, String> sslConfigOptions = new HashMap<String, String>();
- HashMap<String, String> configOptions = new HashMap<String, String>();
+ HashMap<String, String> sslConfigOptions = new HashMap<>();
+ HashMap<String, String> configOptions = new HashMap<>();
sslConfigOptions.put(StubLoginModule.ALLOW_LOGIN_PROPERTY, "true");
sslConfigOptions.put(StubLoginModule.USERS_PROPERTY, DN_USERNAME);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/LDAPAuthorizationMapTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/LDAPAuthorizationMapTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/LDAPAuthorizationMapTest.java
index 34aa7b2..76986a3 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/LDAPAuthorizationMapTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/LDAPAuthorizationMapTest.java
@@ -69,7 +69,7 @@ public class LDAPAuthorizationMapTest extends AbstractLdapTestUnit {
@Test
public void testOpen() throws Exception {
DirContext ctx = authMap.open();
- HashSet<String> set = new HashSet<String>();
+ HashSet<String> set = new HashSet<>();
NamingEnumeration<NameClassPair> list = ctx.list("ou=destinations,o=ActiveMQ,ou=system");
while (list.hasMore()) {
NameClassPair ncp = list.next();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/SecurityJMXTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/SecurityJMXTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/SecurityJMXTest.java
index d660de3..eb7fc04 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/SecurityJMXTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/SecurityJMXTest.java
@@ -75,7 +75,7 @@ public class SecurityJMXTest extends TestCase {
MBeanServerConnection connection = connector.getMBeanServerConnection();
ObjectName name = new ObjectName("org.apache.activemq:type=Broker,brokerName=localhost," + "destinationType=Queue,destinationName=TEST.Q");
QueueViewMBean queueMbean = MBeanServerInvocationHandler.newProxyInstance(connection, name, QueueViewMBean.class, true);
- HashMap<String, String> headers = new HashMap<String, String>();
+ HashMap<String, String> headers = new HashMap<>();
headers.put("timeToLive", Long.toString(2000));
headers.put("JMSDeliveryMode", Integer.toString(DeliveryMode.PERSISTENT));
queueMbean.sendTextMessage(headers, "test", "system", "manager");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/SimpleSecurityBrokerSystemTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/SimpleSecurityBrokerSystemTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/SimpleSecurityBrokerSystemTest.java
index 7036dd0..b29bb21 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/SimpleSecurityBrokerSystemTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/SimpleSecurityBrokerSystemTest.java
@@ -151,15 +151,15 @@ public class SimpleSecurityBrokerSystemTest extends SecurityTestSupport {
@Override
public Broker installPlugin(Broker broker) {
- HashMap<String, String> u = new HashMap<String, String>();
+ HashMap<String, String> u = new HashMap<>();
u.put("system", "manager");
u.put("user", "password");
u.put("guest", "password");
- Map<String, Set<Principal>> groups = new HashMap<String, Set<Principal>>();
- groups.put("system", new HashSet<Principal>(Arrays.asList(new Principal[]{ADMINS, USERS})));
- groups.put("user", new HashSet<Principal>(Arrays.asList(new Principal[]{USERS})));
- groups.put("guest", new HashSet<Principal>(Arrays.asList(new Principal[]{GUESTS})));
+ Map<String, Set<Principal>> groups = new HashMap<>();
+ groups.put("system", new HashSet<>(Arrays.asList(new Principal[]{ADMINS, USERS})));
+ groups.put("user", new HashSet<>(Arrays.asList(new Principal[]{USERS})));
+ groups.put("guest", new HashSet<>(Arrays.asList(new Principal[]{GUESTS})));
return new SimpleAuthenticationBroker(broker, u, groups);
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/spring/ConsumerBean.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/spring/ConsumerBean.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/spring/ConsumerBean.java
index 1aa2156..c6abef8 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/spring/ConsumerBean.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/spring/ConsumerBean.java
@@ -29,7 +29,7 @@ import org.slf4j.LoggerFactory;
public class ConsumerBean extends Assert implements MessageListener {
private static final Logger LOG = LoggerFactory.getLogger(ConsumerBean.class);
- private final List<Message> messages = new ArrayList<Message>();
+ private final List<Message> messages = new ArrayList<>();
private boolean verbose;
/**
@@ -44,7 +44,7 @@ public class ConsumerBean extends Assert implements MessageListener {
public List<Message> flushMessages() {
List<Message> answer = null;
synchronized (messages) {
- answer = new ArrayList<Message>(messages);
+ answer = new ArrayList<>(messages);
messages.clear();
}
return answer;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/AutoStorePerDestinationTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/AutoStorePerDestinationTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/AutoStorePerDestinationTest.java
index da18beb..e28288b 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/AutoStorePerDestinationTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/AutoStorePerDestinationTest.java
@@ -31,7 +31,7 @@ public class AutoStorePerDestinationTest extends StorePerDestinationTest {
if (deleteAllMessages) {
multiKahaDBPersistenceAdapter.deleteAllMessages();
}
- ArrayList<FilteredKahaDBPersistenceAdapter> adapters = new ArrayList<FilteredKahaDBPersistenceAdapter>();
+ ArrayList<FilteredKahaDBPersistenceAdapter> adapters = new ArrayList<>();
FilteredKahaDBPersistenceAdapter template = new FilteredKahaDBPersistenceAdapter();
template.setPersistenceAdapter(createStore(deleteAllMessages));
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/StorePerDestinationTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/StorePerDestinationTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/StorePerDestinationTest.java
index 23c2e7d..cc144d0 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/StorePerDestinationTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/StorePerDestinationTest.java
@@ -53,7 +53,7 @@ public class StorePerDestinationTest {
static final Logger LOG = LoggerFactory.getLogger(StorePerDestinationTest.class);
final static int maxFileLength = 1024 * 100;
final static int numToSend = 5000;
- final Vector<Throwable> exceptions = new Vector<Throwable>();
+ final Vector<Throwable> exceptions = new Vector<>();
BrokerService brokerService;
protected BrokerService createBroker(PersistenceAdapter kaha) throws Exception {
@@ -85,7 +85,7 @@ public class StorePerDestinationTest {
if (deleteAllMessages) {
multiKahaDBPersistenceAdapter.deleteAllMessages();
}
- ArrayList<FilteredKahaDBPersistenceAdapter> adapters = new ArrayList<FilteredKahaDBPersistenceAdapter>();
+ ArrayList<FilteredKahaDBPersistenceAdapter> adapters = new ArrayList<>();
FilteredKahaDBPersistenceAdapter theRest = new FilteredKahaDBPersistenceAdapter();
theRest.setPersistenceAdapter(createStore(deleteAllMessages));
@@ -181,7 +181,7 @@ public class StorePerDestinationTest {
@Test
public void testDirectoryDefault() throws Exception {
MultiKahaDBPersistenceAdapter multiKahaDBPersistenceAdapter = new MultiKahaDBPersistenceAdapter();
- ArrayList<FilteredKahaDBPersistenceAdapter> adapters = new ArrayList<FilteredKahaDBPersistenceAdapter>();
+ ArrayList<FilteredKahaDBPersistenceAdapter> adapters = new ArrayList<>();
FilteredKahaDBPersistenceAdapter otherFilteredKahaDBPersistenceAdapter = new FilteredKahaDBPersistenceAdapter();
PersistenceAdapter otherStore = createStore(false);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCIOExceptionHandlerMockeryTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCIOExceptionHandlerMockeryTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCIOExceptionHandlerMockeryTest.java
index 20ee5b1..fa7b848 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCIOExceptionHandlerMockeryTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCIOExceptionHandlerMockeryTest.java
@@ -39,7 +39,7 @@ import static org.junit.Assert.fail;
public class JDBCIOExceptionHandlerMockeryTest {
private static final Logger LOG = LoggerFactory.getLogger(JDBCIOExceptionHandlerMockeryTest.class);
- private HashMap<Thread, Throwable> exceptions = new HashMap<Thread, Throwable>();
+ private HashMap<Thread, Throwable> exceptions = new HashMap<>();
@Test
public void testShutdownWithoutTransportRestart() throws Exception {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCIOExceptionHandlerTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCIOExceptionHandlerTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCIOExceptionHandlerTest.java
index 5066100..6c43646 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCIOExceptionHandlerTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCIOExceptionHandlerTest.java
@@ -121,7 +121,7 @@ public class JDBCIOExceptionHandlerTest extends TestCase {
master.start();
master.waitUntilStarted();
- final AtomicReference<BrokerService> slave = new AtomicReference<BrokerService>();
+ final AtomicReference<BrokerService> slave = new AtomicReference<>();
Thread slaveThread = new Thread() {
@Override
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCMessagePriorityTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCMessagePriorityTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCMessagePriorityTest.java
index 4637778..ae0ac1f 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCMessagePriorityTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCMessagePriorityTest.java
@@ -144,7 +144,7 @@ public class JDBCMessagePriorityTest extends MessagePriorityTest {
final AtomicInteger[] messageCounts = new AtomicInteger[maxPriority];
final long[] messageIds = new long[maxPriority];
- Vector<ProducerThread> producers = new Vector<ProducerThread>();
+ Vector<ProducerThread> producers = new Vector<>();
for (int priority = 0; priority < maxPriority; priority++) {
producers.add(new ProducerThread(topic, MSG_NUM, priority));
messageCounts[priority] = new AtomicInteger(0);
@@ -156,7 +156,7 @@ public class JDBCMessagePriorityTest extends MessagePriorityTest {
}
final int closeFrequency = MSG_NUM / 2;
- HashMap<String, String> dups = new HashMap<String, String>();
+ HashMap<String, String> dups = new HashMap<>();
sub = consumerSession.createDurableSubscriber(topic, subName);
for (int i = 0; i < MSG_NUM * maxPriority; i++) {
Message msg = sub.receive(10000);
@@ -197,7 +197,7 @@ public class JDBCMessagePriorityTest extends MessagePriorityTest {
sub.close();
final int TO_SEND = 2000;
- final Vector<Message> duplicates = new Vector<Message>();
+ final Vector<Message> duplicates = new Vector<>();
final int[] dups = new int[TO_SEND * 4];
long start;
double max = 0, sum = 0;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCTablePrefixAssignedTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCTablePrefixAssignedTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCTablePrefixAssignedTest.java
index bd00179..7ac10b5 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCTablePrefixAssignedTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCTablePrefixAssignedTest.java
@@ -97,7 +97,7 @@ public class JDBCTablePrefixAssignedTest {
java.sql.Connection conn = ((JDBCPersistenceAdapter) service.getPersistenceAdapter()).getDataSource().getConnection();
PreparedStatement statement = conn.prepareStatement("SELECT ID, MSG FROM MYPREFIX_ACTIVEMQ_MSGS");
ResultSet result = statement.executeQuery();
- ArrayList<Message> results = new ArrayList<Message>();
+ ArrayList<Message> results = new ArrayList<>();
while (result.next()) {
long id = result.getLong(1);
Message message = (Message) wireFormat.unmarshal(new ByteSequence(result.getBytes(2)));
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/jdbc/LeaseDatabaseLockerTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/jdbc/LeaseDatabaseLockerTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/jdbc/LeaseDatabaseLockerTest.java
index 8148125..5db2c05 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/jdbc/LeaseDatabaseLockerTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/jdbc/LeaseDatabaseLockerTest.java
@@ -149,7 +149,7 @@ public class LeaseDatabaseLockerTest {
lockerB.setLeaseHolderId("B");
jdbc.setLocker(lockerB);
- final Set<LeaseDatabaseLocker> lockedSet = new HashSet<LeaseDatabaseLocker>();
+ final Set<LeaseDatabaseLocker> lockedSet = new HashSet<>();
ExecutorService executor = Executors.newCachedThreadPool();
executor.execute(new Runnable() {
@Override
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBFastEnqueueTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBFastEnqueueTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBFastEnqueueTest.java
index b72fe34..352d2f0 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBFastEnqueueTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBFastEnqueueTest.java
@@ -58,7 +58,7 @@ public class KahaDBFastEnqueueTest {
private final String payloadString = new String(new byte[6 * 1024]);
private final boolean useBytesMessage = true;
private final int parallelProducer = 20;
- private final Vector<Exception> exceptions = new Vector<Exception>();
+ private final Vector<Exception> exceptions = new Vector<>();
long toSend = 10000;
// use with:
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBStoreRecoveryBrokerTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBStoreRecoveryBrokerTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBStoreRecoveryBrokerTest.java
index b815fe5..2163e5c 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBStoreRecoveryBrokerTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBStoreRecoveryBrokerTest.java
@@ -152,7 +152,7 @@ public class KahaDBStoreRecoveryBrokerTest extends RecoveryBrokerTest {
connection.send(sessionInfo);
connection.send(producerInfo);
- ArrayList<String> expected = new ArrayList<String>();
+ ArrayList<String> expected = new ArrayList<>();
int MESSAGE_COUNT = 10000;
for (int i = 0; i < MESSAGE_COUNT; i++) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBStoreTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBStoreTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBStoreTest.java
index 01271ad..1b9980f 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBStoreTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/kahadb/KahaDBStoreTest.java
@@ -41,7 +41,7 @@ public class KahaDBStoreTest {
ActiveMQMessage message;
ProducerId producerId = new ProducerId("1.1.1");
private static final int MESSAGE_COUNT = 2000;
- private Vector<Throwable> exceptions = new Vector<Throwable>();
+ private Vector<Throwable> exceptions = new Vector<>();
@Before
public void initStore() throws Exception {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/kahadb/plist/PListTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/kahadb/plist/PListTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/kahadb/plist/PListTest.java
index 8d36897..7cff644 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/kahadb/plist/PListTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/store/kahadb/plist/PListTest.java
@@ -44,7 +44,7 @@ public class PListTest {
private PListImpl plist;
final ByteSequence payload = new ByteSequence(new byte[400]);
final String idSeed = new String("Seed" + Arrays.toString(new byte[1024]));
- final Vector<Throwable> exceptions = new Vector<Throwable>();
+ final Vector<Throwable> exceptions = new Vector<>();
ExecutorService executor;
private PListEntry getFirst(PList plist) throws IOException {
@@ -65,7 +65,7 @@ public class PListTest {
@Test
public void testAddLast() throws Exception {
final int COUNT = 1000;
- Map<String, ByteSequence> map = new LinkedHashMap<String, ByteSequence>();
+ Map<String, ByteSequence> map = new LinkedHashMap<>();
for (int i = 0; i < COUNT; i++) {
String test = new String("test" + i);
ByteSequence bs = new ByteSequence(test.getBytes());
@@ -86,7 +86,7 @@ public class PListTest {
@Test
public void testAddFirst() throws Exception {
final int COUNT = 1000;
- Map<String, ByteSequence> map = new LinkedHashMap<String, ByteSequence>();
+ Map<String, ByteSequence> map = new LinkedHashMap<>();
for (int i = 0; i < COUNT; i++) {
String test = new String("test" + i);
ByteSequence bs = new ByteSequence(test.getBytes());
@@ -110,7 +110,7 @@ public class PListTest {
}
protected void doTestRemove(final int COUNT) throws IOException {
- Map<String, ByteSequence> map = new LinkedHashMap<String, ByteSequence>();
+ Map<String, ByteSequence> map = new LinkedHashMap<>();
for (int i = 0; i < COUNT; i++) {
String test = new String("test" + i);
ByteSequence bs = new ByteSequence(test.getBytes());
@@ -136,7 +136,7 @@ public class PListTest {
@Test
public void testDestroyNonEmpty() throws Exception {
final int COUNT = 1000;
- Map<String, ByteSequence> map = new LinkedHashMap<String, ByteSequence>();
+ Map<String, ByteSequence> map = new LinkedHashMap<>();
for (int i = 0; i < COUNT; i++) {
String test = new String("test" + i);
ByteSequence bs = new ByteSequence(test.getBytes());
@@ -193,7 +193,7 @@ public class PListTest {
final ByteSequence payload = new ByteSequence(new byte[1024 * 2]);
- final Vector<Throwable> exceptions = new Vector<Throwable>();
+ final Vector<Throwable> exceptions = new Vector<>();
final int iterations = 1000;
final int numLists = 10;
@@ -627,7 +627,7 @@ public class PListTest {
}
}
- final Map<PList, Object> locks = new HashMap<PList, Object>();
+ final Map<PList, Object> locks = new HashMap<>();
private Object plistLocks(PList plist) {
Object lock = null;
[11/32] activemq-artemis git commit: Remove redundant type arguments
Posted by cl...@apache.org.
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/RealNodeManagerTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/RealNodeManagerTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/RealNodeManagerTest.java
index 1696063..dc7a62e 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/RealNodeManagerTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/RealNodeManagerTest.java
@@ -43,7 +43,7 @@ public class RealNodeManagerTest extends NodeManagerTest {
@Override
public void performWork(NodeManagerAction... actions) throws Exception {
- List<Process> processes = new ArrayList<Process>();
+ List<Process> processes = new ArrayList<>();
for (NodeManagerAction action : actions) {
Process p = SpawnedVMSupport.spawnVM(NodeManagerAction.class.getName(), "-Xms512m", "-Xmx512m", new String[0], true, true, action.getWork());
processes.add(p);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/bridge/BridgeFailoverTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/bridge/BridgeFailoverTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/bridge/BridgeFailoverTest.java
index 9021e26..1e2d02e 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/bridge/BridgeFailoverTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/bridge/BridgeFailoverTest.java
@@ -42,7 +42,7 @@ public class BridgeFailoverTest extends MultiServerTestBase {
String TARGET_QUEUE = "noCluster.targetQueue";
bridgeConfiguration.setHA(true);
- List<String> connectors = new ArrayList<String>();
+ List<String> connectors = new ArrayList<>();
connectors.add("target-4");
connectors.add("backup-4");
bridgeConfiguration.setName("Bridge-for-test");
@@ -108,7 +108,7 @@ public class BridgeFailoverTest extends MultiServerTestBase {
String TARGET_QUEUE = "noCluster.targetQueue";
bridgeConfiguration.setHA(true);
- List<String> connectors = new ArrayList<String>();
+ List<String> connectors = new ArrayList<>();
connectors.add("target-4");
connectors.add("backup-4");
bridgeConfiguration.setName("Bridge-for-test");
@@ -213,7 +213,7 @@ public class BridgeFailoverTest extends MultiServerTestBase {
String TARGET_QUEUE = "noCluster.targetQueue";
bridgeConfiguration.setHA(true);
- List<String> connectors = new ArrayList<String>();
+ List<String> connectors = new ArrayList<>();
connectors.add("target-4");
connectors.add("backup-4");
bridgeConfiguration.setName("Bridge-for-test");
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/bridge/BridgeReconnectTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/bridge/BridgeReconnectTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/bridge/BridgeReconnectTest.java
index c74c5fe..e937b26 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/bridge/BridgeReconnectTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/bridge/BridgeReconnectTest.java
@@ -87,15 +87,15 @@ public class BridgeReconnectTest extends BridgeTestBase {
@Before
public void setUp() throws Exception {
super.setUp();
- server0Params = new HashMap<String, Object>();
- server1Params = new HashMap<String, Object>();
- server2Params = new HashMap<String, Object>();
- connectors = new HashMap<String, TransportConfiguration>();
+ server0Params = new HashMap<>();
+ server1Params = new HashMap<>();
+ server2Params = new HashMap<>();
+ connectors = new HashMap<>();
server1 = createActiveMQServer(1, isNetty(), server1Params);
server1tc = new TransportConfiguration(getConnector(), server1Params, "server1tc");
connectors.put(server1tc.getName(), server1tc);
- staticConnectors = new ArrayList<String>();
+ staticConnectors = new ArrayList<>();
staticConnectors.add(server1tc.getName());
}
@@ -136,18 +136,18 @@ public class BridgeReconnectTest extends BridgeTestBase {
BridgeConfiguration bridgeConfiguration = createBridgeConfig();
bridgeConfiguration.setQueueName(queueName);
- List<BridgeConfiguration> bridgeConfigs = new ArrayList<BridgeConfiguration>();
+ List<BridgeConfiguration> bridgeConfigs = new ArrayList<>();
bridgeConfigs.add(bridgeConfiguration);
server0.getConfiguration().setBridgeConfigurations(bridgeConfigs);
server2.getConfiguration().setBridgeConfigurations(bridgeConfigs);
CoreQueueConfiguration queueConfig0 = new CoreQueueConfiguration().setAddress(testAddress).setName(queueName);
- List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<>();
queueConfigs0.add(queueConfig0);
server1.getConfiguration().setQueueConfigurations(queueConfigs0);
CoreQueueConfiguration queueConfig1 = new CoreQueueConfiguration().setAddress(forwardAddress).setName(queueName);
- List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<>();
queueConfigs1.add(queueConfig1);
server0.getConfiguration().setQueueConfigurations(queueConfigs1);
server2.getConfiguration().setQueueConfigurations(queueConfigs1);
@@ -187,17 +187,17 @@ public class BridgeReconnectTest extends BridgeTestBase {
BridgeConfiguration bridgeConfiguration = createBridgeConfig();
- List<BridgeConfiguration> bridgeConfigs = new ArrayList<BridgeConfiguration>();
+ List<BridgeConfiguration> bridgeConfigs = new ArrayList<>();
bridgeConfigs.add(bridgeConfiguration);
server0.getConfiguration().setBridgeConfigurations(bridgeConfigs);
CoreQueueConfiguration queueConfig0 = new CoreQueueConfiguration().setAddress(testAddress).setName(queueName);
- List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<>();
queueConfigs0.add(queueConfig0);
server0.getConfiguration().setQueueConfigurations(queueConfigs0);
CoreQueueConfiguration queueConfig1 = new CoreQueueConfiguration().setAddress(forwardAddress).setName(queueName);
- List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<>();
queueConfigs1.add(queueConfig1);
server1.getConfiguration().setQueueConfigurations(queueConfigs1);
server2.getConfiguration().setQueueConfigurations(queueConfigs1);
@@ -268,17 +268,17 @@ public class BridgeReconnectTest extends BridgeTestBase {
BridgeConfiguration bridgeConfiguration = createBridgeConfig();
- List<BridgeConfiguration> bridgeConfigs = new ArrayList<BridgeConfiguration>();
+ List<BridgeConfiguration> bridgeConfigs = new ArrayList<>();
bridgeConfigs.add(bridgeConfiguration);
server0.getConfiguration().setBridgeConfigurations(bridgeConfigs);
CoreQueueConfiguration queueConfig0 = new CoreQueueConfiguration().setAddress(testAddress).setName(queueName);
- List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<>();
queueConfigs0.add(queueConfig0);
server0.getConfiguration().setQueueConfigurations(queueConfigs0);
CoreQueueConfiguration queueConfig1 = new CoreQueueConfiguration().setAddress(forwardAddress).setName(queueName);
- List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<>();
queueConfigs1.add(queueConfig1);
server1.getConfiguration().setQueueConfigurations(queueConfigs1);
server2.getConfiguration().setQueueConfigurations(queueConfigs1);
@@ -333,17 +333,17 @@ public class BridgeReconnectTest extends BridgeTestBase {
BridgeConfiguration bridgeConfiguration = createBridgeConfig();
- List<BridgeConfiguration> bridgeConfigs = new ArrayList<BridgeConfiguration>();
+ List<BridgeConfiguration> bridgeConfigs = new ArrayList<>();
bridgeConfigs.add(bridgeConfiguration);
server0.getConfiguration().setBridgeConfigurations(bridgeConfigs);
CoreQueueConfiguration queueConfig0 = new CoreQueueConfiguration().setAddress(testAddress).setName(queueName);
- List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<>();
queueConfigs0.add(queueConfig0);
server0.getConfiguration().setQueueConfigurations(queueConfigs0);
CoreQueueConfiguration queueConfig1 = new CoreQueueConfiguration().setAddress(forwardAddress).setName(queueName);
- List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<>();
queueConfigs1.add(queueConfig1);
server1.getConfiguration().setQueueConfigurations(queueConfigs1);
@@ -421,17 +421,17 @@ public class BridgeReconnectTest extends BridgeTestBase {
BridgeConfiguration bridgeConfiguration = new BridgeConfiguration().setName(bridgeName).setQueueName(queueName).setForwardingAddress(forwardAddress).setClientFailureCheckPeriod(clientFailureCheckPeriod).setRetryInterval(retryInterval).setRetryIntervalMultiplier(retryIntervalMultiplier).setReconnectAttempts(reconnectAttempts).setReconnectAttemptsOnSameNode(0).setConfirmationWindowSize(confirmationWindowSize).setStaticConnectors(staticConnectors).setPassword(CLUSTER_PASSWORD);
- List<BridgeConfiguration> bridgeConfigs = new ArrayList<BridgeConfiguration>();
+ List<BridgeConfiguration> bridgeConfigs = new ArrayList<>();
bridgeConfigs.add(bridgeConfiguration);
server0.getConfiguration().setBridgeConfigurations(bridgeConfigs);
CoreQueueConfiguration queueConfig0 = new CoreQueueConfiguration().setAddress(testAddress).setName(queueName);
- List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<>();
queueConfigs0.add(queueConfig0);
server0.getConfiguration().setQueueConfigurations(queueConfigs0);
CoreQueueConfiguration queueConfig1 = new CoreQueueConfiguration().setAddress(forwardAddress).setName(queueName);
- List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<>();
queueConfigs1.add(queueConfig1);
server1.getConfiguration().setQueueConfigurations(queueConfigs1);
startServers();
@@ -526,17 +526,17 @@ public class BridgeReconnectTest extends BridgeTestBase {
BridgeConfiguration bridgeConfiguration = createBridgeConfig();
- List<BridgeConfiguration> bridgeConfigs = new ArrayList<BridgeConfiguration>();
+ List<BridgeConfiguration> bridgeConfigs = new ArrayList<>();
bridgeConfigs.add(bridgeConfiguration);
server0.getConfiguration().setBridgeConfigurations(bridgeConfigs);
CoreQueueConfiguration queueConfig0 = new CoreQueueConfiguration().setAddress(testAddress).setName(queueName);
- List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<>();
queueConfigs0.add(queueConfig0);
server0.getConfiguration().setQueueConfigurations(queueConfigs0);
CoreQueueConfiguration queueConfig1 = new CoreQueueConfiguration().setAddress(forwardAddress).setName(queueName);
- List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<>();
queueConfigs1.add(queueConfig1);
server1.getConfiguration().setQueueConfigurations(queueConfigs1);
@@ -628,17 +628,17 @@ public class BridgeReconnectTest extends BridgeTestBase {
BridgeConfiguration bridgeConfiguration = createBridgeConfig();
- List<BridgeConfiguration> bridgeConfigs = new ArrayList<BridgeConfiguration>();
+ List<BridgeConfiguration> bridgeConfigs = new ArrayList<>();
bridgeConfigs.add(bridgeConfiguration);
server0.getConfiguration().setBridgeConfigurations(bridgeConfigs);
CoreQueueConfiguration queueConfig0 = new CoreQueueConfiguration().setAddress(testAddress).setName(queueName);
- List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<>();
queueConfigs0.add(queueConfig0);
server0.getConfiguration().setQueueConfigurations(queueConfigs0);
CoreQueueConfiguration queueConfig1 = new CoreQueueConfiguration().setAddress(forwardAddress).setName(queueName);
- List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<>();
queueConfigs1.add(queueConfig1);
server1.getConfiguration().setQueueConfigurations(queueConfigs1);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/bridge/BridgeStartTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/bridge/BridgeStartTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/bridge/BridgeStartTest.java
index bfc134d..99ece87 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/bridge/BridgeStartTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/bridge/BridgeStartTest.java
@@ -73,10 +73,10 @@ public class BridgeStartTest extends ActiveMQTestBase {
@Test
public void testStartStop() throws Exception {
- Map<String, Object> server0Params = new HashMap<String, Object>();
+ Map<String, Object> server0Params = new HashMap<>();
ActiveMQServer server0 = createClusteredServerWithParams(isNetty(), 0, true, server0Params);
- Map<String, Object> server1Params = new HashMap<String, Object>();
+ Map<String, Object> server1Params = new HashMap<>();
if (isNetty()) {
server1Params.put("port", org.apache.activemq.artemis.core.remoting.impl.netty.TransportConstants.DEFAULT_PORT + 1);
}
@@ -91,31 +91,31 @@ public class BridgeStartTest extends ActiveMQTestBase {
final String forwardAddress = "forwardAddress";
final String queueName1 = "queue1";
- Map<String, TransportConfiguration> connectors = new HashMap<String, TransportConfiguration>();
+ Map<String, TransportConfiguration> connectors = new HashMap<>();
TransportConfiguration server0tc = new TransportConfiguration(getConnector(), server0Params);
TransportConfiguration server1tc = new TransportConfiguration(getConnector(), server1Params);
connectors.put(server1tc.getName(), server1tc);
server0.getConfiguration().setConnectorConfigurations(connectors);
- ArrayList<String> staticConnectors = new ArrayList<String>();
+ ArrayList<String> staticConnectors = new ArrayList<>();
staticConnectors.add(server1tc.getName());
final String bridgeName = "bridge1";
BridgeConfiguration bridgeConfiguration = new BridgeConfiguration().setName(bridgeName).setQueueName(queueName0).setForwardingAddress(forwardAddress).setRetryInterval(1000).setReconnectAttempts(0).setReconnectAttemptsOnSameNode(0).setConfirmationWindowSize(1024).setStaticConnectors(staticConnectors);
- List<BridgeConfiguration> bridgeConfigs = new ArrayList<BridgeConfiguration>();
+ List<BridgeConfiguration> bridgeConfigs = new ArrayList<>();
bridgeConfigs.add(bridgeConfiguration);
server0.getConfiguration().setBridgeConfigurations(bridgeConfigs);
CoreQueueConfiguration queueConfig0 = new CoreQueueConfiguration().setAddress(testAddress).setName(queueName0);
- List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<>();
queueConfigs0.add(queueConfig0);
server0.getConfiguration().setQueueConfigurations(queueConfigs0);
CoreQueueConfiguration queueConfig1 = new CoreQueueConfiguration().setAddress(forwardAddress).setName(queueName1);
- List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<>();
queueConfigs1.add(queueConfig1);
server1.getConfiguration().setQueueConfigurations(queueConfigs1);
@@ -220,10 +220,10 @@ public class BridgeStartTest extends ActiveMQTestBase {
// shutdown, messages will get resent when it is started, so the dup id cache needs
// to be persisted
- Map<String, Object> server0Params = new HashMap<String, Object>();
+ Map<String, Object> server0Params = new HashMap<>();
ActiveMQServer server0 = createClusteredServerWithParams(isNetty(), 0, true, server0Params);
- Map<String, Object> server1Params = new HashMap<String, Object>();
+ Map<String, Object> server1Params = new HashMap<>();
if (isNetty()) {
server1Params.put("port", org.apache.activemq.artemis.core.remoting.impl.netty.TransportConstants.DEFAULT_PORT + 1);
}
@@ -237,31 +237,31 @@ public class BridgeStartTest extends ActiveMQTestBase {
final String forwardAddress = "forwardAddress";
final String queueName1 = "queue1";
- Map<String, TransportConfiguration> connectors = new HashMap<String, TransportConfiguration>();
+ Map<String, TransportConfiguration> connectors = new HashMap<>();
TransportConfiguration server0tc = new TransportConfiguration(getConnector(), server0Params);
TransportConfiguration server1tc = new TransportConfiguration(getConnector(), server1Params);
connectors.put(server1tc.getName(), server1tc);
server0.getConfiguration().setConnectorConfigurations(connectors);
- ArrayList<String> staticConnectors = new ArrayList<String>();
+ ArrayList<String> staticConnectors = new ArrayList<>();
staticConnectors.add(server1tc.getName());
final String bridgeName = "bridge1";
BridgeConfiguration bridgeConfiguration = new BridgeConfiguration().setName(bridgeName).setQueueName(queueName0).setForwardingAddress(forwardAddress).setRetryInterval(500).setReconnectAttempts(-1).setReconnectAttemptsOnSameNode(0).setConfirmationWindowSize(1024).setStaticConnectors(staticConnectors);
- List<BridgeConfiguration> bridgeConfigs = new ArrayList<BridgeConfiguration>();
+ List<BridgeConfiguration> bridgeConfigs = new ArrayList<>();
bridgeConfigs.add(bridgeConfiguration);
server0.getConfiguration().setBridgeConfigurations(bridgeConfigs);
CoreQueueConfiguration queueConfig0 = new CoreQueueConfiguration().setAddress(testAddress).setName(queueName0);
- List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<>();
queueConfigs0.add(queueConfig0);
server0.getConfiguration().setQueueConfigurations(queueConfigs0);
CoreQueueConfiguration queueConfig1 = new CoreQueueConfiguration().setAddress(forwardAddress).setName(queueName1);
- List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<>();
queueConfigs1.add(queueConfig1);
server1.getConfiguration().setQueueConfigurations(queueConfigs1);
ServerLocator locator = null;
@@ -406,10 +406,10 @@ public class BridgeStartTest extends ActiveMQTestBase {
@Test
public void testTargetServerNotAvailableNoReconnectTries() throws Exception {
- Map<String, Object> server0Params = new HashMap<String, Object>();
+ Map<String, Object> server0Params = new HashMap<>();
ActiveMQServer server0 = createClusteredServerWithParams(isNetty(), 0, false, server0Params);
- Map<String, Object> server1Params = new HashMap<String, Object>();
+ Map<String, Object> server1Params = new HashMap<>();
if (isNetty()) {
server1Params.put("port", org.apache.activemq.artemis.core.remoting.impl.netty.TransportConstants.DEFAULT_PORT + 1);
}
@@ -424,31 +424,31 @@ public class BridgeStartTest extends ActiveMQTestBase {
final String queueName1 = "queue1";
ServerLocator locator = null;
try {
- Map<String, TransportConfiguration> connectors = new HashMap<String, TransportConfiguration>();
+ Map<String, TransportConfiguration> connectors = new HashMap<>();
TransportConfiguration server0tc = new TransportConfiguration(getConnector(), server0Params);
TransportConfiguration server1tc = new TransportConfiguration(getConnector(), server1Params);
connectors.put(server1tc.getName(), server1tc);
server0.getConfiguration().setConnectorConfigurations(connectors);
- ArrayList<String> staticConnectors = new ArrayList<String>();
+ ArrayList<String> staticConnectors = new ArrayList<>();
staticConnectors.add(server1tc.getName());
final String bridgeName = "bridge1";
BridgeConfiguration bridgeConfiguration = new BridgeConfiguration().setName(bridgeName).setQueueName(queueName0).setForwardingAddress(forwardAddress).setRetryInterval(1000).setReconnectAttempts(0).setReconnectAttemptsOnSameNode(0).setUseDuplicateDetection(false).setConfirmationWindowSize(1024).setStaticConnectors(staticConnectors);
- List<BridgeConfiguration> bridgeConfigs = new ArrayList<BridgeConfiguration>();
+ List<BridgeConfiguration> bridgeConfigs = new ArrayList<>();
bridgeConfigs.add(bridgeConfiguration);
server0.getConfiguration().setBridgeConfigurations(bridgeConfigs);
CoreQueueConfiguration queueConfig0 = new CoreQueueConfiguration().setAddress(testAddress).setName(queueName0);
- List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<>();
queueConfigs0.add(queueConfig0);
server0.getConfiguration().setQueueConfigurations(queueConfigs0);
CoreQueueConfiguration queueConfig1 = new CoreQueueConfiguration().setAddress(forwardAddress).setName(queueName1);
- List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<>();
queueConfigs1.add(queueConfig1);
server1.getConfiguration().setQueueConfigurations(queueConfigs1);
@@ -538,10 +538,10 @@ public class BridgeStartTest extends ActiveMQTestBase {
@Test
public void testManualStopStart() throws Exception {
- Map<String, Object> server0Params = new HashMap<String, Object>();
+ Map<String, Object> server0Params = new HashMap<>();
ActiveMQServer server0 = createClusteredServerWithParams(isNetty(), 0, false, server0Params);
- Map<String, Object> server1Params = new HashMap<String, Object>();
+ Map<String, Object> server1Params = new HashMap<>();
if (isNetty()) {
server1Params.put("port", org.apache.activemq.artemis.core.remoting.impl.netty.TransportConstants.DEFAULT_PORT + 1);
}
@@ -556,31 +556,31 @@ public class BridgeStartTest extends ActiveMQTestBase {
final String queueName1 = "queue1";
ServerLocator locator = null;
try {
- Map<String, TransportConfiguration> connectors = new HashMap<String, TransportConfiguration>();
+ Map<String, TransportConfiguration> connectors = new HashMap<>();
TransportConfiguration server0tc = new TransportConfiguration(getConnector(), server0Params);
TransportConfiguration server1tc = new TransportConfiguration(getConnector(), server1Params);
connectors.put(server1tc.getName(), server1tc);
server0.getConfiguration().setConnectorConfigurations(connectors);
- ArrayList<String> staticConnectors = new ArrayList<String>();
+ ArrayList<String> staticConnectors = new ArrayList<>();
staticConnectors.add(server1tc.getName());
final String bridgeName = "bridge1";
BridgeConfiguration bridgeConfiguration = new BridgeConfiguration().setName(bridgeName).setQueueName(queueName0).setForwardingAddress(forwardAddress).setRetryInterval(1000).setReconnectAttempts(1).setReconnectAttemptsOnSameNode(0).setConfirmationWindowSize(1024).setStaticConnectors(staticConnectors);
- List<BridgeConfiguration> bridgeConfigs = new ArrayList<BridgeConfiguration>();
+ List<BridgeConfiguration> bridgeConfigs = new ArrayList<>();
bridgeConfigs.add(bridgeConfiguration);
server0.getConfiguration().setBridgeConfigurations(bridgeConfigs);
CoreQueueConfiguration queueConfig0 = new CoreQueueConfiguration().setAddress(testAddress).setName(queueName0);
- List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<>();
queueConfigs0.add(queueConfig0);
server0.getConfiguration().setQueueConfigurations(queueConfigs0);
CoreQueueConfiguration queueConfig1 = new CoreQueueConfiguration().setAddress(forwardAddress).setName(queueName1);
- List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<>();
queueConfigs1.add(queueConfig1);
server1.getConfiguration().setQueueConfigurations(queueConfigs1);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/bridge/BridgeTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/bridge/BridgeTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/bridge/BridgeTest.java
index f0da131..a3c5c6e 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/bridge/BridgeTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/bridge/BridgeTest.java
@@ -140,10 +140,10 @@ public class BridgeTest extends ActiveMQTestBase {
@Test
public void testLargeMessageBridge() throws Exception {
long time = System.currentTimeMillis();
- Map<String, Object> server0Params = new HashMap<String, Object>();
+ Map<String, Object> server0Params = new HashMap<>();
server0 = createClusteredServerWithParams(isNetty(), 0, true, server0Params);
- Map<String, Object> server1Params = new HashMap<String, Object>();
+ Map<String, Object> server1Params = new HashMap<>();
addTargetParameters(server1Params);
server1 = createClusteredServerWithParams(isNetty(), 1, true, server1Params);
@@ -156,7 +156,7 @@ public class BridgeTest extends ActiveMQTestBase {
TransportConfiguration server1tc = new TransportConfiguration(getConnector(), server1Params);
- HashMap<String, TransportConfiguration> connectors = new HashMap<String, TransportConfiguration>();
+ HashMap<String, TransportConfiguration> connectors = new HashMap<>();
connectors.put(server1tc.getName(), server1tc);
server0.getConfiguration().setConnectorConfigurations(connectors);
@@ -164,21 +164,21 @@ public class BridgeTest extends ActiveMQTestBase {
final int numMessages = 10;
- ArrayList<String> connectorConfig = new ArrayList<String>();
+ ArrayList<String> connectorConfig = new ArrayList<>();
connectorConfig.add(server1tc.getName());
BridgeConfiguration bridgeConfiguration = new BridgeConfiguration().setName("bridge1").setQueueName(queueName0).setForwardingAddress(forwardAddress).setRetryInterval(1000).setReconnectAttemptsOnSameNode(-1).setUseDuplicateDetection(false).setConfirmationWindowSize(numMessages * messageSize / 2).setStaticConnectors(connectorConfig);
- List<BridgeConfiguration> bridgeConfigs = new ArrayList<BridgeConfiguration>();
+ List<BridgeConfiguration> bridgeConfigs = new ArrayList<>();
bridgeConfigs.add(bridgeConfiguration);
server0.getConfiguration().setBridgeConfigurations(bridgeConfigs);
CoreQueueConfiguration queueConfig0 = new CoreQueueConfiguration().setAddress(testAddress).setName(queueName0);
- List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<>();
queueConfigs0.add(queueConfig0);
server0.getConfiguration().setQueueConfigurations(queueConfigs0);
CoreQueueConfiguration queueConfig1 = new CoreQueueConfiguration().setAddress(forwardAddress).setName(queueName1);
- List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<>();
queueConfigs1.add(queueConfig1);
server1.getConfiguration().setQueueConfigurations(queueConfigs1);
@@ -245,10 +245,10 @@ public class BridgeTest extends ActiveMQTestBase {
public void internaltestSimpleBridge(final boolean largeMessage, final boolean useFiles) throws Exception {
- Map<String, Object> server0Params = new HashMap<String, Object>();
+ Map<String, Object> server0Params = new HashMap<>();
server0 = createClusteredServerWithParams(isNetty(), 0, useFiles, server0Params);
- Map<String, Object> server1Params = new HashMap<String, Object>();
+ Map<String, Object> server1Params = new HashMap<>();
addTargetParameters(server1Params);
server1 = createClusteredServerWithParams(isNetty(), 1, useFiles, server1Params);
@@ -262,7 +262,7 @@ public class BridgeTest extends ActiveMQTestBase {
TransportConfiguration server1tc = new TransportConfiguration(getConnector(), server1Params);
- HashMap<String, TransportConfiguration> connectors = new HashMap<String, TransportConfiguration>();
+ HashMap<String, TransportConfiguration> connectors = new HashMap<>();
connectors.put(server1tc.getName(), server1tc);
server0.getConfiguration().setConnectorConfigurations(connectors);
@@ -270,21 +270,21 @@ public class BridgeTest extends ActiveMQTestBase {
final int numMessages = 10;
- ArrayList<String> connectorConfig = new ArrayList<String>();
+ ArrayList<String> connectorConfig = new ArrayList<>();
connectorConfig.add(server1tc.getName());
BridgeConfiguration bridgeConfiguration = new BridgeConfiguration().setName("bridge1").setQueueName(queueName0).setForwardingAddress(forwardAddress).setRetryInterval(1000).setReconnectAttemptsOnSameNode(-1).setUseDuplicateDetection(false).setConfirmationWindowSize(numMessages * messageSize / 2).setStaticConnectors(connectorConfig);
- List<BridgeConfiguration> bridgeConfigs = new ArrayList<BridgeConfiguration>();
+ List<BridgeConfiguration> bridgeConfigs = new ArrayList<>();
bridgeConfigs.add(bridgeConfiguration);
server0.getConfiguration().setBridgeConfigurations(bridgeConfigs);
CoreQueueConfiguration queueConfig0 = new CoreQueueConfiguration().setAddress(testAddress).setName(queueName0);
- List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<>();
queueConfigs0.add(queueConfig0);
server0.getConfiguration().setQueueConfigurations(queueConfigs0);
CoreQueueConfiguration queueConfig1 = new CoreQueueConfiguration().setAddress(forwardAddress).setName(queueName1);
- List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<>();
queueConfigs1.add(queueConfig1);
server1.getConfiguration().setQueueConfigurations(queueConfigs1);
@@ -397,10 +397,10 @@ public class BridgeTest extends ActiveMQTestBase {
MyInterceptor myInterceptor = new MyInterceptor(3);
- Map<String, Object> server0Params = new HashMap<String, Object>();
+ Map<String, Object> server0Params = new HashMap<>();
server0 = createClusteredServerWithParams(isNetty(), 0, true, server0Params);
- Map<String, Object> server1Params = new HashMap<String, Object>();
+ Map<String, Object> server1Params = new HashMap<>();
addTargetParameters(server1Params);
server1 = createClusteredServerWithParams(isNetty(), 1, true, server1Params);
@@ -412,7 +412,7 @@ public class BridgeTest extends ActiveMQTestBase {
TransportConfiguration server0tc = new TransportConfiguration(getConnector(), server0Params);
TransportConfiguration server1tc = new TransportConfiguration(getConnector(), server1Params);
- HashMap<String, TransportConfiguration> connectors = new HashMap<String, TransportConfiguration>();
+ HashMap<String, TransportConfiguration> connectors = new HashMap<>();
connectors.put(server1tc.getName(), server1tc);
server0.getConfiguration().setConnectorConfigurations(connectors);
@@ -420,21 +420,21 @@ public class BridgeTest extends ActiveMQTestBase {
final int numMessages = 1;
- ArrayList<String> connectorConfig = new ArrayList<String>();
+ ArrayList<String> connectorConfig = new ArrayList<>();
connectorConfig.add(server1tc.getName());
BridgeConfiguration bridgeConfiguration = new BridgeConfiguration().setName("bridge1").setQueueName(queueName0).setForwardingAddress(forwardAddress).setRetryInterval(100).setReconnectAttempts(-1).setReconnectAttemptsOnSameNode(-1).setUseDuplicateDetection(false).setConfirmationWindowSize(numMessages * messageSize / 2).setStaticConnectors(connectorConfig).setCallTimeout(500);
- List<BridgeConfiguration> bridgeConfigs = new ArrayList<BridgeConfiguration>();
+ List<BridgeConfiguration> bridgeConfigs = new ArrayList<>();
bridgeConfigs.add(bridgeConfiguration);
server0.getConfiguration().setBridgeConfigurations(bridgeConfigs);
CoreQueueConfiguration queueConfig0 = new CoreQueueConfiguration().setAddress(testAddress).setName(queueName0);
- List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<>();
queueConfigs0.add(queueConfig0);
server0.getConfiguration().setQueueConfigurations(queueConfigs0);
CoreQueueConfiguration queueConfig1 = new CoreQueueConfiguration().setAddress(forwardAddress).setName(queueName1);
- List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<>();
queueConfigs1.add(queueConfig1);
server1.getConfiguration().setQueueConfigurations(queueConfigs1);
@@ -555,10 +555,10 @@ public class BridgeTest extends ActiveMQTestBase {
final int numMessages = 10;
- Map<String, Object> server0Params = new HashMap<String, Object>();
+ Map<String, Object> server0Params = new HashMap<>();
server0 = createClusteredServerWithParams(isNetty(), 0, useFiles, server0Params);
- Map<String, Object> server1Params = new HashMap<String, Object>();
+ Map<String, Object> server1Params = new HashMap<>();
addTargetParameters(server1Params);
server1 = createClusteredServerWithParams(isNetty(), 1, useFiles, server1Params);
@@ -567,7 +567,7 @@ public class BridgeTest extends ActiveMQTestBase {
final String forwardAddress = "forwardAddress";
final String queueName1 = "queue1";
- Map<String, TransportConfiguration> connectors = new HashMap<String, TransportConfiguration>();
+ Map<String, TransportConfiguration> connectors = new HashMap<>();
TransportConfiguration server0tc = new TransportConfiguration(getConnector(), server0Params);
TransportConfiguration server1tc = new TransportConfiguration(getConnector(), server1Params);
connectors.put(server1tc.getName(), server1tc);
@@ -576,21 +576,21 @@ public class BridgeTest extends ActiveMQTestBase {
final String filterString = "animal='goat'";
- ArrayList<String> staticConnectors = new ArrayList<String>();
+ ArrayList<String> staticConnectors = new ArrayList<>();
staticConnectors.add(server1tc.getName());
BridgeConfiguration bridgeConfiguration = new BridgeConfiguration().setName("bridge1").setQueueName(queueName0).setForwardingAddress(forwardAddress).setFilterString(filterString).setRetryInterval(1000).setReconnectAttemptsOnSameNode(-1).setUseDuplicateDetection(false).setConfirmationWindowSize(0).setStaticConnectors(staticConnectors);
- List<BridgeConfiguration> bridgeConfigs = new ArrayList<BridgeConfiguration>();
+ List<BridgeConfiguration> bridgeConfigs = new ArrayList<>();
bridgeConfigs.add(bridgeConfiguration);
server0.getConfiguration().setBridgeConfigurations(bridgeConfigs);
CoreQueueConfiguration queueConfig0 = new CoreQueueConfiguration().setAddress(testAddress).setName(queueName0);
- List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<>();
queueConfigs0.add(queueConfig0);
server0.getConfiguration().setQueueConfigurations(queueConfigs0);
CoreQueueConfiguration queueConfig1 = new CoreQueueConfiguration().setAddress(forwardAddress).setName(queueName1);
- List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<>();
queueConfigs1.add(queueConfig1);
server1.getConfiguration().setQueueConfigurations(queueConfigs1);
@@ -691,10 +691,10 @@ public class BridgeTest extends ActiveMQTestBase {
// Created to verify JBPAPP-6057
@Test
public void testStartLater() throws Exception {
- Map<String, Object> server0Params = new HashMap<String, Object>();
+ Map<String, Object> server0Params = new HashMap<>();
server0 = createClusteredServerWithParams(isNetty(), 0, true, server0Params);
- Map<String, Object> server1Params = new HashMap<String, Object>();
+ Map<String, Object> server1Params = new HashMap<>();
addTargetParameters(server1Params);
server1 = createClusteredServerWithParams(isNetty(), 1, true, server1Params);
@@ -703,23 +703,23 @@ public class BridgeTest extends ActiveMQTestBase {
final String forwardAddress = "jms.queue.forwardAddress";
final String queueName1 = "forwardAddress";
- Map<String, TransportConfiguration> connectors = new HashMap<String, TransportConfiguration>();
+ Map<String, TransportConfiguration> connectors = new HashMap<>();
TransportConfiguration server0tc = new TransportConfiguration(getConnector(), server0Params);
TransportConfiguration server1tc = new TransportConfiguration(getConnector(), server1Params);
connectors.put(server1tc.getName(), server1tc);
server0.getConfiguration().setConnectorConfigurations(connectors);
- ArrayList<String> staticConnectors = new ArrayList<String>();
+ ArrayList<String> staticConnectors = new ArrayList<>();
staticConnectors.add(server1tc.getName());
BridgeConfiguration bridgeConfiguration = new BridgeConfiguration().setName("bridge1").setQueueName(queueName0).setForwardingAddress(forwardAddress).setRetryInterval(100).setReconnectAttemptsOnSameNode(-1).setUseDuplicateDetection(false).setConfirmationWindowSize(1024).setStaticConnectors(staticConnectors);
- List<BridgeConfiguration> bridgeConfigs = new ArrayList<BridgeConfiguration>();
+ List<BridgeConfiguration> bridgeConfigs = new ArrayList<>();
bridgeConfigs.add(bridgeConfiguration);
server0.getConfiguration().setBridgeConfigurations(bridgeConfigs);
CoreQueueConfiguration queueConfig0 = new CoreQueueConfiguration().setAddress(testAddress).setName(queueName0);
- List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<>();
queueConfigs0.add(queueConfig0);
server0.getConfiguration().setQueueConfigurations(queueConfigs0);
@@ -799,10 +799,10 @@ public class BridgeTest extends ActiveMQTestBase {
@Test
public void testWithDuplicates() throws Exception {
- Map<String, Object> server0Params = new HashMap<String, Object>();
+ Map<String, Object> server0Params = new HashMap<>();
server0 = createClusteredServerWithParams(isNetty(), 0, true, server0Params);
- Map<String, Object> server1Params = new HashMap<String, Object>();
+ Map<String, Object> server1Params = new HashMap<>();
addTargetParameters(server1Params);
server1 = createClusteredServerWithParams(isNetty(), 1, true, server1Params);
@@ -811,23 +811,23 @@ public class BridgeTest extends ActiveMQTestBase {
final String forwardAddress = "jms.queue.forwardAddress";
final String queueName1 = "forwardAddress";
- Map<String, TransportConfiguration> connectors = new HashMap<String, TransportConfiguration>();
+ Map<String, TransportConfiguration> connectors = new HashMap<>();
TransportConfiguration server0tc = new TransportConfiguration(getConnector(), server0Params);
TransportConfiguration server1tc = new TransportConfiguration(getConnector(), server1Params);
connectors.put(server1tc.getName(), server1tc);
server0.getConfiguration().setConnectorConfigurations(connectors);
- ArrayList<String> staticConnectors = new ArrayList<String>();
+ ArrayList<String> staticConnectors = new ArrayList<>();
staticConnectors.add(server1tc.getName());
BridgeConfiguration bridgeConfiguration = new BridgeConfiguration().setName("bridge1").setQueueName(queueName0).setForwardingAddress(forwardAddress).setRetryInterval(100).setReconnectAttemptsOnSameNode(-1).setConfirmationWindowSize(0).setStaticConnectors(staticConnectors);
- List<BridgeConfiguration> bridgeConfigs = new ArrayList<BridgeConfiguration>();
+ List<BridgeConfiguration> bridgeConfigs = new ArrayList<>();
bridgeConfigs.add(bridgeConfiguration);
server0.getConfiguration().setBridgeConfigurations(bridgeConfigs);
CoreQueueConfiguration queueConfig0 = new CoreQueueConfiguration().setAddress(testAddress).setName(queueName0);
- List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<>();
queueConfigs0.add(queueConfig0);
server0.getConfiguration().setQueueConfigurations(queueConfigs0);
@@ -948,10 +948,10 @@ public class BridgeTest extends ActiveMQTestBase {
}
public void internaltestWithTransformer(final boolean useFiles) throws Exception {
- Map<String, Object> server0Params = new HashMap<String, Object>();
+ Map<String, Object> server0Params = new HashMap<>();
server0 = createClusteredServerWithParams(isNetty(), 0, false, server0Params);
- Map<String, Object> server1Params = new HashMap<String, Object>();
+ Map<String, Object> server1Params = new HashMap<>();
addTargetParameters(server1Params);
server1 = createClusteredServerWithParams(isNetty(), 1, false, server1Params);
@@ -960,29 +960,29 @@ public class BridgeTest extends ActiveMQTestBase {
final String forwardAddress = "forwardAddress";
final String queueName1 = "queue1";
- Map<String, TransportConfiguration> connectors = new HashMap<String, TransportConfiguration>();
+ Map<String, TransportConfiguration> connectors = new HashMap<>();
TransportConfiguration server0tc = new TransportConfiguration(getConnector(), server0Params);
TransportConfiguration server1tc = new TransportConfiguration(getConnector(), server1Params);
connectors.put(server1tc.getName(), server1tc);
server0.getConfiguration().setConnectorConfigurations(connectors);
- ArrayList<String> staticConnectors = new ArrayList<String>();
+ ArrayList<String> staticConnectors = new ArrayList<>();
staticConnectors.add(server1tc.getName());
BridgeConfiguration bridgeConfiguration = new BridgeConfiguration().setName("bridge1").setQueueName(queueName0).setForwardingAddress(forwardAddress).setTransformerClassName(SimpleTransformer.class.getName()).setRetryInterval(1000).setReconnectAttemptsOnSameNode(-1).setUseDuplicateDetection(false).setConfirmationWindowSize(1024).setStaticConnectors(staticConnectors);
- List<BridgeConfiguration> bridgeConfigs = new ArrayList<BridgeConfiguration>();
+ List<BridgeConfiguration> bridgeConfigs = new ArrayList<>();
bridgeConfigs.add(bridgeConfiguration);
server0.getConfiguration().setBridgeConfigurations(bridgeConfigs);
CoreQueueConfiguration queueConfig0 = new CoreQueueConfiguration().setAddress(testAddress).setName(queueName0);
- List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<>();
queueConfigs0.add(queueConfig0);
server0.getConfiguration().setQueueConfigurations(queueConfigs0);
CoreQueueConfiguration queueConfig1 = new CoreQueueConfiguration().setAddress(forwardAddress).setName(queueName1);
- List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<>();
queueConfigs1.add(queueConfig1);
server1.getConfiguration().setQueueConfigurations(queueConfigs1);
@@ -1052,11 +1052,11 @@ public class BridgeTest extends ActiveMQTestBase {
@Test
public void testSawtoothLoad() throws Exception {
- Map<String, Object> server0Params = new HashMap<String, Object>();
+ Map<String, Object> server0Params = new HashMap<>();
ActiveMQServer server0 = createClusteredServerWithParams(isNetty(), 0, true, server0Params);
server0.getConfiguration().setThreadPoolMaxSize(10);
- Map<String, Object> server1Params = new HashMap<String, Object>();
+ Map<String, Object> server1Params = new HashMap<>();
addTargetParameters(server1Params);
ActiveMQServer server1 = createClusteredServerWithParams(isNetty(), 1, true, server1Params);
server1.getConfiguration().setThreadPoolMaxSize(10);
@@ -1066,29 +1066,29 @@ public class BridgeTest extends ActiveMQTestBase {
final String forwardAddress = "forwardAddress";
final String queueName1 = "queue1";
- Map<String, TransportConfiguration> connectors = new HashMap<String, TransportConfiguration>();
+ Map<String, TransportConfiguration> connectors = new HashMap<>();
final TransportConfiguration server0tc = new TransportConfiguration(getConnector(), server0Params);
final TransportConfiguration server1tc = new TransportConfiguration(getConnector(), server1Params);
connectors.put(server1tc.getName(), server1tc);
server0.getConfiguration().setConnectorConfigurations(connectors);
- ArrayList<String> staticConnectors = new ArrayList<String>();
+ ArrayList<String> staticConnectors = new ArrayList<>();
staticConnectors.add(server1tc.getName());
BridgeConfiguration bridgeConfiguration = new BridgeConfiguration().setName("bridge1").setQueueName(queueName0).setForwardingAddress(forwardAddress).setRetryInterval(1000).setReconnectAttemptsOnSameNode(-1).setUseDuplicateDetection(false).setConfirmationWindowSize(0).setStaticConnectors(staticConnectors);
- List<BridgeConfiguration> bridgeConfigs = new ArrayList<BridgeConfiguration>();
+ List<BridgeConfiguration> bridgeConfigs = new ArrayList<>();
bridgeConfigs.add(bridgeConfiguration);
server0.getConfiguration().setBridgeConfigurations(bridgeConfigs);
CoreQueueConfiguration queueConfig0 = new CoreQueueConfiguration().setAddress(testAddress).setName(queueName0);
- List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<>();
queueConfigs0.add(queueConfig0);
server0.getConfiguration().setQueueConfigurations(queueConfigs0);
CoreQueueConfiguration queueConfig1 = new CoreQueueConfiguration().setAddress(forwardAddress).setName(queueName1);
- List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<>();
queueConfigs1.add(queueConfig1);
server1.getConfiguration().setQueueConfigurations(queueConfigs1);
@@ -1210,7 +1210,7 @@ public class BridgeTest extends ActiveMQTestBase {
}
for (int repeat = 0; repeat < totalrepeats; repeat++) {
- ArrayList<Thread> threads = new ArrayList<Thread>();
+ ArrayList<Thread> threads = new ArrayList<>();
threads.add(new ConsumerThread());
threads.add(new ProducerThread(numMessages / 2));
@@ -1257,10 +1257,10 @@ public class BridgeTest extends ActiveMQTestBase {
final int PAGE_SIZE = 1 * 1024;
try {
- Map<String, Object> server0Params = new HashMap<String, Object>();
+ Map<String, Object> server0Params = new HashMap<>();
server0 = createClusteredServerWithParams(isNetty(), 0, true, PAGE_SIZE, PAGE_MAX, server0Params);
- Map<String, Object> server1Params = new HashMap<String, Object>();
+ Map<String, Object> server1Params = new HashMap<>();
addTargetParameters(server1Params);
server1 = createClusteredServerWithParams(isNetty(), 1, true, PAGE_SIZE, PAGE_MAX, server1Params);
server1.getConfiguration().setJournalBufferTimeout_AIO(10).setJournalBufferTimeout_NIO(10);
@@ -1270,7 +1270,7 @@ public class BridgeTest extends ActiveMQTestBase {
final String forwardAddress = "forwardAddress";
final String queueName1 = "queue1";
- Map<String, TransportConfiguration> connectors = new HashMap<String, TransportConfiguration>();
+ Map<String, TransportConfiguration> connectors = new HashMap<>();
TransportConfiguration server0tc = new TransportConfiguration(getConnector(), server0Params);
TransportConfiguration server1tc = new TransportConfiguration(getConnector(), server1Params);
@@ -1280,7 +1280,7 @@ public class BridgeTest extends ActiveMQTestBase {
server0.getConfiguration().setIDCacheSize(20000).setJournalBufferTimeout_NIO(10).setJournalBufferTimeout_AIO(10);
- ArrayList<String> staticConnectors = new ArrayList<String>();
+ ArrayList<String> staticConnectors = new ArrayList<>();
staticConnectors.add(server1tc.getName());
BridgeConfiguration bridgeConfiguration = new BridgeConfiguration().setName("bridge1").setQueueName(queueName0).setForwardingAddress(forwardAddress).setRetryInterval(1).setReconnectAttemptsOnSameNode(-1).setUseDuplicateDetection(false).setConfirmationWindowSize(1).setStaticConnectors(staticConnectors);
@@ -1289,21 +1289,21 @@ public class BridgeTest extends ActiveMQTestBase {
bridgeConfiguration.setUseDuplicateDetection(true);
- List<BridgeConfiguration> bridgeConfigs = new ArrayList<BridgeConfiguration>();
+ List<BridgeConfiguration> bridgeConfigs = new ArrayList<>();
bridgeConfigs.add(bridgeConfiguration);
server0.getConfiguration().setBridgeConfigurations(bridgeConfigs);
CoreQueueConfiguration queueConfig0 = new CoreQueueConfiguration().setAddress(testAddress).setName(queueName0);
- List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<>();
queueConfigs0.add(queueConfig0);
server0.getConfiguration().setQueueConfigurations(queueConfigs0);
CoreQueueConfiguration queueConfig1 = new CoreQueueConfiguration().setAddress(forwardAddress).setName(queueName1);
- List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<>();
queueConfigs1.add(queueConfig1);
server1.getConfiguration().setQueueConfigurations(queueConfigs1);
- List<String> interceptorToStop = new ArrayList<String>();
+ List<String> interceptorToStop = new ArrayList<>();
interceptorToStop.add(StopInterceptor.class.getName());
server1.getConfiguration().setIncomingInterceptorClassNames(interceptorToStop);
@@ -1354,7 +1354,7 @@ public class BridgeTest extends ActiveMQTestBase {
// Restarting the server
server0.start();
- HashMap<Integer, AtomicInteger> receivedMsg = new HashMap<Integer, AtomicInteger>();
+ HashMap<Integer, AtomicInteger> receivedMsg = new HashMap<>();
for (int i = 0; i < numMessages; i++) {
ClientMessage message = consumer1.receive(5000);
@@ -1498,10 +1498,10 @@ public class BridgeTest extends ActiveMQTestBase {
ServerLocator locator = null;
try {
- Map<String, Object> server0Params = new HashMap<String, Object>();
+ Map<String, Object> server0Params = new HashMap<>();
server0 = createClusteredServerWithParams(isNetty(), 0, true, PAGE_SIZE, PAGE_MAX, server0Params);
- Map<String, Object> server1Params = new HashMap<String, Object>();
+ Map<String, Object> server1Params = new HashMap<>();
addTargetParameters(server1Params);
server1 = createClusteredServerWithParams(isNetty(), 1, true, server1Params);
@@ -1510,7 +1510,7 @@ public class BridgeTest extends ActiveMQTestBase {
final String forwardAddress = "forwardAddress";
final String queueName1 = "queue1";
- Map<String, TransportConfiguration> connectors = new HashMap<String, TransportConfiguration>();
+ Map<String, TransportConfiguration> connectors = new HashMap<>();
TransportConfiguration server0tc = new TransportConfiguration(getConnector(), server0Params);
TransportConfiguration server1tc = new TransportConfiguration(getConnector(), server1Params);
@@ -1518,22 +1518,22 @@ public class BridgeTest extends ActiveMQTestBase {
server0.getConfiguration().setConnectorConfigurations(connectors);
- ArrayList<String> staticConnectors = new ArrayList<String>();
+ ArrayList<String> staticConnectors = new ArrayList<>();
staticConnectors.add(server1tc.getName());
BridgeConfiguration bridgeConfiguration = new BridgeConfiguration().setName("bridge1").setQueueName(queueName0).setForwardingAddress(forwardAddress).setRetryInterval(1000).setReconnectAttemptsOnSameNode(-1).setUseDuplicateDetection(false).setConfirmationWindowSize(1024).setStaticConnectors(staticConnectors);
- List<BridgeConfiguration> bridgeConfigs = new ArrayList<BridgeConfiguration>();
+ List<BridgeConfiguration> bridgeConfigs = new ArrayList<>();
bridgeConfigs.add(bridgeConfiguration);
server0.getConfiguration().setBridgeConfigurations(bridgeConfigs);
CoreQueueConfiguration queueConfig0 = new CoreQueueConfiguration().setAddress(testAddress).setName(queueName0);
- List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<>();
queueConfigs0.add(queueConfig0);
server0.getConfiguration().setQueueConfigurations(queueConfigs0);
CoreQueueConfiguration queueConfig1 = new CoreQueueConfiguration().setAddress(forwardAddress).setName(queueName1);
- List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<>();
queueConfigs1.add(queueConfig1);
server1.getConfiguration().setQueueConfigurations(queueConfigs1);
@@ -1622,10 +1622,10 @@ public class BridgeTest extends ActiveMQTestBase {
@Test
public void testNullForwardingAddress() throws Exception {
- Map<String, Object> server0Params = new HashMap<String, Object>();
+ Map<String, Object> server0Params = new HashMap<>();
server0 = createClusteredServerWithParams(isNetty(), 0, false, server0Params);
- Map<String, Object> server1Params = new HashMap<String, Object>();
+ Map<String, Object> server1Params = new HashMap<>();
addTargetParameters(server1Params);
server1 = createClusteredServerWithParams(isNetty(), 1, false, server1Params);
@@ -1633,7 +1633,7 @@ public class BridgeTest extends ActiveMQTestBase {
final String queueName0 = "queue0";
final String queueName1 = "queue1";
- Map<String, TransportConfiguration> connectors = new HashMap<String, TransportConfiguration>();
+ Map<String, TransportConfiguration> connectors = new HashMap<>();
TransportConfiguration server0tc = new TransportConfiguration(getConnector(), server0Params);
TransportConfiguration server1tc = new TransportConfiguration(getConnector(), server1Params);
@@ -1645,23 +1645,23 @@ public class BridgeTest extends ActiveMQTestBase {
final int numMessages = 10;
- ArrayList<String> staticConnectors = new ArrayList<String>();
+ ArrayList<String> staticConnectors = new ArrayList<>();
staticConnectors.add(server1tc.getName());
// do not set forwarding address (defaults to null) to use messages' original address
BridgeConfiguration bridgeConfiguration = new BridgeConfiguration().setName("bridge1").setQueueName(queueName0).setRetryInterval(1000).setReconnectAttemptsOnSameNode(-1).setUseDuplicateDetection(false).setConfirmationWindowSize(numMessages * messageSize / 2).setStaticConnectors(staticConnectors);
- List<BridgeConfiguration> bridgeConfigs = new ArrayList<BridgeConfiguration>();
+ List<BridgeConfiguration> bridgeConfigs = new ArrayList<>();
bridgeConfigs.add(bridgeConfiguration);
server0.getConfiguration().setBridgeConfigurations(bridgeConfigs);
CoreQueueConfiguration queueConfig0 = new CoreQueueConfiguration().setAddress(testAddress).setName(queueName0);
- List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<>();
queueConfigs0.add(queueConfig0);
server0.getConfiguration().setQueueConfigurations(queueConfigs0);
// on server #1, we bind queueName1 to same address testAddress
CoreQueueConfiguration queueConfig1 = new CoreQueueConfiguration().setAddress(testAddress).setName(queueName1);
- List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<>();
queueConfigs1.add(queueConfig1);
server1.getConfiguration().setQueueConfigurations(queueConfigs1);
@@ -1757,15 +1757,15 @@ public class BridgeTest extends ActiveMQTestBase {
SequentialFileFactory messagesFF = new NIOSequentialFileFactory(serverToInvestigate.getConfiguration().getJournalLocation(), 1);
JournalImpl messagesJournal = new JournalImpl(serverToInvestigate.getConfiguration().getJournalFileSize(), serverToInvestigate.getConfiguration().getJournalMinFiles(), 0, 0, messagesFF, "activemq-data", "amq", 1);
- List<RecordInfo> records = new LinkedList<RecordInfo>();
+ List<RecordInfo> records = new LinkedList<>();
- List<PreparedTransactionInfo> preparedTransactions = new LinkedList<PreparedTransactionInfo>();
+ List<PreparedTransactionInfo> preparedTransactions = new LinkedList<>();
messagesJournal.start();
messagesJournal.load(records, preparedTransactions, null);
// These are more immutable integers
- Map<Long, AtomicInteger> messageRefCounts = new HashMap<Long, AtomicInteger>();
+ Map<Long, AtomicInteger> messageRefCounts = new HashMap<>();
for (RecordInfo info : records) {
Object o = DescribeJournal.newObjectEncoding(info);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/bridge/BridgeWithDiscoveryGroupStartTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/bridge/BridgeWithDiscoveryGroupStartTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/bridge/BridgeWithDiscoveryGroupStartTest.java
index e65ec99..b09d355 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/bridge/BridgeWithDiscoveryGroupStartTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/bridge/BridgeWithDiscoveryGroupStartTest.java
@@ -70,10 +70,10 @@ public class BridgeWithDiscoveryGroupStartTest extends ActiveMQTestBase {
@Test
public void testStartStop() throws Exception {
- Map<String, Object> server0Params = new HashMap<String, Object>();
+ Map<String, Object> server0Params = new HashMap<>();
ActiveMQServer server0 = createClusteredServerWithParams(isNetty(), 0, true, server0Params);
- Map<String, Object> server1Params = new HashMap<String, Object>();
+ Map<String, Object> server1Params = new HashMap<>();
if (isNetty()) {
server1Params.put("port", TransportConstants.DEFAULT_PORT + 1);
}
@@ -83,7 +83,7 @@ public class BridgeWithDiscoveryGroupStartTest extends ActiveMQTestBase {
ActiveMQServer server1 = createClusteredServerWithParams(isNetty(), 1, true, server1Params);
ServerLocator locator = null;
try {
- Map<String, TransportConfiguration> connectors = new HashMap<String, TransportConfiguration>();
+ Map<String, TransportConfiguration> connectors = new HashMap<>();
TransportConfiguration server0tc = new TransportConfiguration(getConnector(), server0Params);
TransportConfiguration server1tc = new TransportConfiguration(getConnector(), server1Params);
connectors.put(server1tc.getName(), server1tc);
@@ -98,7 +98,7 @@ public class BridgeWithDiscoveryGroupStartTest extends ActiveMQTestBase {
final String groupAddress = getUDPDiscoveryAddress();
final int port = getUDPDiscoveryPort();
- ArrayList<String> list = new ArrayList<String>();
+ ArrayList<String> list = new ArrayList<>();
list.add(server1tc.getName());
UDPBroadcastEndpointFactory endpoint = new UDPBroadcastEndpointFactory().setGroupAddress(groupAddress).setGroupPort(port);
@@ -113,21 +113,21 @@ public class BridgeWithDiscoveryGroupStartTest extends ActiveMQTestBase {
final String bridgeName = "bridge1";
- ArrayList<String> staticConnectors = new ArrayList<String>();
+ ArrayList<String> staticConnectors = new ArrayList<>();
staticConnectors.add(server1tc.getName());
BridgeConfiguration bridgeConfiguration = new BridgeConfiguration().setName(bridgeName).setQueueName(queueName0).setForwardingAddress(forwardAddress).setRetryInterval(1000).setReconnectAttempts(0).setReconnectAttemptsOnSameNode(0).setConfirmationWindowSize(1024).setStaticConnectors(staticConnectors);
- List<BridgeConfiguration> bridgeConfigs = new ArrayList<BridgeConfiguration>();
+ List<BridgeConfiguration> bridgeConfigs = new ArrayList<>();
bridgeConfigs.add(bridgeConfiguration);
server0.getConfiguration().setBridgeConfigurations(bridgeConfigs);
CoreQueueConfiguration queueConfig0 = new CoreQueueConfiguration().setAddress(testAddress).setName(queueName0);
- List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs0 = new ArrayList<>();
queueConfigs0.add(queueConfig0);
server0.getConfiguration().setQueueConfigurations(queueConfigs0);
CoreQueueConfiguration queueConfig1 = new CoreQueueConfiguration().setAddress(forwardAddress).setName(queueName1);
- List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<CoreQueueConfiguration>();
+ List<CoreQueueConfiguration> queueConfigs1 = new ArrayList<>();
queueConfigs1.add(queueConfig1);
server1.getConfiguration().setQueueConfigurations(queueConfigs1);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/distribution/ClusterTestBase.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/distribution/ClusterTestBase.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/distribution/ClusterTestBase.java
index d6b836b..7c3be5e 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/distribution/ClusterTestBase.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/distribution/ClusterTestBase.java
@@ -825,7 +825,7 @@ public abstract class ClusterTestBase extends ActiveMQTestBase {
final int msgStart,
final int msgEnd,
final int... consumerIDs) throws Exception {
- HashMap<SimpleString, Integer> groupIdsReceived = new HashMap<SimpleString, Integer>();
+ HashMap<SimpleString, Integer> groupIdsReceived = new HashMap<>();
for (int i = 0; i < consumerIDs.length; i++) {
ConsumerHolder holder = consumers[consumerIDs[i]];
@@ -1096,7 +1096,7 @@ public abstract class ClusterTestBase extends ActiveMQTestBase {
// First get one from each consumer to determine the order, then we sort them in this order
- List<OrderedConsumerHolder> sorted = new ArrayList<OrderedConsumerHolder>();
+ List<OrderedConsumerHolder> sorted = new ArrayList<>();
for (int consumerID : consumerIDs) {
ConsumerHolder holder = consumers[consumerID];
@@ -1167,9 +1167,9 @@ public abstract class ClusterTestBase extends ActiveMQTestBase {
protected void verifyReceiveRoundRobinInSomeOrderWithCounts(final boolean ack,
final int[] messageCounts,
final int... consumerIDs) throws Exception {
- List<LinkedList<Integer>> receivedCounts = new ArrayList<LinkedList<Integer>>();
+ List<LinkedList<Integer>> receivedCounts = new ArrayList<>();
- Set<Integer> counts = new HashSet<Integer>();
+ Set<Integer> counts = new HashSet<>();
for (int consumerID : consumerIDs) {
ConsumerHolder holder = consumers[consumerID];
@@ -1178,7 +1178,7 @@ public abstract class ClusterTestBase extends ActiveMQTestBase {
throw new IllegalArgumentException("No consumer at " + consumerID);
}
- LinkedList<Integer> list = new LinkedList<Integer>();
+ LinkedList<Integer> list = new LinkedList<>();
receivedCounts.add(list);
@@ -1275,7 +1275,7 @@ public abstract class ClusterTestBase extends ActiveMQTestBase {
throw new IllegalArgumentException("No consumer at " + consumerID);
}
- List<Integer> ints = new ArrayList<Integer>();
+ List<Integer> ints = new ArrayList<>();
ClientMessage message = null;
@@ -1539,7 +1539,7 @@ public abstract class ClusterTestBase extends ActiveMQTestBase {
TransportConfiguration connector = createTransportConfiguration(netty, false, params);
- List<String> connectorPairs = new ArrayList<String>();
+ List<String> connectorPairs = new ArrayList<>();
connectorPairs.add(connector.getName());
UDPBroadcastEndpointFactory endpoint = new UDPBroadcastEndpointFactory().setGroupAddress(groupAddress).setGroupPort(port);
@@ -1587,7 +1587,7 @@ public abstract class ClusterTestBase extends ActiveMQTestBase {
TransportConfiguration connector = createTransportConfiguration(netty, false, params);
- List<String> connectorPairs = new ArrayList<String>();
+ List<String> connectorPairs = new ArrayList<>();
connectorPairs.add(connector.getName());
UDPBroadcastEndpointFactory endpoint = new UDPBroadcastEndpointFactory().setGroupAddress(groupAddress).setGroupPort(port);
@@ -1647,7 +1647,7 @@ public abstract class ClusterTestBase extends ActiveMQTestBase {
if (nodeTo != -1) {
TransportConfiguration serverTotc = createTransportConfiguration(netty, false, generateParams(nodeTo, netty));
serverFrom.getConfiguration().getConnectorConfigurations().put(serverTotc.getName(), serverTotc);
- pairs = new ArrayList<String>();
+ pairs = new ArrayList<>();
pairs.add(serverTotc.getName());
}
Configuration config = serverFrom.getConfiguration();
@@ -1681,7 +1681,7 @@ public abstract class ClusterTestBase extends ActiveMQTestBase {
if (nodeTo != -1) {
TransportConfiguration serverTotc = createTransportConfiguration(netty, false, generateParams(nodeTo, netty));
serverFrom.getConfiguration().getConnectorConfigurations().put(serverTotc.getName(), serverTotc);
- pairs = new ArrayList<String>();
+ pairs = new ArrayList<>();
pairs.add(serverTotc.getName());
}
Configuration config = serverFrom.getConfiguration();
@@ -1707,7 +1707,7 @@ public abstract class ClusterTestBase extends ActiveMQTestBase {
TransportConfiguration connectorFrom = createTransportConfiguration(netty, false, generateParams(nodeFrom, netty));
serverFrom.getConfiguration().getConnectorConfigurations().put(connectorFrom.getName(), connectorFrom);
- List<String> pairs = new ArrayList<String>();
+ List<String> pairs = new ArrayList<>();
for (int element : nodesTo) {
TransportConfiguration serverTotc = createTransportConfiguration(netty, false, generateParams(element, netty));
serverFrom.getConfiguration().getConnectorConfigurations().put(serverTotc.getName(), serverTotc);
@@ -1737,7 +1737,7 @@ public abstract class ClusterTestBase extends ActiveMQTestBase {
TransportConfiguration connectorFrom = createTransportConfiguration(netty, false, generateParams(nodeFrom, netty));
serverFrom.getConfiguration().getConnectorConfigurations().put(connectorFrom.getName(), connectorFrom);
- List<String> pairs = new ArrayList<String>();
+ List<String> pairs = new ArrayList<>();
for (int element : nodesTo) {
TransportConfiguration serverTotc = createTransportConfiguration(netty, false, generateParams(element, netty));
serverFrom.getConfiguration().getConnectorConfigurations().put(serverTotc.getName(), serverTotc);
@@ -1775,7 +1775,7 @@ public abstract class ClusterTestBase extends ActiveMQTestBase {
TransportConfiguration connectorFrom = createTransportConfiguration(netty, false, generateParams(nodeFrom, netty));
serverFrom.getConfiguration().getConnectorConfigurations().put(name, connectorFrom);
- List<String> pairs = new ArrayList<String>();
+ List<String> pairs = new ArrayList<>();
for (int element : nodesTo) {
TransportConfiguration serverTotc = createTransportConfiguration(netty, false, generateParams(element, netty));
serverFrom.getConfiguration().getConnectorConfigurations().put(serverTotc.getName(), serverTotc);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/distribution/ClusteredGroupingTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/distribution/ClusteredGroupingTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/distribution/ClusteredGroupingTest.java
index 9472202..f2f3f3c 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/distribution/ClusteredGroupingTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/distribution/ClusteredGroupingTest.java
@@ -526,7 +526,7 @@ public class ClusteredGroupingTest extends ClusterTestBase {
final ClientSession session = addClientSession(sf1.createSession(false, false, false));
final ClientProducer producer = addClientProducer(session.createProducer(ADDRESS));
- List<String> groups = new ArrayList<String>();
+ List<String> groups = new ArrayList<>();
final AtomicInteger totalMessageProduced = new AtomicInteger(0);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/distribution/MessageRedistributionTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/distribution/MessageRedistributionTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/distribution/MessageRedistributionTest.java
index 7d36cc2..2b00104 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/distribution/MessageRedistributionTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/distribution/MessageRedistributionTest.java
@@ -489,7 +489,7 @@ public class MessageRedistributionTest extends ClusterTestBase {
session0.start();
- ArrayList<Xid> xids = new ArrayList<Xid>();
+ ArrayList<Xid> xids = new ArrayList<>();
for (int i = 0; i < 100; i++) {
Xid xid = newXID();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/distribution/MessageRedistributionWithDiscoveryTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/distribution/MessageRedistributionWithDiscoveryTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/distribution/MessageRedistributionWithDiscoveryTest.java
index 32c2c32..9730880 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/distribution/MessageRedistributionWithDiscoveryTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/distribution/MessageRedistributionWithDiscoveryTest.java
@@ -102,7 +102,7 @@ public class MessageRedistributionWithDiscoveryTest extends ClusterTestBase {
session0.start();
- ArrayList<Xid> xids = new ArrayList<Xid>();
+ ArrayList<Xid> xids = new ArrayList<>();
for (int i = 0; i < 100; i++) {
Xid xid = newXID();
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/AsynchronousFailoverTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/AsynchronousFailoverTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/AsynchronousFailoverTest.java
index 770c538..f7a6d25 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/AsynchronousFailoverTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/AsynchronousFailoverTest.java
@@ -102,7 +102,7 @@ public class AsynchronousFailoverTest extends FailoverTestBase {
volatile boolean failed;
- ArrayList<Throwable> errors = new ArrayList<Throwable>();
+ ArrayList<Throwable> errors = new ArrayList<>();
boolean isFailed() {
return failed;
@@ -287,7 +287,7 @@ public class AsynchronousFailoverTest extends FailoverTestBase {
session.start();
- List<Integer> counts = new ArrayList<Integer>(1000);
+ List<Integer> counts = new ArrayList<>(1000);
int lastCount = -1;
boolean counterGap = false;
while (true) {
@@ -408,7 +408,7 @@ public class AsynchronousFailoverTest extends FailoverTestBase {
ClientConsumer consumer = null;
do {
- ArrayList<Integer> msgs = new ArrayList<Integer>();
+ ArrayList<Integer> msgs = new ArrayList<>();
try {
if (consumer == null) {
consumer = session.createConsumer(FailoverTestBase.ADDRESS);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/BackupSyncJournalTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/BackupSyncJournalTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/BackupSyncJournalTest.java
index be5870e..56cb74c 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/BackupSyncJournalTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/BackupSyncJournalTest.java
@@ -336,7 +336,7 @@ public class BackupSyncJournalTest extends FailoverTestBase {
}
private Set<Pair<Long, Integer>> getFileIds(JournalImpl journal) {
- Set<Pair<Long, Integer>> results = new HashSet<Pair<Long, Integer>>();
+ Set<Pair<Long, Integer>> results = new HashSet<>();
for (JournalFile jf : journal.getDataFiles()) {
results.add(getPair(jf));
}
@@ -349,7 +349,7 @@ public class BackupSyncJournalTest extends FailoverTestBase {
* @return
*/
private Pair<Long, Integer> getPair(JournalFile jf) {
- return new Pair<Long, Integer>(jf.getFileID(), jf.getPosCount());
+ return new Pair<>(jf.getFileID(), jf.getPosCount());
}
static JournalImpl getMessageJournalFromServer(TestableServer server) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/BackupSyncLargeMessageTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/BackupSyncLargeMessageTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/BackupSyncLargeMessageTest.java
index 7f70d30..2e5ec8a 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/BackupSyncLargeMessageTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/BackupSyncLargeMessageTest.java
@@ -161,7 +161,7 @@ public class BackupSyncLargeMessageTest extends BackupSyncJournalTest {
}
private Set<Long> getAllMessageFileIds(File dir) {
- Set<Long> idsOnBkp = new TreeSet<Long>();
+ Set<Long> idsOnBkp = new TreeSet<>();
String[] fileList = dir.list();
if (fileList != null) {
for (String filename : fileList) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/BackupSyncPagingTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/BackupSyncPagingTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/BackupSyncPagingTest.java
index 052544b..c69b67f 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/BackupSyncPagingTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/BackupSyncPagingTest.java
@@ -43,7 +43,7 @@ public class BackupSyncPagingTest extends BackupSyncJournalTest {
final Configuration configuration,
final NodeManager nodeManager,
int id) {
- Map<String, AddressSettings> conf = new HashMap<String, AddressSettings>();
+ Map<String, AddressSettings> conf = new HashMap<>();
AddressSettings as = new AddressSettings().setMaxSizeBytes(PAGE_MAX).setPageSizeBytes(PAGE_SIZE).setAddressFullMessagePolicy(AddressFullMessagePolicy.PAGE);
conf.put(ADDRESS.toString(), as);
return createInVMFailoverServer(realFiles, configuration, PAGE_SIZE, PAGE_MAX, conf, nodeManager, id);
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/ClusterWithBackupFailoverTestBase.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/ClusterWithBackupFailoverTestBase.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/ClusterWithBackupFailoverTestBase.java
index d3b106f..a71adeb 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/ClusterWithBackupFailoverTestBase.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/ClusterWithBackupFailoverTestBase.java
@@ -286,7 +286,7 @@ public abstract class ClusterWithBackupFailoverTestBase extends ClusterTestBase
}
private ClientSession[] exploreSessions(final int node) {
- HashSet<ClientSession> sessions = new HashSet<ClientSession>();
+ HashSet<ClientSession> sessions = new HashSet<>();
for (ConsumerHolder holder : consumers) {
if (holder != null && holder.getNode() == node && holder.getSession() != null) {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/FailoverListenerTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/FailoverListenerTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/FailoverListenerTest.java
index 2088748..dca12ee 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/FailoverListenerTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/FailoverListenerTest.java
@@ -249,7 +249,7 @@ public class FailoverListenerTest extends FailoverTestBase {
public class SessionFactoryFailoverListener implements FailoverEventListener {
- private final ArrayList<FailoverEventType> failoverTypeEvent = new ArrayList<FailoverEventType>();
+ private final ArrayList<FailoverEventType> failoverTypeEvent = new ArrayList<>();
private final CountDownLatch failureLatch;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f8a1c5ba/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/FailoverOnFlowControlTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/FailoverOnFlowControlTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/FailoverOnFlowControlTest.java
index a83f5a0..2fcd6e1 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/FailoverOnFlowControlTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/FailoverOnFlowControlTest.java
@@ -44,7 +44,7 @@ public class FailoverOnFlowControlTest extends FailoverTestBase {
@Test
public void testOverflowSend() throws Exception {
ServerLocator locator = getServerLocator().setBlockOnNonDurableSend(true).setBlockOnDurableSend(true).setReconnectAttempts(-1).setProducerWindowSize(1000).setRetryInterval(123);
- final ArrayList<ClientSession> sessionList = new ArrayList<ClientSession>();
+ final ArrayList<ClientSession> sessionList = new ArrayList<>();
Interceptor interceptorClient = new Interceptor() {
AtomicInteger count = new AtomicInteger(0);
[26/32] activemq-artemis git commit: Convert mac linefeeds to unix
Posted by cl...@apache.org.
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageDispatchNotificationTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageDispatchNotificationTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageDispatchNotificationTest.java
index 2f173c3..8e447cc 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageDispatchNotificationTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageDispatchNotificationTest.java
@@ -1 +1,57 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for MessageDispatchNotification
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class MessageDispatchNotificationTest extends BaseCommandTestSupport {
public static MessageDispatchNotificationTest SINGLETON = new MessageDispatchNotificationTest();
@Override
public Object createObject() throws Exception {
MessageDispatchNotification info = new MessageDispatchNotification();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
MessageDispatchNotification info = (MessageDispatchNotification) object;
info.setConsumerId(createConsumerId("ConsumerId:1"));
info.setDestination(createAct
iveMQDestination("Destination:2"));
info.setDeliverySequenceId(1);
info.setMessageId(createMessageId("MessageId:3"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for MessageDispatchNotification
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class MessageDispatchNotificationTest extends BaseCommandTestSupport {
+
+ public static MessageDispatchNotificationTest SINGLETON = new MessageDispatchNotificationTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ MessageDispatchNotification info = new MessageDispatchNotification();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ MessageDispatchNotification info = (MessageDispatchNotification) object;
+
+ info.setConsumerId(createConsumerId("ConsumerId:1"));
+ info.setDestination(createActiveMQDestination("Destination:2"));
+ info.setDeliverySequenceId(1);
+ info.setMessageId(createMessageId("MessageId:3"));
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageDispatchTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageDispatchTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageDispatchTest.java
index a7f1b23..0a386c3 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageDispatchTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageDispatchTest.java
@@ -1 +1,57 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for MessageDispatch
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class MessageDispatchTest extends BaseCommandTestSupport {
public static MessageDispatchTest SINGLETON = new MessageDispatchTest();
@Override
public Object createObject() throws Exception {
MessageDispatch info = new MessageDispatch();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
MessageDispatch info = (MessageDispatch) object;
info.setConsumerId(createConsumerId("ConsumerId:1"));
info.setDestination(createActiveMQDestination("Destination:2"));
info.setMessage(createMessage("Message:3"));
inf
o.setRedeliveryCounter(1);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for MessageDispatch
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class MessageDispatchTest extends BaseCommandTestSupport {
+
+ public static MessageDispatchTest SINGLETON = new MessageDispatchTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ MessageDispatch info = new MessageDispatch();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ MessageDispatch info = (MessageDispatch) object;
+
+ info.setConsumerId(createConsumerId("ConsumerId:1"));
+ info.setDestination(createActiveMQDestination("Destination:2"));
+ info.setMessage(createMessage("Message:3"));
+ info.setRedeliveryCounter(1);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageIdTest.java
index 51084a6..7b6d7e6 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageIdTest.java
@@ -1 +1,56 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for MessageId
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class MessageIdTest extends DataFileGeneratorTestSupport {
public static MessageIdTest SINGLETON = new MessageIdTest();
@Override
public Object createObject() throws Exception {
MessageId info = new MessageId();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
MessageId info = (MessageId) object;
info.setProducerId(createProducerId("ProducerId:1"));
info.setProducerSequenceId(1);
info.setBrokerSequenceId(2);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for MessageId
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class MessageIdTest extends DataFileGeneratorTestSupport {
+
+ public static MessageIdTest SINGLETON = new MessageIdTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ MessageId info = new MessageId();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ MessageId info = (MessageId) object;
+
+ info.setProducerId(createProducerId("ProducerId:1"));
+ info.setProducerSequenceId(1);
+ info.setBrokerSequenceId(2);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessagePullTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessagePullTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessagePullTest.java
index 9d1881f..8774ec0 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessagePullTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessagePullTest.java
@@ -1 +1,58 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for MessagePull
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class MessagePullTest extends BaseCommandTestSupport {
public static MessagePullTest SINGLETON = new MessagePullTest();
@Override
public Object createObject() throws Exception {
MessagePull info = new MessagePull();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
MessagePull info = (MessagePull) object;
info.setConsumerId(createConsumerId("ConsumerId:1"));
info.setDestination(createActiveMQDestination("Destination:2"));
info.setTimeout(1);
info.setCorrelationId("CorrelationId:3");
info.setMess
ageId(createMessageId("MessageId:4"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for MessagePull
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class MessagePullTest extends BaseCommandTestSupport {
+
+ public static MessagePullTest SINGLETON = new MessagePullTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ MessagePull info = new MessagePull();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ MessagePull info = (MessagePull) object;
+
+ info.setConsumerId(createConsumerId("ConsumerId:1"));
+ info.setDestination(createActiveMQDestination("Destination:2"));
+ info.setTimeout(1);
+ info.setCorrelationId("CorrelationId:3");
+ info.setMessageId(createMessageId("MessageId:4"));
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageTestSupport.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageTestSupport.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageTestSupport.java
index cbf9581..30b83bb 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageTestSupport.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageTestSupport.java
@@ -1 +1,86 @@
-/**
*
* 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.openwire.v8;
import org.apache.activemq.command.*;
/**
* Test case for the OpenWire marshalling for Message
*
*
* NOTE!: This file is auto generated - do not mod
ify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public abstract class MessageTestSupport extends BaseCommandTestSupport {
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
Message info = (Message) object;
info.setProducerId(createProducerId("ProducerId:1"));
info.setDestination(createActiveMQDestination("Destination:2"));
info.setTransactionId(createTransactionId("TransactionId:3"));
info.setOriginalDestination(createActiveMQDestination("OriginalDestination:4"));
info.setMessageId(createMessageId("MessageId:5"));
info.setOriginalTransactionId(createTransactionId("OriginalTransactionId:6"));
info.setGroupID("GroupID:7");
info.setGroupSequence(1);
info.setCorrelationId("CorrelationId:8");
info.setPersistent(true);
inf
o.setExpiration(1);
info.setPriority((byte) 1);
info.setReplyTo(createActiveMQDestination("ReplyTo:9"));
info.setTimestamp(2);
info.setType("Type:10");
{
byte data[] = "Content:11".getBytes();
info.setContent(new org.apache.activemq.util.ByteSequence(data, 0, data.length));
}
{
byte data[] = "MarshalledProperties:12".getBytes();
info.setMarshalledProperties(new org.apache.activemq.util.ByteSequence(data, 0, data.length));
}
info.setDataStructure(createDataStructure("DataStructure:13"));
info.setTargetConsumerId(createConsumerId("TargetConsumerId:14"));
info.setCompressed(false);
info.setRedeliveryCounter(2);
{
BrokerId value[] = new BrokerId[2];
for (int i = 0; i < 2; i++) {
value[i] = createBrokerId("BrokerPath:15");
}
info.setBrokerPath(value);
}
info.setArrival(3);
info.setUserID("UserID:16");
inf
o.setRecievedByDFBridge(true);
info.setDroppable(false);
{
BrokerId value[] = new BrokerId[2];
for (int i = 0; i < 2; i++) {
value[i] = createBrokerId("Cluster:17");
}
info.setCluster(value);
}
info.setBrokerInTime(4);
info.setBrokerOutTime(5);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for Message
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public abstract class MessageTestSupport extends BaseCommandTestSupport {
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ Message info = (Message) object;
+
+ info.setProducerId(createProducerId("ProducerId:1"));
+ info.setDestination(createActiveMQDestination("Destination:2"));
+ info.setTransactionId(createTransactionId("TransactionId:3"));
+ info.setOriginalDestination(createActiveMQDestination("OriginalDestination:4"));
+ info.setMessageId(createMessageId("MessageId:5"));
+ info.setOriginalTransactionId(createTransactionId("OriginalTransactionId:6"));
+ info.setGroupID("GroupID:7");
+ info.setGroupSequence(1);
+ info.setCorrelationId("CorrelationId:8");
+ info.setPersistent(true);
+ info.setExpiration(1);
+ info.setPriority((byte) 1);
+ info.setReplyTo(createActiveMQDestination("ReplyTo:9"));
+ info.setTimestamp(2);
+ info.setType("Type:10");
+ {
+ byte data[] = "Content:11".getBytes();
+ info.setContent(new org.apache.activemq.util.ByteSequence(data, 0, data.length));
+ }
+ {
+ byte data[] = "MarshalledProperties:12".getBytes();
+ info.setMarshalledProperties(new org.apache.activemq.util.ByteSequence(data, 0, data.length));
+ }
+ info.setDataStructure(createDataStructure("DataStructure:13"));
+ info.setTargetConsumerId(createConsumerId("TargetConsumerId:14"));
+ info.setCompressed(false);
+ info.setRedeliveryCounter(2);
+ {
+ BrokerId value[] = new BrokerId[2];
+ for (int i = 0; i < 2; i++) {
+ value[i] = createBrokerId("BrokerPath:15");
+ }
+ info.setBrokerPath(value);
+ }
+ info.setArrival(3);
+ info.setUserID("UserID:16");
+ info.setRecievedByDFBridge(true);
+ info.setDroppable(false);
+ {
+ BrokerId value[] = new BrokerId[2];
+ for (int i = 0; i < 2; i++) {
+ value[i] = createBrokerId("Cluster:17");
+ }
+ info.setCluster(value);
+ }
+ info.setBrokerInTime(4);
+ info.setBrokerOutTime(5);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/NetworkBridgeFilterTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/NetworkBridgeFilterTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/NetworkBridgeFilterTest.java
index 0a45142..d226129 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/NetworkBridgeFilterTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/NetworkBridgeFilterTest.java
@@ -1 +1,55 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for NetworkBridgeFilter
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class NetworkBridgeFilterTest extends DataFileGeneratorTestSupport {
public static NetworkBridgeFilterTest SINGLETON = new NetworkBridgeFilterTest();
@Override
public Object createObject() throws Exception {
NetworkBridgeFilter info = new NetworkBridgeFilter();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
NetworkBridgeFilter info = (NetworkBridgeFilter) object;
info.setNetworkTTL(1);
info.setNetworkBrokerId(createBrokerId("NetworkBrokerId:1"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for NetworkBridgeFilter
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class NetworkBridgeFilterTest extends DataFileGeneratorTestSupport {
+
+ public static NetworkBridgeFilterTest SINGLETON = new NetworkBridgeFilterTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ NetworkBridgeFilter info = new NetworkBridgeFilter();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ NetworkBridgeFilter info = (NetworkBridgeFilter) object;
+
+ info.setNetworkTTL(1);
+ info.setNetworkBrokerId(createBrokerId("NetworkBrokerId:1"));
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/PartialCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/PartialCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/PartialCommandTest.java
index 8c11858..bc6122c 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/PartialCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/PartialCommandTest.java
@@ -1 +1,55 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for PartialCommand
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class PartialCommandTest extends DataFileGeneratorTestSupport {
public static PartialCommandTest SINGLETON = new PartialCommandTest();
@Override
public Object createObject() throws Exception {
PartialCommand info = new PartialCommand();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
PartialCommand info = (PartialCommand) object;
info.setCommandId(1);
info.setData("Data:1".getBytes());
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for PartialCommand
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class PartialCommandTest extends DataFileGeneratorTestSupport {
+
+ public static PartialCommandTest SINGLETON = new PartialCommandTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ PartialCommand info = new PartialCommand();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ PartialCommand info = (PartialCommand) object;
+
+ info.setCommandId(1);
+ info.setData("Data:1".getBytes());
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerAckTest.java
index 76ae696..1221d01 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerAckTest.java
@@ -1 +1,55 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ProducerAck
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ProducerAckTest extends BaseCommandTestSupport {
public static ProducerAckTest SINGLETON = new ProducerAckTest();
@Override
public Object createObject() throws Exception {
ProducerAck info = new ProducerAck();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ProducerAck info = (ProducerAck) object;
info.setProducerId(createProducerId("ProducerId:1"));
info.setSize(1);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ProducerAck
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ProducerAckTest extends BaseCommandTestSupport {
+
+ public static ProducerAckTest SINGLETON = new ProducerAckTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ProducerAck info = new ProducerAck();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ProducerAck info = (ProducerAck) object;
+
+ info.setProducerId(createProducerId("ProducerId:1"));
+ info.setSize(1);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerIdTest.java
index ab7d376..194b137 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerIdTest.java
@@ -1 +1,56 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ProducerId
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ProducerIdTest extends DataFileGeneratorTestSupport {
public static ProducerIdTest SINGLETON = new ProducerIdTest();
@Override
public Object createObject() throws Exception {
ProducerId info = new ProducerId();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ProducerId info = (ProducerId) object;
info.setConnectionId("ConnectionId:1");
info.setValue(1);
info.setSessionId(2);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ProducerId
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ProducerIdTest extends DataFileGeneratorTestSupport {
+
+ public static ProducerIdTest SINGLETON = new ProducerIdTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ProducerId info = new ProducerId();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ProducerId info = (ProducerId) object;
+
+ info.setConnectionId("ConnectionId:1");
+ info.setValue(1);
+ info.setSessionId(2);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerInfoTest.java
index d201536..80cf689 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerInfoTest.java
@@ -1 +1,64 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ProducerInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ProducerInfoTest extends BaseCommandTestSupport {
public static ProducerInfoTest SINGLETON = new ProducerInfoTest();
@Override
public Object createObject() throws Exception {
ProducerInfo info = new ProducerInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ProducerInfo info = (ProducerInfo) object;
info.setProducerId(createProducerId("ProducerId:1"));
info.setDestination(createActiveMQDestination("Destination:2"));
{
BrokerId value[] = new BrokerId[2];
for (int i = 0; i < 2;
i++) {
value[i] = createBrokerId("BrokerPath:3");
}
info.setBrokerPath(value);
}
info.setDispatchAsync(true);
info.setWindowSize(1);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ProducerInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ProducerInfoTest extends BaseCommandTestSupport {
+
+ public static ProducerInfoTest SINGLETON = new ProducerInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ProducerInfo info = new ProducerInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ProducerInfo info = (ProducerInfo) object;
+
+ info.setProducerId(createProducerId("ProducerId:1"));
+ info.setDestination(createActiveMQDestination("Destination:2"));
+ {
+ BrokerId value[] = new BrokerId[2];
+ for (int i = 0; i < 2; i++) {
+ value[i] = createBrokerId("BrokerPath:3");
+ }
+ info.setBrokerPath(value);
+ }
+ info.setDispatchAsync(true);
+ info.setWindowSize(1);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/RemoveInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/RemoveInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/RemoveInfoTest.java
index fd85a69..71a4339 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/RemoveInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/RemoveInfoTest.java
@@ -1 +1,55 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for RemoveInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class RemoveInfoTest extends BaseCommandTestSupport {
public static RemoveInfoTest SINGLETON = new RemoveInfoTest();
@Override
public Object createObject() throws Exception {
RemoveInfo info = new RemoveInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
RemoveInfo info = (RemoveInfo) object;
info.setObjectId(createDataStructure("ObjectId:1"));
info.setLastDeliveredSequenceId(1);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for RemoveInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class RemoveInfoTest extends BaseCommandTestSupport {
+
+ public static RemoveInfoTest SINGLETON = new RemoveInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ RemoveInfo info = new RemoveInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ RemoveInfo info = (RemoveInfo) object;
+
+ info.setObjectId(createDataStructure("ObjectId:1"));
+ info.setLastDeliveredSequenceId(1);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/RemoveSubscriptionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/RemoveSubscriptionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/RemoveSubscriptionInfoTest.java
index 40c206e..1a6bd72 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/RemoveSubscriptionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/RemoveSubscriptionInfoTest.java
@@ -1 +1,56 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for RemoveSubscriptionInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class RemoveSubscriptionInfoTest extends BaseCommandTestSupport {
public static RemoveSubscriptionInfoTest SINGLETON = new RemoveSubscriptionInfoTest();
@Override
public Object createObject() throws Exception {
RemoveSubscriptionInfo info = new RemoveSubscriptionInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
RemoveSubscriptionInfo info = (RemoveSubscriptionInfo) object;
info.setConnectionId(createConnectionId("ConnectionId:1"));
info.setSubcriptionName("SubcriptionName:2");
info.setCli
entId("ClientId:3");
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for RemoveSubscriptionInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class RemoveSubscriptionInfoTest extends BaseCommandTestSupport {
+
+ public static RemoveSubscriptionInfoTest SINGLETON = new RemoveSubscriptionInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ RemoveSubscriptionInfo info = new RemoveSubscriptionInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ RemoveSubscriptionInfo info = (RemoveSubscriptionInfo) object;
+
+ info.setConnectionId(createConnectionId("ConnectionId:1"));
+ info.setSubcriptionName("SubcriptionName:2");
+ info.setClientId("ClientId:3");
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ReplayCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ReplayCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ReplayCommandTest.java
index 80e731c..55060fe 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ReplayCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ReplayCommandTest.java
@@ -1 +1,55 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ReplayCommand
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ReplayCommandTest extends BaseCommandTestSupport {
public static ReplayCommandTest SINGLETON = new ReplayCommandTest();
@Override
public Object createObject() throws Exception {
ReplayCommand info = new ReplayCommand();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ReplayCommand info = (ReplayCommand) object;
info.setFirstNakNumber(1);
info.setLastNakNumber(2);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ReplayCommand
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ReplayCommandTest extends BaseCommandTestSupport {
+
+ public static ReplayCommandTest SINGLETON = new ReplayCommandTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ReplayCommand info = new ReplayCommand();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ReplayCommand info = (ReplayCommand) object;
+
+ info.setFirstNakNumber(1);
+ info.setLastNakNumber(2);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ResponseTest.java
index cc71e31..96917ff 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ResponseTest.java
@@ -1 +1,54 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for Response
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ResponseTest extends BaseCommandTestSupport {
public static ResponseTest SINGLETON = new ResponseTest();
@Override
public Object createObject() throws Exception {
Response info = new Response();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
Response info = (Response) object;
info.setCorrelationId(1);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for Response
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ResponseTest extends BaseCommandTestSupport {
+
+ public static ResponseTest SINGLETON = new ResponseTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ Response info = new Response();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ Response info = (Response) object;
+
+ info.setCorrelationId(1);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SessionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SessionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SessionIdTest.java
index cb89b33..7b7afd6 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SessionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SessionIdTest.java
@@ -1 +1,55 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for SessionId
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class SessionIdTest extends DataFileGeneratorTestSupport {
public static SessionIdTest SINGLETON = new SessionIdTest();
@Override
public Object createObject() throws Exception {
SessionId info = new SessionId();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
SessionId info = (SessionId) object;
info.setConnectionId("ConnectionId:1");
info.setValue(1);
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for SessionId
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class SessionIdTest extends DataFileGeneratorTestSupport {
+
+ public static SessionIdTest SINGLETON = new SessionIdTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ SessionId info = new SessionId();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ SessionId info = (SessionId) object;
+
+ info.setConnectionId("ConnectionId:1");
+ info.setValue(1);
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SessionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SessionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SessionInfoTest.java
index 0752353..24ca75a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SessionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SessionInfoTest.java
@@ -1 +1,54 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for SessionInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class SessionInfoTest extends BaseCommandTestSupport {
public static SessionInfoTest SINGLETON = new SessionInfoTest();
@Override
public Object createObject() throws Exception {
SessionInfo info = new SessionInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
SessionInfo info = (SessionInfo) object;
info.setSessionId(createSessionId("SessionId:1"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for SessionInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class SessionInfoTest extends BaseCommandTestSupport {
+
+ public static SessionInfoTest SINGLETON = new SessionInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ SessionInfo info = new SessionInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ SessionInfo info = (SessionInfo) object;
+
+ info.setSessionId(createSessionId("SessionId:1"));
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ShutdownInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ShutdownInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ShutdownInfoTest.java
index 6aae928..03aa627 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ShutdownInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ShutdownInfoTest.java
@@ -1 +1,53 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for ShutdownInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class ShutdownInfoTest extends BaseCommandTestSupport {
public static ShutdownInfoTest SINGLETON = new ShutdownInfoTest();
@Override
public Object createObject() throws Exception {
ShutdownInfo info = new ShutdownInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ShutdownInfo info = (ShutdownInfo) object;
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for ShutdownInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class ShutdownInfoTest extends BaseCommandTestSupport {
+
+ public static ShutdownInfoTest SINGLETON = new ShutdownInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ ShutdownInfo info = new ShutdownInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ ShutdownInfo info = (ShutdownInfo) object;
+
+ }
+}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/96e99e41/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SubscriptionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SubscriptionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SubscriptionInfoTest.java
index 01a5386..d59ac7a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SubscriptionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SubscriptionInfoTest.java
@@ -1 +1,58 @@
-/**
*
* 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.openwire.v8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import org.apache.activemq.openwire.*;
import org.apache.ac
tivemq.command.*;
/**
* Test case for the OpenWire marshalling for SubscriptionInfo
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, please see the modify the groovy scripts in the
* under src/gram/script and then use maven openwire:generate to regenerate
* this file.
*/
public class SubscriptionInfoTest extends DataFileGeneratorTestSupport {
public static SubscriptionInfoTest SINGLETON = new SubscriptionInfoTest();
@Override
public Object createObject() throws Exception {
SubscriptionInfo info = new SubscriptionInfo();
populateObject(info);
return info;
}
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
SubscriptionInfo info = (SubscriptionInfo) object;
info.setClientId("ClientId:1");
info.setDestination(createActiveMQDestination("Destination:2"));
info.setSelector("Selector:3");
info.setSubcriptionName(
"SubcriptionName:4");
info.setSubscribedDestination(createActiveMQDestination("SubscribedDestination:5"));
}
}
\ No newline at end of file
+/**
+ *
+ * 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.openwire.v8;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import org.apache.activemq.openwire.*;
+import org.apache.activemq.command.*;
+
+/**
+ * Test case for the OpenWire marshalling for SubscriptionInfo
+ *
+ *
+ * NOTE!: This file is auto generated - do not modify!
+ * if you need to make a change, please see the modify the groovy scripts in the
+ * under src/gram/script and then use maven openwire:generate to regenerate
+ * this file.
+ */
+public class SubscriptionInfoTest extends DataFileGeneratorTestSupport {
+
+ public static SubscriptionInfoTest SINGLETON = new SubscriptionInfoTest();
+
+ @Override
+ public Object createObject() throws Exception {
+ SubscriptionInfo info = new SubscriptionInfo();
+ populateObject(info);
+ return info;
+ }
+
+ @Override
+ protected void populateObject(Object object) throws Exception {
+ super.populateObject(object);
+ SubscriptionInfo info = (SubscriptionInfo) object;
+
+ info.setClientId("ClientId:1");
+ info.setDestination(createActiveMQDestination("Destination:2"));
+ info.setSelector("Selector:3");
+ info.setSubcriptionName("SubcriptionName:4");
+ info.setSubscribedDestination(createActiveMQDestination("SubscribedDestination:5"));
+ }
+}
[03/32] activemq-artemis git commit: Remove unused imports
Posted by cl...@apache.org.
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerControlTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerControlTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerControlTest.java
index 6f018f8..a30bcf7 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerControlTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerControlTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerIdTest.java
index 53d75ef..c251676 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerInfoTest.java
index f846ba9..4eba574 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConsumerInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ControlCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ControlCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ControlCommandTest.java
index 116725e..f4de3a4 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ControlCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ControlCommandTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DataArrayResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DataArrayResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DataArrayResponseTest.java
index 93235f3..563d9ad 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DataArrayResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DataArrayResponseTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DataResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DataResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DataResponseTest.java
index f2d6a7a..ad1a568 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DataResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DataResponseTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DestinationInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DestinationInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DestinationInfoTest.java
index b188254..2ed960d 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DestinationInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DestinationInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DiscoveryEventTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DiscoveryEventTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DiscoveryEventTest.java
index b3198d2..cde3ecc 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DiscoveryEventTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/DiscoveryEventTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ExceptionResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ExceptionResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ExceptionResponseTest.java
index cc5fa32..12de46a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ExceptionResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ExceptionResponseTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/FlushCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/FlushCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/FlushCommandTest.java
index 77f5017..4bea5c4 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/FlushCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/FlushCommandTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/IntegerResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/IntegerResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/IntegerResponseTest.java
index 8c20c08..26be970 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/IntegerResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/IntegerResponseTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalQueueAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalQueueAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalQueueAckTest.java
index 5c1f730..5043d85 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalQueueAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalQueueAckTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTopicAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTopicAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTopicAckTest.java
index ed1eb30..4f52c93 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTopicAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTopicAckTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTraceTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTraceTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTraceTest.java
index babd014..7ad542b 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTraceTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTraceTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTransactionTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTransactionTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTransactionTest.java
index d36cf70..75d22b4 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTransactionTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/JournalTransactionTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/KeepAliveInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/KeepAliveInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/KeepAliveInfoTest.java
index 5847584..c232521 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/KeepAliveInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/KeepAliveInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/LastPartialCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/LastPartialCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/LastPartialCommandTest.java
index 7422835..73883de 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/LastPartialCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/LastPartialCommandTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/LocalTransactionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/LocalTransactionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/LocalTransactionIdTest.java
index 409c1a9..bc8e759 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/LocalTransactionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/LocalTransactionIdTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageAckTest.java
index 936d62b..b87b3e8 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageAckTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageDispatchNotificationTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageDispatchNotificationTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageDispatchNotificationTest.java
index 27867f9..008376a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageDispatchNotificationTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageDispatchNotificationTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageDispatchTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageDispatchTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageDispatchTest.java
index 1b15d1a..61c8719 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageDispatchTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageDispatchTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageIdTest.java
index c797697..59a7852 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessageIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessagePullTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessagePullTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessagePullTest.java
index 76e4e8f..fd5971b 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessagePullTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/MessagePullTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/NetworkBridgeFilterTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/NetworkBridgeFilterTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/NetworkBridgeFilterTest.java
index 3b93f61..feba0aa 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/NetworkBridgeFilterTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/NetworkBridgeFilterTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/PartialCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/PartialCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/PartialCommandTest.java
index 8a740fd..8c2d8ca 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/PartialCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/PartialCommandTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerAckTest.java
index 7537afd..549b187 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerAckTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerIdTest.java
index f04007f..bf6b002 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerInfoTest.java
index 05de5b8..3a25602 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ProducerInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/RemoveInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/RemoveInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/RemoveInfoTest.java
index 78eeb1b..036e20f 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/RemoveInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/RemoveInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/RemoveSubscriptionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/RemoveSubscriptionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/RemoveSubscriptionInfoTest.java
index 360f4d0..8deb495 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/RemoveSubscriptionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/RemoveSubscriptionInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ReplayCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ReplayCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ReplayCommandTest.java
index acc6348..4bafb9f 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ReplayCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ReplayCommandTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ResponseTest.java
index 9f2d4ac..db86fb5 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ResponseTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SessionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SessionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SessionIdTest.java
index d9882ac..862e06a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SessionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SessionIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SessionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SessionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SessionInfoTest.java
index b453a03..ca7f96d 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SessionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SessionInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ShutdownInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ShutdownInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ShutdownInfoTest.java
index 27a6fcf..36b78bb 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ShutdownInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ShutdownInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SubscriptionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SubscriptionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SubscriptionInfoTest.java
index a370120..a5378ec 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SubscriptionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/SubscriptionInfoTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/TransactionIdTestSupport.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/TransactionIdTestSupport.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/TransactionIdTestSupport.java
index a37b510..6aadb3d 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/TransactionIdTestSupport.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/TransactionIdTestSupport.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/TransactionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/TransactionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/TransactionInfoTest.java
index 0ea77d0..7d27137 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/TransactionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/TransactionInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/XATransactionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/XATransactionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/XATransactionIdTest.java
index daca16f..afbb0a2 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/XATransactionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/XATransactionIdTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/pool/JmsSendReceiveTwoConnectionsWithSenderUsingPoolTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/pool/JmsSendReceiveTwoConnectionsWithSenderUsingPoolTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/pool/JmsSendReceiveTwoConnectionsWithSenderUsingPoolTest.java
index 6d229c3..aded503 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/pool/JmsSendReceiveTwoConnectionsWithSenderUsingPoolTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/pool/JmsSendReceiveTwoConnectionsWithSenderUsingPoolTest.java
@@ -19,8 +19,6 @@ package org.apache.activemq.pool;
import javax.jms.Connection;
import org.apache.activemq.test.JmsTopicSendReceiveWithTwoConnectionsTest;
-import org.junit.Ignore;
-import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/LDAPAuthenticationTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/LDAPAuthenticationTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/LDAPAuthenticationTest.java
index 4dc8083..cbe3d7c 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/LDAPAuthenticationTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/LDAPAuthenticationTest.java
@@ -16,16 +16,9 @@
*/
package org.apache.activemq.security;
-import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.fail;
import javax.jms.Connection;
-import javax.jms.Destination;
-import javax.jms.JMSException;
-import javax.jms.Message;
-import javax.jms.MessageConsumer;
-import javax.jms.MessageProducer;
-import javax.jms.Queue;
import javax.jms.Session;
import org.apache.activemq.ActiveMQConnectionFactory;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/SimpleSecurityBrokerSystemTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/SimpleSecurityBrokerSystemTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/SimpleSecurityBrokerSystemTest.java
index b29bb21..6f02e3e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/SimpleSecurityBrokerSystemTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/security/SimpleSecurityBrokerSystemTest.java
@@ -40,7 +40,6 @@ import org.slf4j.LoggerFactory;
import javax.jms.*;
import javax.management.MBeanServer;
-import javax.management.MalformedObjectNameException;
import javax.management.ObjectName;
import javax.management.openmbean.CompositeData;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/test/JmsSendReceiveTestSupport.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/test/JmsSendReceiveTestSupport.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/test/JmsSendReceiveTestSupport.java
index 26b3700..a970190 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/test/JmsSendReceiveTestSupport.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/test/JmsSendReceiveTestSupport.java
@@ -35,7 +35,6 @@ import javax.jms.TextMessage;
import junit.framework.AssertionFailedError;
-import org.apache.activemq.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/test/TemporaryDestinationToFromNameTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/test/TemporaryDestinationToFromNameTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/test/TemporaryDestinationToFromNameTest.java
index c40b813..d44d2d9 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/test/TemporaryDestinationToFromNameTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/test/TemporaryDestinationToFromNameTest.java
@@ -21,7 +21,6 @@ import javax.jms.Session;
import javax.jms.Topic;
import org.apache.activemq.EmbeddedBrokerAndConnectionTestSupport;
-import org.apache.activemq.broker.jmx.PurgeTest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/TransportBrokerTestSupport.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/TransportBrokerTestSupport.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/TransportBrokerTestSupport.java
index 1c39972..380f485 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/TransportBrokerTestSupport.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/TransportBrokerTestSupport.java
@@ -25,7 +25,6 @@ import org.apache.activemq.broker.BrokerService;
import org.apache.activemq.broker.BrokerTest;
import org.apache.activemq.broker.StubConnection;
import org.apache.activemq.broker.TransportConnector;
-import org.apache.activemq.broker.artemiswrapper.ArtemisBrokerWrapper;
public abstract class TransportBrokerTestSupport extends BrokerTest {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverComplexClusterTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverComplexClusterTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverComplexClusterTest.java
index 6fb1c1b..53f0689 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverComplexClusterTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverComplexClusterTest.java
@@ -17,8 +17,6 @@
package org.apache.activemq.transport.failover;
import org.apache.activemq.broker.TransportConnector;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
/**
* Complex cluster test that will exercise the dynamic failover capabilities of
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/udp/UdpTransportUsingServerTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/udp/UdpTransportUsingServerTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/udp/UdpTransportUsingServerTest.java
index 348b986..fc387d9 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/udp/UdpTransportUsingServerTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/transport/udp/UdpTransportUsingServerTest.java
@@ -23,7 +23,6 @@ import org.apache.activemq.command.Response;
import org.apache.activemq.transport.Transport;
import org.apache.activemq.transport.TransportFactory;
import org.apache.activemq.transport.TransportServer;
-import org.apache.activemq.transport.tcp.WireformatNegociationTest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/CompositeConsumeTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/CompositeConsumeTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/CompositeConsumeTest.java
index 922bf70..c71f8df 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/CompositeConsumeTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/CompositeConsumeTest.java
@@ -21,7 +21,6 @@ import javax.jms.Message;
import org.apache.activemq.command.ActiveMQTopic;
import org.apache.activemq.test.JmsTopicSendReceiveWithTwoConnectionsTest;
-import org.apache.activemq.transport.udp.UdpTransportUsingServerTest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableConsumerCloseAndReconnectTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableConsumerCloseAndReconnectTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableConsumerCloseAndReconnectTest.java
index 060ce20..4e70ac0 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableConsumerCloseAndReconnectTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableConsumerCloseAndReconnectTest.java
@@ -30,13 +30,10 @@ import javax.jms.Topic;
import org.apache.activemq.ActiveMQConnectionFactory;
import org.apache.activemq.broker.BrokerService;
import org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter;
-import org.apache.activemq.store.kahadb.KahaDBStore;
import org.apache.activemq.test.TestSupport;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import java.io.IOException;
-
/**
*
*/
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubProcessMultiRestartTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubProcessMultiRestartTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubProcessMultiRestartTest.java
index 79d3eb0..4d401dc 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubProcessMultiRestartTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubProcessMultiRestartTest.java
@@ -39,7 +39,6 @@ import org.apache.activemq.broker.BrokerFactory;
import org.apache.activemq.broker.BrokerService;
import org.apache.activemq.command.ActiveMQTopic;
import org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter;
-import org.apache.activemq.transport.InactivityIOException;
import org.apache.activemq.util.Wait;
import org.junit.After;
import org.junit.Before;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOfflineTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOfflineTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOfflineTest.java
index ca197a4..2198f92 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOfflineTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOfflineTest.java
@@ -21,7 +21,6 @@ import org.apache.activemq.command.ActiveMQTopic;
import org.apache.activemq.command.MessageId;
import org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter;
import org.apache.activemq.store.kahadb.disk.page.PageFile;
-import org.junit.Ignore;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ExpiredMessagesTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ExpiredMessagesTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ExpiredMessagesTest.java
index 8e55aba..ed6fe0d 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ExpiredMessagesTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ExpiredMessagesTest.java
@@ -34,7 +34,6 @@ import org.slf4j.LoggerFactory;
import javax.jms.*;
-import java.io.File;
import java.util.concurrent.atomic.AtomicLong;
import static org.apache.activemq.TestSupport.getDestination;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupLateArrivalsTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupLateArrivalsTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupLateArrivalsTest.java
index af91f5a..a697a2d 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupLateArrivalsTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/MessageGroupLateArrivalsTest.java
@@ -32,7 +32,6 @@ import javax.jms.MessageProducer;
import javax.jms.Session;
import org.apache.activemq.ActiveMQConnectionFactory;
-import org.apache.activemq.JmsTestSupport;
import org.apache.activemq.broker.BrokerService;
import org.apache.activemq.broker.TransportConnector;
import org.apache.activemq.broker.region.policy.PolicyEntry;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ObjectMessageNotSerializableTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ObjectMessageNotSerializableTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ObjectMessageNotSerializableTest.java
index 67e9101..f77cb3e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ObjectMessageNotSerializableTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ObjectMessageNotSerializableTest.java
@@ -28,7 +28,6 @@ import javax.jms.Session;
import junit.framework.Test;
import org.apache.activemq.ActiveMQConnectionFactory;
-import org.apache.activemq.ActiveMQSession;
import org.apache.activemq.CombinationTestSupport;
import org.apache.activemq.broker.BrokerService;
import org.apache.activemq.command.ActiveMQDestination;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ReliableReconnectTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ReliableReconnectTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ReliableReconnectTest.java
index ff6c90e..1c56098 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ReliableReconnectTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/ReliableReconnectTest.java
@@ -34,8 +34,6 @@ import javax.jms.Topic;
import org.apache.activemq.ActiveMQConnectionFactory;
import org.apache.activemq.broker.BrokerFactory;
import org.apache.activemq.broker.BrokerService;
-import org.apache.activemq.leveldb.LevelDBStore;
-import org.apache.activemq.store.PersistenceAdapter;
import org.apache.activemq.util.IdGenerator;
public class ReliableReconnectTest extends org.apache.activemq.TestSupport {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/SingleBrokerVirtualDestinationsWithWildcardLevelDBTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/SingleBrokerVirtualDestinationsWithWildcardLevelDBTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/SingleBrokerVirtualDestinationsWithWildcardLevelDBTest.java
index d9df0c6..bb95cba 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/SingleBrokerVirtualDestinationsWithWildcardLevelDBTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/SingleBrokerVirtualDestinationsWithWildcardLevelDBTest.java
@@ -16,20 +16,10 @@
*/
package org.apache.activemq.usecases;
-import org.apache.activemq.JmsMultipleBrokersTestSupport;
import org.apache.activemq.broker.BrokerService;
-import org.apache.activemq.broker.region.DestinationInterceptor;
-import org.apache.activemq.broker.region.virtual.VirtualDestination;
-import org.apache.activemq.broker.region.virtual.VirtualDestinationInterceptor;
-import org.apache.activemq.broker.region.virtual.VirtualTopic;
import org.apache.activemq.leveldb.LevelDBStore;
-import org.apache.activemq.store.kahadb.KahaDBStore;
-import org.apache.activemq.util.MessageIdList;
-
-import javax.jms.MessageConsumer;
import java.io.File;
import java.io.IOException;
-import java.net.URI;
public class SingleBrokerVirtualDestinationsWithWildcardLevelDBTest extends SingleBrokerVirtualDestinationsWithWildcardTest {
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerTopicSendReceiveUsingTcpTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerTopicSendReceiveUsingTcpTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerTopicSendReceiveUsingTcpTest.java
index fb91684..b759624 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerTopicSendReceiveUsingTcpTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/usecases/TwoBrokerTopicSendReceiveUsingTcpTest.java
@@ -20,7 +20,6 @@ import javax.jms.JMSException;
import org.apache.activemq.ActiveMQConnectionFactory;
import org.apache.activemq.broker.BrokerService;
-import org.apache.activemq.broker.TransportConnector;
import org.apache.activemq.xbean.BrokerFactoryBean;
import org.springframework.core.io.ClassPathResource;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/xbean/ConnectorXBeanConfigTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/xbean/ConnectorXBeanConfigTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/xbean/ConnectorXBeanConfigTest.java
index caf29e2..0498166 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/xbean/ConnectorXBeanConfigTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/xbean/ConnectorXBeanConfigTest.java
@@ -32,7 +32,6 @@ import org.apache.activemq.command.ActiveMQDestination;
import org.apache.activemq.command.ActiveMQQueue;
import org.apache.activemq.command.ActiveMQTopic;
import org.apache.activemq.network.NetworkConnector;
-import org.apache.activemq.util.MessageIdList;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/interceptors/InterceptorTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/interceptors/InterceptorTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/interceptors/InterceptorTest.java
index a894acb..a7a1fd6 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/interceptors/InterceptorTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/interceptors/InterceptorTest.java
@@ -38,7 +38,6 @@ import org.apache.activemq.artemis.api.core.client.ClientSession;
import org.apache.activemq.artemis.api.core.client.ClientSessionFactory;
import org.apache.activemq.artemis.api.core.client.ServerLocator;
import org.apache.activemq.artemis.core.client.impl.ClientConsumerImpl;
-import org.apache.activemq.artemis.core.config.impl.SecurityConfiguration;
import org.apache.activemq.artemis.core.protocol.core.Packet;
import org.apache.activemq.artemis.core.protocol.core.ServerSessionPacketHandler;
import org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JMSConsumer3Test.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JMSConsumer3Test.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JMSConsumer3Test.java
index ae88bf8..2129899 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JMSConsumer3Test.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JMSConsumer3Test.java
@@ -24,7 +24,6 @@ import javax.jms.Message;
import javax.jms.MessageConsumer;
import javax.jms.Session;
-import org.apache.activemq.ActiveMQConnection;
import org.apache.activemq.command.ActiveMQDestination;
import org.apache.activemq.artemis.tests.integration.openwire.BasicOpenWireTest;
import org.junit.Test;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsTopicRedeliverTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsTopicRedeliverTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsTopicRedeliverTest.java
index cb018af..b5286e3 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsTopicRedeliverTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/openwire/amq/JmsTopicRedeliverTest.java
@@ -25,7 +25,6 @@ import javax.jms.Session;
import javax.jms.TextMessage;
import javax.jms.Topic;
-import org.apache.activemq.ActiveMQConnection;
import org.apache.activemq.command.ActiveMQDestination;
import org.apache.activemq.artemis.tests.integration.openwire.BasicOpenWireTest;
import org.junit.Before;
[04/32] activemq-artemis git commit: Remove unused imports
Posted by cl...@apache.org.
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/BrokerIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/BrokerIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/BrokerIdTest.java
index b79e26f..7b6ce30 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/BrokerIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/BrokerIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/BrokerInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/BrokerInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/BrokerInfoTest.java
index eab321a..61dea9a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/BrokerInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/BrokerInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionControlTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionControlTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionControlTest.java
index 71ba800..58bbb62 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionControlTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionControlTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionErrorTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionErrorTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionErrorTest.java
index aae568a..2136544 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionErrorTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionErrorTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionIdTest.java
index 9aee498..6f4b1a9 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionInfoTest.java
index 9711735..1cc482e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConnectionInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerControlTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerControlTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerControlTest.java
index b1288d6..9bdacba 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerControlTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerControlTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerIdTest.java
index fb558c2..8e19d2e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerInfoTest.java
index 148b468..6df8872 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ConsumerInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ControlCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ControlCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ControlCommandTest.java
index 5cf6a10..00271eb 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ControlCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ControlCommandTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DataArrayResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DataArrayResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DataArrayResponseTest.java
index ada16a6..85e7ff2 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DataArrayResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DataArrayResponseTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DataResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DataResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DataResponseTest.java
index dab6a0f..24a3854 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DataResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DataResponseTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DestinationInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DestinationInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DestinationInfoTest.java
index d0a7200..c690e46 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DestinationInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DestinationInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DiscoveryEventTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DiscoveryEventTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DiscoveryEventTest.java
index 3ea2c15..1d4db3d 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DiscoveryEventTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/DiscoveryEventTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ExceptionResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ExceptionResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ExceptionResponseTest.java
index c4860ea..3057312 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ExceptionResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ExceptionResponseTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/FlushCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/FlushCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/FlushCommandTest.java
index 8509e61..9f1ea9b 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/FlushCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/FlushCommandTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/IntegerResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/IntegerResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/IntegerResponseTest.java
index 806f9b1..c742a65 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/IntegerResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/IntegerResponseTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalQueueAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalQueueAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalQueueAckTest.java
index d9b138e..57ebdee 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalQueueAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalQueueAckTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTopicAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTopicAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTopicAckTest.java
index 50a4d85..3ccee12 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTopicAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTopicAckTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTraceTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTraceTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTraceTest.java
index dc8d141..6b08025 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTraceTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTraceTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTransactionTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTransactionTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTransactionTest.java
index 8e2a80b..9a9e2c2 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTransactionTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/JournalTransactionTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/KeepAliveInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/KeepAliveInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/KeepAliveInfoTest.java
index 505f731..006a6e9 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/KeepAliveInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/KeepAliveInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/LastPartialCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/LastPartialCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/LastPartialCommandTest.java
index f006bf5..537bf15 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/LastPartialCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/LastPartialCommandTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/LocalTransactionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/LocalTransactionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/LocalTransactionIdTest.java
index 96914d5..92d3b06 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/LocalTransactionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/LocalTransactionIdTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageAckTest.java
index 529f77d..462b9b7 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageAckTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageDispatchNotificationTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageDispatchNotificationTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageDispatchNotificationTest.java
index 14da029..31a5fbb 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageDispatchNotificationTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageDispatchNotificationTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageDispatchTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageDispatchTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageDispatchTest.java
index 5a77e34..ed5c8ba 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageDispatchTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageDispatchTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageIdTest.java
index 3602cf2..0c395bd 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessageIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessagePullTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessagePullTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessagePullTest.java
index 57eaf1e..27f239d 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessagePullTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/MessagePullTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/NetworkBridgeFilterTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/NetworkBridgeFilterTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/NetworkBridgeFilterTest.java
index 810c01c..c5f08f5 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/NetworkBridgeFilterTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/NetworkBridgeFilterTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/PartialCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/PartialCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/PartialCommandTest.java
index b55769d..93566e3 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/PartialCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/PartialCommandTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerAckTest.java
index 95a340d..da0565e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerAckTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerIdTest.java
index babada7..6b1d550 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerInfoTest.java
index ae8ed2e..a70e7b1 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ProducerInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/RemoveInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/RemoveInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/RemoveInfoTest.java
index da8213e..c21804e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/RemoveInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/RemoveInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/RemoveSubscriptionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/RemoveSubscriptionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/RemoveSubscriptionInfoTest.java
index 9953dc0..b8591f4 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/RemoveSubscriptionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/RemoveSubscriptionInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ReplayCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ReplayCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ReplayCommandTest.java
index 1b7f1c3..a32bbd6 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ReplayCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ReplayCommandTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ResponseTest.java
index 70b4a04..299e1c7 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ResponseTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SessionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SessionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SessionIdTest.java
index 538c65e..2040398 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SessionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SessionIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SessionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SessionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SessionInfoTest.java
index 5a1d605..06ba8f2 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SessionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SessionInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ShutdownInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ShutdownInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ShutdownInfoTest.java
index ca53bcc..ac4c08e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ShutdownInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/ShutdownInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SubscriptionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SubscriptionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SubscriptionInfoTest.java
index 727d9e3..a79b9dd 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SubscriptionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/SubscriptionInfoTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/TransactionIdTestSupport.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/TransactionIdTestSupport.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/TransactionIdTestSupport.java
index 485d3b6..db71b11 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/TransactionIdTestSupport.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/TransactionIdTestSupport.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/TransactionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/TransactionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/TransactionInfoTest.java
index b588d79..5f84e6f 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/TransactionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/TransactionInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/XATransactionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/XATransactionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/XATransactionIdTest.java
index 7b5590a..e8bc118 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/XATransactionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v7/XATransactionIdTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v7;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/BrokerIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/BrokerIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/BrokerIdTest.java
index ac69b7b..e4ee6c4 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/BrokerIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/BrokerIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/BrokerInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/BrokerInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/BrokerInfoTest.java
index 54c3790..34eb10a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/BrokerInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/BrokerInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionControlTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionControlTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionControlTest.java
index 872a0ec..533739b 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionControlTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionControlTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionErrorTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionErrorTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionErrorTest.java
index 8ba145c..12af9b5 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionErrorTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionErrorTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionIdTest.java
index 66d94c2..e52892f 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionInfoTest.java
index 9b368b4..f223056 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConnectionInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerControlTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerControlTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerControlTest.java
index c1114ab..24e1389 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerControlTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerControlTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerIdTest.java
index 835175f..dfe29ae 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerInfoTest.java
index a88bc5e..1a95baf 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ConsumerInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ControlCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ControlCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ControlCommandTest.java
index 564c57d..9b922ce 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ControlCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ControlCommandTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DataArrayResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DataArrayResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DataArrayResponseTest.java
index 0050f6d..0f2352b 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DataArrayResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DataArrayResponseTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DataResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DataResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DataResponseTest.java
index 98c0805..a8eef23 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DataResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DataResponseTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DestinationInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DestinationInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DestinationInfoTest.java
index b28280e..7aab005 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DestinationInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DestinationInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DiscoveryEventTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DiscoveryEventTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DiscoveryEventTest.java
index 8fecb6e..51fcf6c 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DiscoveryEventTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/DiscoveryEventTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ExceptionResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ExceptionResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ExceptionResponseTest.java
index c2463e1..66ab129 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ExceptionResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ExceptionResponseTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/FlushCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/FlushCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/FlushCommandTest.java
index 2b0a559..98cfa01 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/FlushCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/FlushCommandTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/IntegerResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/IntegerResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/IntegerResponseTest.java
index 27cf628..0c8399d 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/IntegerResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/IntegerResponseTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalQueueAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalQueueAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalQueueAckTest.java
index d1832dc..a961ec3 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalQueueAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalQueueAckTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTopicAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTopicAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTopicAckTest.java
index f8cc811..49d636d 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTopicAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTopicAckTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTraceTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTraceTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTraceTest.java
index 9574bcc..0841544 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTraceTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTraceTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTransactionTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTransactionTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTransactionTest.java
index 76eeb47..4c03e35 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTransactionTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/JournalTransactionTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/KeepAliveInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/KeepAliveInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/KeepAliveInfoTest.java
index 543f75c..a1d737d 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/KeepAliveInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/KeepAliveInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/LastPartialCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/LastPartialCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/LastPartialCommandTest.java
index a423fee..a0d9419 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/LastPartialCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/LastPartialCommandTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/LocalTransactionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/LocalTransactionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/LocalTransactionIdTest.java
index cb183f8..38bc7d9 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/LocalTransactionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/LocalTransactionIdTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageAckTest.java
index 8e5378e..70a3b57 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageAckTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageDispatchNotificationTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageDispatchNotificationTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageDispatchNotificationTest.java
index 8e447cc..5bca814 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageDispatchNotificationTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageDispatchNotificationTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageDispatchTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageDispatchTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageDispatchTest.java
index 0a386c3..5976190 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageDispatchTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageDispatchTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageIdTest.java
index 7b6d7e6..1b30a8e 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessageIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessagePullTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessagePullTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessagePullTest.java
index 8774ec0..f1e218f 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessagePullTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/MessagePullTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/NetworkBridgeFilterTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/NetworkBridgeFilterTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/NetworkBridgeFilterTest.java
index d226129..044327a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/NetworkBridgeFilterTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/NetworkBridgeFilterTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/PartialCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/PartialCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/PartialCommandTest.java
index bc6122c..6b3f509 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/PartialCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/PartialCommandTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerAckTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerAckTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerAckTest.java
index 1221d01..6a52af8 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerAckTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerAckTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerIdTest.java
index 194b137..8b34b98 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerInfoTest.java
index 80cf689..9f90930 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ProducerInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/RemoveInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/RemoveInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/RemoveInfoTest.java
index 71a4339..05e6514 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/RemoveInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/RemoveInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/RemoveSubscriptionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/RemoveSubscriptionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/RemoveSubscriptionInfoTest.java
index 1a6bd72..2ad747c 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/RemoveSubscriptionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/RemoveSubscriptionInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ReplayCommandTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ReplayCommandTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ReplayCommandTest.java
index 55060fe..2c88ead 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ReplayCommandTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ReplayCommandTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ResponseTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ResponseTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ResponseTest.java
index 96917ff..8b46dfe 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ResponseTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ResponseTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SessionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SessionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SessionIdTest.java
index 7b7afd6..fb3d2ee 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SessionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SessionIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SessionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SessionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SessionInfoTest.java
index 24ca75a..35a262a 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SessionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SessionInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ShutdownInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ShutdownInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ShutdownInfoTest.java
index 03aa627..65def5d 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ShutdownInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/ShutdownInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SubscriptionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SubscriptionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SubscriptionInfoTest.java
index d59ac7a..dcc5dbe 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SubscriptionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/SubscriptionInfoTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/TransactionIdTestSupport.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/TransactionIdTestSupport.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/TransactionIdTestSupport.java
index d74beb6..fce60e8 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/TransactionIdTestSupport.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/TransactionIdTestSupport.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/TransactionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/TransactionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/TransactionInfoTest.java
index a87b6b7..c61d5e3 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/TransactionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/TransactionInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/XATransactionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/XATransactionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/XATransactionIdTest.java
index 8e8405f..8f371dc 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/XATransactionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v8/XATransactionIdTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v8;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/BrokerIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/BrokerIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/BrokerIdTest.java
index 13c85e5..d727633 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/BrokerIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/BrokerIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/BrokerInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/BrokerInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/BrokerInfoTest.java
index a9e1d17..2a06143 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/BrokerInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/BrokerInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionControlTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionControlTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionControlTest.java
index 5c6b847..9a290aa 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionControlTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionControlTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionErrorTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionErrorTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionErrorTest.java
index d4337f7..665f64d 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionErrorTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionErrorTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionIdTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionIdTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionIdTest.java
index 7efbaf8..17f40a8 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionIdTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionIdTest.java
@@ -17,10 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6288f370/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionInfoTest.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionInfoTest.java b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionInfoTest.java
index 917b64a..75c9760 100644
--- a/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionInfoTest.java
+++ b/tests/activemq5-unit-tests/src/test/java/org/apache/activemq/openwire/v9/ConnectionInfoTest.java
@@ -17,11 +17,6 @@
*/
package org.apache.activemq.openwire.v9;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-
-import org.apache.activemq.openwire.*;
import org.apache.activemq.command.*;
/**