"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "spring-core/src/testFixtures/java/org/springframework/core/testfixture/io/buffer/AbstractLeakCheckingTests.java" between
spring-framework-5.3.23.tar.gz and spring-framework-5.3.24.tar.gz

About: Spring Framework is an application framework for the Java platform and .NET Framework. Community edition.

AbstractLeakCheckingTests.java  (spring-framework-5.3.23):AbstractLeakCheckingTests.java  (spring-framework-5.3.24)
skipping to change at line 19 skipping to change at line 19
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.core.testfixture.io.buffer; package org.springframework.core.testfixture.io.buffer;
import java.time.Duration;
import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.AfterEach;
import org.springframework.core.io.buffer.DataBufferFactory; import org.springframework.core.io.buffer.DataBufferFactory;
/** /**
* Abstract base class for unit tests that allocate data buffers via a {@link Da taBufferFactory}. * Abstract base class for unit tests that allocate data buffers via a {@link Da taBufferFactory}.
* After each unit test, this base class checks whether all created buffers have been released, * After each unit test, this base class checks whether all created buffers have been released,
* throwing an {@link AssertionError} if not. * throwing an {@link AssertionError} if not.
* *
* @author Arjen Poutsma * @author Arjen Poutsma
skipping to change at line 45 skipping to change at line 47
* The data buffer factory. * The data buffer factory.
*/ */
protected final LeakAwareDataBufferFactory bufferFactory = new LeakAwareD ataBufferFactory(); protected final LeakAwareDataBufferFactory bufferFactory = new LeakAwareD ataBufferFactory();
/** /**
* Checks whether any of the data buffers created by {@link #bufferFactor y} have not been * Checks whether any of the data buffers created by {@link #bufferFactor y} have not been
* released, throwing an assertion error if so. * released, throwing an assertion error if so.
*/ */
@AfterEach @AfterEach
final void checkForLeaks() { final void checkForLeaks() {
this.bufferFactory.checkForLeaks(); this.bufferFactory.checkForLeaks(Duration.ofSeconds(1));
} }
} }
 End of changes. 2 change blocks. 
1 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)