Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 191 - 200 of 1,178 for simple (0.04 seconds)

  1. guava-tests/test/com/google/common/xml/XmlEscapersTest.java

      }
    
      // Helper to assert common properties of xml escapers.
      static void assertBasicXmlEscaper(
          CharEscaper xmlEscaper, boolean shouldEscapeQuotes, boolean shouldEscapeWhitespaceChars) {
        // Simple examples (smoke tests)
        assertThat(xmlEscaper.escape("xxx")).isEqualTo("xxx");
        assertThat(xmlEscaper.escape("test & test & test")).isEqualTo("test & test & test");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 5K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb/SimpleMemoryManagementTest.java

    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.api.Timeout;
    import org.mockito.Mockito;
    
    import jcifs.CIFSContext;
    import jcifs.Configuration;
    import jcifs.Credentials;
    
    /**
     * Simple memory management tests to validate basic resource cleanup functionality
     */
    public class SimpleMemoryManagementTest {
    
        private CIFSContext mockContext;
        private SmbTransportImpl mockTransport;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/settings/DefaultMavenSettingsBuilder.java

            //
            // Continuum and other server-like apps may need to locate the user-level and
            // global-level settings somewhere other than ${user.home} and ${maven.home},
            // respectively. Using a simple replacement of these patterns will allow them
            // to specify the absolute path to these files in a customized components.xml
            // file. Ideally, we'd do full pattern-evaluation against the sysprops, but this
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/transfer/SimplexTransferListener.java

    import org.slf4j.LoggerFactory;
    
    import static java.util.Objects.requireNonNull;
    
    /**
     * A {@link TransferListener} implementation that wraps another delegate {@link TransferListener} but makes it run
     * on single thread, keeping the listener logic simple. This listener also blocks on last transfer event to allow
     * output to perform possible cleanup. It spawns a daemon thread to consume queued events that may fall in even
     * concurrently.
     *
     * @since 4.0.0
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Feb 06 11:28:05 GMT 2025
    - 8.7K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/hash/Hasher.java

       * input, even if some are invalid.
       */
      @CanIgnoreReturnValue
      @Override
      Hasher putString(CharSequence charSequence, Charset charset);
    
      /** A simple convenience for {@code funnel.funnel(object, this)}. */
      @CanIgnoreReturnValue
      <T extends @Nullable Object> Hasher putObject(
          @ParametricNullness T instance, Funnel<? super T> funnel);
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 5.5K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/helper/JobHelperTest.java

            @Override
            public void update(JobLog entity) {
                // Mock implementation that doesn't require client
                entity.setLastUpdated(System.currentTimeMillis());
            }
        }
    
        // Simple mock class without complex interface requirements
        private static class MockLaCron implements LaCron {
            @Override
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  7. src/test/java/jcifs/smb/SmbFilenameFilterTest.java

    import org.junit.jupiter.params.provider.ValueSource;
    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    /**
     * Tests for SmbFilenameFilter interface behaviors via simple implementations.
     * Each test creates a concrete filter to validate expected contract semantics
     * including normal operation, null handling, edge cases, and exception flow.
     */
    @ExtendWith(MockitoExtension.class)
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.3K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/crawler/serializer/DataSerializerTest.java

        public void test_constructor() {
            DataSerializer ds = new DataSerializer();
            assertNotNull(ds, "DataSerializer should be instantiable");
        }
    
        /**
         * Test serialization and deserialization of simple String
         */
        @Test
        public void test_serializeDeserialize_string() {
            String original = "Hello, World!";
    
            byte[] serialized = serializer.fromObjectToBinary(original);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 21.6K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/exception/JobNotFoundExceptionTest.java

            assertTrue(exception.getMessage().contains("ScheduledJob"));
            assertNull(exception.getCause());
        }
    
        @Test
        public void test_constructorWithString() {
            // Test with a simple message
            String message = "Job with ID 456 not found";
    
            JobNotFoundException exception = new JobNotFoundException(message);
    
            assertNotNull(exception);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 9.2K bytes
    - Click Count (0)
  10. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/Logger.java

    import java.util.List;
    
    import org.apache.maven.api.annotations.Experimental;
    import org.apache.maven.api.annotations.Nonnull;
    import org.apache.maven.api.annotations.Nullable;
    
    /**
     * Defines a simple logging interface for Maven CLI operations. These operations happen "early", when there may
     * be no logging set up even. Implementations may be "accumulating", in which case {@link #drain()}  method should
     * be used.
     * <p>
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Oct 16 06:12:36 GMT 2025
    - 5K bytes
    - Click Count (0)
Back to Top