// Path: src/main/java/storm/benchmark/tools/producer/kafka/FileReadKafkaProducer.java
// static class FileReadSpout extends KafkaProducerSpout {
// 
//   private static final long serialVersionUID = -7503987913879480348L;
//   private final FileReader reader;
// 
//   public FileReadSpout(String file) {
//     this.reader = new FileReader(file);
//   }
// 
//   public FileReadSpout(FileReader reader) {
//     this.reader = reader;
//   }
// 
//   @Override
//   public void nextTuple() {
//     nextMessage(reader.nextLine());
//   }
// }


import static storm.benchmark.tools.producer.kafka.FileReadKafkaProducer.FileReadSpout;
import backtype.storm.Config;
import backtype.storm.spout.SpoutOutputCollector;
import backtype.storm.task.TopologyContext;
import backtype.storm.tuple.Values;
import org.testng.annotations.Test;
import storm.benchmark.tools.FileReader;
import java.util.HashMap;
import java.util.Map;
import static org.fest.assertions.api.Assertions.assertThat;
import static org.mockito.Mockito.*;
/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License
 */

package storm.benchmark.tools.producer.kafka;




public class FileReadKafkaProducerTest {

  private static final Map ANY_CONF = new HashMap();

// Path: src/main/java/storm/benchmark/tools/producer/kafka/FileReadKafkaProducer.java
// static class FileReadSpout extends KafkaProducerSpout {
// 
//   private static final long serialVersionUID = -7503987913879480348L;
//   private final FileReader reader;
// 
//   public FileReadSpout(String file) {
//     this.reader = new FileReader(file);
//   }
// 
//   public FileReadSpout(FileReader reader) {
//     this.reader = reader;
//   }
// 
//   @Override
//   public void nextTuple() {
//     nextMessage(reader.nextLine());
//   }
// }


// Path: src/test/java/storm/benchmark/tools/producer/kafka/FileReadKafkaProducerTest.java
import static storm.benchmark.tools.producer.kafka.FileReadKafkaProducer.FileReadSpout;
import backtype.storm.Config;
import backtype.storm.spout.SpoutOutputCollector;
import backtype.storm.task.TopologyContext;
import backtype.storm.tuple.Values;
import org.testng.annotations.Test;
import storm.benchmark.tools.FileReader;
import java.util.HashMap;
import java.util.Map;
import static org.fest.assertions.api.Assertions.assertThat;
import static org.mockito.Mockito.*;

/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License
 */

package storm.benchmark.tools.producer.kafka;




public class FileReadKafkaProducerTest {

  private static final Map ANY_CONF = new HashMap();

  @Test