jdk/test/java/util/zip/TestCRC32.java
changeset 27737 0a3fb0529425
child 40684 2e37c119dc2a
equal deleted inserted replaced
27736:8c9bd4be4a86 27737:0a3fb0529425
       
     1 
       
     2 import java.util.zip.CRC32;
       
     3 
       
     4 /*
       
     5  * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
       
     6  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       
     7  *
       
     8  * This code is free software; you can redistribute it and/or modify it
       
     9  * under the terms of the GNU General Public License version 2 only, as
       
    10  * published by the Free Software Foundation.
       
    11  *
       
    12  * This code is distributed in the hope that it will be useful, but WITHOUT
       
    13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
       
    14  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
       
    15  * version 2 for more details (a copy is included in the LICENSE file that
       
    16  * accompanied this code).
       
    17  *
       
    18  * You should have received a copy of the GNU General Public License version
       
    19  * 2 along with this work; if not, write to the Free Software Foundation,
       
    20  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
       
    21  *
       
    22  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
       
    23  * or visit www.oracle.com if you need additional information or have any
       
    24  * questions.
       
    25  */
       
    26 
       
    27 /**
       
    28  * @test @summary Check that CRC-32 returns the expected CRC value for the
       
    29  * string 123456789
       
    30  * http://reveng.sourceforge.net/crc-catalogue/all.htm#crc.cat.crc-32
       
    31  * @build ChecksumBase
       
    32  * @run main TestCRC32
       
    33  */
       
    34 
       
    35 public class TestCRC32 {
       
    36 
       
    37     public static void main(String[] args) {
       
    38         ChecksumBase.testAll(new CRC32(), 0xCBF43926L);
       
    39     }
       
    40 }