/** * tweak some of the contract parameters based on the local system * state */ protected void adjustContractToLocalEnvironment() { if (Shell.WINDOWS) { //NTFS doesn't do case sensitivity, and its permissions are ACL-based getConf().setBoolean(getConfKey(ContractOptions.IS_CASE_SENSITIVE), false); getConf().setBoolean(getConfKey(ContractOptions.SUPPORTS_UNIX_PERMISSIONS), false); } else if (ContractTestUtils.isOSX()) { //OSX HFS+ is not case sensitive getConf().setBoolean(getConfKey(ContractOptions.IS_CASE_SENSITIVE), false); } }
@Override public void init() throws IOException { super.init(); Assert.assertTrue("contract options not loaded", isSupported(ContractOptions.IS_CASE_SENSITIVE, false)); }