Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 880 for assertEquals (0.05 sec)

  1. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/DefaultModelBuilderTest.java

                    .filter(d -> "test:mydep:jar".equals(d.getManagementKey()))
                    .findFirst()
                    .get();
            assertEquals("0.2", dep.getVersion());
            assertEquals(0, result.getProblems().size());
        }
    
        /**
         * This test has
         *   - a BOM import which manages the dep to 0.1
         *   - then a directly managed dependency to 0.2
    Registered: 2024-11-03 03:35
    - Last Modified: 2024-10-25 12:31
    - 16.9K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java

          expectUnchanged();
          // Be extra thorough in case internal state was corrupted by the expected null.
          assertEquals(Lists.newArrayList(), Lists.newArrayList(values));
          assertEquals(size, multimap().size());
        } else {
          assertEquals(Lists.newArrayList(v3()), Lists.newArrayList(values));
          assertEquals(size + 1, multimap().size());
        }
      }
    
    Registered: 2024-11-01 12:43
    - Last Modified: 2024-10-30 16:15
    - 7.7K bytes
    - Viewed (0)
  3. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/LegacyRepositorySystemTest.java

            Authentication authentication = repository.getAuthentication();
            assertNotNull(authentication);
            assertEquals("jason", authentication.getUsername());
            assertEquals("abc123", authentication.getPassword());
        }
    Registered: 2024-11-03 03:35
    - Last Modified: 2024-10-25 12:31
    - 2.4K bytes
    - Viewed (0)
  4. compat/maven-embedder/src/test/java/org/apache/maven/cli/props/MavenPropertiesLoaderTest.java

            assertEquals("bar", p.getProperty("foo"));
            assertNull(p.getProperty("foo-env"));
    
            p = new Properties();
            p.put("user.home", userDirectory.toString());
            p.put("env.envName", "ci");
            MavenPropertiesLoader.loadProperties(p, mavenUserProps, p::getProperty, false);
            assertEquals("bar-env", p.getProperty("foo"));
    Registered: 2024-11-03 03:35
    - Last Modified: 2024-10-25 12:31
    - 4.1K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/EmlExtractorTest.java

                assertEquals(receivedDate[0], "2012-11-11T02:39:59.000Z");
            }
        }
    
        public void test_getDecodeText() throws Exception {
            assertEquals("", emlExtractor.getDecodeText(null));
            assertEquals("", emlExtractor.getDecodeText(""));
            assertEquals("abc123", emlExtractor.getDecodeText("abc123"));
    Registered: 2024-11-10 03:50
    - Last Modified: 2024-02-22 01:36
    - 4.5K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/convert/ShortConversionUtilTest.java

        /**
         * @throws Exception
         */
        public void testToShort() throws Exception {
            assertEquals(new Short("1000"), ShortConversionUtil.toShort("1,000"));
        }
    
        /**
         * @throws Exception
         */
        public void testToPrimitiveShort() throws Exception {
            assertEquals(1000, ShortConversionUtil.toPrimitiveShort("1,000"));
        }
    
        /**
         * @throws Exception
         */
    Registered: 2024-11-01 20:58
    - Last Modified: 2024-03-07 01:59
    - 1.4K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/CertificatePinnerKotlinTest.kt

        val pin =
          Pin(
            "**.example.co.uk",
            "sha256/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=",
          )
        assertEquals("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=".decodeBase64(), pin.hash)
        assertEquals("sha256", pin.hashAlgorithm)
        assertEquals("**.example.co.uk", pin.pattern)
        assertTrue(pin.matchesHostname("www.example.co.uk"))
        assertTrue(pin.matchesHostname("gopher.example.co.uk"))
    Registered: 2024-11-01 11:42
    - Last Modified: 2024-01-08 01:13
    - 8.1K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

        protected @Nullable Object handleInvocation(
            Object p, Method calledMethod, @Nullable Object[] args) throws Throwable {
          assertEquals(method, calledMethod);
          assertEquals(method + " invoked more than once.", 0, called.get());
          for (int i = 0; i < passedArgs.length; i++) {
            assertEquals(
                "Parameter #" + i + " of " + method + " not forwarded", passedArgs[i], args[i]);
          }
          called.getAndIncrement();
    Registered: 2024-11-01 12:43
    - Last Modified: 2024-10-17 13:00
    - 9.1K bytes
    - Viewed (0)
  9. compat/maven-model/src/test/java/org/apache/maven/model/ModelTest.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.model;
    
    import org.junit.jupiter.api.Test;
    
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertNotEquals;
    import static org.junit.jupiter.api.Assertions.assertNotNull;
    import static org.junit.jupiter.api.Assertions.assertNull;
    
    /**
     * Tests {@code Model}.
    Registered: 2024-11-03 03:35
    - Last Modified: 2024-10-25 12:31
    - 2K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/dict/DictionaryManagerTest.java

            final DictionaryManager dictionaryManager = new DictionaryManager();
            dictionaryManager.init();
            assertEquals(0, dictionaryManager.creatorList.size());
    
            dictionaryManager.addCreator(new CharMappingCreator());
            dictionaryManager.init();
            assertEquals(1, dictionaryManager.creatorList.size());
        }
    
        /*
        public void test_storeSynonymFiles() throws Exception {
    Registered: 2024-10-31 13:40
    - Last Modified: 2024-02-22 01:37
    - 2.4K bytes
    - Viewed (0)
Back to top