Examples of testAllPublicInstanceMethods()


Examples of com.google.common.testing.NullPointerTester.testAllPublicInstanceMethods()

  }

  @GwtIncompatible("NullPointerTester")
  public void testStringConverter_nullPointerTester() throws Exception {
    NullPointerTester tester = new NullPointerTester();
    tester.testAllPublicInstanceMethods(Floats.stringConverter());
  }
}
View Full Code Here

Examples of com.google.common.testing.NullPointerTester.testAllPublicInstanceMethods()

  }

  @GwtIncompatible("NullPointerTester")
  public void testStringConverter_nullPointerTester() throws Exception {
    NullPointerTester tester = new NullPointerTester();
    tester.testAllPublicInstanceMethods(Doubles.stringConverter());
  }
}
View Full Code Here

Examples of com.google.common.testing.NullPointerTester.testAllPublicInstanceMethods()

  @GwtIncompatible("NullPointerTester")
  public void testContainsPattern_nulls() throws Exception {
    NullPointerTester tester = new NullPointerTester();
    Predicate<CharSequence> isWooString = Predicates.containsPattern("Woo");

    tester.testAllPublicInstanceMethods(isWooString);
  }

  @GwtIncompatible("NullPointerTester")
  public void testContains_nulls() throws Exception {
    NullPointerTester tester = new NullPointerTester();
View Full Code Here

Examples of com.google.common.testing.NullPointerTester.testAllPublicInstanceMethods()

  public void testContains_nulls() throws Exception {
    NullPointerTester tester = new NullPointerTester();
    Predicate<CharSequence> isWooPattern =
        Predicates.contains(Pattern.compile("Woo"));

    tester.testAllPublicInstanceMethods(isWooPattern);
  }

  @GwtIncompatible("SerializableTester")
  public void testContainsPattern_serialization() {
    Predicate<CharSequence> pre = Predicates.containsPattern("foo");
View Full Code Here

Examples of com.google.common.testing.NullPointerTester.testAllPublicInstanceMethods()

    @GwtIncompatible("NullPointerTester")
    public void testNullPointers() {
      NullPointerTester tester = new NullPointerTester();
      tester.testAllPublicStaticMethods(ImmutableList.class);
      tester.testAllPublicInstanceMethods(ImmutableList.of(1, 2, 3));
    }

    @GwtIncompatible("SerializableTester")
    public void testSerialization_empty() {
      Collection<String> c = ImmutableList.of();
View Full Code Here

Examples of com.google.common.testing.NullPointerTester.testAllPublicInstanceMethods()

  @GwtIncompatible("NullPointerTester")
  public void testNullArguments() {
    NullPointerTester tester = new NullPointerTester();
    tester.testAllPublicStaticMethods(CaseFormat.class);
    for (CaseFormat format : CaseFormat.values()) {
      tester.testAllPublicInstanceMethods(format);
    }
  }

  public void testLowerHyphenToLowerHyphen() {
    assertEquals("foo", LOWER_HYPHEN.to(LOWER_HYPHEN, "foo"));
View Full Code Here

Examples of com.google.common.testing.NullPointerTester.testAllPublicInstanceMethods()

  }

  @GwtIncompatible("NullPointerTester")
  public void testStringConverter_nullPointerTester() throws Exception {
    NullPointerTester tester = new NullPointerTester();
    tester.testAllPublicInstanceMethods(Ints.stringConverter());
  }

  public void testTryParse() {
    tryParseAndAssertEquals(0, "0");
    tryParseAndAssertEquals(0, "-0");
View Full Code Here

Examples of com.google.common.testing.NullPointerTester.testAllPublicInstanceMethods()

  }

  @GwtIncompatible("NullPointerTester")
  public void testStringConverter_nullPointerTester() throws Exception {
    NullPointerTester tester = new NullPointerTester();
    tester.testAllPublicInstanceMethods(Longs.stringConverter());
  }

  public void testTryParse() {
    tryParseAndAssertEquals(0L, "0");
    tryParseAndAssertEquals(0L, "-0");
View Full Code Here

Examples of com.google.common.testing.NullPointerTester.testAllPublicInstanceMethods()

public class MapMakerTest extends TestCase {

  @GwtIncompatible("NullPointerTester")
  public void testNullParameters() throws Exception {
    NullPointerTester tester = new NullPointerTester();
    tester.testAllPublicInstanceMethods(new MapMaker());
  }

  @GwtIncompatible("threads")

  public void testRemovalNotification_clear() throws InterruptedException {
View Full Code Here

Examples of com.google.common.testing.NullPointerTester.testAllPublicInstanceMethods()

  }

  @GwtIncompatible("NullPointerTester")
  public void testNulls() {
    NullPointerTester tester = new NullPointerTester();
    tester.testAllPublicInstanceMethods(ADAPTER);
    tester.testAllPublicInstanceMethods(BIN_ADAPTER);
  }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.