Package com.google.common.testing

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


  @GwtIncompatible("NullPointerTester")
  public void testNulls() throws Exception {
    NullPointerTester tester = new NullPointerTester();
    tester.setDefault(long[].class, new long[0]);
    tester.testAllPublicStaticMethods(Longs.class);
  }
}
View Full Code Here


  @GwtIncompatible("NullPointerTester")
  public void testNulls() throws Exception {
    NullPointerTester tester = new NullPointerTester();
    tester.setDefault(byte[].class, new byte[0]);
    tester.testAllPublicStaticMethods(Bytes.class);
  }
}
View Full Code Here

  @GwtIncompatible("NullPointerTester")
  public void testNulls() throws Exception {
    NullPointerTester tester = new NullPointerTester();
    tester.setDefault(boolean[].class, new boolean[0]);
    tester.testAllPublicStaticMethods(Booleans.class);
  }
}
View Full Code Here

  }

  public void testNullPointers() throws Exception {
    NullPointerTester tester = new NullPointerTester();
    tester.testAllPublicConstructors(Atomics.class); // there aren't any
    tester.testAllPublicStaticMethods(Atomics.class);
  }
}
View Full Code Here

  @GwtIncompatible("NullPointerTester")
  public void testNulls() throws Exception {
    NullPointerTester tester = new NullPointerTester();
    tester.setDefault(int[].class, new int[0]);
    tester.testAllPublicStaticMethods(UnsignedInts.class);
  }
}
View Full Code Here

  }

  public void testNulls() throws Exception {
    NullPointerTester npTester = new NullPointerTester();
    npTester.testAllPublicConstructors(ThreadFactoryBuilder.class);
    npTester.testAllPublicStaticMethods(ThreadFactoryBuilder.class);
    npTester.testAllPublicInstanceMethods(builder);
  }
}
View Full Code Here

  }

  public void testNullArguments() throws Exception {
    NullPointerTester tester = new NullPointerTester();
    tester.setDefault(Future.class, immediateFuture(DATA1));
    tester.testAllPublicStaticMethods(JdkFutureAdapters.class);
  }
}
View Full Code Here

  @GwtIncompatible("NullPointerTester")
  public void testNullPointers() throws Exception {
    NullPointerTester tester = new NullPointerTester();
    tester.setDefault(Comparable[].class, new Comparable[] { 0 });
    tester.testAllPublicStaticMethods(ImmutableSortedSet.class);
  }

  public void testEmpty_comparator() {
    SortedSet<String> set = of();
    assertSame(Ordering.natural(), set.comparator());
View Full Code Here

  @GwtIncompatible("NullPointerTester")
  public void testNulls() throws Exception {
    NullPointerTester tester = new NullPointerTester();
    tester.setDefault(char[].class, new char[0]);
    tester.testAllPublicStaticMethods(Chars.class);
  }
}
View Full Code Here

  @GwtIncompatible("NullPointerTester")
  public void testNulls() throws Exception {
    NullPointerTester tester = new NullPointerTester();
    tester.setDefault(long[].class, new long[0]);
    tester.setDefault(BigInteger.class, BigInteger.ZERO);
    tester.testAllPublicStaticMethods(UnsignedLongs.class);
  }
}
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.