// Path: src/main/java/storm/benchmark/benchmarks/common/StormBenchmark.java
// public abstract class StormBenchmark implements IBenchmark {
// 
//   private static final Logger LOG = Logger.getLogger(StormBenchmark.class);
//   public static final String DEFAULT_TOPOLOGY_NAME = "benchmark";
// 
//   @Override
//   public IMetricsCollector getMetricsCollector(Config config, StormTopology topology) {
// 
//     Set<MetricsItem> items = Sets.newHashSet(
//             MetricsItem.SUPERVISOR_STATS,
//             MetricsItem.TOPOLOGY_STATS,
//             MetricsItem.THROUGHPUT,
//             MetricsItem.SPOUT_THROUGHPUT,
//             MetricsItem.SPOUT_LATENCY
//             );
//     return new BasicMetricsCollector(config, topology, items);
//   }
// 
// 
// }


import backtype.storm.Config;
import backtype.storm.generated.StormTopology;
import backtype.storm.utils.Utils;
import org.testng.annotations.Test;
import storm.benchmark.benchmarks.common.StormBenchmark;
import storm.benchmark.util.TestUtils;
import static org.fest.assertions.api.Assertions.assertThat;
/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES 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.benchmarks;



public class GrepTest {

  @Test
  public void componentParallelismCouldBeSetThroughConfig() {
// Path: src/main/java/storm/benchmark/benchmarks/common/StormBenchmark.java
// public abstract class StormBenchmark implements IBenchmark {
// 
//   private static final Logger LOG = Logger.getLogger(StormBenchmark.class);
//   public static final String DEFAULT_TOPOLOGY_NAME = "benchmark";
// 
//   @Override
//   public IMetricsCollector getMetricsCollector(Config config, StormTopology topology) {
// 
//     Set<MetricsItem> items = Sets.newHashSet(
//             MetricsItem.SUPERVISOR_STATS,
//             MetricsItem.TOPOLOGY_STATS,
//             MetricsItem.THROUGHPUT,
//             MetricsItem.SPOUT_THROUGHPUT,
//             MetricsItem.SPOUT_LATENCY
//             );
//     return new BasicMetricsCollector(config, topology, items);
//   }
// 
// 
// }


// Path: src/test/java/storm/benchmark/benchmarks/GrepTest.java
import backtype.storm.Config;
import backtype.storm.generated.StormTopology;
import backtype.storm.utils.Utils;
import org.testng.annotations.Test;
import storm.benchmark.benchmarks.common.StormBenchmark;
import storm.benchmark.util.TestUtils;
import static org.fest.assertions.api.Assertions.assertThat;

/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES 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.benchmarks;



public class GrepTest {

  @Test
  public void componentParallelismCouldBeSetThroughConfig() {
    StormBenchmark benchmark = new Grep();