Package com.volantis.shared.io

Examples of com.volantis.shared.io.IndentingWriter


        TestIntegrityCheckingReporter reporter =
                new TestIntegrityCheckingReporter();
        cache.performIntegrityCheck(reporter);
        StringBuffer issues = reporter.getIssues();
        if (issues != null) {
            IndentingWriter printer = new IndentingWriter(System.out);
            cache.debugStructure(printer);
            fail(issues.toString());
        }
    }
View Full Code Here


                (delta.getMissedAddedCount() - delta.getRemovedCount()));
        System.out.println("Hit rate:               " + delta.getHitRate() + "%");

        System.out.println("Key count:              " + keys.size());

        cache.debugStructure(new IndentingWriter(System.out));

        // Make sure that the number of entries removed according to the
        // snapshot is equal to the number removed according to the listener.
        int notifiedRemovedCount = listener.getRemovedCount();
        System.out.println("Notified removed count: " + notifiedRemovedCount);
        assertEquals(delta.getRemovedCount(), notifiedRemovedCount);

        if (logger.isDebugEnabled()) {
            StringWriter writer = new StringWriter();
            IndentingWriter printer = new IndentingWriter(writer);
            cache.debugStructure(printer);
            logger.debug(writer.toString());
        }
    }
View Full Code Here

TOP

Related Classes of com.volantis.shared.io.IndentingWriter

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.