Skip to content

Commit 54f110d

Browse files
authored
Test and Client fixes (#385)
* Resolving Issue #384 - Incorrect Log message * Issue #384 - Mapping correct Logcat Message * Updating Test Properties to point at local broker * Issue #383 - Delete MqttDefaultFilePersistence directory on clear() * Issue #356 - Fixed issue where hostnames containing underscores would not be parsed correctly by Java * Adding Coveralls integration * Issue #353 - Adding missing EDL reference to copyright statements * Updating Java Version for Mqtt V3 client eclipse project Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
1 parent fe8be8e commit 54f110d

12 files changed

Lines changed: 820 additions & 537 deletions

File tree

org.eclipse.paho.client.eclipse.view/src/org/eclipse/paho/client/eclipse/view/Activator.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
/*
1+
/*******************************************************************************
22
* Copyright (c) 2012 Eurotech Inc. All rights reserved.
33
*
44
* All rights reserved. This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License v1.0
6-
* which accompanies this distribution, and is available at
7-
* http://www.eclipse.org/legal/epl-v10.html
6+
* and Eclipse Distribution License v1.0 which accompany this distribution.
7+
*
8+
* The Eclipse Public License is available at
9+
* http://www.eclipse.org/legal/epl-v10.html
10+
* and the Eclipse Distribution License is available at
11+
* http://www.eclipse.org/org/documents/edl-v10.php.
812
*
913
* Contributors:
1014
* Chad Kienle

org.eclipse.paho.client.eclipse.view/src/org/eclipse/paho/client/eclipse/view/ClientConstants.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
/*
1+
/*******************************************************************************
22
* Copyright (c) 2012 Eurotech Inc. All rights reserved.
33
*
44
* All rights reserved. This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License v1.0
6-
* which accompanies this distribution, and is available at
7-
* http://www.eclipse.org/legal/epl-v10.html
6+
* and Eclipse Distribution License v1.0 which accompany this distribution.
7+
*
8+
* The Eclipse Public License is available at
9+
* http://www.eclipse.org/legal/epl-v10.html
10+
* and the Eclipse Distribution License is available at
11+
* http://www.eclipse.org/org/documents/edl-v10.php.
812
*
913
* Contributors:
1014
* Chad Kienle

org.eclipse.paho.client.eclipse.view/src/org/eclipse/paho/client/eclipse/view/MqttClientView.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
/*
1+
/*******************************************************************************
22
* Copyright (c) 2012 Eurotech Inc. All rights reserved.
33
*
44
* All rights reserved. This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License v1.0
6-
* which accompanies this distribution, and is available at
7-
* http://www.eclipse.org/legal/epl-v10.html
6+
* and Eclipse Distribution License v1.0 which accompany this distribution.
7+
*
8+
* The Eclipse Public License is available at
9+
* http://www.eclipse.org/legal/epl-v10.html
10+
* and the Eclipse Distribution License is available at
11+
* http://www.eclipse.org/org/documents/edl-v10.php.
812
*
913
* Contributors:
1014
* Chad Kienle

org.eclipse.paho.client.mqttv3.test/src/test/java/org/eclipse/paho/client/mqttv3/test/Issue370Test.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
/*******************************************************************************
22
* Copyright (c) 2017 Red Hat Inc.
3+
*
34
* All rights reserved. This program and the accompanying materials
45
* are made available under the terms of the Eclipse Public License v1.0
5-
* which accompanies this distribution, and is available at
6-
* http://www.eclipse.org/legal/epl-v10.html
6+
* and Eclipse Distribution License v1.0 which accompany this distribution.
7+
*
8+
* The Eclipse Public License is available at
9+
* http://www.eclipse.org/legal/epl-v10.html
10+
* and the Eclipse Distribution License is available at
11+
* http://www.eclipse.org/org/documents/edl-v10.php.
712
*
813
* Contributors:
914
* Red Hat Inc - initial API and implementation

org.eclipse.paho.client.mqttv3.test/src/test/java/org/eclipse/paho/client/mqttv3/test/SSLSessionResumptionTest.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
/**
22
* Copyright (c) 2011, 2014 Eurotech and/or its affiliates
33
*
4-
* All rights reserved. This program and the accompanying materials
5-
* are made available under the terms of the Eclipse Public License v1.0
6-
* which accompanies this distribution, and is available at
7-
* http://www.eclipse.org/legal/epl-v10.html
4+
* All rights reserved. This program and the accompanying materials
5+
* are made available under the terms of the Eclipse Public License v1.0
6+
* and Eclipse Distribution License v1.0 which accompany this distribution.
7+
*
8+
* The Eclipse Public License is available at
9+
* http://www.eclipse.org/legal/epl-v10.html
10+
* and the Eclipse Distribution License is available at
11+
* http://www.eclipse.org/org/documents/edl-v10.php.
812
*
913
* Contributors:
1014
* Cristiano De Alti - Eurotech (Initial contribution)

org.eclipse.paho.client.mqttv3.test/src/test/resources/test.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# This is the server URI which will be set in the constructor of an MQTT Client
22
# The default is "tcp://<localhost>:1883" with <localhost> expressed in IPV4 dotted decimal notation
3-
SERVER_URI=tcp://iot.eclipse.org:1883
3+
SERVER_URI=tcp://localhost:1883
44
CLIENT_KEY_STORE=clientkeystore.jks
55
CLIENT_KEY_STORE_PASSWORD=password
66
CLIENT_TRUST_STORE=clientkeystore.jks
77
SERVER_SSL_PORT=18884
8-
SERVER_WEBSOCKET_URI=wss://iot.eclipse.org:443
9-
SERVER_SSL_PORT=8883
8+
SERVER_WEBSOCKET_URI=ws://localhost:8080
9+
1010

1111
# The list of server URIs which may be set in the MQTT ConnectOptions for an HA testcase.
1212
# There is no default value
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
eclipse.preferences.version=1
22
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3-
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2
3+
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
4+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
45
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
5-
org.eclipse.jdt.core.compiler.compliance=1.4
6+
org.eclipse.jdt.core.compiler.compliance=1.7
67
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
78
org.eclipse.jdt.core.compiler.debug.localVariable=generate
89
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
9-
org.eclipse.jdt.core.compiler.problem.assertIdentifier=warning
10-
org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning
10+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
11+
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
1112
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
12-
org.eclipse.jdt.core.compiler.source=1.3
13+
org.eclipse.jdt.core.compiler.source=1.7

org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/IMqttToken.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
/*
1+
/**************************************************************************
22
* Copyright (c) 2009, 2012 IBM Corp.
33
*
44
* All rights reserved. This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License v1.0
6-
* which accompanies this distribution, and is available at
7-
* http://www.eclipse.org/legal/epl-v10.html
6+
* and Eclipse Distribution License v1.0 which accompany this distribution.
7+
*
8+
* The Eclipse Public License is available at
9+
* http://www.eclipse.org/legal/epl-v10.html
10+
* and the Eclipse Distribution License is available at
11+
* http://www.eclipse.org/org/documents/edl-v10.php.
812
*
913
* Contributors:
1014
* Dave Locke - initial API and implementation and/or initial documentation

0 commit comments

Comments
 (0)