A DESCRIPTION OF THE PROBLEM :
The test failed with unexpected StringIndexOutOfBoundsException.
We think you should consider the possible StringIndexOutOfBoundsException before calling substring.
ACTUAL -
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1967)
at com.sun.xml.internal.bind.v2.schemagen.Util.getParentUriPath(Util.java:73)
---------- BEGIN SOURCE ----------
@Test
public void test_getParentUriPath(){
String string0 = "";
com.sun.xml.internal.bind.v2.schemagen.Util.getParentUriPath(string0);
}
---------- END SOURCE ----------
The test failed with unexpected StringIndexOutOfBoundsException.
We think you should consider the possible StringIndexOutOfBoundsException before calling substring.
ACTUAL -
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1967)
at com.sun.xml.internal.bind.v2.schemagen.Util.getParentUriPath(Util.java:73)
---------- BEGIN SOURCE ----------
@Test
public void test_getParentUriPath(){
String string0 = "";
com.sun.xml.internal.bind.v2.schemagen.Util.getParentUriPath(string0);
}
---------- END SOURCE ----------