- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 133 for setAttributes (0.08 sec)
-
src/main/java/jcifs/smb/SmbFile.java
} } @Override public void setReadOnly() throws SmbException { setAttributes(getAttributes() | ATTR_READONLY); } @Override public void setReadWrite() throws SmbException { setAttributes(getAttributes() & ~ATTR_READONLY); } /** * Returns a {@link java.net.URL} for this <code>SmbFile</code>. TheRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 103.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileIntegrationTest.java
assertTrue(file.exists(), "File should exist"); // Set hidden attribute int attrs = file.getAttributes(); file.setAttributes(attrs | SmbConstants.ATTR_HIDDEN); // Verify hidden attribute is set assertTrue((file.getAttributes() & SmbConstants.ATTR_HIDDEN) != 0, "File should be hidden"); // File should still be accessible
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 56K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/XmlTransformer.java
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 23.9K bytes - Viewed (0) -
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."); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1.5K bytes - Viewed (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
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java
assertEquals(original.getLastAccessTime(), decoded.getLastAccessTime()); assertEquals(original.getLastWriteTime(), decoded.getLastWriteTime()); assertEquals(original.getAttributes(), decoded.getAttributes()); } @Test @DisplayName("Test toString method") void testToString() { FileBasicInfo info =
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (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();
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (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."); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1.6K bytes - Viewed (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"),
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10K bytes - Viewed (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/LinkRenderer.java
if (model.isKnownType(method.getOwnerClass().getClassName())) { Element apilink = document.createElement("apilink"); apilink.setAttribute("class", method.getOwnerClass().getClassName()); apilink.setAttribute("method", method.getOverrideSignature()); return apilink; } else { listener.warning(String.format("Could not generate link for method %s", method));
Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Wed May 21 06:20:45 UTC 2025 - 6.3K bytes - Viewed (0)