Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 200 for assertAll (0.06 sec)

  1. src/test/java/org/codelibs/core/timer/TimeoutManagerTest.java

            Thread.sleep(2000);
            assertTrue(expiredCount > 0);
            assertEquals(1, TimeoutManager.getInstance().getTimeoutTaskCount());
            TimeoutManager.getInstance().stop();
            assertNull(TimeoutManager.getInstance().thread);
            Thread.sleep(10);
            int count = expiredCount;
            task.stop();
            TimeoutManager.getInstance().start();
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/TestThread.java

    import static java.util.concurrent.TimeUnit.MILLISECONDS;
    import static junit.framework.Assert.assertEquals;
    import static junit.framework.Assert.assertNotNull;
    import static junit.framework.Assert.assertNull;
    import static junit.framework.Assert.assertSame;
    
    import com.google.common.testing.TearDown;
    import java.lang.reflect.InvocationTargetException;
    import java.lang.reflect.Method;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/BiMapPutTester.java

      @CollectionSize.Require(ONE)
      public void testForcePutKeyPresent() {
        getMap().forcePut(k0(), v1());
        expectContents(mapEntry(k0(), v1()));
        assertFalse(getMap().containsValue(v0()));
        assertNull(getMap().inverse().get(v0()));
        assertEquals(1, getMap().size());
        assertTrue(getMap().containsKey(k0()));
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(ONE)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  4. compat/maven-plugin-api/src/test/java/org/apache/maven/plugin/descriptor/PluginDescriptorBuilderTest.java

            assertEquals("2.0.6", cd.getVersion());
            assertEquals("jar", cd.getType());
    
            md = pd.getMojos().get(1);
    
            assertEquals("war", md.getGoal());
            assertNull(md.getDependencyResolutionRequired());
            assertNull(md.getDependencyCollectionRequired());
            assertTrue(md.isThreadSafe());
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfAbsentTester.java

                      throw new AssertionFailedError();
                    }));
        expectUnchanged();
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      public void testComputeIfAbsent_functionReturnsNullNotInserted() {
        assertNull(
            "computeIfAbsent(absent, returnsNull) should return null",
            getMap()
                .computeIfAbsent(
                    k3(),
                    k -> {
                      assertEquals(k3(), k);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  6. android/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)
  7. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

      public void testCancel_notDoneNoInterrupt() throws Exception {
        Future<?> future = newFutureInstance();
        assertTrue(future.cancel(false));
        assertTrue(future.isCancelled());
        assertTrue(future.isDone());
        assertNull(tryInternalFastPathGetFailure(future));
        CancellationException e = assertThrows(CancellationException.class, () -> future.get());
        assertNotNull(e.getCause());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

      public void testCancel_notDoneNoInterrupt() throws Exception {
        Future<?> future = newFutureInstance();
        assertTrue(future.cancel(false));
        assertTrue(future.isCancelled());
        assertTrue(future.isDone());
        assertNull(tryInternalFastPathGetFailure(future));
        CancellationException e = assertThrows(CancellationException.class, () -> future.get());
        assertNotNull(e.getCause());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ForwardingConcurrentMapTest.java

      public void testPutIfAbsent() {
        TestMap map = new TestMap();
        map.put("foo", 1);
        assertEquals(Integer.valueOf(1), map.putIfAbsent("foo", 2));
        assertEquals(Integer.valueOf(1), map.get("foo"));
        assertNull(map.putIfAbsent("bar", 3));
        assertEquals(Integer.valueOf(3), map.get("bar"));
      }
    
      public void testRemove() {
        TestMap map = new TestMap();
        map.put("foo", 1);
        assertFalse(map.remove("foo", 2));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.4K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/net/MimeTypeUtilTest.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.net;
    
    import static org.hamcrest.CoreMatchers.is;
    import static org.junit.Assert.assertEquals;
    import static org.junit.Assert.assertNull;
    
    import java.net.URLConnection;
    
    import org.codelibs.core.exception.EmptyArgumentException;
    import org.codelibs.core.io.ResourceUtil;
    import org.codelibs.core.lang.ClassUtil;
    import org.junit.Rule;
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top