KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > avalon > excalibur > event > test > FixedSizeQueuePerformanceTestCase


1 /*
2  * Copyright (C) The Apache Software Foundation. All rights reserved.
3  *
4  * This software is published under the terms of the Apache Software License
5  * version 1.1, a copy of which has been included with this distribution in
6  * the LICENSE.txt file.
7  */

8 package org.apache.avalon.excalibur.event.test;
9
10 import junit.framework.TestCase;
11 import org.apache.avalon.excalibur.event.FixedSizeQueue;
12
13 /**
14  * The default queue implementation is a variabl size queue.
15  *
16  * @author <a HREF="mailto:bloritsch@apache.org">Berin Loritsch</a>
17  */

18 public final class FixedSizeQueuePerformanceTestCase extends AbstractQueueTestCase
19 {
20     public FixedSizeQueuePerformanceTestCase( String JavaDoc name )
21     {
22         super( name );
23     }
24
25     public void testMillionIterationOneElement()
26         throws Exception JavaDoc
27     {
28         this.performMillionIterationOneElement( new FixedSizeQueue( 32 ) );
29     }
30
31     public void testMillionIterationTenElements()
32         throws Exception JavaDoc
33     {
34         this.performMillionIterationTenElements( new FixedSizeQueue( 32 ) );
35     }
36 }
Popular Tags