Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 885 for Arrange (0.69 sec)

  1. 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)
  2. src/test/java/org/codelibs/core/exception/SQLRuntimeExceptionTest.java

            LocaleUtil.setDefault(null);
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testErrorMessage_ja() throws Exception {
            // ## Arrange ##
            Locale.setDefault(Locale.JAPANESE);
            final SQLException sqlException = new SQLException("some reason", "fooState", 7650);
            final SQLException sqlException2 = new SQLException("hoge reason", "barState", 7660);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java

            when(tree.getConfig()).thenReturn(config);
            when(config.getMaximumBufferSize()).thenReturn(65535);
            when(config.getListSize()).thenReturn(65535);
    
            // Arrange: initial page with two entries, then one more entry, then no more files
            FileEntry fe1 = mock(FileEntry.class);
            lenient().when(fe1.getName()).thenReturn("file1");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java

            return new SmbPipeHandleImpl(pipe);
        }
    
        @Test
        @DisplayName("ensureTreeConnected acquires and reuses the tree handle")
        void ensureTreeConnected_acquireAndReuse() throws Exception {
            // Arrange
            SmbPipeHandleImpl handle = newHandleWithBasicStubs(0, "\\\\pipe\\\\test");
            when(pipe.ensureTreeConnected()).thenReturn(tree);
            when(tree.acquire()).thenReturn(tree);
    
            // Act
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbTransportImplTest.java

            }
            throw new NoSuchFieldException(name);
        }
    
        @Test
        @DisplayName("getResponseTimeout returns override for SMB requests")
        void getResponseTimeout_override() {
            // Arrange
            CommonServerMessageBlockRequest req = mock(CommonServerMessageBlockRequest.class);
            when(req.getOverrideTimeout()).thenReturn(1234);
    
            // Act
            int timeout = transport.getResponseTimeout(req);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/StaticJAASConfigurationTest.java

        @Test
        @DisplayName("Default constructor yields REQUIRED Krb5 entry with empty options")
        void defaultConstructor_producesRequiredKrb5EntryWithEmptyOptions() {
            // Arrange
            StaticJAASConfiguration cfg = new StaticJAASConfiguration();
    
            // Act
            AppConfigurationEntry[] entries = cfg.getAppConfigurationEntry("ignored");
    
            // Assert
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/NetServerFileEntryAdapterIteratorTest.java

                return 0;
            }
        }
    
        @Test
        @DisplayName("Happy path: iterates and adapts entries without filter")
        void happyPath_noFilter_returnsAdaptedResources() throws Exception {
            // Arrange: two valid entries
            setupParentForUrlCreation();
            StubFileEntry e1 = new StubFileEntry("SERVER1", SmbConstants.TYPE_SERVER);
            StubFileEntry e2 = new StubFileEntry("SERVER2", SmbConstants.TYPE_SERVER);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SIDTest.java

        class BasicTests {
    
            @Test
            @DisplayName("Textual constructor happy path and toString consistency")
            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());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/MIENameTest.java

            } catch (java.io.IOException e) {
                throw new RuntimeException(e);
            }
        }
    
        @Test
        @DisplayName("Parses a valid buffer and exposes fields")
        void parseValidBuffer() {
            // Arrange
            String name = "******@****.***";
            byte[] buf = buildBuffer(oidDer(), name.getBytes(StandardCharsets.US_ASCII));
    
            // Act
            MIEName parsed = new MIEName(buf);
    
            // Assert
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbComWriteTest.java

            }
        }
    
        /**
         * Test that the constructor initializes all fields correctly
         */
        @Test
        public void testConstructor() {
            // Arrange
            int fid = 0x1234;
            int offset = 100;
            int remaining = 50;
            byte[] buffer = new byte[100];
            int off = 10;
            int len = 40;
    
            // Act
    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