/**
* 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.storm.starter;
import org.apache.storm.starter.trident.TridentMapExample;
import org.apache.storm.starter.trident.TridentMinMaxOfDevicesTopology;
import org.apache.storm.starter.trident.TridentMinMaxOfVehiclesTopology;
import org.apache.storm.starter.trident.TridentReach;
import org.apache.storm.starter.trident.TridentWindowingInmemoryStoreTopology;
import org.apache.storm.starter.trident.TridentWordCount;
import org.junit.Test;
import com.alipay.dw.jstorm.example.batch.SimpleBatchTopology;
import com.alipay.dw.jstorm.example.performance.test.FastWordCountTopology;
import com.alipay.dw.jstorm.example.update.topology.TestBackpressure;
import com.alipay.dw.jstorm.example.window.RollingTopWords;
import com.alipay.dw.jstorm.example.window.SkewedRollingTopWords;
import com.alipay.dw.jstorm.example.window.SlidingTupleTsTopology;
import com.alipay.dw.jstorm.example.window.SlidingWindowTopology;
import com.alipay.dw.jstorm.transcation.TransactionalGlobalCount;
import com.alipay.dw.jstorm.transcation.TransactionalWords;
public class Test1 {
/**
* TestBackpressure was changed, is it OK to be tested now?
*
*/
//@Test
public void testUpdateConf() {
System.out.println("\n\n\n!!!!!!!!!!!!!!Begin !!!!!!!!!!!!!!\n\n\n"
+ Thread.currentThread().getStackTrace()[1].getMethodName());
TestBackpressure.test();
System.out.println("\n\n\n!!!!!!!!!!!!!!End !!!!!!!!!!!!!!\n\n\n"
+ Thread.currentThread().getStackTrace()[1].getMethodName());
}
/**
* what is the usage of the method commit and revert in both spout and bolt?
* i could not invoke any of them in any way.
*/
//@Test
public void testJStormBatch() {
System.out.println("\n\n\n!!!!!!!!!!!!!!Begin !!!!!!!!!!!!!!\n\n\n"
+ Thread.currentThread().getStackTrace()[1].getMethodName());
SimpleBatchTopology.test();
System.out.println("\n\n\n!!!!!!!!!!!!!!End !!!!!!!!!!!!!!\n\n\n"
+ Thread.currentThread().getStackTrace()[1].getMethodName());
}
//// @Test
//// public void testTaskInDifferentNode() throws Exception {
//// TaskInDifferentNodeTopology.test();
//// }
////
//// @Test
//// public void testUserDefinedHosts() {
//// UserDefinedHostsTopology.test();
//// }
////
//// @Test
//// public void testUserDefinedWorkerTopology() {
//// UserDefinedWorkerTopology.test();
//// }
/**
* has been replaced by a unit test
*/
//@Test
public void testInOrderDelivery() {
System.out.println("\n\n\n!!!!!!!!!!!!!!Begin !!!!!!!!!!!!!!\n\n\n"
+ Thread.currentThread().getStackTrace()[1].getMethodName());
InOrderDeliveryTest.test();
System.out.println("\n\n\n!!!!!!!!!!!!!!End !!!!!!!!!!!!!!\n\n\n"
+ Thread.currentThread().getStackTrace()[1].getMethodName());
}
}