FileEntryDisplayContextHelper { public boolean isCancelCheckoutDocumentActionAvailable() throws PortalException { if ((isCheckinActionAvailable() || (isCheckedOut() && hasOverrideCheckoutPermission())) && _hasPreviousVersions()) { return true; } return false; } FileEntryDisplayContextHelper(
		PermissionChecker permissionChecker, FileEntry fileEntry); DLFileEntryType getDLFileEntryType(); FileEntry getFileEntry(); boolean hasDeletePermission(); boolean hasExportImportPermission(); boolean hasLock(); boolean hasOverrideCheckoutPermission(); boolean hasPermissionsPermission(); boolean hasUpdatePermission(); boolean hasViewPermission(); boolean isCancelCheckoutDocumentActionAvailable(); boolean isCheckedOut(); boolean isCheckedOutByMe(); boolean isCheckedOutByOther(); boolean isCheckinActionAvailable(); boolean isCheckoutDocumentActionAvailable(); boolean isDLFileEntry(); boolean isDownloadActionAvailable(); boolean isEditActionAvailable(); boolean isFileEntryDeletable(); boolean isLockedByMe(); boolean isMoveActionAvailable(); boolean isPermissionsButtonVisible(); boolean isSupportsLocking(); boolean isUpdatable();  }
@Test public void testIsCancelCheckoutDocumentActionAvailableWithNullFileEntry() throws PortalException { _configureDLFileEntryPermission(true, true); FileEntryDisplayContextHelper fileEntryDisplayContextHelper = new FileEntryDisplayContextHelper(null, null); Assert.assertFalse( fileEntryDisplayContextHelper. isCancelCheckoutDocumentActionAvailable()); }