/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* @test
* @bug 4152868
* @summary test Case Insensitive Comparator in String
*/
public class ICCBasher {
// First generate L1 and L2 with random lower case chars
//System.out.println("Generate L1 and L2");
int achar=0;
for(int y=0; y<STRING_SIZE; y++) {
}
if (x < TEST_SIZE)
else
}
// Concatenate L1 and L2 to form L3
//System.out.println("Generate L3");
for (int x=0; x<TEST_SIZE; x++) {
}
// Randomly toUpper L1 and L2
//System.out.println("Modify L1 and L2");
for (int x=0; x<TEST_SIZE; x++) {
if (achar > 0) {
}
if (achar > 0) {
}
}
// Concatenate L1 and L2 to form L4
//System.out.println("Generate L4");
for (int x=0; x<TEST_SIZE; x++) {
}
// Sort L3 and L4 using case insensitive comparator
//System.out.println("Sort L3 and L4");
// Check to see that order of L3 and L4 are identical
// ignoring case considerations
//System.out.println("Check order of L3 and L4");
for (int x=0; x<TEST_SIZE; x++) {
throw new RuntimeException("Case Insensitive Sort Failure.");
}
}
}