blob: 8be4e51c75a61aef18012999106f0d1acbf0ec21 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Testing (Storm 2.4.0 API)</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Testing (Storm 2.4.0 API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":41,"i6":41,"i7":9,"i8":41,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":9,"i25":41,"i26":41,"i27":41,"i28":41,"i29":41,"i30":41,"i31":41};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Testing.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../org/apache/storm/StormTimer.StormTimerTask.html" title="class in org.apache.storm"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../org/apache/storm/Testing.CapturedTopology.html" title="class in org.apache.storm"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?org/apache/storm/Testing.html" target="_top">Frames</a></li>
<li><a href="Testing.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.storm</div>
<h2 title="Class Testing" class="title">Class Testing</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.apache.storm.Testing</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="typeNameLabel">Testing</span>
extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
<div class="block"><p>A utility that helps with testing topologies, Bolts and Spouts.</p></div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.CapturedTopology.html" title="class in org.apache.storm">Testing.CapturedTopology</a>&lt;<a href="../../../org/apache/storm/Testing.CapturedTopology.html" title="type parameter in Testing.CapturedTopology">T</a>&gt;</span></code>
<div class="block">A topology that has all messages captured and can be read later on.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static interface&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.Condition.html" title="interface in org.apache.storm">Testing.Condition</a></span></code>
<div class="block">Simply produces a boolean to see if a specific state is true or false.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.html#TEST_TIMEOUT_MS">TEST_TIMEOUT_MS</a></span></code>
<div class="block">The default amount of wall time should be spent waiting for specific conditions to happen.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.html#Testing--">Testing</a></span>()</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.html#advanceClusterTime-org.apache.storm.ILocalCluster-java.lang.Integer-">advanceClusterTime</a></span>(<a href="../../../org/apache/storm/ILocalCluster.html" title="interface in org.apache.storm">ILocalCluster</a>&nbsp;cluster,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>&nbsp;secs)</code>
<div class="block">Simulated time wait for a cluster.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.html#advanceClusterTime-org.apache.storm.ILocalCluster-java.lang.Integer-java.lang.Integer-">advanceClusterTime</a></span>(<a href="../../../org/apache/storm/ILocalCluster.html" title="interface in org.apache.storm">ILocalCluster</a>&nbsp;cluster,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>&nbsp;secs,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>&nbsp;step)</code>
<div class="block">Simulated time wait for a cluster.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>static <a href="../../../org/apache/storm/Testing.CapturedTopology.html" title="class in org.apache.storm">Testing.CapturedTopology</a>&lt;<a href="../../../org/apache/storm/generated/StormTopology.html" title="class in org.apache.storm.generated">StormTopology</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.html#captureTopology-org.apache.storm.generated.StormTopology-">captureTopology</a></span>(<a href="../../../org/apache/storm/generated/StormTopology.html" title="class in org.apache.storm.generated">StormTopology</a>&nbsp;topology)</code>
<div class="block">Rewrites a topology so that all the tuples flowing through it are captured.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../org/apache/storm/testing/FixedTuple.html" title="class in org.apache.storm.testing">FixedTuple</a>&gt;&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.html#completeTopology-org.apache.storm.ILocalCluster-org.apache.storm.generated.StormTopology-">completeTopology</a></span>(<a href="../../../org/apache/storm/ILocalCluster.html" title="interface in org.apache.storm">ILocalCluster</a>&nbsp;cluster,
<a href="../../../org/apache/storm/generated/StormTopology.html" title="class in org.apache.storm.generated">StormTopology</a>&nbsp;topology)</code>
<div class="block">Run a topology to completion capturing all of the messages that are emitted.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../org/apache/storm/testing/FixedTuple.html" title="class in org.apache.storm.testing">FixedTuple</a>&gt;&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.html#completeTopology-org.apache.storm.ILocalCluster-org.apache.storm.generated.StormTopology-org.apache.storm.testing.CompleteTopologyParam-">completeTopology</a></span>(<a href="../../../org/apache/storm/ILocalCluster.html" title="interface in org.apache.storm">ILocalCluster</a>&nbsp;cluster,
<a href="../../../org/apache/storm/generated/StormTopology.html" title="class in org.apache.storm.generated">StormTopology</a>&nbsp;topology,
<a href="../../../org/apache/storm/testing/CompleteTopologyParam.html" title="class in org.apache.storm.testing">CompleteTopologyParam</a>&nbsp;param)</code>
<div class="block">Run a topology to completion capturing all of the messages that are emitted.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>static <a href="../../../org/apache/storm/ILocalCluster.html" title="interface in org.apache.storm">ILocalCluster</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.html#getLocalCluster-java.util.Map-">getLocalCluster</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;&nbsp;clusterConf)</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">use <code>
try (LocalCluster cluster = new LocalCluster.Builder()....build()) {
...
}
</code></span></div>
</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.html#globalAmt-java.lang.String-java.lang.String-">globalAmt</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;id,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;key)</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.html#isEvery-java.util.Collection-java.util.function.Predicate-">isEvery</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;T&gt;&nbsp;data,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Predicate.html?is-external=true" title="class or interface in java.util.function">Predicate</a>&lt;T&gt;&nbsp;pred)</code>
<div class="block">Convenience method for data.stream.allMatch(pred).</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>static <a href="../../../org/apache/storm/testing/TrackedTopology.html" title="class in org.apache.storm.testing">TrackedTopology</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.html#mkTrackedTopology-org.apache.storm.ILocalCluster-org.apache.storm.generated.StormTopology-">mkTrackedTopology</a></span>(<a href="../../../org/apache/storm/ILocalCluster.html" title="interface in org.apache.storm">ILocalCluster</a>&nbsp;cluster,
<a href="../../../org/apache/storm/generated/StormTopology.html" title="class in org.apache.storm.generated">StormTopology</a>&nbsp;topology)</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">use <a href="../../../org/apache/storm/testing/TrackedTopology.html" title="class in org.apache.storm.testing"><code>TrackedTopology</code></a> directly.</span></div>
</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;T,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.html#multiset-java.util.Collection-">multiset</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;T&gt;&nbsp;c)</code>
<div class="block">Count how many times each element appears in the Collection.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.html#multiseteq-java.util.Collection-java.util.Collection-">multiseteq</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;T&gt;&nbsp;a,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;T&gt;&nbsp;b)</code>
<div class="block">Check if two collections are equivalent ignoring the order of elements.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.html#readTuples-java.util.Map-java.lang.String-">readTuples</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../org/apache/storm/testing/FixedTuple.html" title="class in org.apache.storm.testing">FixedTuple</a>&gt;&gt;&nbsp;results,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;componentId)</code>
<div class="block">Get all of the tuples from a given component on the default stream.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.html#readTuples-java.util.Map-java.lang.String-java.lang.String-">readTuples</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../org/apache/storm/testing/FixedTuple.html" title="class in org.apache.storm.testing">FixedTuple</a>&gt;&gt;&nbsp;results,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;componentId,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;streamId)</code>
<div class="block">Get all of the tuples from a given component on a given stream.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.html#simulateWait-org.apache.storm.ILocalCluster-">simulateWait</a></span>(<a href="../../../org/apache/storm/ILocalCluster.html" title="interface in org.apache.storm">ILocalCluster</a>&nbsp;cluster)</code>
<div class="block">If using simulated time simulate waiting for 10 seconds.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>static <a href="../../../org/apache/storm/tuple/Tuple.html" title="interface in org.apache.storm.tuple">Tuple</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.html#testTuple-java.util.List-">testTuple</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;&nbsp;values)</code>
<div class="block">Create a <a href="../../../org/apache/storm/tuple/Tuple.html" title="interface in org.apache.storm.tuple"><code>Tuple</code></a> for use with testing.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>static <a href="../../../org/apache/storm/tuple/Tuple.html" title="interface in org.apache.storm.tuple">Tuple</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.html#testTuple-java.util.List-org.apache.storm.testing.MkTupleParam-">testTuple</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;&nbsp;values,
<a href="../../../org/apache/storm/testing/MkTupleParam.html" title="class in org.apache.storm.testing">MkTupleParam</a>&nbsp;param)</code>
<div class="block">Create a <a href="../../../org/apache/storm/tuple/Tuple.html" title="interface in org.apache.storm.tuple"><code>Tuple</code></a> for use with testing.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>static <a href="../../../org/apache/storm/Testing.CapturedTopology.html" title="class in org.apache.storm">Testing.CapturedTopology</a>&lt;<a href="../../../org/apache/storm/testing/TrackedTopology.html" title="class in org.apache.storm.testing">TrackedTopology</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.html#trackAndCaptureTopology-org.apache.storm.ILocalCluster-org.apache.storm.generated.StormTopology-">trackAndCaptureTopology</a></span>(<a href="../../../org/apache/storm/ILocalCluster.html" title="interface in org.apache.storm">ILocalCluster</a>&nbsp;cluster,
<a href="../../../org/apache/storm/generated/StormTopology.html" title="class in org.apache.storm.generated">StormTopology</a>&nbsp;topology)</code>
<div class="block">Track and capture a topology.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.html#trackedWait-org.apache.storm.Testing.CapturedTopology-">trackedWait</a></span>(<a href="../../../org/apache/storm/Testing.CapturedTopology.html" title="class in org.apache.storm">Testing.CapturedTopology</a>&lt;<a href="../../../org/apache/storm/testing/TrackedTopology.html" title="class in org.apache.storm.testing">TrackedTopology</a>&gt;&nbsp;topo)</code>
<div class="block">Simulated time wait for a tracked topology.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.html#trackedWait-org.apache.storm.Testing.CapturedTopology-java.lang.Integer-">trackedWait</a></span>(<a href="../../../org/apache/storm/Testing.CapturedTopology.html" title="class in org.apache.storm">Testing.CapturedTopology</a>&lt;<a href="../../../org/apache/storm/testing/TrackedTopology.html" title="class in org.apache.storm.testing">TrackedTopology</a>&gt;&nbsp;topo,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>&nbsp;amt)</code>
<div class="block">Simulated time wait for a tracked topology.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.html#trackedWait-org.apache.storm.Testing.CapturedTopology-java.lang.Integer-java.lang.Integer-">trackedWait</a></span>(<a href="../../../org/apache/storm/Testing.CapturedTopology.html" title="class in org.apache.storm">Testing.CapturedTopology</a>&lt;<a href="../../../org/apache/storm/testing/TrackedTopology.html" title="class in org.apache.storm.testing">TrackedTopology</a>&gt;&nbsp;topo,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>&nbsp;amt,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>&nbsp;timeoutMs)</code>
<div class="block">Simulated time wait for a tracked topology.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.html#trackedWait-org.apache.storm.testing.TrackedTopology-">trackedWait</a></span>(<a href="../../../org/apache/storm/testing/TrackedTopology.html" title="class in org.apache.storm.testing">TrackedTopology</a>&nbsp;topo)</code>
<div class="block">Simulated time wait for a tracked topology.</div>
</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.html#trackedWait-org.apache.storm.testing.TrackedTopology-java.lang.Integer-">trackedWait</a></span>(<a href="../../../org/apache/storm/testing/TrackedTopology.html" title="class in org.apache.storm.testing">TrackedTopology</a>&nbsp;topo,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>&nbsp;amt)</code>
<div class="block">Simulated time wait for a tracked topology.</div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.html#trackedWait-org.apache.storm.testing.TrackedTopology-java.lang.Integer-java.lang.Integer-">trackedWait</a></span>(<a href="../../../org/apache/storm/testing/TrackedTopology.html" title="class in org.apache.storm.testing">TrackedTopology</a>&nbsp;topo,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>&nbsp;amt,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>&nbsp;timeoutMs)</code>
<div class="block">Simulated time wait for a tracked topology.</div>
</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.html#whileTimeout-long-org.apache.storm.Testing.Condition-java.lang.Runnable-">whileTimeout</a></span>(long&nbsp;timeoutMs,
<a href="../../../org/apache/storm/Testing.Condition.html" title="interface in org.apache.storm">Testing.Condition</a>&nbsp;condition,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Runnable.html?is-external=true" title="class or interface in java.lang">Runnable</a>&nbsp;body)</code>
<div class="block">Continue to execute body repeatedly until condition is true or TEST_TIMEOUT_MS has passed.</div>
</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.html#whileTimeout-org.apache.storm.Testing.Condition-java.lang.Runnable-">whileTimeout</a></span>(<a href="../../../org/apache/storm/Testing.Condition.html" title="interface in org.apache.storm">Testing.Condition</a>&nbsp;condition,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Runnable.html?is-external=true" title="class or interface in java.lang">Runnable</a>&nbsp;body)</code>
<div class="block">Continue to execute body repeatedly until condition is true or TEST_TIMEOUT_MS has passed.</div>
</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.html#withLocalCluster-org.apache.storm.testing.MkClusterParam-org.apache.storm.testing.TestJob-">withLocalCluster</a></span>(<a href="../../../org/apache/storm/testing/MkClusterParam.html" title="class in org.apache.storm.testing">MkClusterParam</a>&nbsp;param,
<a href="../../../org/apache/storm/testing/TestJob.html" title="interface in org.apache.storm.testing">TestJob</a>&nbsp;code)</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">use <code>
try (LocalCluster cluster = new LocalCluster.Builder()....build()) {
...
}
</code></span></div>
</div>
</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.html#withLocalCluster-org.apache.storm.testing.TestJob-">withLocalCluster</a></span>(<a href="../../../org/apache/storm/testing/TestJob.html" title="interface in org.apache.storm.testing">TestJob</a>&nbsp;code)</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">use <code>
try (LocalCluster cluster = new LocalCluster()) {
...
}
</code></span></div>
</div>
</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.html#withSimulatedTime-java.lang.Runnable-">withSimulatedTime</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Runnable.html?is-external=true" title="class or interface in java.lang">Runnable</a>&nbsp;code)</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">use <code>
try (Time.SimulatedTime time = new Time.SimulatedTime()) {
...
}
</code></span></div>
</div>
</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.html#withSimulatedTimeLocalCluster-org.apache.storm.testing.MkClusterParam-org.apache.storm.testing.TestJob-">withSimulatedTimeLocalCluster</a></span>(<a href="../../../org/apache/storm/testing/MkClusterParam.html" title="class in org.apache.storm.testing">MkClusterParam</a>&nbsp;param,
<a href="../../../org/apache/storm/testing/TestJob.html" title="interface in org.apache.storm.testing">TestJob</a>&nbsp;code)</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">use <code>
try (LocalCluster cluster = new LocalCluster.Builder().withSimulatedTime()....build()) {
...
}
</code></span></div>
</div>
</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.html#withSimulatedTimeLocalCluster-org.apache.storm.testing.TestJob-">withSimulatedTimeLocalCluster</a></span>(<a href="../../../org/apache/storm/testing/TestJob.html" title="interface in org.apache.storm.testing">TestJob</a>&nbsp;code)</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">use <code>
try (LocalCluster cluster = new LocalCluster.Builder().withSimulatedTime().build()) {
...
}
</code></span></div>
</div>
</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.html#withTrackedCluster-org.apache.storm.testing.MkClusterParam-org.apache.storm.testing.TestJob-">withTrackedCluster</a></span>(<a href="../../../org/apache/storm/testing/MkClusterParam.html" title="class in org.apache.storm.testing">MkClusterParam</a>&nbsp;param,
<a href="../../../org/apache/storm/testing/TestJob.html" title="interface in org.apache.storm.testing">TestJob</a>&nbsp;code)</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">use <code>
try (LocalCluster cluster = new LocalCluster.Builder().withTracked()....build()) {
...
}
</code></span></div>
</div>
</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/storm/Testing.html#withTrackedCluster-org.apache.storm.testing.TestJob-">withTrackedCluster</a></span>(<a href="../../../org/apache/storm/testing/TestJob.html" title="interface in org.apache.storm.testing">TestJob</a>&nbsp;code)</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">use <code>
try (LocalCluster cluster = new LocalCluster.Builder().withTracked().build()) {
...
}
</code></span></div>
</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="TEST_TIMEOUT_MS">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>TEST_TIMEOUT_MS</h4>
<pre>public static final&nbsp;int TEST_TIMEOUT_MS</pre>
<div class="block"><p>The default amount of wall time should be spent waiting for specific conditions to happen. Default is 10 seconds unless the environment variable STORM_TEST_TIMEOUT_MS is set.</p></div>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="Testing--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Testing</h4>
<pre>public&nbsp;Testing()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="whileTimeout-org.apache.storm.Testing.Condition-java.lang.Runnable-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>whileTimeout</h4>
<pre>public static&nbsp;void&nbsp;whileTimeout(<a href="../../../org/apache/storm/Testing.Condition.html" title="interface in org.apache.storm">Testing.Condition</a>&nbsp;condition,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Runnable.html?is-external=true" title="class or interface in java.lang">Runnable</a>&nbsp;body)</pre>
<div class="block"><p>Continue to execute body repeatedly until condition is true or TEST_TIMEOUT_MS has passed.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>condition</code> - what we are waiting for</dd>
<dd><code>body</code> - what to run in the loop</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/AssertionError.html?is-external=true" title="class or interface in java.lang">AssertionError</a></code> - if the loop timed out.</dd>
</dl>
</li>
</ul>
<a name="whileTimeout-long-org.apache.storm.Testing.Condition-java.lang.Runnable-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>whileTimeout</h4>
<pre>public static&nbsp;void&nbsp;whileTimeout(long&nbsp;timeoutMs,
<a href="../../../org/apache/storm/Testing.Condition.html" title="interface in org.apache.storm">Testing.Condition</a>&nbsp;condition,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Runnable.html?is-external=true" title="class or interface in java.lang">Runnable</a>&nbsp;body)</pre>
<div class="block"><p>Continue to execute body repeatedly until condition is true or TEST_TIMEOUT_MS has passed.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>timeoutMs</code> - the number of ms to wait before timing out.</dd>
<dd><code>condition</code> - what we are waiting for</dd>
<dd><code>body</code> - what to run in the loop</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/AssertionError.html?is-external=true" title="class or interface in java.lang">AssertionError</a></code> - if the loop timed out.</dd>
</dl>
</li>
</ul>
<a name="isEvery-java.util.Collection-java.util.function.Predicate-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isEvery</h4>
<pre>public static&nbsp;&lt;T&gt;&nbsp;boolean&nbsp;isEvery(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;T&gt;&nbsp;data,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Predicate.html?is-external=true" title="class or interface in java.util.function">Predicate</a>&lt;T&gt;&nbsp;pred)</pre>
<div class="block"><p>Convenience method for data.stream.allMatch(pred).</p></div>
</li>
</ul>
<a name="withSimulatedTime-java.lang.Runnable-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withSimulatedTime</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
public static&nbsp;void&nbsp;withSimulatedTime(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Runnable.html?is-external=true" title="class or interface in java.lang">Runnable</a>&nbsp;code)</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">use <code>
try (Time.SimulatedTime time = new Time.SimulatedTime()) {
...
}
</code></span></div>
<div class="block"><p>Run with simulated time.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>code</code> - what to run</dd>
</dl>
</li>
</ul>
<a name="withLocalCluster-org.apache.storm.testing.TestJob-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withLocalCluster</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
public static&nbsp;void&nbsp;withLocalCluster(<a href="../../../org/apache/storm/testing/TestJob.html" title="interface in org.apache.storm.testing">TestJob</a>&nbsp;code)</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">use <code>
try (LocalCluster cluster = new LocalCluster()) {
...
}
</code></span></div>
<div class="block"><p>Run with a local cluster.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>code</code> - what to run</dd>
</dl>
</li>
</ul>
<a name="withLocalCluster-org.apache.storm.testing.MkClusterParam-org.apache.storm.testing.TestJob-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withLocalCluster</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
public static&nbsp;void&nbsp;withLocalCluster(<a href="../../../org/apache/storm/testing/MkClusterParam.html" title="class in org.apache.storm.testing">MkClusterParam</a>&nbsp;param,
<a href="../../../org/apache/storm/testing/TestJob.html" title="interface in org.apache.storm.testing">TestJob</a>&nbsp;code)</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">use <code>
try (LocalCluster cluster = new LocalCluster.Builder()....build()) {
...
}
</code></span></div>
<div class="block"><p>Run with a local cluster.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>param</code> - configs to set in the cluster</dd>
<dd><code>code</code> - what to run</dd>
</dl>
</li>
</ul>
<a name="getLocalCluster-java.util.Map-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLocalCluster</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
public static&nbsp;<a href="../../../org/apache/storm/ILocalCluster.html" title="interface in org.apache.storm">ILocalCluster</a>&nbsp;getLocalCluster(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;&nbsp;clusterConf)</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">use <code>
try (LocalCluster cluster = new LocalCluster.Builder()....build()) {
...
}
</code></span></div>
<div class="block"><p>Run with a local cluster.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>clusterConf</code> - some configs to set in the cluster</dd>
</dl>
</li>
</ul>
<a name="withSimulatedTimeLocalCluster-org.apache.storm.testing.TestJob-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withSimulatedTimeLocalCluster</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
public static&nbsp;void&nbsp;withSimulatedTimeLocalCluster(<a href="../../../org/apache/storm/testing/TestJob.html" title="interface in org.apache.storm.testing">TestJob</a>&nbsp;code)</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">use <code>
try (LocalCluster cluster = new LocalCluster.Builder().withSimulatedTime().build()) {
...
}
</code></span></div>
<div class="block"><p>Run with a local cluster.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>code</code> - what to run</dd>
</dl>
</li>
</ul>
<a name="withSimulatedTimeLocalCluster-org.apache.storm.testing.MkClusterParam-org.apache.storm.testing.TestJob-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withSimulatedTimeLocalCluster</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
public static&nbsp;void&nbsp;withSimulatedTimeLocalCluster(<a href="../../../org/apache/storm/testing/MkClusterParam.html" title="class in org.apache.storm.testing">MkClusterParam</a>&nbsp;param,
<a href="../../../org/apache/storm/testing/TestJob.html" title="interface in org.apache.storm.testing">TestJob</a>&nbsp;code)</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">use <code>
try (LocalCluster cluster = new LocalCluster.Builder().withSimulatedTime()....build()) {
...
}
</code></span></div>
<div class="block"><p>Run with a local cluster.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>param</code> - configs to set in the cluster</dd>
<dd><code>code</code> - what to run</dd>
</dl>
</li>
</ul>
<a name="withTrackedCluster-org.apache.storm.testing.TestJob-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withTrackedCluster</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
public static&nbsp;void&nbsp;withTrackedCluster(<a href="../../../org/apache/storm/testing/TestJob.html" title="interface in org.apache.storm.testing">TestJob</a>&nbsp;code)</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">use <code>
try (LocalCluster cluster = new LocalCluster.Builder().withTracked().build()) {
...
}
</code></span></div>
<div class="block"><p>Run with a local cluster.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>code</code> - what to run</dd>
</dl>
</li>
</ul>
<a name="withTrackedCluster-org.apache.storm.testing.MkClusterParam-org.apache.storm.testing.TestJob-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withTrackedCluster</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
public static&nbsp;void&nbsp;withTrackedCluster(<a href="../../../org/apache/storm/testing/MkClusterParam.html" title="class in org.apache.storm.testing">MkClusterParam</a>&nbsp;param,
<a href="../../../org/apache/storm/testing/TestJob.html" title="interface in org.apache.storm.testing">TestJob</a>&nbsp;code)</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">use <code>
try (LocalCluster cluster = new LocalCluster.Builder().withTracked()....build()) {
...
}
</code></span></div>
<div class="block"><p>Run with a local tracked cluster.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>param</code> - configs to set in the cluster</dd>
<dd><code>code</code> - what to run</dd>
</dl>
</li>
</ul>
<a name="globalAmt-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>globalAmt</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
public static&nbsp;int&nbsp;globalAmt(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;id,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;key)</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<div class="block"><p>In a tracked topology some metrics are tracked. This provides a way to get those metrics. This is intended mostly for internal testing.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>id</code> - the id of the tracked cluster</dd>
<dd><code>key</code> - the name of the metric to get.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the metric</dd>
</dl>
</li>
</ul>
<a name="trackAndCaptureTopology-org.apache.storm.ILocalCluster-org.apache.storm.generated.StormTopology-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>trackAndCaptureTopology</h4>
<pre>public static&nbsp;<a href="../../../org/apache/storm/Testing.CapturedTopology.html" title="class in org.apache.storm">Testing.CapturedTopology</a>&lt;<a href="../../../org/apache/storm/testing/TrackedTopology.html" title="class in org.apache.storm.testing">TrackedTopology</a>&gt;&nbsp;trackAndCaptureTopology(<a href="../../../org/apache/storm/ILocalCluster.html" title="interface in org.apache.storm">ILocalCluster</a>&nbsp;cluster,
<a href="../../../org/apache/storm/generated/StormTopology.html" title="class in org.apache.storm.generated">StormTopology</a>&nbsp;topology)</pre>
<div class="block"><p>Track and capture a topology. This is intended mostly for internal testing.</p></div>
</li>
</ul>
<a name="captureTopology-org.apache.storm.generated.StormTopology-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>captureTopology</h4>
<pre>public static&nbsp;<a href="../../../org/apache/storm/Testing.CapturedTopology.html" title="class in org.apache.storm">Testing.CapturedTopology</a>&lt;<a href="../../../org/apache/storm/generated/StormTopology.html" title="class in org.apache.storm.generated">StormTopology</a>&gt;&nbsp;captureTopology(<a href="../../../org/apache/storm/generated/StormTopology.html" title="class in org.apache.storm.generated">StormTopology</a>&nbsp;topology)</pre>
<div class="block"><p>Rewrites a topology so that all the tuples flowing through it are captured.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>topology</code> - the topology to rewrite</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the modified topology and a new Bolt that can retrieve the captured tuples.</dd>
</dl>
</li>
</ul>
<a name="completeTopology-org.apache.storm.ILocalCluster-org.apache.storm.generated.StormTopology-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>completeTopology</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../org/apache/storm/testing/FixedTuple.html" title="class in org.apache.storm.testing">FixedTuple</a>&gt;&gt;&nbsp;completeTopology(<a href="../../../org/apache/storm/ILocalCluster.html" title="interface in org.apache.storm">ILocalCluster</a>&nbsp;cluster,
<a href="../../../org/apache/storm/generated/StormTopology.html" title="class in org.apache.storm.generated">StormTopology</a>&nbsp;topology)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a>,
org.apache.storm.thrift.TException</pre>
<div class="block"><p>Run a topology to completion capturing all of the messages that are emitted. This only works when all of the spouts are instances of <a href="../../../org/apache/storm/testing/CompletableSpout.html" title="interface in org.apache.storm.testing"><code>CompletableSpout</code></a>.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>cluster</code> - the cluster to submit the topology to</dd>
<dd><code>topology</code> - the topology itself</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a map of the component to the list of tuples it emitted</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>org.apache.storm.thrift.TException</code> - on any error from nimbus</dd>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></code></dd>
</dl>
</li>
</ul>
<a name="completeTopology-org.apache.storm.ILocalCluster-org.apache.storm.generated.StormTopology-org.apache.storm.testing.CompleteTopologyParam-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>completeTopology</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../org/apache/storm/testing/FixedTuple.html" title="class in org.apache.storm.testing">FixedTuple</a>&gt;&gt;&nbsp;completeTopology(<a href="../../../org/apache/storm/ILocalCluster.html" title="interface in org.apache.storm">ILocalCluster</a>&nbsp;cluster,
<a href="../../../org/apache/storm/generated/StormTopology.html" title="class in org.apache.storm.generated">StormTopology</a>&nbsp;topology,
<a href="../../../org/apache/storm/testing/CompleteTopologyParam.html" title="class in org.apache.storm.testing">CompleteTopologyParam</a>&nbsp;param)
throws org.apache.storm.thrift.TException,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></pre>
<div class="block"><p>Run a topology to completion capturing all of the messages that are emitted. This only works when all of the spouts are instances of <a href="../../../org/apache/storm/testing/CompletableSpout.html" title="interface in org.apache.storm.testing"><code>CompletableSpout</code></a> or are overwritten by MockedSources in param</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>cluster</code> - the cluster to submit the topology to</dd>
<dd><code>topology</code> - the topology itself</dd>
<dd><code>param</code> - parameters to describe how to complete a topology</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a map of the component to the list of tuples it emitted</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>org.apache.storm.thrift.TException</code> - on any error from nimbus.</dd>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></code></dd>
</dl>
</li>
</ul>
<a name="simulateWait-org.apache.storm.ILocalCluster-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>simulateWait</h4>
<pre>public static&nbsp;void&nbsp;simulateWait(<a href="../../../org/apache/storm/ILocalCluster.html" title="interface in org.apache.storm">ILocalCluster</a>&nbsp;cluster)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></pre>
<div class="block"><p>If using simulated time simulate waiting for 10 seconds. This is intended for internal testing only.</p></div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></code></dd>
</dl>
</li>
</ul>
<a name="readTuples-java.util.Map-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readTuples</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;&gt;&nbsp;readTuples(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../org/apache/storm/testing/FixedTuple.html" title="class in org.apache.storm.testing">FixedTuple</a>&gt;&gt;&nbsp;results,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;componentId)</pre>
<div class="block"><p>Get all of the tuples from a given component on the default stream.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>results</code> - the results of running a completed topology</dd>
<dd><code>componentId</code> - the id of the component to look at</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a list of the tuple values.</dd>
</dl>
</li>
</ul>
<a name="readTuples-java.util.Map-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readTuples</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;&gt;&nbsp;readTuples(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../org/apache/storm/testing/FixedTuple.html" title="class in org.apache.storm.testing">FixedTuple</a>&gt;&gt;&nbsp;results,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;componentId,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;streamId)</pre>
<div class="block"><p>Get all of the tuples from a given component on a given stream.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>results</code> - the results of running a completed topology</dd>
<dd><code>componentId</code> - the id of the component to look at</dd>
<dd><code>streamId</code> - the id of the stream to look for.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a list of the tuple values.</dd>
</dl>
</li>
</ul>
<a name="mkTrackedTopology-org.apache.storm.ILocalCluster-org.apache.storm.generated.StormTopology-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mkTrackedTopology</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
public static&nbsp;<a href="../../../org/apache/storm/testing/TrackedTopology.html" title="class in org.apache.storm.testing">TrackedTopology</a>&nbsp;mkTrackedTopology(<a href="../../../org/apache/storm/ILocalCluster.html" title="interface in org.apache.storm">ILocalCluster</a>&nbsp;cluster,
<a href="../../../org/apache/storm/generated/StormTopology.html" title="class in org.apache.storm.generated">StormTopology</a>&nbsp;topology)</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">use <a href="../../../org/apache/storm/testing/TrackedTopology.html" title="class in org.apache.storm.testing"><code>TrackedTopology</code></a> directly.</span></div>
<div class="block"><p>Create a tracked topology.</p></div>
</li>
</ul>
<a name="trackedWait-org.apache.storm.Testing.CapturedTopology-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>trackedWait</h4>
<pre>public static&nbsp;void&nbsp;trackedWait(<a href="../../../org/apache/storm/Testing.CapturedTopology.html" title="class in org.apache.storm">Testing.CapturedTopology</a>&lt;<a href="../../../org/apache/storm/testing/TrackedTopology.html" title="class in org.apache.storm.testing">TrackedTopology</a>&gt;&nbsp;topo)</pre>
<div class="block"><p>Simulated time wait for a tracked topology. This is intended for internal testing.</p></div>
</li>
</ul>
<a name="trackedWait-org.apache.storm.Testing.CapturedTopology-java.lang.Integer-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>trackedWait</h4>
<pre>public static&nbsp;void&nbsp;trackedWait(<a href="../../../org/apache/storm/Testing.CapturedTopology.html" title="class in org.apache.storm">Testing.CapturedTopology</a>&lt;<a href="../../../org/apache/storm/testing/TrackedTopology.html" title="class in org.apache.storm.testing">TrackedTopology</a>&gt;&nbsp;topo,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>&nbsp;amt)</pre>
<div class="block"><p>Simulated time wait for a tracked topology. This is intended for internal testing.</p></div>
</li>
</ul>
<a name="trackedWait-org.apache.storm.Testing.CapturedTopology-java.lang.Integer-java.lang.Integer-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>trackedWait</h4>
<pre>public static&nbsp;void&nbsp;trackedWait(<a href="../../../org/apache/storm/Testing.CapturedTopology.html" title="class in org.apache.storm">Testing.CapturedTopology</a>&lt;<a href="../../../org/apache/storm/testing/TrackedTopology.html" title="class in org.apache.storm.testing">TrackedTopology</a>&gt;&nbsp;topo,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>&nbsp;amt,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>&nbsp;timeoutMs)</pre>
<div class="block"><p>Simulated time wait for a tracked topology. This is intended for internal testing.</p></div>
</li>
</ul>
<a name="trackedWait-org.apache.storm.testing.TrackedTopology-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>trackedWait</h4>
<pre>public static&nbsp;void&nbsp;trackedWait(<a href="../../../org/apache/storm/testing/TrackedTopology.html" title="class in org.apache.storm.testing">TrackedTopology</a>&nbsp;topo)</pre>
<div class="block"><p>Simulated time wait for a tracked topology. This is intended for internal testing.</p></div>
</li>
</ul>
<a name="trackedWait-org.apache.storm.testing.TrackedTopology-java.lang.Integer-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>trackedWait</h4>
<pre>public static&nbsp;void&nbsp;trackedWait(<a href="../../../org/apache/storm/testing/TrackedTopology.html" title="class in org.apache.storm.testing">TrackedTopology</a>&nbsp;topo,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>&nbsp;amt)</pre>
<div class="block"><p>Simulated time wait for a tracked topology. This is intended for internal testing.</p></div>
</li>
</ul>
<a name="trackedWait-org.apache.storm.testing.TrackedTopology-java.lang.Integer-java.lang.Integer-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>trackedWait</h4>
<pre>public static&nbsp;void&nbsp;trackedWait(<a href="../../../org/apache/storm/testing/TrackedTopology.html" title="class in org.apache.storm.testing">TrackedTopology</a>&nbsp;topo,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>&nbsp;amt,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>&nbsp;timeoutMs)</pre>
<div class="block"><p>Simulated time wait for a tracked topology. This is intended for internal testing.</p></div>
</li>
</ul>
<a name="advanceClusterTime-org.apache.storm.ILocalCluster-java.lang.Integer-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>advanceClusterTime</h4>
<pre>public static&nbsp;void&nbsp;advanceClusterTime(<a href="../../../org/apache/storm/ILocalCluster.html" title="interface in org.apache.storm">ILocalCluster</a>&nbsp;cluster,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>&nbsp;secs)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></pre>
<div class="block"><p>Simulated time wait for a cluster. This is intended for internal testing.</p></div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></code></dd>
</dl>
</li>
</ul>
<a name="advanceClusterTime-org.apache.storm.ILocalCluster-java.lang.Integer-java.lang.Integer-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>advanceClusterTime</h4>
<pre>public static&nbsp;void&nbsp;advanceClusterTime(<a href="../../../org/apache/storm/ILocalCluster.html" title="interface in org.apache.storm">ILocalCluster</a>&nbsp;cluster,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>&nbsp;secs,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>&nbsp;step)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></pre>
<div class="block"><p>Simulated time wait for a cluster. This is intended for internal testing.</p></div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></code></dd>
</dl>
</li>
</ul>
<a name="multiset-java.util.Collection-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>multiset</h4>
<pre>public static&nbsp;&lt;T&gt;&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;T,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>&gt;&nbsp;multiset(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;T&gt;&nbsp;c)</pre>
<div class="block"><p>Count how many times each element appears in the Collection.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>c</code> - a collection of values</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a map of the unique values in c to the count of those values.</dd>
</dl>
</li>
</ul>
<a name="multiseteq-java.util.Collection-java.util.Collection-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>multiseteq</h4>
<pre>public static&nbsp;&lt;T&gt;&nbsp;boolean&nbsp;multiseteq(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;T&gt;&nbsp;a,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;T&gt;&nbsp;b)</pre>
<div class="block"><p>Check if two collections are equivalent ignoring the order of elements.</p></div>
</li>
</ul>
<a name="testTuple-java.util.List-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>testTuple</h4>
<pre>public static&nbsp;<a href="../../../org/apache/storm/tuple/Tuple.html" title="interface in org.apache.storm.tuple">Tuple</a>&nbsp;testTuple(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;&nbsp;values)</pre>
<div class="block"><p>Create a <a href="../../../org/apache/storm/tuple/Tuple.html" title="interface in org.apache.storm.tuple"><code>Tuple</code></a> for use with testing.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>values</code> - the values to appear in the tuple</dd>
</dl>
</li>
</ul>
<a name="testTuple-java.util.List-org.apache.storm.testing.MkTupleParam-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>testTuple</h4>
<pre>public static&nbsp;<a href="../../../org/apache/storm/tuple/Tuple.html" title="interface in org.apache.storm.tuple">Tuple</a>&nbsp;testTuple(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;&nbsp;values,
<a href="../../../org/apache/storm/testing/MkTupleParam.html" title="class in org.apache.storm.testing">MkTupleParam</a>&nbsp;param)</pre>
<div class="block"><p>Create a <a href="../../../org/apache/storm/tuple/Tuple.html" title="interface in org.apache.storm.tuple"><code>Tuple</code></a> for use with testing.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>values</code> - the values to appear in the tuple</dd>
<dd><code>param</code> - parametrs describing more details about the tuple</dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Testing.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><script type="text/javascript" src="../../../highlight.pack.js"></script>
<script type="text/javascript"><!--
hljs.initHighlightingOnLoad();
//--></script></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../org/apache/storm/StormTimer.StormTimerTask.html" title="class in org.apache.storm"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../org/apache/storm/Testing.CapturedTopology.html" title="class in org.apache.storm"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?org/apache/storm/Testing.html" target="_top">Frames</a></li>
<li><a href="Testing.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2022 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</body>
</html>