Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 707 for Expected (0.4 sec)

  1. guava-tests/test/com/google/common/util/concurrent/AbstractServiceTest.java

            try {
              service.awaitRunning();
              fail();
            } catch (IllegalStateException expected) {
              assertThat(expected).hasCauseThat().isNull();
              assertThat(expected)
                  .hasMessageThat()
                  .isEqualTo("Expected the service " + service + " to be RUNNING, but was STOPPING");
            }
          }
          assertNotSame(from, service.state());
        }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/AsciiTest.java

          fail();
        } catch (IllegalArgumentException expected) {
        }
    
        try {
          Ascii.truncate("foobar", 8, "1234567890");
          fail();
        } catch (IllegalArgumentException expected) {
        }
    
        try {
          Ascii.truncate("foobar", -1, "...");
          fail();
        } catch (IllegalArgumentException expected) {
        }
    
        try {
          Ascii.truncate("foobar", -1, "");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/MultisetAddTester.java

      @CollectionFeature.Require(absent = SUPPORTS_ADD)
      public void testAddUnsupported() {
        try {
          getMultiset().add(e0());
          fail("Expected UnsupportedOperationException");
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testAddMeansAddOne() {
        int originalCount = getMultiset().count(e0());
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 4.2K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveIfTester.java

        try {
          Iterator<E> iterator = collection.iterator();
          assertTrue(collection.removeIf(Predicate.isEqual(samples.e0())));
          iterator.next();
          fail("Expected ConcurrentModificationException");
        } catch (ConcurrentModificationException expected) {
          // success
        }
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      @CollectionSize.Require(ZERO)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

            .invoke(future, badFuture);
        CancellationException expected = assertThrows(CancellationException.class, () -> future.get());
        assertThat(expected).hasCauseThat().isInstanceOf(IllegalArgumentException.class);
        assertThat(expected).hasCauseThat().hasMessageThat().contains(badFuture.toString());
      }
    
      private Future<?> newFutureInstance() throws Exception {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/StopwatchTest.java

          fail();
        } catch (IllegalStateException expected) {
        }
        assertTrue(stopwatch.isRunning());
      }
    
      public void testStop() {
        stopwatch.start();
        assertSame(stopwatch, stopwatch.stop());
        assertFalse(stopwatch.isRunning());
      }
    
      public void testStop_new() {
        try {
          stopwatch.stop();
          fail();
        } catch (IllegalStateException expected) {
        }
        assertFalse(stopwatch.isRunning());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/UndirectedNetworkConnections.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.graph;
    
    import static com.google.common.graph.GraphConstants.EXPECTED_DEGREE;
    
    import com.google.common.collect.BiMap;
    import com.google.common.collect.HashBiMap;
    import com.google.common.collect.ImmutableBiMap;
    import java.util.Collections;
    import java.util.Map;
    import java.util.Set;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 01 17:18:04 GMT 2021
    - 1.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

        try {
          Floats.ensureCapacity(ARRAY1, -1, 1);
          fail();
        } catch (IllegalArgumentException expected) {
        }
        try {
          // notice that this should even fail when no growth was needed
          Floats.ensureCapacity(ARRAY1, 1, -1);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      @GwtIncompatible // Float.toString returns different value in GWT.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/EnumMultisetTest.java

          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testCreateEmptyWithClass() {
        Multiset<Color> ms = EnumMultiset.create(ImmutableList.<Color>of(), Color.class);
        ms.add(Color.RED);
      }
    
      public void testCreateEmptyWithoutClassFails() {
        try {
          EnumMultiset.create(ImmutableList.<Color>of());
          fail("Expected IllegalArgumentException");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/eventbus/ReentrantEventsTest.java

      public void testNoReentrantEvents() {
        ReentrantEventsHater hater = new ReentrantEventsHater();
        bus.register(hater);
    
        bus.post(FIRST);
    
        assertEquals(
            "ReentrantEventHater expected 2 events",
            Lists.<Object>newArrayList(FIRST, SECOND),
            hater.eventsReceived);
      }
    
      public class ReentrantEventsHater {
        boolean ready = true;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.5K bytes
    - Viewed (0)
Back to top