Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 64 for assertNull (0.07 sec)

  1. compat/maven-model-builder/src/test/java/org/apache/maven/model/interpolation/reflection/ReflectionValueExtractorTest.java

            Object value = new ValueHolder(list);
    
            assertNull(ReflectionValueExtractor.evaluate("h.value[", value));
            assertNull(ReflectionValueExtractor.evaluate("h.value[]", value));
            assertNull(ReflectionValueExtractor.evaluate("h.value[a]", value));
            assertNull(ReflectionValueExtractor.evaluate("h.value[0", value));
            assertNull(ReflectionValueExtractor.evaluate("h.value[0)", value));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  2. compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/VersionRangeTest.java

            assertNull(restriction.getUpperBound(), CHECK_UPPER_BOUND);
            assertFalse(restriction.isUpperBoundInclusive(), CHECK_UPPER_BOUND_INCLUSIVE);
            assertNull(range.getRecommendedVersion(), CHECK_VERSION_RECOMMENDATION);
            assertFalse(range.isSelectedVersionKnown(artifact), CHECK_SELECTED_VERSION_KNOWN);
            assertNull(range.getSelectedVersion(artifact), CHECK_SELECTED_VERSION);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 44.3K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableMapNavigationTester.java

        assertNull(navigableMap.floorKey(k0()));
        assertNull(navigableMap.ceilingEntry(k0()));
        assertNull(navigableMap.ceilingKey(k0()));
        assertNull(navigableMap.higherEntry(k0()));
        assertNull(navigableMap.higherKey(k0()));
      }
    
      @CollectionSize.Require(ZERO)
      public void testEmptyMapLast() {
        assertNull(navigableMap.lastEntry());
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9K bytes
    - Viewed (0)
  4. compat/maven-model/src/test/java/org/apache/maven/model/ModelTest.java

    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}.
     *
     */
    class ModelTest {
    
        @Test
        void testHashCodeNullSafe() {
            new Model().hashCode();
        }
    
        @Test
        void testBuild() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java

      @CollectionSize.Require(ZERO)
      public void testEmptySetPollFirst() {
        assertNull(navigableSet.pollFirst());
      }
    
      @CollectionSize.Require(ZERO)
      public void testEmptySetNearby() {
        assertNull(navigableSet.lower(e0()));
        assertNull(navigableSet.floor(e0()));
        assertNull(navigableSet.ceiling(e0()));
        assertNull(navigableSet.higher(e0()));
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. compat/maven-artifact/src/test/java/org/apache/maven/artifact/DefaultArtifactTest.java

            assertNull(artifact.getVersion());
            assertNull(artifact.getBaseVersion());
        }
    
        @Test
        void testMNG7780() throws Exception {
            VersionRange vr = VersionRange.createFromVersionSpec("[1.0,2.0)");
            artifact = new DefaultArtifact(groupId, artifactId, vr, scope, type, null, artifactHandler);
            assertNull(artifact.getVersion());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java

        expectReplacement(entry(k0(), v3()));
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      public void testPut_supportedNotPresent() {
        assertNull("put(notPresent, value) should return null", put(e3()));
        expectAdded(e3());
      }
    
      @MapFeature.Require({FAILS_FAST_ON_CONCURRENT_MODIFICATION, SUPPORTS_PUT})
      @CollectionSize.Require(absent = ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  8. compat/maven-embedder/src/test/java/org/apache/maven/cli/props/MavenPropertiesLoaderTest.java

    import com.google.common.jimfs.Configuration;
    import com.google.common.jimfs.Jimfs;
    import org.junit.jupiter.api.Test;
    
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertNull;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    
    class MavenPropertiesLoaderTest {
    
        @Test
        void testIncludes() throws Exception {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfPresentTester.java

    public class MapComputeIfPresentTester<K, V> extends AbstractMapTester<K, V> {
    
      @MapFeature.Require(SUPPORTS_PUT)
      public void testComputeIfPresent_supportedAbsent() {
        assertNull(
            "computeIfPresent(notPresent, function) should return null",
            getMap()
                .computeIfPresent(
                    k3(),
                    (k, v) -> {
                      throw new AssertionFailedError();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

        for (BoundType type : BoundType.values()) {
          assertNull(sortedMultiset.headMultiset(e0(), type).lastEntry());
          assertNull(sortedMultiset.tailMultiset(e0(), type).firstEntry());
        }
      }
    
      @CollectionSize.Require(ZERO)
      public void testEmptyMultisetLast() {
        assertNull(sortedMultiset.lastEntry());
        assertThrows(
            NoSuchElementException.class, () -> assertNull(sortedMultiset.elementSet().last()));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.1K bytes
    - Viewed (0)
Back to top