< prev index next >

test/jdk/java/util/Collection/MOAT.java

Print this page

   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug     6207984 6272521 6192552 6269713 6197726 6260652 5073546 4137464
  27  *          4155650 4216399 4294891 6282555 6318622 6355327 6383475 6420753
  28  *          6431845 4802633 6570566 6570575 6570631 6570924 6691185 6691215
  29  *          4802647 7123424 8024709 8193128 8327858
  30  * @summary Run many tests on many Collection and Map implementations
  31  * @author  Martin Buchholz
  32  * @modules java.base/java.util:open
  33  * @enablePreview
  34  * @run main MOAT

  35  * @key randomness
  36  */
  37 
  38 /* Mother Of All (Collection) Tests
  39  *
  40  * Testing of collection classes is often spotty, because many tests
  41  * need to be performed on many implementations, but the onus on
  42  * writing the tests falls on the engineer introducing the new
  43  * implementation.
  44  *
  45  * The idea of this mega-test is that:
  46  *
  47  * An engineer adding a new collection implementation could simply add
  48  * their new implementation to a list of implementations in this
  49  * test's main method.  Any general purpose Collection<Integer> or
  50  * Map<Integer,Integer> class is appropriate.
  51  *
  52  * An engineer fixing a regression could add their regression test here and
  53  * simultaneously test all other implementations.
  54  */

   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug     6207984 6272521 6192552 6269713 6197726 6260652 5073546 4137464
  27  *          4155650 4216399 4294891 6282555 6318622 6355327 6383475 6420753
  28  *          6431845 4802633 6570566 6570575 6570631 6570924 6691185 6691215
  29  *          4802647 7123424 8024709 8193128 8327858 8346307
  30  * @summary Run many tests on many Collection and Map implementations
  31  * @author  Martin Buchholz
  32  * @modules java.base/java.util:open
  33  * @enablePreview
  34  * @run main MOAT
  35  * @run main MOAT --enable-preview
  36  * @key randomness
  37  */
  38 
  39 /* Mother Of All (Collection) Tests
  40  *
  41  * Testing of collection classes is often spotty, because many tests
  42  * need to be performed on many implementations, but the onus on
  43  * writing the tests falls on the engineer introducing the new
  44  * implementation.
  45  *
  46  * The idea of this mega-test is that:
  47  *
  48  * An engineer adding a new collection implementation could simply add
  49  * their new implementation to a list of implementations in this
  50  * test's main method.  Any general purpose Collection<Integer> or
  51  * Map<Integer,Integer> class is appropriate.
  52  *
  53  * An engineer fixing a regression could add their regression test here and
  54  * simultaneously test all other implementations.
  55  */
< prev index next >