List of usage examples for org.springframework.core.io.buffer DataBufferFactory interface-usage
From source file org.springframework.core.io.buffer.LeakAwareDataBufferFactory.java
/**
* Implementation of the {@code DataBufferFactory} interface that keep track of memory leaks.
* Useful for unit tests that handle data buffers. Simply inherit from
* {@link AbstractLeakCheckingTestCase} or call {@link #checkForLeaks()} in
* a JUnit {@link After} method yourself, and any buffers have not been released will result in an
* {@link AssertionError}.