Skip to content

Commit

Permalink
add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sourav Maji committed Dec 18, 2024
1 parent 002f9c5 commit 6611b82
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.linkedin.venice.meta;

import static com.linkedin.venice.meta.Version.VENICE_TTL_RE_PUSH_PUSH_ID_PREFIX;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.linkedin.venice.exceptions.VeniceException;
import com.linkedin.venice.utils.ObjectMapperFactory;
Expand Down Expand Up @@ -113,6 +115,8 @@ public void testIsATopicThatIsVersioned() {
Assert.assertTrue(Version.isATopicThatIsVersioned(topic));
topic = "abc_v1_cc";
Assert.assertTrue(Version.isATopicThatIsVersioned(topic));
String pushId = VENICE_TTL_RE_PUSH_PUSH_ID_PREFIX + System.currentTimeMillis();
Assert.assertTrue(Version.isPushIdTTLRePush(pushId));
}

@Test
Expand Down

0 comments on commit 6611b82

Please sign in to comment.