Package com.google.common.testing

Examples of com.google.common.testing.NullPointerTester


  @GwtIncompatible("NullPointerTester")
  public void testNullPointerInstance() {
    table = create(
        "foo", 1, 'a', "bar", 1, 'b', "foo", 2, 'c', "bar", 3, 'd');
    new NullPointerTester().testAllPublicInstanceMethods(table);
  }
View Full Code Here


    assertSame(Collections.emptyList(), Doubles.asList(EMPTY));
  }

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

    }
  }

  @GwtIncompatible("NullPointerTester")
  public void testNulls() throws Exception {
    NullPointerTester tester = new NullPointerTester();
    tester.setDefault(UnsignedInteger.class, UnsignedInteger.ONE);
    tester.testAllPublicStaticMethods(UnsignedInteger.class);
  }
View Full Code Here

  private Random random = new Random(301);

  @GwtIncompatible("NullPointerTester")
  public void testNulls() throws Exception {
    NullPointerTester tester = new NullPointerTester();
    tester.testAllPublicConstructors(AtomicLongMap.class);
    tester.testAllPublicStaticMethods(AtomicLongMap.class);
    AtomicLongMap<Object> map = AtomicLongMap.create();
    tester.testAllPublicInstanceMethods(map);
  }
View Full Code Here

    assertSame(Collections.emptyList(), Ints.asList(EMPTY));
  }

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

    list.execute();
    list.add(THROWING_RUNNABLE, sameThreadExecutor());
  }

  public void testNulls() throws Exception {
    NullPointerTester tester = new NullPointerTester();
    tester.setDefault(Executor.class, sameThreadExecutor());
    tester.setDefault(Runnable.class, DO_NOTHING);
    tester.testAllPublicInstanceMethods(new ExecutionList());
  }
View Full Code Here

    assertSame(Collections.emptyList(), Longs.asList(EMPTY));
  }

  @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

    assertSame(Collections.emptyList(), Bytes.asList(EMPTY));
  }

  @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

    } catch (NullPointerException expected) {
    }
  }

  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

TOP

Related Classes of com.google.common.testing.NullPointerTester

Copyright © 2018 www.massapicom. 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.