+tes #16431 support for TestProbe with user-defined name

This commit is contained in:
Paweł Wiejacha 2014-12-04 22:42:40 +01:00
parent 49d9082851
commit f480989b25
6 changed files with 55 additions and 6 deletions

View file

@ -285,6 +285,19 @@ public class TestKitDocTest {
//#test-probe
}
@Test
public void demonstrateTestProbeWithCustomName() {
//#test-probe-with-custom-name
new JavaTestKit(system) {{
final TestProbe worker = new TestProbe(system, "worker");
final TestProbe aggregator = new TestProbe(system, "aggregator");
assertTrue(worker.ref().path().name().startsWith("worker"));
assertTrue(aggregator.ref().path().name().startsWith("aggregator"));
}};
//#test-probe-with-custom-name
}
@Test
public void demonstrateSpecialProbe() {
//#test-special-probe