Package com.google.appengine.api.memcache

Examples of com.google.appengine.api.memcache.ErrorHandler


     * @throws Exception
     */
    @Test
    public void setErrorHandler() throws Exception {
        MemcacheDelegate cache = new MemcacheDelegate();
        ErrorHandler errorHandler =
            new LogAndContinueErrorHandler(Level.WARNING);
        assertThat(cache.errorHandler(errorHandler), is(cache));
        assertThat(cache.errorHandler(), is(errorHandler));
    }
View Full Code Here


    /**
     * @throws Exception
     */
    @Test
    public void errorHandler() throws Exception {
        ErrorHandler errorHandler =
            new LogAndContinueErrorHandler(Level.WARNING);
        MemcacheDelegate cache = Memcache.errorHandler(errorHandler);
        assertThat(cache, is(notNullValue()));
        assertThat(cache.errorHandler(), is(errorHandler));
    }
View Full Code Here

TOP

Related Classes of com.google.appengine.api.memcache.ErrorHandler

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.