Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 138 for act (0.06 sec)

  1. src/test/java/jcifs/smb/SmbEnumerationUtilTest.java

            void doShareEnum_invalidPath_throws(String url, String pathSuffix, boolean expectDirSlashMsg) throws Exception {
                // Arrange
                SmbFile parent = new SmbFile(url);
    
                // Act + Assert
                SmbException ex = assertThrows(SmbException.class, () -> SmbEnumerationUtil.doShareEnum(parent, "*", 0, null, null));
    
                // Assert message indicates which validation failed
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/pac/kerberos/KerberosApRequestTest.java

        @Test
        @DisplayName("byte[] ctor: empty token throws PACDecodingException with clear message")
        void byteArrayConstructor_emptyToken_throws() {
            // Arrange
            byte[] empty = new byte[0];
    
            // Act + Assert
            PACDecodingException ex = assertThrows(PACDecodingException.class, () -> new KerberosApRequest(empty, new KerberosKey[0]));
            assertTrue(ex.getMessage().contains("Empty kerberos ApReq"));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SMBSignatureValidationExceptionTest.java

        @Test
        @DisplayName("Default ctor: null message/cause and success status")
        void defaultConstructor_hasNullMessageAndCause_andDefaultStatus() {
            // Arrange & Act
            SMBSignatureValidationException ex = new SMBSignatureValidationException();
    
            // Assert
            assertNull(ex.getMessage(), "Default ctor should not set a message");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SessionSetupHandlerTest.java

            return Stream.of(Arguments.of(anon), Arguments.of(mock));
        }
    
        @Test
        @DisplayName("Class is a public interface in expected package")
        void testPublicInterfaceAndPackage() {
            // Arrange & Act
            Class<SessionSetupHandler> clazz = SessionSetupHandler.class;
    
            // Assert
            assertTrue(clazz.isInterface(), "Should be an interface");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/StaticJAASConfigurationTest.java

        void defaultConstructor_producesRequiredKrb5EntryWithEmptyOptions() {
            // Arrange
            StaticJAASConfiguration cfg = new StaticJAASConfiguration();
    
            // Act
            AppConfigurationEntry[] entries = cfg.getAppConfigurationEntry("ignored");
    
            // Assert
            assertNotNull(entries, "Entries array should not be null");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SIDTest.java

            void testTextualConstructorAndToString() throws Exception {
                // Arrange
                SID sid = new SID("S-1-5-21-1-2-3-1029");
    
                // Act & Assert
                // toString should reconstruct exact textual form
                assertEquals("S-1-5-21-1-2-3-1029", sid.toString());
                // RID is the last subauthority
                assertEquals(1029, sid.getRid());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java

            // Need to mock getRequestProperty as well since it delegates to wrapped connection
            when(mockConnection.getRequestProperty("Accept")).thenReturn("application/json");
    
            // Act
            ntlmConnection = new NtlmHttpURLConnection(mockConnection, mockCifsContext);
    
            // Assert
            assertEquals("GET", ntlmConnection.getRequestMethod());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/http/NtlmHttpServletRequestTest.java

        void testGetRemoteUser() {
            // Arrange: Define the expected user name from the principal
            String expectedUserName = "testUser";
            when(mockPrincipal.getName()).thenReturn(expectedUserName);
    
            // Act: Call the method under test
            String actualUserName = ntlmRequest.getRemoteUser();
    
            // Assert: Verify that the returned user name is the expected one
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/NetServerFileEntryAdapterIteratorTest.java

            when(delegate.next()).thenReturn(e1, e2);
    
            NetServerFileEntryAdapterIterator itr = new NetServerFileEntryAdapterIterator(parent, delegate, null);
    
            // Act & Assert
            assertTrue(itr.hasNext(), "Should have first element ready");
            SmbResource r1 = itr.next();
            assertNotNull(r1, "First adapted resource must not be null");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbComWriteTest.java

            // Arrange
            int fid = 0x1234;
            int offset = 100;
            int remaining = 50;
            byte[] buffer = new byte[100];
            int off = 10;
            int len = 40;
    
            // Act
            SmbComWrite write = new SmbComWrite(fid, offset, remaining, buffer, off, len);
    
            // Assert
            assertEquals(fid, getFieldValue(write, "fid"), "FID should match constructor arg");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
Back to top