blob: 2ef36bb08790c860c888611c1097f50cd10d0ffb [file] [log] [blame]
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (18) -->
<title>FluentRequestLineAssertion (Apache Juneau 9.0.0)</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="declaration: package: org.apache.juneau.rest.assertions, class: FluentRequestLineAssertion">
<meta name="generator" content="javadoc/ClassWriterImpl">
<link rel="stylesheet" type="text/css" href="../../../../../javadoc.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../script-dir/jquery-ui.min.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../jquery-ui.overrides.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
<script type="text/javascript" src="../../../../../script-dir/jquery-3.5.1.min.js"></script>
<script type="text/javascript" src="../../../../../script-dir/jquery-ui.min.js"></script>
</head>
<body class="class-declaration-page">
<script type="text/javascript">var evenRowColor = "even-row-color";
var oddRowColor = "odd-row-color";
var tableTab = "table-tab";
var activeTableTab = "active-table-tab";
var pathtoroot = "../../../../../";
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="flex-box">
<header role="banner" class="flex-header">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="top-nav" id="navbar-top"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"></span><span class="nav-bar-toggle-icon"></span><span class="nav-bar-toggle-icon"></span></button>
<div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div>
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
<li><a href="../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="nav-bar-cell1-rev">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#class">Help</a></li>
</ul>
<ul class="sub-nav-list-small">
<li>
<p>Summary:</p>
<ul>
<li>Nested</li>
<li>Field</li>
<li><a href="#constructor-summary">Constr</a></li>
<li><a href="#method-summary">Method</a></li>
</ul>
</li>
<li>
<p>Detail:</p>
<ul>
<li>Field</li>
<li><a href="#constructor-detail">Constr</a></li>
<li><a href="#method-detail">Method</a></li>
</ul>
</li>
</ul>
</div>
<div class="sub-nav">
<div id="navbar-sub-list">
<ul class="sub-nav-list">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor-summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method-summary">Method</a></li>
</ul>
<ul class="sub-nav-list">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor-detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method-detail">Method</a></li>
</ul>
</div>
<div class="nav-list-search"><label for="search-input">SEARCH:</label>
<input type="text" id="search-input" disabled placeholder="Search">
<input type="reset" id="reset-button" disabled value="reset">
</div>
</div>
<!-- ========= END OF TOP NAVBAR ========= -->
<span class="skip-nav" id="skip-navbar-top"></span></nav>
</header>
<div class="flex-content">
<main role="main">
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="sub-title"><span class="package-label-in-type">Package</span>&nbsp;<a href="package-summary.html">org.apache.juneau.rest.assertions</a></div>
<h1 title="Class FluentRequestLineAssertion" class="title">Class FluentRequestLineAssertion&lt;R&gt;</h1>
</div>
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
<div class="inheritance"><a href="../../assertions/Assertion.html" title="class in org.apache.juneau.assertions">org.apache.juneau.assertions.Assertion</a>
<div class="inheritance"><a href="../../assertions/FluentAssertion.html" title="class in org.apache.juneau.assertions">org.apache.juneau.assertions.FluentAssertion</a>&lt;R&gt;
<div class="inheritance"><a href="../../assertions/FluentObjectAssertion.html" title="class in org.apache.juneau.assertions">org.apache.juneau.assertions.FluentObjectAssertion</a>&lt;<a href="https://hc.apache.org/httpcomponents-core-4.4.x/current/httpcore/apidocs/org/apache/http/RequestLine.html" title="class or interface in org.apache.http" class="external-link">RequestLine</a>,<wbr>R&gt;
<div class="inheritance">org.apache.juneau.rest.assertions.FluentRequestLineAssertion&lt;R&gt;</div>
</div>
</div>
</div>
</div>
<section class="class-description" id="class-description">
<dl class="notes">
<dt>Type Parameters:</dt>
<dd><code>R</code> - The return type.</dd>
</dl>
<hr>
<div class="type-signature"><span class="modifiers">public class </span><span class="element-name"><a href="../../../../../src-html/org/apache/juneau/rest/assertions/FluentRequestLineAssertion.html#line-91">FluentRequestLineAssertion</a>&lt;R&gt;</span>
<span class="extends-implements">extends <a href="../../assertions/FluentObjectAssertion.html" title="class in org.apache.juneau.assertions">FluentObjectAssertion</a>&lt;<a href="https://hc.apache.org/httpcomponents-core-4.4.x/current/httpcore/apidocs/org/apache/http/RequestLine.html" title="class or interface in org.apache.http" class="external-link">RequestLine</a>,<wbr>R&gt;</span></div>
<div class="block">Used for fluent assertion calls against <a href="https://hc.apache.org/httpcomponents-core-4.4.x/current/httpcore/apidocs/org/apache/http/RequestLine.html" title="class or interface in org.apache.http" class="external-link"><code>RequestLine</code></a> objects.
<h5 class='topic'>Test Methods</h5>
<p>
<ul class='javatree'>
<li class='jc'><a href="../../assertions/FluentObjectAssertion.html" title="class in org.apache.juneau.assertions"><code>FluentObjectAssertion</code></a>
<ul class='javatreec'>
<li class='jm'><a href="../../assertions/FluentObjectAssertion.html#isExists()"><code>isExists()</code></a>
<li class='jm'><a href="../../assertions/FluentObjectAssertion.html#is(T)"><code>is(Object)</code></a>
<li class='jm'><a href="../../assertions/FluentObjectAssertion.html#is(java.util.function.Predicate)"><code>is(Predicate)</code></a>
<li class='jm'><a href="../../assertions/FluentObjectAssertion.html#isNot(T)"><code>isNot(Object)</code></a>
<li class='jm'><a href="../../assertions/FluentObjectAssertion.html#isAny(T...)"><code>isAny(Object...)</code></a>
<li class='jm'><a href="../../assertions/FluentObjectAssertion.html#isNotAny(T...)"><code>isNotAny(Object...)</code></a>
<li class='jm'><a href="../../assertions/FluentObjectAssertion.html#isNull()"><code>isNull()</code></a>
<li class='jm'><a href="../../assertions/FluentObjectAssertion.html#isNotNull()"><code>isNotNull()</code></a>
<li class='jm'><a href="../../assertions/FluentObjectAssertion.html#isString(java.lang.String)"><code>isString(String)</code></a>
<li class='jm'><a href="../../assertions/FluentObjectAssertion.html#isJson(java.lang.String)"><code>isJson(String)</code></a>
<li class='jm'><a href="../../assertions/FluentObjectAssertion.html#isSame(T)"><code>isSame(Object)</code></a>
<li class='jm'><a href="../../assertions/FluentObjectAssertion.html#isSameJsonAs(java.lang.Object)"><code>isSameJsonAs(Object)</code></a>
<li class='jm'><a href="../../assertions/FluentObjectAssertion.html#isSameSortedJsonAs(java.lang.Object)"><code>isSameSortedJsonAs(Object)</code></a>
<li class='jm'><a href="../../assertions/FluentObjectAssertion.html#isSameSerializedAs(java.lang.Object,org.apache.juneau.serializer.WriterSerializer)"><code>isSameSerializedAs(Object, WriterSerializer)</code></a>
<li class='jm'><a href="../../assertions/FluentObjectAssertion.html#isType(java.lang.Class)"><code>isType(Class)</code></a>
<li class='jm'><a href="../../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="FluentRequestLineAssertion.html" title="class in org.apache.juneau.rest.assertions"><code>FluentRequestLineAssertion</code></a>
<ul class='javatreec'>
<li class='jm'><a href="#asMethod()"><code>asMethod()</code></a>
<li class='jm'><a href="#asUri()"><code>asUri()</code></a>
<li class='jm'><a href="#asProtocolVersion()"><code>asProtocolVersion()</code></a>
</ul>
<li class='jc'><a href="../../assertions/FluentObjectAssertion.html" title="class in org.apache.juneau.assertions"><code>FluentObjectAssertion</code></a>
<ul class='javatreec'>
<li class='jm'><a href="../../assertions/FluentObjectAssertion.html#asString()"><code>asString()</code></a>
<li class='jm'><a href="../../assertions/FluentObjectAssertion.html#asString(org.apache.juneau.serializer.WriterSerializer)"><code>asString(WriterSerializer)</code></a>
<li class='jm'><a href="../../assertions/FluentObjectAssertion.html#asString(java.util.function.Function)"><code>asString(Function)</code></a>
<li class='jm'><a href="../../assertions/FluentObjectAssertion.html#asJson()"><code>asJson()</code></a>
<li class='jm'><a href="../../assertions/FluentObjectAssertion.html#asJsonSorted()"><code>asJsonSorted()</code></a>
<li class='jm'><a href="../../assertions/FluentObjectAssertion.html#asTransformed(java.util.function.Function)"><code>asApplied(Function)</code></a>
<li class='jm'><a href="../../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="../../assertions/Assertion.html" title="class in org.apache.juneau.assertions"><code>Assertion</code></a>
<ul class='javatreec'>
<li class='jm'><a href="../../assertions/Assertion.html#setMsg(java.lang.String,java.lang.Object...)"><code>setMsg(String, Object...)</code></a>
<li class='jm'><a href="../../assertions/Assertion.html#setOut(java.io.PrintStream)"><code>setOut(PrintStream)</code></a>
<li class='jm'><a href="../../assertions/Assertion.html#setSilent()"><code>setSilent()</code></a>
<li class='jm'><a href="../../assertions/Assertion.html#setStdOut()"><code>setStdOut()</code></a>
<li class='jm'><a href="../../assertions/Assertion.html#setThrowable(java.lang.Class)"><code>setThrowable(Class)</code></a>
</ul>
</ul>
<h5 class='section'>See Also:</h5><ul>
<li class='link'><a class="doclink" href="../../../../../index.html#ja.Overview">juneau-assertions</a>
</ul></div>
</section>
<section class="summary">
<ul class="summary-list">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<li>
<section class="constructor-summary" id="constructor-summary">
<h2>Constructor Summary</h2>
<div class="caption"><span>Constructors</span></div>
<div class="summary-table two-column-summary">
<div class="table-header col-first">Constructor</div>
<div class="table-header col-last">Description</div>
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(org.apache.http.RequestLine,R)" class="member-name-link">FluentRequestLineAssertion</a><wbr>(<a href="https://hc.apache.org/httpcomponents-core-4.4.x/current/httpcore/apidocs/org/apache/http/RequestLine.html" title="class or interface in org.apache.http" class="external-link">RequestLine</a>&nbsp;value,
<a href="FluentRequestLineAssertion.html" title="type parameter in FluentRequestLineAssertion">R</a>&nbsp;returns)</code></div>
<div class="col-last even-row-color">
<div class="block">Constructor.</div>
</div>
<div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(org.apache.juneau.assertions.Assertion,org.apache.http.RequestLine,R)" class="member-name-link">FluentRequestLineAssertion</a><wbr>(<a href="../../assertions/Assertion.html" title="class in org.apache.juneau.assertions">Assertion</a>&nbsp;creator,
<a href="https://hc.apache.org/httpcomponents-core-4.4.x/current/httpcore/apidocs/org/apache/http/RequestLine.html" title="class or interface in org.apache.http" class="external-link">RequestLine</a>&nbsp;value,
<a href="FluentRequestLineAssertion.html" title="type parameter in FluentRequestLineAssertion">R</a>&nbsp;returns)</code></div>
<div class="col-last odd-row-color">
<div class="block">Chained constructor.</div>
</div>
</div>
</section>
</li>
<!-- ========== METHOD SUMMARY =========== -->
<li>
<section class="method-summary" id="method-summary">
<h2>Method Summary</h2>
<div id="method-summary-table">
<div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="method-summary-table-tab0" role="tab" aria-selected="true" aria-controls="method-summary-table.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table', 3)" class="active-table-tab">All Methods</button><button id="method-summary-table-tab2" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab2', 3)" class="table-tab">Instance Methods</button><button id="method-summary-table-tab4" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab4', 3)" class="table-tab">Concrete Methods</button></div>
<div id="method-summary-table.tabpanel" role="tabpanel">
<div class="summary-table three-column-summary" aria-labelledby="method-summary-table-tab0">
<div class="table-header col-first">Modifier and Type</div>
<div class="table-header col-second">Method</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="../../assertions/FluentStringAssertion.html" title="class in org.apache.juneau.assertions">FluentStringAssertion</a>&lt;<a href="FluentRequestLineAssertion.html" title="type parameter in FluentRequestLineAssertion">R</a>&gt;</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#asMethod()" class="member-name-link">asMethod</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Returns the request line method string as a new assertion.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="FluentProtocolVersionAssertion.html" title="class in org.apache.juneau.rest.assertions">FluentProtocolVersionAssertion</a>&lt;<a href="FluentRequestLineAssertion.html" title="type parameter in FluentRequestLineAssertion">R</a>&gt;</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#asProtocolVersion()" class="member-name-link">asProtocolVersion</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Returns the request line protocol version as a new assertion.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="../../assertions/FluentStringAssertion.html" title="class in org.apache.juneau.assertions">FluentStringAssertion</a>&lt;<a href="FluentRequestLineAssertion.html" title="type parameter in FluentRequestLineAssertion">R</a>&gt;</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#asUri()" class="member-name-link">asUri</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Returns the request line uri string as a new assertion.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="FluentRequestLineAssertion.html" title="class in org.apache.juneau.rest.assertions">FluentRequestLineAssertion</a>&lt;<a href="FluentRequestLineAssertion.html" title="type parameter in FluentRequestLineAssertion">R</a>&gt;</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#setMsg(java.lang.String,java.lang.Object...)" class="member-name-link">setMsg</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;msg,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>...&nbsp;args)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Allows you to override the assertion failure message.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="FluentRequestLineAssertion.html" title="class in org.apache.juneau.rest.assertions">FluentRequestLineAssertion</a>&lt;<a href="FluentRequestLineAssertion.html" title="type parameter in FluentRequestLineAssertion">R</a>&gt;</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#setOut(java.io.PrintStream)" class="member-name-link">setOut</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/PrintStream.html" title="class or interface in java.io" class="external-link">PrintStream</a>&nbsp;value)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">If an error occurs, send the error message to the specified stream instead of STDERR.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="FluentRequestLineAssertion.html" title="class in org.apache.juneau.rest.assertions">FluentRequestLineAssertion</a>&lt;<a href="FluentRequestLineAssertion.html" title="type parameter in FluentRequestLineAssertion">R</a>&gt;</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#setSilent()" class="member-name-link">setSilent</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Suppresses output to STDERR.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="FluentRequestLineAssertion.html" title="class in org.apache.juneau.rest.assertions">FluentRequestLineAssertion</a>&lt;<a href="FluentRequestLineAssertion.html" title="type parameter in FluentRequestLineAssertion">R</a>&gt;</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#setStdOut()" class="member-name-link">setStdOut</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">If an error occurs, send the error message to STDOUT instead of STDERR.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="FluentRequestLineAssertion.html" title="class in org.apache.juneau.rest.assertions">FluentRequestLineAssertion</a>&lt;<a href="FluentRequestLineAssertion.html" title="type parameter in FluentRequestLineAssertion">R</a>&gt;</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#setThrowable(java.lang.Class)" class="member-name-link">setThrowable</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html" title="class or interface in java.lang" class="external-link">Class</a>&lt;? extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/RuntimeException.html" title="class or interface in java.lang" class="external-link">RuntimeException</a>&gt;&nbsp;value)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<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" title="class or interface in java.lang" class="external-link"><code>AssertionError</code></a>.</div>
</div>
</div>
</div>
</div>
<div class="inherited-list">
<h3 id="methods-inherited-from-class-org.apache.juneau.assertions.FluentObjectAssertion">Methods inherited from class&nbsp;org.apache.juneau.assertions.<a href="../../assertions/FluentObjectAssertion.html" title="class in org.apache.juneau.assertions">FluentObjectAssertion</a></h3>
<code><a href="../../assertions/FluentObjectAssertion.html#asAny()">asAny</a>, <a href="../../assertions/FluentObjectAssertion.html#asJson()">asJson</a>, <a href="../../assertions/FluentObjectAssertion.html#asJsonSorted()">asJsonSorted</a>, <a href="../../assertions/FluentObjectAssertion.html#asString()">asString</a>, <a href="../../assertions/FluentObjectAssertion.html#asString(java.util.function.Function)">asString</a>, <a href="../../assertions/FluentObjectAssertion.html#asString(org.apache.juneau.serializer.WriterSerializer)">asString</a>, <a href="../../assertions/FluentObjectAssertion.html#asTransformed(java.util.function.Function)">asTransformed</a>, <a href="../../assertions/FluentObjectAssertion.html#asTransformedTo(java.util.function.Function)">asTransformedTo</a>, <a href="../../assertions/FluentObjectAssertion.html#equals(java.lang.Object,java.lang.Object)">equals</a>, <a href="../../assertions/FluentObjectAssertion.html#getFailureMessage(java.util.function.Predicate,java.lang.Object)">getFailureMessage</a>, <a href="../../assertions/FluentObjectAssertion.html#is(java.util.function.Predicate)">is</a>, <a href="../../assertions/FluentObjectAssertion.html#is(T)">is</a>, <a href="../../assertions/FluentObjectAssertion.html#isAny(T...)">isAny</a>, <a href="../../assertions/FluentObjectAssertion.html#isExactType(java.lang.Class)">isExactType</a>, <a href="../../assertions/FluentObjectAssertion.html#isExists()">isExists</a>, <a href="../../assertions/FluentObjectAssertion.html#isJson(java.lang.String)">isJson</a>, <a href="../../assertions/FluentObjectAssertion.html#isNot(T)">isNot</a>, <a href="../../assertions/FluentObjectAssertion.html#isNotAny(T...)">isNotAny</a>, <a href="../../assertions/FluentObjectAssertion.html#isNotNull()">isNotNull</a>, <a href="../../assertions/FluentObjectAssertion.html#isNull()">isNull</a>, <a href="../../assertions/FluentObjectAssertion.html#isSame(T)">isSame</a>, <a href="../../assertions/FluentObjectAssertion.html#isSameJsonAs(java.lang.Object)">isSameJsonAs</a>, <a href="../../assertions/FluentObjectAssertion.html#isSameSerializedAs(java.lang.Object,org.apache.juneau.serializer.WriterSerializer)">isSameSerializedAs</a>, <a href="../../assertions/FluentObjectAssertion.html#isSameSortedJsonAs(java.lang.Object)">isSameSortedJsonAs</a>, <a href="../../assertions/FluentObjectAssertion.html#isString(java.lang.String)">isString</a>, <a href="../../assertions/FluentObjectAssertion.html#isType(java.lang.Class)">isType</a>, <a href="../../assertions/FluentObjectAssertion.html#map(java.util.function.Function)">map</a>, <a href="../../assertions/FluentObjectAssertion.html#opt()">opt</a>, <a href="../../assertions/FluentObjectAssertion.html#orElse(T)">orElse</a>, <a href="../../assertions/FluentObjectAssertion.html#toString()">toString</a>, <a href="../../assertions/FluentObjectAssertion.html#value()">value</a>, <a href="../../assertions/FluentObjectAssertion.html#valueAsString()">valueAsString</a>, <a href="../../assertions/FluentObjectAssertion.html#valueIsNotNull()">valueIsNotNull</a>, <a href="../../assertions/FluentObjectAssertion.html#valueIsNull()">valueIsNull</a></code></div>
<div class="inherited-list">
<h3 id="methods-inherited-from-class-org.apache.juneau.assertions.FluentAssertion">Methods inherited from class&nbsp;org.apache.juneau.assertions.<a href="../../assertions/FluentAssertion.html" title="class in org.apache.juneau.assertions">FluentAssertion</a></h3>
<code><a href="../../assertions/FluentAssertion.html#returns()">returns</a></code></div>
<div class="inherited-list">
<h3 id="methods-inherited-from-class-org.apache.juneau.assertions.Assertion">Methods inherited from class&nbsp;org.apache.juneau.assertions.<a href="../../assertions/Assertion.html" title="class in org.apache.juneau.assertions">Assertion</a></h3>
<code><a href="../../assertions/Assertion.html#arrayClass(java.lang.Class)">arrayClass</a>, <a href="../../assertions/Assertion.html#className(java.lang.Object)">className</a>, <a href="../../assertions/Assertion.html#error(java.lang.String,java.lang.Object...)">error</a>, <a href="../../assertions/Assertion.html#error(java.lang.Throwable,java.lang.String,java.lang.Object...)">error</a></code></div>
<div class="inherited-list">
<h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></h3>
<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang" class="external-link">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait(long,int)" title="class or interface in java.lang" class="external-link">wait</a></code></div>
</section>
</li>
</ul>
</section>
<section class="details">
<ul class="details-list">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<li>
<section class="constructor-details" id="constructor-detail">
<h2>Constructor Details</h2>
<ul class="member-list">
<li>
<section class="detail" id="&lt;init&gt;(org.apache.http.RequestLine,R)">
<h3 id="&lt;init&gt;(org.apache.http.RequestLine,java.lang.Object)">FluentRequestLineAssertion</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/juneau/rest/assertions/FluentRequestLineAssertion.html#line-109">FluentRequestLineAssertion</a></span><wbr><span class="parameters">(<a href="https://hc.apache.org/httpcomponents-core-4.4.x/current/httpcore/apidocs/org/apache/http/RequestLine.html" title="class or interface in org.apache.http" class="external-link">RequestLine</a>&nbsp;value,
<a href="FluentRequestLineAssertion.html" title="type parameter in FluentRequestLineAssertion">R</a>&nbsp;returns)</span></div>
<div class="block">Constructor.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The object being tested.
<br>Can be <jk>null</jk>.</dd>
<dd><code>returns</code> - The object to return after a test method is called.
<br>If <jk>null</jk>, the test method returns this object allowing multiple test method calls to be
used on the same assertion.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="&lt;init&gt;(org.apache.juneau.assertions.Assertion,org.apache.http.RequestLine,R)">
<h3 id="&lt;init&gt;(org.apache.juneau.assertions.Assertion,org.apache.http.RequestLine,java.lang.Object)">FluentRequestLineAssertion</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/juneau/rest/assertions/FluentRequestLineAssertion.html#line-130">FluentRequestLineAssertion</a></span><wbr><span class="parameters">(<a href="../../assertions/Assertion.html" title="class in org.apache.juneau.assertions">Assertion</a>&nbsp;creator,
<a href="https://hc.apache.org/httpcomponents-core-4.4.x/current/httpcore/apidocs/org/apache/http/RequestLine.html" title="class or interface in org.apache.http" class="external-link">RequestLine</a>&nbsp;value,
<a href="FluentRequestLineAssertion.html" title="type parameter in FluentRequestLineAssertion">R</a>&nbsp;returns)</span></div>
<div class="block">Chained constructor.
<p>
Used when transforming one assertion into another so that the assertion config can be used by the new assertion.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>creator</code> - The assertion that created this assertion.
<br>Should be <jk>null</jk> if this is the top-level assertion.</dd>
<dd><code>value</code> - The object being tested.
<br>Can be <jk>null</jk>.</dd>
<dd><code>returns</code> - The object to return after a test method is called.
<br>If <jk>null</jk>, the test method returns this object allowing multiple test method calls to be
used on the same assertion.</dd>
</dl>
</section>
</li>
</ul>
</section>
</li>
<!-- ============ METHOD DETAIL ========== -->
<li>
<section class="method-details" id="method-detail">
<h2>Method Details</h2>
<ul class="member-list">
<li>
<section class="detail" id="asMethod()">
<h3>asMethod</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="../../assertions/FluentStringAssertion.html" title="class in org.apache.juneau.assertions">FluentStringAssertion</a>&lt;<a href="FluentRequestLineAssertion.html" title="type parameter in FluentRequestLineAssertion">R</a>&gt;</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/juneau/rest/assertions/FluentRequestLineAssertion.html#line-144">asMethod</a></span>()</div>
<div class="block">Returns the request line method string as a new assertion.</div>
<dl class="notes">
<dt>Returns:</dt>
<dd>A new assertion.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="asUri()">
<h3>asUri</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="../../assertions/FluentStringAssertion.html" title="class in org.apache.juneau.assertions">FluentStringAssertion</a>&lt;<a href="FluentRequestLineAssertion.html" title="type parameter in FluentRequestLineAssertion">R</a>&gt;</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/juneau/rest/assertions/FluentRequestLineAssertion.html#line-153">asUri</a></span>()</div>
<div class="block">Returns the request line uri string as a new assertion.</div>
<dl class="notes">
<dt>Returns:</dt>
<dd>A new assertion.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="asProtocolVersion()">
<h3>asProtocolVersion</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="FluentProtocolVersionAssertion.html" title="class in org.apache.juneau.rest.assertions">FluentProtocolVersionAssertion</a>&lt;<a href="FluentRequestLineAssertion.html" title="type parameter in FluentRequestLineAssertion">R</a>&gt;</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/juneau/rest/assertions/FluentRequestLineAssertion.html#line-162">asProtocolVersion</a></span>()</div>
<div class="block">Returns the request line protocol version as a new assertion.</div>
<dl class="notes">
<dt>Returns:</dt>
<dd>A new assertion.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setMsg(java.lang.String,java.lang.Object...)">
<h3>setMsg</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="FluentRequestLineAssertion.html" title="class in org.apache.juneau.rest.assertions">FluentRequestLineAssertion</a>&lt;<a href="FluentRequestLineAssertion.html" title="type parameter in FluentRequestLineAssertion">R</a>&gt;</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/juneau/rest/assertions/FluentRequestLineAssertion.html#line-172">setMsg</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;msg,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>...&nbsp;args)</span></div>
<div class="block"><span class="description-from-type-label">Description copied from class:&nbsp;<code><a href="../../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 class="notes">
<dt>Overrides:</dt>
<dd><code><a href="../../assertions/FluentObjectAssertion.html#setMsg(java.lang.String,java.lang.Object...)">setMsg</a></code>&nbsp;in class&nbsp;<code><a href="../../assertions/FluentObjectAssertion.html" title="class in org.apache.juneau.assertions">FluentObjectAssertion</a>&lt;<a href="https://hc.apache.org/httpcomponents-core-4.4.x/current/httpcore/apidocs/org/apache/http/RequestLine.html" title="class or interface in org.apache.http" class="external-link">RequestLine</a>,<wbr><a href="FluentRequestLineAssertion.html" title="type parameter in FluentRequestLineAssertion">R</a>&gt;</code></dd>
<dt>Parameters:</dt>
<dd><code>msg</code> - The assertion failure message.</dd>
<dd><code>args</code> - Optional message arguments.</dd>
<dt>Returns:</dt>
<dd>This object.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setOut(java.io.PrintStream)">
<h3>setOut</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="FluentRequestLineAssertion.html" title="class in org.apache.juneau.rest.assertions">FluentRequestLineAssertion</a>&lt;<a href="FluentRequestLineAssertion.html" title="type parameter in FluentRequestLineAssertion">R</a>&gt;</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/juneau/rest/assertions/FluentRequestLineAssertion.html#line-178">setOut</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/PrintStream.html" title="class or interface in java.io" class="external-link">PrintStream</a>&nbsp;value)</span></div>
<div class="block"><span class="description-from-type-label">Description copied from class:&nbsp;<code><a href="../../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 class="notes">
<dt>Overrides:</dt>
<dd><code><a href="../../assertions/FluentObjectAssertion.html#setOut(java.io.PrintStream)">setOut</a></code>&nbsp;in class&nbsp;<code><a href="../../assertions/FluentObjectAssertion.html" title="class in org.apache.juneau.assertions">FluentObjectAssertion</a>&lt;<a href="https://hc.apache.org/httpcomponents-core-4.4.x/current/httpcore/apidocs/org/apache/http/RequestLine.html" title="class or interface in org.apache.http" class="external-link">RequestLine</a>,<wbr><a href="FluentRequestLineAssertion.html" title="type parameter in FluentRequestLineAssertion">R</a>&gt;</code></dd>
<dt>Parameters:</dt>
<dd><code>value</code> - The output stream.
Can be <jk>null</jk> to suppress output.</dd>
<dt>Returns:</dt>
<dd>This object.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setSilent()">
<h3>setSilent</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="FluentRequestLineAssertion.html" title="class in org.apache.juneau.rest.assertions">FluentRequestLineAssertion</a>&lt;<a href="FluentRequestLineAssertion.html" title="type parameter in FluentRequestLineAssertion">R</a>&gt;</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/juneau/rest/assertions/FluentRequestLineAssertion.html#line-184">setSilent</a></span>()</div>
<div class="block"><span class="description-from-type-label">Description copied from class:&nbsp;<code><a href="../../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 class="notes">
<dt>Overrides:</dt>
<dd><code><a href="../../assertions/FluentObjectAssertion.html#setSilent()">setSilent</a></code>&nbsp;in class&nbsp;<code><a href="../../assertions/FluentObjectAssertion.html" title="class in org.apache.juneau.assertions">FluentObjectAssertion</a>&lt;<a href="https://hc.apache.org/httpcomponents-core-4.4.x/current/httpcore/apidocs/org/apache/http/RequestLine.html" title="class or interface in org.apache.http" class="external-link">RequestLine</a>,<wbr><a href="FluentRequestLineAssertion.html" title="type parameter in FluentRequestLineAssertion">R</a>&gt;</code></dd>
<dt>Returns:</dt>
<dd>This object.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setStdOut()">
<h3>setStdOut</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="FluentRequestLineAssertion.html" title="class in org.apache.juneau.rest.assertions">FluentRequestLineAssertion</a>&lt;<a href="FluentRequestLineAssertion.html" title="type parameter in FluentRequestLineAssertion">R</a>&gt;</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/juneau/rest/assertions/FluentRequestLineAssertion.html#line-190">setStdOut</a></span>()</div>
<div class="block"><span class="description-from-type-label">Description copied from class:&nbsp;<code><a href="../../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 class="notes">
<dt>Overrides:</dt>
<dd><code><a href="../../assertions/FluentObjectAssertion.html#setStdOut()">setStdOut</a></code>&nbsp;in class&nbsp;<code><a href="../../assertions/FluentObjectAssertion.html" title="class in org.apache.juneau.assertions">FluentObjectAssertion</a>&lt;<a href="https://hc.apache.org/httpcomponents-core-4.4.x/current/httpcore/apidocs/org/apache/http/RequestLine.html" title="class or interface in org.apache.http" class="external-link">RequestLine</a>,<wbr><a href="FluentRequestLineAssertion.html" title="type parameter in FluentRequestLineAssertion">R</a>&gt;</code></dd>
<dt>Returns:</dt>
<dd>This object.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setThrowable(java.lang.Class)">
<h3>setThrowable</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="FluentRequestLineAssertion.html" title="class in org.apache.juneau.rest.assertions">FluentRequestLineAssertion</a>&lt;<a href="FluentRequestLineAssertion.html" title="type parameter in FluentRequestLineAssertion">R</a>&gt;</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/juneau/rest/assertions/FluentRequestLineAssertion.html#line-196">setThrowable</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html" title="class or interface in java.lang" class="external-link">Class</a>&lt;? extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/RuntimeException.html" title="class or interface in java.lang" class="external-link">RuntimeException</a>&gt;&nbsp;value)</span></div>
<div class="block"><span class="description-from-type-label">Description copied from class:&nbsp;<code><a href="../../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" title="class or interface in java.lang" class="external-link"><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" title="class or interface in java.lang" class="external-link"><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" title="class or interface in java.lang" class="external-link"><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" title="class or interface in java.lang" class="external-link"><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 class="notes">
<dt>Overrides:</dt>
<dd><code><a href="../../assertions/FluentObjectAssertion.html#setThrowable(java.lang.Class)">setThrowable</a></code>&nbsp;in class&nbsp;<code><a href="../../assertions/FluentObjectAssertion.html" title="class in org.apache.juneau.assertions">FluentObjectAssertion</a>&lt;<a href="https://hc.apache.org/httpcomponents-core-4.4.x/current/httpcore/apidocs/org/apache/http/RequestLine.html" title="class or interface in org.apache.http" class="external-link">RequestLine</a>,<wbr><a href="FluentRequestLineAssertion.html" title="type parameter in FluentRequestLineAssertion">R</a>&gt;</code></dd>
<dt>Parameters:</dt>
<dd><code>value</code> - The new value for this setting.</dd>
<dt>Returns:</dt>
<dd>This object.</dd>
</dl>
</section>
</li>
</ul>
</section>
</li>
</ul>
</section>
<!-- ========= END OF CLASS DATA ========= -->
</main>
<footer role="contentinfo">
<hr>
<p class="legal-copy"><small>Copyright &#169; 2016&#x2013;2022 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</footer>
</div>
</div>
</body>
</html>