C
- the class under the testspublic abstract class ClassTest<C>
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
ClassTest(java.lang.Class<C> subject)
Creates a new test suite for the passed class.
|
protected |
ClassTest(java.lang.Class<C> subject,
com.google.common.testing.NullPointerTester.Visibility minimalStaticMethodVisibility)
Creates a new test suite for the passed class.
|
Modifier and Type | Method and Description |
---|---|
protected void |
assertFinal()
Asserts that the class under tests is declared as
final . |
protected void |
assertHasPrivateParameterlessCtor()
Asserts that the class under tests has a
private constructor
which accepts no parameters. |
protected void |
configure(com.google.common.testing.NullPointerTester tester)
A callback to configure a passed NullPointerTester.
|
protected com.google.common.testing.NullPointerTester.Visibility |
minimalStaticMethodVisibility()
Obtains the minimal level of visibility of static methods included into null-pointer
testing of parameters.
|
protected java.lang.Class<C> |
subject()
Obtains the class under tests.
|
protected ClassTest(java.lang.Class<C> subject, com.google.common.testing.NullPointerTester.Visibility minimalStaticMethodVisibility)
subject
- the class to be testedminimalStaticMethodVisibility
- the minimal level of visibility of static methods for testing
null parametersconfigure(NullPointerTester)
protected ClassTest(java.lang.Class<C> subject)
This test suite will
PUBLIC
visibility of static methods for null-pointer testing.
subject
- the class to be testedprotected final java.lang.Class<C> subject()
protected final com.google.common.testing.NullPointerTester.Visibility minimalStaticMethodVisibility()
configure(NullPointerTester)
protected void configure(com.google.common.testing.NullPointerTester tester)
Does nothing. Override to specify default values in a derived test.
protected final void assertHasPrivateParameterlessCtor()
private
constructor
which accepts no parameters.protected final void assertFinal()
final
.