Skip to content

Commit

Permalink
add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
tvd12 committed Jul 22, 2022
1 parent 70715b0 commit 42595bb
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,13 @@ public void convert() {
}

@Test
public void convertWithOneField() {
EzyClass repoClass = new EzyClass(EmployeeRepo.class);
EzyMethod method = repoClass.getMethod(
"findByEmail");
public void convertWithOneField() throws Exception {
EzyMethod method = new EzyMethod(
EmployeeRepo.class.getDeclaredMethod(
"findByEmail",
String.class
)
);
EzyQueryMethod queryMethod = new EzyQueryMethod(method);
String queryString = sut.toQueryString(Employee.class, queryMethod);
System.out.println(queryString);
Expand Down

0 comments on commit 42595bb

Please sign in to comment.