Minor tweak for windows testcase expecting IllegalArgumentException

This commit is contained in:
Joakim Erdfelt 2014-06-26 09:14:04 -07:00
parent 17895f8256
commit d49ecdf1d6
1 changed files with 7 additions and 1 deletions

View File

@ -83,11 +83,17 @@ public abstract class AbstractFSResourceTest
{
if (OS.IS_UNIX)
{
// A windows path is invalid under unix
newResource(new URI("file://Z:/:"));
}
else if (OS.IS_WINDOWS)
{
newResource(new URI("file://some\"text\""));
// "CON" is a reserved name under windows
newResource(new URI("file://CON"));
}
else
{
assumeFalse("Unknown OS type",false);
}
}