+/**\r
+ * ============LICENSE_START====================================================\r
+ * org.onap.aaf\r
+ * ===========================================================================\r
+ * Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.\r
+ *\r
+ * Modifications Copyright (C) 2019 IBM.\r
+ * ===========================================================================\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ * \r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ * ============LICENSE_END====================================================\r
+ *\r
+ */\r
+\r
package org.onap.ccsdk.sli.adaptors.messagerouter.publisher.client.impl;\r
\r
import org.onap.ccsdk.sli.adaptors.messagerouter.publisher.api.PublisherApi;\r
\r
public void init() {\r
for (int i = 0; i < 5; i++) {\r
- String body = "{\"hello\":\"world " + String.valueOf(Math.random()) + "\"}";\r
+ String body = "{\"hello\":\"world " + Math.random() + "\"}";\r
logger.error("Loop iteration " + i + " sending body " + body + " to the topic " + topic);\r
Boolean result = publisher.publish(topic, body);\r
logger.error("Loop iteration " + i + " returned the boolean value " + result);\r