- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 182 for getAttributes (0.09 seconds)
-
src/test/java/jcifs/pac/PacGroupTest.java
} /** * Test method for {@link jcifs.pac.PacGroup#getAttributes()}. */ @Test void testGetAttributes() { // Test the getAttributes method assertEquals(attributes, pacGroup.getAttributes(), "getAttributes() should return the correct attributes."); }Created: 2026-04-05 00:10 - Last Modified: 2025-08-14 05:31 - 1.5K bytes - Click Count (0) -
src/test/java/jcifs/smb/FileEntryTest.java
Arguments.of((IntGetter) FileEntry::getType, Integer.MAX_VALUE, "max type"), Arguments.of((IntGetter) FileEntry::getAttributes, 0, "no attributes"), Arguments.of((IntGetter) FileEntry::getAttributes, 0xFFFF, "many attributes"), Arguments.of((IntGetter) FileEntry::getFileIndex, -5, "negative index"),
Created: 2026-04-05 00:10 - Last Modified: 2025-08-14 05:31 - 10K bytes - Click Count (0) -
src/test/java/jcifs/pac/PacSidAttributesTest.java
} /** * Test method for {@link jcifs.pac.PacSidAttributes#getAttributes()}. */ @Test void testGetAttributes() { // Test the getAttributes method assertEquals(attributes, pacSidAttributes.getAttributes(), "getAttributes should return the correct attributes."); }Created: 2026-04-05 00:10 - Last Modified: 2025-08-14 05:31 - 1.6K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/DosFileFilterTest.java
when(file.getAttributes()).thenReturn(SmbFile.ATTR_NORMAL); assertTrue(filter.accept(file), "Attributes match should be accepted"); verify(file, times(1)).getAttributes(); } @Test public void testAcceptReturnsFalseWhenAttributesDoNotMatch() throws Exception { SmbFile file = mock(SmbFile.class); when(file.getAttributes()).thenReturn(SmbFile.ATTR_HIDDEN);
Created: 2026-04-05 00:10 - Last Modified: 2025-08-14 05:31 - 1.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/SmbBasicFileInfoTest.java
Mockito.when(mock.getAttributes()).thenReturn(7); Mockito.when(mock.getCreateTime()).thenReturn(11L); Mockito.when(mock.getLastWriteTime()).thenReturn(13L); Mockito.when(mock.getLastAccessTime()).thenReturn(17L); Mockito.when(mock.getSize()).thenReturn(19L); // Act: invoke each method once int attributes = mock.getAttributes(); long c = mock.getCreateTime();
Created: 2026-04-05 00:10 - Last Modified: 2025-08-14 05:31 - 5.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java
when(mockFile1.length()).thenReturn(2048L); when(mockFile1.lastModified()).thenReturn(System.currentTimeMillis() - 3600000); when(mockFile1.isDirectory()).thenReturn(false); when(mockFile1.getAttributes()).thenReturn(0x20); // FILE_ATTRIBUTE_ARCHIVE when(mockFile1.createTime()).thenReturn(System.currentTimeMillis() - 7200000); when(mockFile1.lastAccess()).thenReturn(System.currentTimeMillis() - 1800000);
Created: 2026-04-05 00:10 - Last Modified: 2025-08-23 01:47 - 14.2K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/com/SmbComOpenAndXResponse.java
public final int getFileAttributes() { return this.fileAttributes; } /** * {@inheritDoc} * * @see jcifs.internal.SmbBasicFileInfo#getAttributes() */ @Override public int getAttributes() { return getFileAttributes(); } /** * Gets the file type. * * @return the fileType */ public final int getFileType() {
Created: 2026-04-05 00:10 - Last Modified: 2025-08-16 01:32 - 5.8K bytes - Click Count (0) -
src/test/java/jcifs/smb/DosFileFilterTest.java
* {@link SmbFile#getAttributes()} throws it. * @throws SmbException if an SMB error occurs. */ @Test void testAccept_ThrowsSmbException() throws SmbException { // Given a filter dosFileFilter = new DosFileFilter("*.*", SmbFile.ATTR_ARCHIVE); // and a mock file that throws an exception when getAttributes is calledCreated: 2026-04-05 00:10 - Last Modified: 2025-08-14 05:31 - 6.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/fscc/BasicFileInformationTest.java
assertEquals(originalInfo.getLastAccessTime(), decodedInfo.getLastAccessTime()); assertEquals(originalInfo.getLastWriteTime(), decodedInfo.getLastWriteTime()); assertEquals(originalInfo.getAttributes(), decodedInfo.getAttributes()); } @Test @DisplayName("Test with various attribute flags") void testWithVariousAttributeFlags() { // Test common file attribute combinations
Created: 2026-04-05 00:10 - Last Modified: 2025-08-14 05:31 - 13K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/Info.java
* License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package jcifs.smb1.smb1; interface Info { int getAttributes(); long getCreateTime(); long getLastWriteTime(); long getSize();Created: 2026-04-05 00:10 - Last Modified: 2025-08-14 07:14 - 995 bytes - Click Count (0)