Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 341 for Simple (0.18 sec)

  1. android/guava-tests/test/com/google/common/base/VerifyTest.java

    /** Unit test for {@link com.google.common.base.Verify}. */
    @GwtCompatible(emulated = true)
    public class VerifyTest extends TestCase {
      public void testVerify_simple_success() {
        verify(true);
      }
    
      public void testVerify_simple_failure() {
        try {
          verify(false);
          fail();
        } catch (VerifyException expected) {
        }
      }
    
      public void testVerify_simpleMessage_success() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu May 04 09:41:29 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/escape/ArrayBasedCharEscaperTest.java

    @ElementTypesAreNonnullByDefault
    public class ArrayBasedCharEscaperTest extends TestCase {
      private static final ImmutableMap<Character, String> NO_REPLACEMENTS = ImmutableMap.of();
      private static final ImmutableMap<Character, String> SIMPLE_REPLACEMENTS =
          ImmutableMap.of(
              '\n', "<newline>",
              '\t', "<tab>",
              '&', "<and>");
    
      public void testSafeRange() throws IOException {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 23:02:38 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/escape/UnicodeEscaperTest.java

        for (int i = 256; i < 1024; i++) {
          input.append((char) i);
          expected.append("[" + i + "]");
        }
        assertEquals(expected.toString(), SIMPLE_ESCAPER.escape(input.toString()));
      }
    
      public void testSurrogatePairs() {
        UnicodeEscaper e = SIMPLE_ESCAPER;
    
        // Build up a range of surrogate pair characters to test
        final int min = Character.MIN_SUPPLEMENTARY_CODE_POINT;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/SplitterTest.java

       */
      public void testCharacterSimpleSplitToList() {
        String simple = "a,b,c";
        List<String> letters = COMMA_SPLITTER.splitToList(simple);
        assertThat(letters).containsExactly("a", "b", "c").inOrder();
      }
    
      public void testCharacterSimpleSplitToStream() {
        String simple = "a,b,c";
        List<String> letters = COMMA_SPLITTER.splitToStream(simple).collect(toImmutableList());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 29.8K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/BaseComparable.java

     */
    
    package com.google.common.collect.testing;
    
    import com.google.common.annotations.GwtCompatible;
    import java.io.Serializable;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Simple base class to verify that we handle generics correctly.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    public class BaseComparable implements Comparable<BaseComparable>, Serializable {
      private final String s;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 20 11:19:03 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/Base.java

     */
    
    package com.google.common.collect;
    
    import com.google.common.annotations.GwtCompatible;
    import java.io.Serializable;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /** Simple base class to verify that we handle generics correctly. */
    @GwtCompatible
    class Base implements Comparable<Base>, Serializable {
      private final String s;
    
      public Base(String s) {
        this.s = s;
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Oct 03 22:29:45 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/testing/SloppyTearDown.java

     * limitations under the License.
     */
    
    package com.google.common.testing;
    
    import com.google.common.annotations.GwtCompatible;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    
    /**
     * Simple utility for when you want to create a {@link TearDown} that may throw an exception but
     * should not fail a test when it does. (The behavior of a {@code TearDown} that throws an exception
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri May 12 19:22:18 GMT 2023
    - 1.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/OrderingTest.java

        assertEquals(ImmutableList.<Integer>of(), result);
      }
    
      public void testLeastOfIterable_simple_negativeOne() {
        try {
          numberOrdering.leastOf(Arrays.asList(3, 4, 5, -1), -1);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testLeastOfIterator_simple_negativeOne() {
        try {
          numberOrdering.leastOf(Iterators.forArray(3, 4, 5, -1), -1);
          fail();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/OrderingTest.java

        assertEquals(ImmutableList.<Integer>of(), result);
      }
    
      public void testLeastOfIterable_simple_negativeOne() {
        try {
          numberOrdering.leastOf(Arrays.asList(3, 4, 5, -1), -1);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testLeastOfIterator_simple_negativeOne() {
        try {
          numberOrdering.leastOf(Iterators.forArray(3, 4, 5, -1), -1);
          fail();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/util/concurrent/testing/MockFutureListener.java

    import com.google.common.util.concurrent.ListenableFuture;
    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.ExecutionException;
    import junit.framework.Assert;
    
    /**
     * A simple mock implementation of {@code Runnable} that can be used for testing ListenableFutures.
     *
     * @author Nishant Thakkar
     * @since 10.0
     */
    @GwtIncompatible
    public class MockFutureListener implements Runnable {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 12 18:12:42 GMT 2023
    - 3K bytes
    - Viewed (0)
Back to top