Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 441 - 450 of 2,006 for constructs (0.2 seconds)

  1. android/guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

        @SuppressWarnings({"unchecked", "rawtypes"})
        List<Constructor<X>> constructors = (List) Arrays.asList(exceptionClass.getConstructors());
        for (Constructor<X> constructor : preferringStringsThenThrowables(constructors)) {
          X instance = newFromConstructor(constructor, cause);
          if (instance != null) {
            if (instance.getCause() == null) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 10.2K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/SMBProtocolDecodingExceptionTest.java

    import jcifs.CIFSException;
    
    /**
     * Tests for SMBProtocolDecodingException covering all constructors and observable behavior.
     */
    @ExtendWith(MockitoExtension.class)
    public class SMBProtocolDecodingExceptionTest {
    
        @Mock
        Throwable mockCause;
    
        @Test
        @DisplayName("No-arg constructor: null message and cause; can be thrown")
        void defaultConstructor_behavesAsExpected() {
            // Arrange & Act
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/util/SystemUtilTest.java

            // Verify that SystemUtil has a private constructor (utility class pattern)
            try {
                Constructor<SystemUtil> constructor = SystemUtil.class.getDeclaredConstructor();
                assertTrue("Constructor should be private", java.lang.reflect.Modifier.isPrivate(constructor.getModifiers()));
    
                // Test that constructor is accessible when made accessible
                constructor.setAccessible(true);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 17.1K bytes
    - Click Count (0)
  4. src/test/java/jcifs/pac/kerberos/KerberosRelevantAuthDataTest.java

            mockedStaticAuthData.when(() -> KerberosAuthData.parse(anyInt(), any(byte[].class), any(Map.class)))
                    .thenReturn(Collections.singletonList(mockAuthData));
    
            // Construct a valid ASN.1 sequence for KerberosRelevantAuthData
            ASN1EncodableVector authVector = new ASN1EncodableVector();
            ASN1EncodableVector elementVector = new ASN1EncodableVector();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/util/ThreadDumpUtilTest.java

            // 1. Class should have protected constructor
            Constructor<?>[] constructors = ThreadDumpUtil.class.getDeclaredConstructors();
            assertEquals("Should have exactly one constructor", 1, constructors.length);
            assertTrue("Constructor should be protected", java.lang.reflect.Modifier.isProtected(constructors[0].getModifiers()));
    
            // 2. All public methods should be static
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 15.6K bytes
    - Click Count (0)
  6. src/test/java/jcifs/pac/PACDecodingExceptionTest.java

    class PACDecodingExceptionTest {
    
        /**
         * Test the default constructor.
         */
        @Test
        void testDefaultConstructor() {
            PACDecodingException e = new PACDecodingException();
            // Expect null message and null cause
            assertNull(e.getMessage());
            assertNull(e.getCause());
        }
    
        /**
         * Test the constructor with a message.
         */
        @Test
        void testMessageConstructor() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 2K bytes
    - Click Count (0)
  7. src/test/java/jcifs/dcerpc/msrpc/MsrpcLsarOpenPolicy2Test.java

            // Then
            // Verify that the super constructor is called with correct arguments
            // Note: Directly verifying super constructor calls is not straightforward in JUnit/Mockito.
            // We verify the effects of the super constructor by checking the fields of the created object.
    
            // Assert object_attributes fields
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  8. compat/maven-embedder/src/main/java/org/eclipse/sisu/plexus/PlexusXmlBeanConverter.java

            }
        }
    
        /**
         * Creates an instance of the given implementation using the given string, assumes a public string constructor.
         *
         * @param clazz The implementation type
         * @param value The string argument
         * @return Instance of given implementation, constructed using the given string
         */
        private static <T> T newImplementation(final Class<T> clazz, final String value) {
            try {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jul 23 17:27:08 GMT 2025
    - 15.3K bytes
    - Click Count (0)
  9. src/test/java/jcifs/MsrpcEnumerateAliasesInDomainTest.java

            // Although we cannot directly verify the super constructor call with Mockito for a real class,
            // we can infer its correct behavior if the object is successfully constructed and its own fields are correct.
            // The super constructor is called with (domainHandle, 0, acct_flags, null, 0)
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/core/beans/ConstructorDesc.java

        /**
         * Returns the constructor.
         *
         * @param <T>
         *            The type of the Bean
         * @return The constructor
         */
        <T> Constructor<T> getConstructor();
    
        /**
         * Returns an array of the parameter types of the constructor.
         *
         * @return An array of the parameter types of the constructor
         */
        Class<?>[] getParameterTypes();
    
        /**
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 3.5K bytes
    - Click Count (0)
Back to Top