Skip to content

Instantly share code, notes, and snippets.

@mitch-seymour
Created January 3, 2021 18:22
Show Gist options
  • Save mitch-seymour/89427c35f4c0af117523af5af28819a2 to your computer and use it in GitHub Desktop.
Save mitch-seymour/89427c35f4c0af117523af5af28819a2 to your computer and use it in GitHub Desktop.
class MyTopologyTest {
  @Test
  public void testDecodeId() {
    String key = "1XRZTUW3";
    byte[] value = new byte[] {};
    String actualValue = MyTopology.decodeKey(key, value);
    String expectedValue = "decoded-1XRZTUW3";
    assertThat(actualValue).isEqualTo(expectedValue);
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment