当前位置: 首页>>代码示例>>Java>>正文


Java NullPointerTester.testAllPublicConstructors方法代码示例

本文整理汇总了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);
}
 
开发者ID:florentw,项目名称:bench,代码行数:8,代码来源:MetricValuesMessageTest.java

示例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);
}
 
开发者ID:florentw,项目名称:bench,代码行数:11,代码来源:JgroupsActorSenderTest.java

示例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);
}
 
开发者ID:florentw,项目名称:bench,代码行数:8,代码来源:ProcessWatcherActorTest.java

示例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"));
}
 
开发者ID:paul-hammant,项目名称:googles-monorepo-demo,代码行数:9,代码来源:OptionalTest.java

示例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);
}
 
开发者ID:florentw,项目名称:bench,代码行数:9,代码来源:EmbeddedActorManagerTest.java

示例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);
}
 
开发者ID:florentw,项目名称:bench,代码行数:10,代码来源:JMSActorClusterClientTest.java

示例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());
}
 
开发者ID:florentw,项目名称:bench,代码行数:8,代码来源:AgentViewTest.java

示例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);
}
 
开发者ID:paul-hammant,项目名称:googles-monorepo-demo,代码行数:9,代码来源:AtomicLongMapTest.java

示例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());
}
 
开发者ID:florentw,项目名称:bench,代码行数:8,代码来源:ActorViewTest.java

示例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"));
}
 
开发者ID:paul-hammant,项目名称:googles-monorepo-demo,代码行数:8,代码来源:MediaTypeTest.java

示例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);
}
 
开发者ID:florentw,项目名称:bench,代码行数:11,代码来源:JMSAgentClusterClientTest.java

示例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());
}
 
开发者ID:zugzug90,项目名称:guava-mock,代码行数:8,代码来源:MinMaxPriorityQueueTest.java

示例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);
}
 
开发者ID:florentw,项目名称:bench,代码行数:11,代码来源:JgroupsActorMessageTest.java

示例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);
}
 
开发者ID:florentw,项目名称:bench,代码行数:8,代码来源:JMSMetricsRepositoryClusterClientTest.java

示例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);
}
 
开发者ID:florentw,项目名称:bench,代码行数:8,代码来源:JgroupsResourceManagerClusterClientTest.java


注:本文中的com.google.common.testing.NullPointerTester.testAllPublicConstructors方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。