Search Options

Results per page
Sort
Preferred Languages
Advance

Results 2531 - 2540 of 4,407 for Avoid (0.18 sec)

  1. samples/guide/src/main/java/okhttp3/recipes/PostStreaming.java

      private final OkHttpClient client = new OkHttpClient();
    
      public void run() throws Exception {
        RequestBody requestBody = new RequestBody() {
          @Override public MediaType contentType() {
            return MEDIA_TYPE_MARKDOWN;
          }
    
          @Override public void writeTo(BufferedSink sink) throws IOException {
            sink.writeUtf8("Numbers\n");
            sink.writeUtf8("-------\n");
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Jul 06 03:18:15 UTC 2018
    - 2.1K bytes
    - Viewed (0)
  2. compat/maven-builder-support/src/test/java/org/apache/maven/building/UrlSourceTest.java

    class UrlSourceTest {
    
        @Test
        void testUrlSource() {
            NullPointerException e = assertThrows(
                    NullPointerException.class, () -> new UrlSource(null), "Should fail, since you must specify a url");
            assertEquals("url cannot be null", e.getMessage());
        }
    
        @Test
        void testGetInputStream() throws Exception {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/CountingOutputStream.java

      }
    
      /** Returns the number of bytes written. */
      public long getCount() {
        return count;
      }
    
      @Override
      public void write(byte[] b, int off, int len) throws IOException {
        out.write(b, off, len);
        count += len;
      }
    
      @Override
      public void write(int b) throws IOException {
        out.write(b);
        count++;
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/Helpers.java

            : !iterable.iterator().hasNext();
      }
    
      public static void assertEmpty(Iterable<?> iterable) {
        if (!isEmpty(iterable)) {
          fail("Not true that " + iterable + " is empty");
        }
      }
    
      public static void assertEmpty(Map<?, ?> map) {
        if (!map.isEmpty()) {
          fail("Not true that " + map + " is empty");
        }
      }
    
      public static void assertEqualInOrder(Iterable<?> expected, Iterable<?> actual) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Oct 10 23:13:45 UTC 2025
    - 17.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/hash/Fingerprint2011Test.java

      }
    
      public void testStringsConsistency() {
        for (String s : Arrays.asList("", "some", "test", "strings", "to", "try")) {
          assertEquals(HASH_FN.newHasher().putUnencodedChars(s).hash(), HASH_FN.hashUnencodedChars(s));
        }
      }
    
      public void testUtf8() {
        char[] charsA = new char[128];
        char[] charsB = new char[128];
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/ntlmssp/av/AvSingleHostTest.java

    import jcifs.Configuration;
    
    class AvSingleHostTest {
    
        /**
         * Test constructor AvSingleHost(byte[] raw).
         * Should correctly parse the raw bytes.
         */
        @Test
        void testAvSingleHostRawConstructor() {
            byte[] rawData = new byte[48]; // 8 (size/zero) + 8 (customData) + 32 (machineId)
            // Simulate some data
            rawData[0] = 48; // size
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  7. impl/maven-core/src/test/java/org/apache/maven/project/ProjectBuildingExceptionTest.java

    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    /**
     * Test for {@link ProjectBuildingException} message generation.
     */
    @SuppressWarnings("deprecation")
    class ProjectBuildingExceptionTest {
    
        @Test
        void testDetailedExceptionMessageWithMultipleProblems() {
            List<ProjectBuildingResult> results = new ArrayList<>();
    
            List<ModelProblem> problems1 = new ArrayList<>();
            Collections.addAll(
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Jul 26 19:15:57 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/NtTransQuerySecurityDescTest.java

            }
        }
    
        @Test
        void writeSetupWireFormat_returnsZero() {
            NtTransQuerySecurityDesc cmd = new NtTransQuerySecurityDesc(0, 0);
            byte[] dst = new byte[4];
            assertEquals(0, cmd.writeSetupWireFormat(dst, 0));
        }
    
        @Test
        void readMethodsReturnZero() {
            NtTransQuerySecurityDesc cmd = new NtTransQuerySecurityDesc(0, 0);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  9. compat/maven-model-builder/src/main/java/org/apache/maven/model/normalization/DefaultModelNormalizer.java

        /**
         * DuplicateMerger
         */
        protected static class DuplicateMerger extends MavenModelMerger {
    
            public void mergePlugin(Plugin target, Plugin source) {
                super.mergePlugin(target, source, false, Collections.emptyMap());
            }
        }
    
        @Override
        public void injectDefaultValues(Model model, ModelBuildingRequest request, ModelProblemCollector problems) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Feb 25 08:27:34 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  10. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/CheckTest.java

            void shouldNotSaveModificationsToDisk() {
                assertFalse(checkGoal.shouldSaveModifications(), "Check goal should not save modifications to disk");
            }
        }
    
        @Nested
        @DisplayName("Execution")
        class ExecutionTests {
    
            @Test
            @DisplayName("should log appropriate header message")
            void shouldLogAppropriateHeaderMessage() throws Exception {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Jun 07 06:22:47 UTC 2025
    - 4.9K bytes
    - Viewed (0)
Back to top