Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for testConstructors (0.27 sec)

  1. android/guava-tests/test/com/google/common/io/PatternFilenameFilterTest.java

        // Show that dir is ignored
        assertTrue(filter.accept(null, "a"));
      }
    
      public void testNulls() throws Exception {
        NullPointerTester tester = new NullPointerTester();
    
        tester.testConstructors(PatternFilenameFilter.class, Visibility.PACKAGE);
        tester.testStaticMethods(PatternFilenameFilter.class, Visibility.PACKAGE); // currently none
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/pac/PacSidAttributesTest.java

            pacSidAttributes = new PacSidAttributes(sidMock, attributes);
        }
    
        /**
         * Test method for {@link jcifs.pac.PacSidAttributes#PacSidAttributes(jcifs.smb.SID, int)}.
         */
        @Test
        void testConstructor() {
            // Verify that the id and attributes are correctly set by the constructor
            assertEquals(sidMock, pacSidAttributes.getId(), "The SID should match the one provided in the constructor.");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/MsrpcLsarCloseTest.java

    class MsrpcLsarCloseTest {
    
        @Mock
        private policy_handle mockPolicyHandle;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
        }
    
        @Test
        void testConstructor() {
            // Create an instance of MsrpcLsarClose
            MsrpcLsarClose msrpcLsarClose = new MsrpcLsarClose(mockPolicyHandle);
    
            // Assert that the object is not null
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/msrpc/MsrpcGetMembersInAliasTest.java

         * Verifies that the constructor correctly initializes the object's fields using reflection for protected members.
         */
        @Test
        void testConstructor() throws NoSuchFieldException, IllegalAccessException {
            // Create an instance of the class to be tested
            MsrpcGetMembersInAlias request = new MsrpcGetMembersInAlias(aliasHandle, sids);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/SmbComQueryInformationTest.java

        @BeforeEach
        public void setUp() {
            smbComQueryInformation = new SmbComQueryInformation(TEST_FILE_NAME);
        }
    
        @Test
        public void testConstructor() {
            // Test if the constructor sets the file name and command correctly
            assertEquals(TEST_FILE_NAME, smbComQueryInformation.path);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/msrpc/MsrpcEnumerateAliasesInDomainTest.java

        }
    
        /**
         * Test method for
         * {@link MsrpcEnumerateAliasesInDomain#MsrpcEnumerateAliasesInDomain(SamrDomainHandle, int, SamrSamArray)}.
         */
        @Test
        void testConstructor() {
            // Given
            int acctFlags = 1;
    
            // When
            MsrpcEnumerateAliasesInDomain request = new MsrpcEnumerateAliasesInDomain(mockDomainHandle, acctFlags, mockSamArray);
    
            // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/netbios/NbtExceptionTest.java

            assertEquals(expected, NbtException.getErrorString(unknownClass, 0));
        }
    
        @Test
        @DisplayName("Constructor sets fields and message correctly")
        void testConstructor() {
            NbtException e = new NbtException(NbtException.ERR_SSN_SRVC, NbtException.CONNECTION_REFUSED);
            assertEquals(NbtException.ERR_SSN_SRVC, e.errorClass);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationTest.java

        @BeforeEach
        void setUp() {
            trans2SetFileInformation = new Trans2SetFileInformation(fid, attributes, createTime, lastWriteTime);
        }
    
        @Test
        void testConstructor() {
            // Then
            assertEquals(ServerMessageBlock.SMB_COM_TRANSACTION2, trans2SetFileInformation.command);
            assertEquals(Trans2SetFileInformation.TRANS2_SET_FILE_INFORMATION, trans2SetFileInformation.subCommand);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/dcerpc/msrpc/MsrpcLsarCloseTest.java

        }
    
        /**
         * Test case for the {@link MsrpcLsarClose#MsrpcLsarClose(policy_handle)} constructor.
         * Verifies that the handle, ptype, and flags are correctly initialized.
         */
        @Test
        void testConstructor() {
            // Create an instance of MsrpcLsarClose with the mock handle
            MsrpcLsarClose lsarClose = new MsrpcLsarClose(mockHandle);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  10. okhttp-zstd/src/test/java/okhttp3/zstd/ZstdInterceptorJavaTest.java

    package okhttp3.zstd;
    
    import okhttp3.CompressionInterceptor;
    import okhttp3.Gzip;
    import okhttp3.brotli.Brotli;
    import org.junit.jupiter.api.Test;
    
    class ZstdInterceptorJavaTest {
      @Test
      public void testConstructor() {
        CompressionInterceptor interceptor = new CompressionInterceptor(
          Zstd.INSTANCE,
          Gzip.INSTANCE,
          Brotli.INSTANCE
        );
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Aug 01 06:04:22 UTC 2025
    - 969 bytes
    - Viewed (0)
Back to top