| <!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>BeanListAssertion (Apache Juneau 9.0.0)</title> |
| <link rel="stylesheet" type="text/css" href="../../../../javadoc.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="BeanListAssertion (Apache Juneau 9.0.0)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":9,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10}; |
| var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete 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="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/juneau/assertions/BeanAssertion.html" title="class in org.apache.juneau.assertions"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/juneau/assertions/BooleanAssertion.html" title="class in org.apache.juneau.assertions"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/juneau/assertions/BeanListAssertion.html" target="_top">Frames</a></li> |
| <li><a href="BeanListAssertion.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../allclasses-noframe.html">All 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: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </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.juneau.assertions</div> |
| <h2 title="Class BeanListAssertion" class="title">Class BeanListAssertion<E></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><a href="../../../../org/apache/juneau/assertions/Assertion.html" title="class in org.apache.juneau.assertions">org.apache.juneau.assertions.Assertion</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="../../../../org/apache/juneau/assertions/FluentAssertion.html" title="class in org.apache.juneau.assertions">org.apache.juneau.assertions.FluentAssertion</a><R></li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html" title="class in org.apache.juneau.assertions">org.apache.juneau.assertions.FluentObjectAssertion</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><E>,R></li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="../../../../org/apache/juneau/assertions/FluentCollectionAssertion.html" title="class in org.apache.juneau.assertions">org.apache.juneau.assertions.FluentCollectionAssertion</a><E,R></li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="../../../../org/apache/juneau/assertions/FluentListAssertion.html" title="class in org.apache.juneau.assertions">org.apache.juneau.assertions.FluentListAssertion</a><E,R></li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="../../../../org/apache/juneau/assertions/FluentBeanListAssertion.html" title="class in org.apache.juneau.assertions">org.apache.juneau.assertions.FluentBeanListAssertion</a><E,<a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="class in org.apache.juneau.assertions">BeanListAssertion</a><E>></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.juneau.assertions.BeanListAssertion<E></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>E</code> - The bean type.</dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public class <a href="../../../../src-html/org/apache/juneau/assertions/BeanListAssertion.html#line.129">BeanListAssertion</a><E> |
| extends <a href="../../../../org/apache/juneau/assertions/FluentBeanListAssertion.html" title="class in org.apache.juneau.assertions">FluentBeanListAssertion</a><E,<a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="class in org.apache.juneau.assertions">BeanListAssertion</a><E>></pre> |
| <div class="block">Used for assertion calls against Java beans. |
| |
| <h5 class='section'>Example:</h5> |
| <p class='bjava'> |
| <jc>// Validates the specified list contains 3 beans with the specified values for the 'foo' property.</jc> |
| <jsm>assertBeanList</jsm>(<jv>myBeanList</jv>) |
| .asProperty(<js>"foo"</js>) |
| .is(<js>"bar"</js>,<js>"baz"</js>,<js>"qux"</js>); |
| </p> |
| |
| |
| <h5 class='topic'>Test Methods</h5> |
| <p> |
| <ul class='javatree'> |
| <li class='jc'><a href="../../../../org/apache/juneau/assertions/FluentListAssertion.html" title="class in org.apache.juneau.assertions"><code>FluentListAssertion</code></a> |
| <ul class='javatreec'> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentListAssertion.html#isHas-E...-"><code>isHas(Object...)</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentListAssertion.html#isEach-java.util.function.Predicate...-"><code>isEach(Predicate...)</code></a> |
| </ul> |
| <li class='jc'><a href="../../../../org/apache/juneau/assertions/FluentCollectionAssertion.html" title="class in org.apache.juneau.assertions"><code>FluentCollectionAssertion</code></a> |
| <ul class='javatreec'> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentCollectionAssertion.html#isEmpty--"><code>isEmpty()</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentCollectionAssertion.html#isNotEmpty--"><code>isNotEmpty()</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentCollectionAssertion.html#isContains-E-"><code>isContains(Object)</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentCollectionAssertion.html#isNotContains-E-"><code>isNotContains(Object)</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentCollectionAssertion.html#isAny-java.util.function.Predicate-"><code>isAny(Predicate)</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentCollectionAssertion.html#isAll-java.util.function.Predicate-"><code>isAll(Predicate)</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentCollectionAssertion.html#isSize-int-"><code>isSize(int size)</code></a> |
| </ul> |
| <li class='jc'><a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html" title="class in org.apache.juneau.assertions"><code>FluentObjectAssertion</code></a> |
| <ul class='javatreec'> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#isExists--"><code>isExists()</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#is-T-"><code>is(Object)</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#is-java.util.function.Predicate-"><code>is(Predicate)</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#isNot-T-"><code>isNot(Object)</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#isAny-T...-"><code>isAny(Object...)</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#isNotAny-T...-"><code>isNotAny(Object...)</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#isNull--"><code>isNull()</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#isNotNull--"><code>isNotNull()</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#isString-java.lang.String-"><code>isString(String)</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#isJson-java.lang.String-"><code>isJson(String)</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#isSame-T-"><code>isSame(Object)</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#isSameJsonAs-java.lang.Object-"><code>isSameJsonAs(Object)</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#isSameSortedJsonAs-java.lang.Object-"><code>isSameSortedJsonAs(Object)</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#isSameSerializedAs-java.lang.Object-org.apache.juneau.serializer.WriterSerializer-"><code>isSameSerializedAs(Object, WriterSerializer)</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#isType-java.lang.Class-"><code>isType(Class)</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#isExactType-java.lang.Class-"><code>isExactType(Class)</code></a> |
| </ul> |
| </ul> |
| |
| <h5 class='topic'>Transform Methods</h5> |
| <p> |
| <ul class='javatree'> |
| <li class='jc'><a href="../../../../org/apache/juneau/assertions/FluentBeanListAssertion.html" title="class in org.apache.juneau.assertions"><code>FluentBeanListAssertion</code></a> |
| <ul class='javatreec'> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentBeanListAssertion.html#asPropertyMaps-java.lang.String...-"><code>asPropertyMaps(String...)</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentBeanListAssertion.html#asProperty-java.lang.String-"><code>asProperty(String)</code></a> |
| </ul> |
| <li class='jc'><a href="../../../../org/apache/juneau/assertions/FluentListAssertion.html" title="class in org.apache.juneau.assertions"><code>FluentListAssertion</code></a> |
| <ul class='javatreec'> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentCollectionAssertion.html#asStrings--"><code>asStrings()</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentListAssertion.html#asStrings-java.util.function.Function-"><code>asStrings(Function)</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentListAssertion.html#asCdl--"><code>asCdl()</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentListAssertion.html#asCdl-java.util.function.Function-"><code>asCdl(Function)</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentListAssertion.html#asItem-int-"><code>item(int)</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentListAssertion.html#asSorted--"><code>sorted()</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentListAssertion.html#asSorted-java.util.Comparator-"><code>sorted(Comparator)</code></a> |
| </ul> |
| <li class='jc'><a href="../../../../org/apache/juneau/assertions/FluentCollectionAssertion.html" title="class in org.apache.juneau.assertions"><code>FluentCollectionAssertion</code></a> |
| <ul class='javatreec'> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentCollectionAssertion.html#asStrings--"><code>asStrings()</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentCollectionAssertion.html#asSize--"><code>size()</code></a> |
| </ul> |
| <li class='jc'><a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html" title="class in org.apache.juneau.assertions"><code>FluentObjectAssertion</code></a> |
| <ul class='javatreec'> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#asString--"><code>asString()</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#asString-org.apache.juneau.serializer.WriterSerializer-"><code>asString(WriterSerializer)</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#asString-java.util.function.Function-"><code>asString(Function)</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#asJson--"><code>asJson()</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#asJsonSorted--"><code>asJsonSorted()</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#asTransformed-java.util.function.Function-"><code>asApplied(Function)</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#asAny--"><code>asAny()</code></a> |
| </ul> |
| </ul> |
| |
| <h5 class='topic'>Configuration Methods</h5> |
| <p> |
| <ul class='javatree'> |
| <li class='jc'><a href="../../../../org/apache/juneau/assertions/Assertion.html" title="class in org.apache.juneau.assertions"><code>Assertion</code></a> |
| <ul class='javatreec'> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/Assertion.html#setMsg-java.lang.String-java.lang.Object...-"><code>setMsg(String, Object...)</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/Assertion.html#setOut-java.io.PrintStream-"><code>setOut(PrintStream)</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/Assertion.html#setSilent--"><code>setSilent()</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/Assertion.html#setStdOut--"><code>setStdOut()</code></a> |
| <li class='jm'><a href="../../../../org/apache/juneau/assertions/Assertion.html#setThrowable-java.lang.Class-"><code>setThrowable(Class)</code></a> |
| </ul> |
| </ul> |
| |
| <ul class='seealso'> |
| <li class='link'><a class='doclink' href='../../../../overview-summary.html#juneau-marshall.jm.FluentAssertions'>Overview > juneau-marshall > Fluent Assertions</a> |
| <li class='extlink'><a class='doclink' target='_blank' href='https://github.com/apache/juneau/blob/master/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/assertions/BeanListAssertion.java'>Source</a> |
| </ul></div> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ======== 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"> </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/juneau/assertions/BeanListAssertion.html#BeanListAssertion-java.util.List-">BeanListAssertion</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><<a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="type parameter in BeanListAssertion">E</a>> value)</code> |
| <div class="block">Constructor.</div> |
| </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"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </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 <E> <a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="class in org.apache.juneau.assertions">BeanListAssertion</a><E></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html#create-java.util.List-">create</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><E> value)</code> |
| <div class="block">Static creator.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="class in org.apache.juneau.assertions">BeanListAssertion</a><<a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="type parameter in BeanListAssertion">E</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html#setMsg-java.lang.String-java.lang.Object...-">setMsg</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> msg, |
| <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>... args)</code> |
| <div class="block">Allows you to override the assertion failure message.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="class in org.apache.juneau.assertions">BeanListAssertion</a><<a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="type parameter in BeanListAssertion">E</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html#setOut-java.io.PrintStream-">setOut</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/PrintStream.html?is-external=true" title="class or interface in java.io">PrintStream</a> value)</code> |
| <div class="block">If an error occurs, send the error message to the specified stream instead of STDERR.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="class in org.apache.juneau.assertions">BeanListAssertion</a><<a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="type parameter in BeanListAssertion">E</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html#setSilent--">setSilent</a></span>()</code> |
| <div class="block">Suppresses output to STDERR.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="class in org.apache.juneau.assertions">BeanListAssertion</a><<a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="type parameter in BeanListAssertion">E</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html#setStdOut--">setStdOut</a></span>()</code> |
| <div class="block">If an error occurs, send the error message to STDOUT instead of STDERR.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="class in org.apache.juneau.assertions">BeanListAssertion</a><<a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="type parameter in BeanListAssertion">E</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html#setThrowable-java.lang.Class-">setThrowable</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/RuntimeException.html?is-external=true" title="class or interface in java.lang">RuntimeException</a>> value)</code> |
| <div class="block">If an error occurs, throw this exception instead of the standard <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/AssertionError.html?is-external=true" title="class or interface in java.lang"><code>AssertionError</code></a>.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.org.apache.juneau.assertions.FluentBeanListAssertion"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.apache.juneau.assertions.<a href="../../../../org/apache/juneau/assertions/FluentBeanListAssertion.html" title="class in org.apache.juneau.assertions">FluentBeanListAssertion</a></h3> |
| <code><a href="../../../../org/apache/juneau/assertions/FluentBeanListAssertion.html#asProperty-java.lang.String-">asProperty</a>, <a href="../../../../org/apache/juneau/assertions/FluentBeanListAssertion.html#asPropertyMaps-java.lang.String...-">asPropertyMaps</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.org.apache.juneau.assertions.FluentListAssertion"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.apache.juneau.assertions.<a href="../../../../org/apache/juneau/assertions/FluentListAssertion.html" title="class in org.apache.juneau.assertions">FluentListAssertion</a></h3> |
| <code><a href="../../../../org/apache/juneau/assertions/FluentListAssertion.html#asApplied2-java.util.function.Function-">asApplied2</a>, <a href="../../../../org/apache/juneau/assertions/FluentListAssertion.html#asCdl--">asCdl</a>, <a href="../../../../org/apache/juneau/assertions/FluentListAssertion.html#asCdl-java.util.function.Function-">asCdl</a>, <a href="../../../../org/apache/juneau/assertions/FluentListAssertion.html#asFirst--">asFirst</a>, <a href="../../../../org/apache/juneau/assertions/FluentListAssertion.html#asFirst-int-">asFirst</a>, <a href="../../../../org/apache/juneau/assertions/FluentListAssertion.html#asItem-int-">asItem</a>, <a href="../../../../org/apache/juneau/assertions/FluentListAssertion.html#asLast--">asLast</a>, <a href="../../../../org/apache/juneau/assertions/FluentListAssertion.html#asLast-int-">asLast</a>, <a href="../../../../org/apache/juneau/assertions/FluentListAssertion.html#asSorted--">asSorted</a>, <a href="../../../../org/apache/juneau/assertions/FluentListAssertion.html#asSorted-java.util.Comparator-">asSorted</a>, <a href="../../../../org/apache/juneau/assertions/FluentListAssertion.html#asStrings-java.util.function.Function-">asStrings</a>, <a href="../../../../org/apache/juneau/assertions/FluentListAssertion.html#asSublist-int-int-">asSublist</a>, <a href="../../../../org/apache/juneau/assertions/FluentListAssertion.html#isEach-java.util.function.Predicate...-">isEach</a>, <a href="../../../../org/apache/juneau/assertions/FluentListAssertion.html#isHas-E...-">isHas</a>, <a href="../../../../org/apache/juneau/assertions/FluentListAssertion.html#value--">value</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.org.apache.juneau.assertions.FluentCollectionAssertion"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.apache.juneau.assertions.<a href="../../../../org/apache/juneau/assertions/FluentCollectionAssertion.html" title="class in org.apache.juneau.assertions">FluentCollectionAssertion</a></h3> |
| <code><a href="../../../../org/apache/juneau/assertions/FluentCollectionAssertion.html#asSize--">asSize</a>, <a href="../../../../org/apache/juneau/assertions/FluentCollectionAssertion.html#asStrings--">asStrings</a>, <a href="../../../../org/apache/juneau/assertions/FluentCollectionAssertion.html#asTransformed-java.util.function.Function-">asTransformed</a>, <a href="../../../../org/apache/juneau/assertions/FluentCollectionAssertion.html#getSize--">getSize</a>, <a href="../../../../org/apache/juneau/assertions/FluentCollectionAssertion.html#isAll-java.util.function.Predicate-">isAll</a>, <a href="../../../../org/apache/juneau/assertions/FluentCollectionAssertion.html#isAny-java.util.function.Predicate-">isAny</a>, <a href="../../../../org/apache/juneau/assertions/FluentCollectionAssertion.html#isContains-E-">isContains</a>, <a href="../../../../org/apache/juneau/assertions/FluentCollectionAssertion.html#isEmpty--">isEmpty</a>, <a href="../../../../org/apache/juneau/assertions/FluentCollectionAssertion.html#isNotContains-E-">isNotContains</a>, <a href="../../../../org/apache/juneau/assertions/FluentCollectionAssertion.html#isNotEmpty--">isNotEmpty</a>, <a href="../../../../org/apache/juneau/assertions/FluentCollectionAssertion.html#isSize-int-">isSize</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.org.apache.juneau.assertions.FluentObjectAssertion"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.apache.juneau.assertions.<a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html" title="class in org.apache.juneau.assertions">FluentObjectAssertion</a></h3> |
| <code><a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#asAny--">asAny</a>, <a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#asJson--">asJson</a>, <a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#asJsonSorted--">asJsonSorted</a>, <a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#asString--">asString</a>, <a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#asString-java.util.function.Function-">asString</a>, <a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#asString-org.apache.juneau.serializer.WriterSerializer-">asString</a>, <a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#asTransformedTo-java.util.function.Function-">asTransformedTo</a>, <a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#equals-java.lang.Object-java.lang.Object-">equals</a>, <a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#getFailureMessage-java.util.function.Predicate-java.lang.Object-">getFailureMessage</a>, <a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#is-java.util.function.Predicate-">is</a>, <a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#is-T-">is</a>, <a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#isAny-T...-">isAny</a>, <a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#isExactType-java.lang.Class-">isExactType</a>, <a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#isExists--">isExists</a>, <a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#isJson-java.lang.String-">isJson</a>, <a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#isNot-T-">isNot</a>, <a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#isNotAny-T...-">isNotAny</a>, <a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#isNotNull--">isNotNull</a>, <a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#isNull--">isNull</a>, <a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#isSame-T-">isSame</a>, <a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#isSameJsonAs-java.lang.Object-">isSameJsonAs</a>, <a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#isSameSerializedAs-java.lang.Object-org.apache.juneau.serializer.WriterSerializer-">isSameSerializedAs</a>, <a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#isSameSortedJsonAs-java.lang.Object-">isSameSortedJsonAs</a>, <a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#isString-java.lang.String-">isString</a>, <a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#isType-java.lang.Class-">isType</a>, <a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#map-java.util.function.Function-">map</a>, <a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#opt--">opt</a>, <a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#orElse-T-">orElse</a>, <a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#toString--">toString</a>, <a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#valueAsString--">valueAsString</a>, <a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#valueIsNotNull--">valueIsNotNull</a>, <a href="../../../../org/apache/juneau/assertions/FluentObjectAssertion.html#valueIsNull--">valueIsNull</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.org.apache.juneau.assertions.FluentAssertion"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.apache.juneau.assertions.<a href="../../../../org/apache/juneau/assertions/FluentAssertion.html" title="class in org.apache.juneau.assertions">FluentAssertion</a></h3> |
| <code><a href="../../../../org/apache/juneau/assertions/FluentAssertion.html#returns--">returns</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.org.apache.juneau.assertions.Assertion"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.apache.juneau.assertions.<a href="../../../../org/apache/juneau/assertions/Assertion.html" title="class in org.apache.juneau.assertions">Assertion</a></h3> |
| <code><a href="../../../../org/apache/juneau/assertions/Assertion.html#arrayClass-java.lang.Class-">arrayClass</a>, <a href="../../../../org/apache/juneau/assertions/Assertion.html#className-java.lang.Object-">className</a>, <a href="../../../../org/apache/juneau/assertions/Assertion.html#error-java.lang.String-java.lang.Object...-">error</a>, <a href="../../../../org/apache/juneau/assertions/Assertion.html#error-java.lang.Throwable-java.lang.String-java.lang.Object...-">error</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class 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#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"> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="BeanListAssertion-java.util.List-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>BeanListAssertion</h4> |
| <pre>public <a href="../../../../src-html/org/apache/juneau/assertions/BeanListAssertion.html#line.159">BeanListAssertion</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><<a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="type parameter in BeanListAssertion">E</a>> value)</pre> |
| <div class="block">Constructor.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>value</code> - The object being tested. |
| <br>Can be <jk>null</jk>.</dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="create-java.util.List-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>create</h4> |
| <pre>public static <E> <a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="class in org.apache.juneau.assertions">BeanListAssertion</a><E> <a href="../../../../src-html/org/apache/juneau/assertions/BeanListAssertion.html#line.144">create</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><E> value)</pre> |
| <div class="block">Static creator.</div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>E</code> - The element type.</dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>value</code> - The object being tested. |
| <br>Can be <jk>null</jk>.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>A new assertion object.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setMsg-java.lang.String-java.lang.Object...-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setMsg</h4> |
| <pre>public <a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="class in org.apache.juneau.assertions">BeanListAssertion</a><<a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="type parameter in BeanListAssertion">E</a>> <a href="../../../../src-html/org/apache/juneau/assertions/BeanListAssertion.html#line.170">setMsg</a>(<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> msg, |
| <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>... args)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../org/apache/juneau/assertions/Assertion.html#setMsg-java.lang.String-java.lang.Object...-">Assertion</a></code></span></div> |
| <div class="block">Allows you to override the assertion failure message. |
| |
| <p> |
| String can contain <js>"{msg}"</js> to represent the original message. |
| |
| <h5 class='section'>Example:</h5> |
| <p class='bjava'> |
| <jk>import static</jk> org.apache.juneau.assertions.Assertions.*; |
| |
| <jc>// Throws an assertion with a custom message instead of the default "Value was null."</jc> |
| <jsm>assertString</jsm>(<jv>myString</jv>) |
| .setMsg(<js>"My string was bad: {msg}"</js>) |
| .isNotNull(); |
| </p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../org/apache/juneau/assertions/FluentBeanListAssertion.html#setMsg-java.lang.String-java.lang.Object...-">setMsg</a></code> in class <code><a href="../../../../org/apache/juneau/assertions/FluentBeanListAssertion.html" title="class in org.apache.juneau.assertions">FluentBeanListAssertion</a><<a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="type parameter in BeanListAssertion">E</a>,<a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="class in org.apache.juneau.assertions">BeanListAssertion</a><<a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="type parameter in BeanListAssertion">E</a>>></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>msg</code> - The assertion failure message.</dd> |
| <dd><code>args</code> - Optional message arguments.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>This object.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setOut-java.io.PrintStream-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setOut</h4> |
| <pre>public <a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="class in org.apache.juneau.assertions">BeanListAssertion</a><<a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="type parameter in BeanListAssertion">E</a>> <a href="../../../../src-html/org/apache/juneau/assertions/BeanListAssertion.html#line.176">setOut</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/PrintStream.html?is-external=true" title="class or interface in java.io">PrintStream</a> value)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../org/apache/juneau/assertions/Assertion.html#setOut-java.io.PrintStream-">Assertion</a></code></span></div> |
| <div class="block">If an error occurs, send the error message to the specified stream instead of STDERR.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../org/apache/juneau/assertions/FluentBeanListAssertion.html#setOut-java.io.PrintStream-">setOut</a></code> in class <code><a href="../../../../org/apache/juneau/assertions/FluentBeanListAssertion.html" title="class in org.apache.juneau.assertions">FluentBeanListAssertion</a><<a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="type parameter in BeanListAssertion">E</a>,<a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="class in org.apache.juneau.assertions">BeanListAssertion</a><<a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="type parameter in BeanListAssertion">E</a>>></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>value</code> - The output stream. |
| Can be <jk>null</jk> to suppress output.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>This object.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setSilent--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setSilent</h4> |
| <pre>public <a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="class in org.apache.juneau.assertions">BeanListAssertion</a><<a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="type parameter in BeanListAssertion">E</a>> <a href="../../../../src-html/org/apache/juneau/assertions/BeanListAssertion.html#line.182">setSilent</a>()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../org/apache/juneau/assertions/Assertion.html#setSilent--">Assertion</a></code></span></div> |
| <div class="block">Suppresses output to STDERR. |
| |
| <p> |
| This is the equivalent to calling <c>out(<jk>null</jk>)</c>.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../org/apache/juneau/assertions/FluentBeanListAssertion.html#setSilent--">setSilent</a></code> in class <code><a href="../../../../org/apache/juneau/assertions/FluentBeanListAssertion.html" title="class in org.apache.juneau.assertions">FluentBeanListAssertion</a><<a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="type parameter in BeanListAssertion">E</a>,<a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="class in org.apache.juneau.assertions">BeanListAssertion</a><<a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="type parameter in BeanListAssertion">E</a>>></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>This object.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setStdOut--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setStdOut</h4> |
| <pre>public <a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="class in org.apache.juneau.assertions">BeanListAssertion</a><<a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="type parameter in BeanListAssertion">E</a>> <a href="../../../../src-html/org/apache/juneau/assertions/BeanListAssertion.html#line.188">setStdOut</a>()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../org/apache/juneau/assertions/Assertion.html#setStdOut--">Assertion</a></code></span></div> |
| <div class="block">If an error occurs, send the error message to STDOUT instead of STDERR.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../org/apache/juneau/assertions/FluentBeanListAssertion.html#setStdOut--">setStdOut</a></code> in class <code><a href="../../../../org/apache/juneau/assertions/FluentBeanListAssertion.html" title="class in org.apache.juneau.assertions">FluentBeanListAssertion</a><<a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="type parameter in BeanListAssertion">E</a>,<a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="class in org.apache.juneau.assertions">BeanListAssertion</a><<a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="type parameter in BeanListAssertion">E</a>>></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>This object.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setThrowable-java.lang.Class-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>setThrowable</h4> |
| <pre>public <a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="class in org.apache.juneau.assertions">BeanListAssertion</a><<a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="type parameter in BeanListAssertion">E</a>> <a href="../../../../src-html/org/apache/juneau/assertions/BeanListAssertion.html#line.194">setThrowable</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/RuntimeException.html?is-external=true" title="class or interface in java.lang">RuntimeException</a>> value)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../org/apache/juneau/assertions/Assertion.html#setThrowable-java.lang.Class-">Assertion</a></code></span></div> |
| <div class="block">If an error occurs, throw this exception instead of the standard <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/AssertionError.html?is-external=true" title="class or interface in java.lang"><code>AssertionError</code></a>. |
| |
| <p> |
| The throwable class must have a public constructor that takes in any of the following parameters: |
| <ul> |
| <li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang"><code>Throwable</code></a> - The caused-by exception (if there is one). |
| <li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang"><code>String</code></a> - The assertion failure message. |
| </ul> |
| |
| <p> |
| If the throwable cannot be instantiated, a <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/RuntimeException.html?is-external=true" title="class or interface in java.lang"><code>RuntimeException</code></a> is thrown instead. |
| |
| <h5 class='section'>Example:</h5> |
| <p class='bjava'> |
| <jk>import static</jk> org.apache.juneau.assertions.Assertions.*; |
| |
| <jc>// Throws a BadRequest instead of an AssertionError if the string is null.</jc> |
| <jsm>assertString</jsm>(<jv>myString</jv>) |
| .setThrowable(BadRequest.<jk>class</jk>) |
| .isNotNull(); |
| </p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../org/apache/juneau/assertions/FluentBeanListAssertion.html#setThrowable-java.lang.Class-">setThrowable</a></code> in class <code><a href="../../../../org/apache/juneau/assertions/FluentBeanListAssertion.html" title="class in org.apache.juneau.assertions">FluentBeanListAssertion</a><<a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="type parameter in BeanListAssertion">E</a>,<a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="class in org.apache.juneau.assertions">BeanListAssertion</a><<a href="../../../../org/apache/juneau/assertions/BeanListAssertion.html" title="type parameter in BeanListAssertion">E</a>>></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>value</code> - The new value for this setting.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>This object.</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="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/juneau/assertions/BeanAssertion.html" title="class in org.apache.juneau.assertions"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/juneau/assertions/BooleanAssertion.html" title="class in org.apache.juneau.assertions"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/juneau/assertions/BeanListAssertion.html" target="_top">Frames</a></li> |
| <li><a href="BeanListAssertion.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../allclasses-noframe.html">All 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: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </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 © 2016–2022 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> |
| </body> |
| </html> |