You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geode.apache.org by Kirk Lund <kl...@apache.org> on 2016/09/24 02:22:26 UTC

New DistributedTest JUnit Rules

Mwahahaha! It's alive!

@Category(DistributedTest.class)
public class DistributedSystemStatsDUnitTest {

  @Manager
  private VM manager;

  @Member
  private VM[] members;

  @Rule
  public ManagementTestRule managementTestRule =
ManagementTestRule.builder().build();

  @Test
  public void testDistributedSystemStats() throws Exception {
    this.manager.invoke("verifyMBeans", () -> {
      ...
    }
  }
}

@Category(DistributedTest.class)
public class QueryDataDUnitTest {

  @DistributedRule
  public UseJacksonForJsonPathRule useJacksonForJsonPathRule = new
UseJacksonForJsonPathRule();

  @Rule
  public DistributedTestRule distributedTestRule
= DistributedTestRule.builder().build();

  ...
}

I'll share these soon. Excited to have these working!

-Kirk