Polishing
This commit is contained in:
		
							parent
							
								
									f87a87e29d
								
							
						
					
					
						commit
						979118c1eb
					
				| 
						 | 
					@ -421,11 +421,9 @@ public interface DataBuffer {
 | 
				
			||||||
	 * Copies the given length from this data buffer into the given destination
 | 
						 * Copies the given length from this data buffer into the given destination
 | 
				
			||||||
	 * {@code ByteBuffer}, beginning at the given source position, and the
 | 
						 * {@code ByteBuffer}, beginning at the given source position, and the
 | 
				
			||||||
	 * given destination position in the destination byte buffer.
 | 
						 * given destination position in the destination byte buffer.
 | 
				
			||||||
	 * @param srcPos the position of this data buffer from where copying should
 | 
						 * @param srcPos the position of this data buffer from where copying should start
 | 
				
			||||||
	 * start
 | 
					 | 
				
			||||||
	 * @param dest the destination byte buffer
 | 
						 * @param dest the destination byte buffer
 | 
				
			||||||
	 * @param destPos the position in {@code dest} to where copying should
 | 
						 * @param destPos the position in {@code dest} to where copying should start
 | 
				
			||||||
	 * start
 | 
					 | 
				
			||||||
	 * @param length the amount of data to copy
 | 
						 * @param length the amount of data to copy
 | 
				
			||||||
	 * @since 6.0.5
 | 
						 * @since 6.0.5
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
| 
						 | 
					@ -436,7 +434,6 @@ public interface DataBuffer {
 | 
				
			||||||
	 * buffer that can be read. Calling this method is more efficient than
 | 
						 * buffer that can be read. Calling this method is more efficient than
 | 
				
			||||||
	 * {@link #toByteBuffer()}, as no data is copied. However, the byte buffers
 | 
						 * {@link #toByteBuffer()}, as no data is copied. However, the byte buffers
 | 
				
			||||||
	 * provided can only be used during the iteration.
 | 
						 * provided can only be used during the iteration.
 | 
				
			||||||
	 *
 | 
					 | 
				
			||||||
	 * <p><b>Note</b> that the returned iterator must be used in a
 | 
						 * <p><b>Note</b> that the returned iterator must be used in a
 | 
				
			||||||
	 * try-with-resources clause or explicitly
 | 
						 * try-with-resources clause or explicitly
 | 
				
			||||||
	 * {@linkplain ByteBufferIterator#close() closed}.
 | 
						 * {@linkplain ByteBufferIterator#close() closed}.
 | 
				
			||||||
| 
						 | 
					@ -449,7 +446,6 @@ public interface DataBuffer {
 | 
				
			||||||
	 * Returns a closeable iterator over each {@link ByteBuffer} in this data
 | 
						 * Returns a closeable iterator over each {@link ByteBuffer} in this data
 | 
				
			||||||
	 * buffer that can be written to. The byte buffers provided can only be used
 | 
						 * buffer that can be written to. The byte buffers provided can only be used
 | 
				
			||||||
	 * during the iteration.
 | 
						 * during the iteration.
 | 
				
			||||||
	 *
 | 
					 | 
				
			||||||
	 * <p><b>Note</b> that the returned iterator must be used in a
 | 
						 * <p><b>Note</b> that the returned iterator must be used in a
 | 
				
			||||||
	 * try-with-resources clause or explicitly
 | 
						 * try-with-resources clause or explicitly
 | 
				
			||||||
	 * {@linkplain ByteBufferIterator#close() closed}.
 | 
						 * {@linkplain ByteBufferIterator#close() closed}.
 | 
				
			||||||
| 
						 | 
					@ -519,6 +515,7 @@ public interface DataBuffer {
 | 
				
			||||||
	 * A dedicated iterator type that ensures the lifecycle of iterated
 | 
						 * A dedicated iterator type that ensures the lifecycle of iterated
 | 
				
			||||||
	 * {@link ByteBuffer} elements. This iterator must be used in a
 | 
						 * {@link ByteBuffer} elements. This iterator must be used in a
 | 
				
			||||||
	 * try-with-resources clause or explicitly {@linkplain #close() closed}.
 | 
						 * try-with-resources clause or explicitly {@linkplain #close() closed}.
 | 
				
			||||||
 | 
						 * @since 6.0.5
 | 
				
			||||||
	 * @see DataBuffer#readableByteBuffers()
 | 
						 * @see DataBuffer#readableByteBuffers()
 | 
				
			||||||
	 * @see DataBuffer#writableByteBuffers()
 | 
						 * @see DataBuffer#writableByteBuffers()
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -203,20 +203,20 @@ class MockRestRequestMatchersTests {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		assertThatExceptionOfType(AssertionError.class).isThrownBy(() -> MockRestRequestMatchers
 | 
							assertThatExceptionOfType(AssertionError.class).isThrownBy(() -> MockRestRequestMatchers
 | 
				
			||||||
						.header("foo", contains(containsString("ba"))).match(this.request))
 | 
											.header("foo", contains(containsString("ba"))).match(this.request))
 | 
				
			||||||
				.withMessage("Request header values for [foo]\n"
 | 
									.withMessage("Request header values for [foo]" + System.lineSeparator()
 | 
				
			||||||
						+ "Expected: iterable containing [a string containing \"ba\"]\n"
 | 
											+ "Expected: iterable containing [a string containing \"ba\"]" + System.lineSeparator()
 | 
				
			||||||
						+ "     but: not matched: \"baz\"");
 | 
											+ "     but: not matched: \"baz\"");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		assertThatExceptionOfType(AssertionError.class).isThrownBy(() -> MockRestRequestMatchers
 | 
							assertThatExceptionOfType(AssertionError.class).isThrownBy(() -> MockRestRequestMatchers
 | 
				
			||||||
						.header("foo", hasItem(endsWith("ba"))).match(this.request))
 | 
											.header("foo", hasItem(endsWith("ba"))).match(this.request))
 | 
				
			||||||
				.withMessage("Request header values for [foo]\n"
 | 
									.withMessage("Request header values for [foo]" + System.lineSeparator()
 | 
				
			||||||
						+ "Expected: a collection containing a string ending with \"ba\"\n"
 | 
											+ "Expected: a collection containing a string ending with \"ba\"" + System.lineSeparator()
 | 
				
			||||||
						+ "     but: mismatches were: [was \"bar\", was \"baz\"]");
 | 
											+ "     but: mismatches were: [was \"bar\", was \"baz\"]");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		assertThatExceptionOfType(AssertionError.class).isThrownBy(() -> MockRestRequestMatchers
 | 
							assertThatExceptionOfType(AssertionError.class).isThrownBy(() -> MockRestRequestMatchers
 | 
				
			||||||
						.header("foo", everyItem(endsWith("ar"))).match(this.request))
 | 
											.header("foo", everyItem(endsWith("ar"))).match(this.request))
 | 
				
			||||||
				.withMessage("Request header values for [foo]\n"
 | 
									.withMessage("Request header values for [foo]" + System.lineSeparator()
 | 
				
			||||||
						+ "Expected: every item is a string ending with \"ar\"\n"
 | 
											+ "Expected: every item is a string ending with \"ar\"" + System.lineSeparator()
 | 
				
			||||||
						+ "     but: an item was \"baz\"");
 | 
											+ "     but: an item was \"baz\"");
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -325,20 +325,20 @@ class MockRestRequestMatchersTests {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		assertThatExceptionOfType(AssertionError.class).isThrownBy(() -> MockRestRequestMatchers
 | 
							assertThatExceptionOfType(AssertionError.class).isThrownBy(() -> MockRestRequestMatchers
 | 
				
			||||||
						.queryParam("foo", contains(containsString("ba"))).match(this.request))
 | 
											.queryParam("foo", contains(containsString("ba"))).match(this.request))
 | 
				
			||||||
				.withMessage("Request queryParam values for [foo]\n"
 | 
									.withMessage("Request queryParam values for [foo]" + System.lineSeparator()
 | 
				
			||||||
						+ "Expected: iterable containing [a string containing \"ba\"]\n"
 | 
											+ "Expected: iterable containing [a string containing \"ba\"]" + System.lineSeparator()
 | 
				
			||||||
						+ "     but: not matched: \"baz\"");
 | 
											+ "     but: not matched: \"baz\"");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		assertThatExceptionOfType(AssertionError.class).isThrownBy(() -> MockRestRequestMatchers
 | 
							assertThatExceptionOfType(AssertionError.class).isThrownBy(() -> MockRestRequestMatchers
 | 
				
			||||||
						.queryParam("foo", hasItem(endsWith("ba"))).match(this.request))
 | 
											.queryParam("foo", hasItem(endsWith("ba"))).match(this.request))
 | 
				
			||||||
				.withMessage("Request queryParam values for [foo]\n"
 | 
									.withMessage("Request queryParam values for [foo]" + System.lineSeparator()
 | 
				
			||||||
						+ "Expected: a collection containing a string ending with \"ba\"\n"
 | 
											+ "Expected: a collection containing a string ending with \"ba\"" + System.lineSeparator()
 | 
				
			||||||
						+ "     but: mismatches were: [was \"bar\", was \"baz\"]");
 | 
											+ "     but: mismatches were: [was \"bar\", was \"baz\"]");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		assertThatExceptionOfType(AssertionError.class).isThrownBy(() -> MockRestRequestMatchers
 | 
							assertThatExceptionOfType(AssertionError.class).isThrownBy(() -> MockRestRequestMatchers
 | 
				
			||||||
						.queryParam("foo", everyItem(endsWith("ar"))).match(this.request))
 | 
											.queryParam("foo", everyItem(endsWith("ar"))).match(this.request))
 | 
				
			||||||
				.withMessage("Request queryParam values for [foo]\n"
 | 
									.withMessage("Request queryParam values for [foo]" + System.lineSeparator()
 | 
				
			||||||
						+ "Expected: every item is a string ending with \"ar\"\n"
 | 
											+ "Expected: every item is a string ending with \"ar\"" + System.lineSeparator()
 | 
				
			||||||
						+ "     but: an item was \"baz\"");
 | 
											+ "     but: an item was \"baz\"");
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -17,7 +17,7 @@
 | 
				
			||||||
package org.springframework.web.service.invoker
 | 
					package org.springframework.web.service.invoker
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 *  Extension for [HttpServiceProxyFactory.createClient] providing a `createClient<Foo>()` variant.
 | 
					 * Extension for [HttpServiceProxyFactory.createClient] providing a `createClient<Foo>()` variant.
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * @author Sebastien Deleuze
 | 
					 * @author Sebastien Deleuze
 | 
				
			||||||
 * @since 6.0.5
 | 
					 * @since 6.0.5
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue