Package voldemort.socketpool.AbstractSocketPoolTest

Examples of voldemort.socketpool.AbstractSocketPoolTest.TestStats


                return "test-key";
            }
        };

        // borrow timeout >> doSomething() no timeout expected
        TestStats testStats = test.startTest(factory, config, 50, 200);
        assertEquals("We should see Zero timeoutRequests", 0, testStats.timeoutRequests);
    }
View Full Code Here


                return "test-key";
            }
        };

        // borrow timeout >> doSomething() no timeout expected
        TestStats testStats = test.startTest(factory, config, 50, 200);
        assertEquals("We should see some timeoutRequests", true, testStats.timeoutRequests > 0);
    }
View Full Code Here

            }

        };

        // borrow timeout >> doSomething() no timeout expected
        TestStats testStats = test.startTest(factory, config, 50, 200);
        assertEquals("We should see some timeoutRequests", true, testStats.timeoutRequests > 0);
        server.stop();
    }
View Full Code Here

                }

            };

            // borrow timeout >> doSomething() no timeout expected
            TestStats testStats = test.startTest(factory, config, 50, 200);
            assertEquals("We should see some timeoutRequests", true, testStats.timeoutRequests > 0);
            server.stop();
        } finally {
            clientRequestExecutorPool.close();
        }
View Full Code Here

                return "test-key";
            }
        };

        // threads same as pool size no timeout expected
        TestStats testStats = test.startTest(factory, config, 20, 200);
        assertEquals("We should see Zero timeoutRequests", 0, testStats.timeoutRequests);
    }
View Full Code Here

TOP

Related Classes of voldemort.socketpool.AbstractSocketPoolTest.TestStats

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.