本文整理汇总了Java中com.google.common.testing.NullPointerTester.testAllPublicConstructors方法的典型用法代码示例。如果您正苦于以下问题:Java NullPointerTester.testAllPublicConstructors方法的具体用法?Java NullPointerTester.testAllPublicConstructors怎么用?Java NullPointerTester.testAllPublicConstructors使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.google.common.testing.NullPointerTester
的用法示例。
在下文中一共展示了NullPointerTester.testAllPublicConstructors方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: null_parameters_are_invalid
import com.google.common.testing.NullPointerTester; //导入方法依赖的package包/类
@Test
public void null_parameters_are_invalid() {
NullPointerTester tester = new NullPointerTester();
tester.setDefault(ActorKey.class, DUMMY_ACTOR);
tester.testAllPublicConstructors(MetricValuesMessage.class);
}
示例2: null_parameters_are_invalid
import com.google.common.testing.NullPointerTester; //导入方法依赖的package包/类
@Test
public void null_parameters_are_invalid() {
NullPointerTester tester = new NullPointerTester();
tester.setDefault(JgroupsSender.class, jgroupsSender);
tester.setDefault(ActorInputMessage.class, ActorInputMessage.dumpMetrics());
tester.setDefault(ActorKey.class, new ActorKey("dummy"));
tester.testAllPublicConstructors(JgroupsActorSender.class);
tester.testAllPublicInstanceMethods(sender);
}
示例3: null_parameters_are_invalid
import com.google.common.testing.NullPointerTester; //导入方法依赖的package包/类
@Test
public void null_parameters_are_invalid() {
NullPointerTester tester = new NullPointerTester();
tester.setDefault(ProcessWatcherActorInput.class, stopSampling(PID));
tester.testAllPublicConstructors(ProcessWatcherActor.class);
tester.testAllPublicInstanceMethods(watcherActor);
}
示例4: testNullPointers
import com.google.common.testing.NullPointerTester; //导入方法依赖的package包/类
@GwtIncompatible // NullPointerTester
public void testNullPointers() {
NullPointerTester npTester = new NullPointerTester();
npTester.testAllPublicConstructors(Optional.class);
npTester.testAllPublicStaticMethods(Optional.class);
npTester.testAllPublicInstanceMethods(Optional.absent());
npTester.testAllPublicInstanceMethods(Optional.of("training"));
}
示例5: null_parameters_invalid
import com.google.common.testing.NullPointerTester; //导入方法依赖的package包/类
@Test
public void null_parameters_invalid() {
NullPointerTester tester = new NullPointerTester();
tester.setDefault(AgentKey.class, new AgentKey("agent"));
tester.testAllPublicConstructors(EmbeddedActorManager.class);
tester.testAllPublicInstanceMethods(actorManager);
}
示例6: null_parameters_invalid
import com.google.common.testing.NullPointerTester; //导入方法依赖的package包/类
@Test
public void null_parameters_invalid() {
NullPointerTester tester = new NullPointerTester();
tester.setDefault(ActorInputMessage.class, ActorInputMessage.dumpMetrics());
tester.setDefault(ActorKey.class, DUMMY_ACTOR);
tester.testAllPublicConstructors(JMSActorClusterClient.class);
tester.testAllPublicInstanceMethods(client);
}
示例7: null_parameters_are_invalid
import com.google.common.testing.NullPointerTester; //导入方法依赖的package包/类
@Test
public void null_parameters_are_invalid() {
NullPointerTester tester = new NullPointerTester();
tester.testAllPublicConstructors(AgentView.class);
tester.testAllPublicInstanceMethods(agentView());
}
示例8: testNulls
import com.google.common.testing.NullPointerTester; //导入方法依赖的package包/类
@GwtIncompatible // NullPointerTester
public void testNulls() {
NullPointerTester tester = new NullPointerTester();
tester.testAllPublicConstructors(AtomicLongMap.class);
tester.testAllPublicStaticMethods(AtomicLongMap.class);
AtomicLongMap<Object> map = AtomicLongMap.create();
tester.testAllPublicInstanceMethods(map);
}
示例9: null_parameters_are_invalid
import com.google.common.testing.NullPointerTester; //导入方法依赖的package包/类
@Test
public void null_parameters_are_invalid() {
NullPointerTester tester = new NullPointerTester();
tester.testAllPublicConstructors(ActorView.class);
tester.testAllPublicInstanceMethods(actorView());
}
示例10: testNullPointer
import com.google.common.testing.NullPointerTester; //导入方法依赖的package包/类
@GwtIncompatible // com.google.common.testing.NullPointerTester
public void testNullPointer() {
NullPointerTester tester = new NullPointerTester();
tester.testAllPublicConstructors(MediaType.class);
tester.testAllPublicStaticMethods(MediaType.class);
tester.testAllPublicInstanceMethods(MediaType.parse("text/plain"));
}
示例11: null_parameters_invalid
import com.google.common.testing.NullPointerTester; //导入方法依赖的package包/类
@Test
public void null_parameters_invalid() {
NullPointerTester tester = new NullPointerTester();
tester.setDefault(ActorInputMessage.class, ActorInputMessage.dumpMetrics());
tester.setDefault(ActorKey.class, DUMMY_ACTOR);
tester.setDefault(AgentKey.class, TEST_AGENT);
tester.testAllPublicConstructors(JMSAgentClusterClient.class);
tester.testAllPublicInstanceMethods(client);
}
示例12: testNullPointers
import com.google.common.testing.NullPointerTester; //导入方法依赖的package包/类
@GwtIncompatible // NullPointerTester
public void testNullPointers() {
NullPointerTester tester = new NullPointerTester();
tester.testAllPublicConstructors(MinMaxPriorityQueue.class);
tester.testAllPublicStaticMethods(MinMaxPriorityQueue.class);
tester.testAllPublicInstanceMethods(MinMaxPriorityQueue.<String>create());
}
示例13: null_parameters_are_invalid
import com.google.common.testing.NullPointerTester; //导入方法依赖的package包/类
@Test
public void null_parameters_are_invalid() {
JgroupsActorMessage actorMessage = actorMessage();
NullPointerTester tester = new NullPointerTester();
tester.setDefault(ActorInputMessage.class, ActorInputMessage.dumpMetrics());
tester.setDefault(ActorKey.class, DUMMY_ACTOR);
tester.testAllPublicConstructors(JgroupsActorMessage.class);
tester.testAllPublicInstanceMethods(actorMessage);
}
示例14: null_parameters_are_invalid
import com.google.common.testing.NullPointerTester; //导入方法依赖的package包/类
@Test
public void null_parameters_are_invalid() {
NullPointerTester tester = new NullPointerTester();
tester.testAllPublicConstructors(JMSMetricsRepositoryClusterClient.class);
tester.testAllPublicInstanceMethods(clusterClient);
}
示例15: null_parameters_are_invalid
import com.google.common.testing.NullPointerTester; //导入方法依赖的package包/类
@Test
public void null_parameters_are_invalid() {
NullPointerTester tester = new NullPointerTester();
tester.testAllPublicConstructors(JgroupsResourceManagerClusterClient.class);
tester.testAllPublicInstanceMethods(clusterClient);
}