[ https://issues.apache.org/jira/browse/BEAM-1240?focusedWorklogId=125431&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-125431 ]
ASF GitHub Bot logged work on BEAM-1240: ---------------------------------------- Author: ASF GitHub Bot Created on: 20/Jul/18 10:23 Start Date: 20/Jul/18 10:23 Worklog Time Spent: 10m Work Description: echauchot commented on a change in pull request #1729: [BEAM-1240] Create RabbitMqIO URL: https://github.com/apache/beam/pull/1729#discussion_r203788804 ########## File path: sdks/java/io/rabbitmq/src/test/java/org/apache/beam/sdk/io/rabbitmq/RabbitMqIOTest.java ########## @@ -0,0 +1,269 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.beam.sdk.io.rabbitmq; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertTrue; + +import com.rabbitmq.client.AMQP; +import com.rabbitmq.client.Channel; +import com.rabbitmq.client.Connection; +import com.rabbitmq.client.ConnectionFactory; +import com.rabbitmq.client.Consumer; +import com.rabbitmq.client.DefaultConsumer; +import com.rabbitmq.client.Envelope; +import java.io.IOException; +import java.io.Serializable; +import java.net.ServerSocket; +import java.nio.charset.StandardCharsets; +import java.util.ArrayList; +import java.util.List; +import java.util.stream.Collectors; +import java.util.stream.IntStream; +import org.apache.beam.sdk.testing.PAssert; +import org.apache.beam.sdk.testing.TestPipeline; +import org.apache.beam.sdk.transforms.Create; +import org.apache.beam.sdk.transforms.DoFn; +import org.apache.beam.sdk.transforms.ParDo; +import org.apache.beam.sdk.values.PCollection; +import org.apache.qpid.server.Broker; Review comment: Glad to see no mock here ! Is org.apache.qpid.server.Broker representative of RabbitMQ broker as this PR targets RabbitMQ and not generic AMQP broker ? Is there any RabbitMQ embedded broker usable for tests ? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 125431) Time Spent: 9h 50m (was: 9h 40m) > Create RabbitMqIO > ----------------- > > Key: BEAM-1240 > URL: https://issues.apache.org/jira/browse/BEAM-1240 > Project: Beam > Issue Type: New Feature > Components: io-ideas > Reporter: Jean-Baptiste Onofré > Assignee: Jean-Baptiste Onofré > Priority: Major > Fix For: 2.6.0 > > Time Spent: 9h 50m > Remaining Estimate: 0h > -- This message was sent by Atlassian JIRA (v7.6.3#76005)