FsExport { public boolean isWithDcap() { return _withDcap; } private  FsExport(String path, FsExportBuilder builder); static int getExportIndex(String path); String getPath(); @Override String toString(); boolean isAllowed(InetAddress client); boolean isTrusted(); String client(); IO ioMode(); int getIndex(); boolean checkAcls(); Sec getSec(); boolean hasAllSquash(); int getAnonUid(); int getAnonGid(); boolean isWithDcap(); boolean isAllRoot(); boolean isWithPnfs(); boolean isPrivilegedClientPortRequired(); List<layouttype4> getLayoutTypes(); static String normalize(String path); @Override int hashCode(); @Override boolean equals(Object obj); final static int DEFAULT_ANON_UID; final static int DEFAULT_ANON_GID; }
@Test public void testWithDcap() throws UnknownHostException { FsExport export = _exportFile.getExport("/with_dcap", InetAddress.getByName("192.169.2.2")); assertTrue("dcap should be default option", export.isWithDcap()); }
@Test public void testWithoutDcap() throws UnknownHostException { FsExport export = _exportFile.getExport("/without_dcap", InetAddress.getByName("192.169.2.2")); assertFalse("dcap is not disabled", export.isWithDcap()); }