<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki.alexander-kluge.de/index.php?action=history&amp;feed=atom&amp;title=Spring%3AWebTestClient</id>
	<title>Spring:WebTestClient - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alexander-kluge.de/index.php?action=history&amp;feed=atom&amp;title=Spring%3AWebTestClient"/>
	<link rel="alternate" type="text/html" href="https://wiki.alexander-kluge.de/index.php?title=Spring:WebTestClient&amp;action=history"/>
	<updated>2026-05-08T14:43:42Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Alexander&#039;s Wiki</subtitle>
	<generator>MediaWiki 1.36.2</generator>
	<entry>
		<id>https://wiki.alexander-kluge.de/index.php?title=Spring:WebTestClient&amp;diff=1490&amp;oldid=prev</id>
		<title>Admin: Die Seite wurde neu angelegt: „&lt;syntaxhighlight lang=&quot;java&quot;&gt; @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) class ...Test {          @Test     void ...()     {…“</title>
		<link rel="alternate" type="text/html" href="https://wiki.alexander-kluge.de/index.php?title=Spring:WebTestClient&amp;diff=1490&amp;oldid=prev"/>
		<updated>2022-10-20T11:54:55Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt; @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) class ...Test {          @Test     void ...()     {…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)&lt;br /&gt;
class ...Test {&lt;br /&gt;
    &lt;br /&gt;
    @Test&lt;br /&gt;
    void ...()&lt;br /&gt;
    {&lt;br /&gt;
        WebTestClient.ResponseSpec response = webTestClient&lt;br /&gt;
                .get()&lt;br /&gt;
                .uri(&amp;quot;uri/protocol/openid-connect/certs&amp;quot;)&lt;br /&gt;
                .header(ACCEPT, APPLICATION_JSON_VALUE)&lt;br /&gt;
                .exchange();&lt;br /&gt;
&lt;br /&gt;
        response.expectStatus()&lt;br /&gt;
                .is2xxSuccessful()&lt;br /&gt;
                .expectHeader()&lt;br /&gt;
                .contentType(APPLICATION_JSON)&lt;br /&gt;
                .expectBody()&lt;br /&gt;
                .jsonPath(&amp;quot;$.length()&amp;quot;).isEqualTo(3)&lt;br /&gt;
                .jsonPath(&amp;quot;$[0].id&amp;quot;).isEqualTo(1)&lt;br /&gt;
                .jsonPath(&amp;quot;$[0].name&amp;quot;).isEqualTo(&amp;quot;duke&amp;quot;)&lt;br /&gt;
                .jsonPath(&amp;quot;$[0].tags&amp;quot;).isNotEmpty();&lt;br /&gt;
&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>