Skip to content

Commit

Permalink
HBX-2753: Create Interface for HqlCompletionProposalWrapper
Browse files Browse the repository at this point in the history
  - Add new test case 'org.hibernate.tool.orm.jbt.api.HqlCompletionProposalWrapperTest#testFunctionKind()'
  - Add new default interface method 'org.hibernate.tool.orm.jbt.api.HqlCompletionProposalWrapper#functionKind()'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  • Loading branch information
koentsje committed Mar 18, 2024
1 parent 65c7a44 commit ed3e5b0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,7 @@ public interface HqlCompletionProposalWrapper extends Wrapper {
default int propertyKind() { return HQLCompletionProposal.PROPERTY; }

default int keywordKind() { return HQLCompletionProposal.KEYWORD; }

default int functionKind() { return HQLCompletionProposal.FUNCTION; }

}
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,9 @@ public void testKeywordKind() {
assertSame(HQLCompletionProposal.KEYWORD, hqlCompletionProposalWrapper.keywordKind());
}

@Test
public void testFunctionKind() {
assertSame(HQLCompletionProposal.FUNCTION, hqlCompletionProposalWrapper.functionKind());
}

}

0 comments on commit ed3e5b0

Please sign in to comment.