Skip to content

Commit

Permalink
Adding Unit test for NewGlobalNode#getGlobalRuleVersionNode (#28831)
Browse files Browse the repository at this point in the history
* Adding Unit test for NewGlobalNode#getGlobalRuleVersionNode

* Fixing spotless violations introduced after adding Unit test
  • Loading branch information
rajeshwarrao055 authored Oct 22, 2023
1 parent af28ed9 commit 5e390f2
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,9 @@ void assertGetGlobalRuleActiveVersionNode() {
void assertGetGlobalRuleVersionsNode() {
assertThat(NewGlobalNode.getGlobalRuleVersionsNode("transaction"), is("/rules/transaction/versions"));
}

@Test
void assertGetGlobalRuleVersionNode() {
assertThat(NewGlobalNode.getGlobalRuleVersionNode("transaction", "0"), is("/rules/transaction/versions/0"));
}
}

0 comments on commit 5e390f2

Please sign in to comment.