< prev index next >
test/jdk/java/util/UUID/UUIDTest.java
Print this page
@@ -105,10 +105,16 @@
testFromStringError("----");
testFromStringError("-0-0-0-0");
testFromStringError("0-0-0-0-");
testFromStringError("0-0-0-0-0-");
testFromStringError("0-0-0-0-x");
+ testFromStringError("123456789-1234-1234-1234-123456789012");
+ testFromStringError("123456789-2-3-4-5");
+ testFromStringError("1-12345-3-4-5");
+ testFromStringError("1-2-12345-4-5");
+ testFromStringError("1-2-3-12345-5");
+ testFromStringError("1-2-3-4-1234567890123");
}
private static void testFromStringError(String str) {
try {
UUID test = UUID.fromString(str);
< prev index next >