Package com.springsource.insight.plugin.files.tracker.AbstractFilesTrackerAspectSupport

Examples of com.springsource.insight.plugin.files.tracker.AbstractFilesTrackerAspectSupport.CacheKey


    public void testFilesCacheSize() {
        final int MAX_CAPACITY = 16;
        FilesCache cache = new FilesCache(MAX_CAPACITY);

        for (int index = 0; index < 2 * MAX_CAPACITY; index++) {
            CacheKey key = CacheKey.getFileKey(Mockito.mock(Closeable.class));
            assertNull("Multiple mappings for " + key, cache.put(key, String.valueOf(index)));

            if (index < MAX_CAPACITY) {
                assertEquals("Mismatched pre-populated cache size", index + 1, cache.size());
            } else {
View Full Code Here

TOP

Related Classes of com.springsource.insight.plugin.files.tracker.AbstractFilesTrackerAspectSupport.CacheKey

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.