Skip to content

APO demo part 2: Add tests for existing demo#295

Open
mnhnam-axonivy wants to merge 4 commits into
bigdemo.entityfrom
bigdemo.test.existing
Open

APO demo part 2: Add tests for existing demo#295
mnhnam-axonivy wants to merge 4 commits into
bigdemo.entityfrom
bigdemo.test.existing

Conversation

@mnhnam-axonivy
Copy link
Copy Markdown
Collaborator

As promised some time ago, this PR introduces automated tests for the existing demos.

@mnhnam-axonivy mnhnam-axonivy requested a review from ivy-rew as a code owner June 3, 2026 05:03
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 3, 2026

Test Results

346 tests  +77   346 ✅ +77   1m 42s ⏱️ +16s
 82 suites +16     0 💤 ± 0 
 82 files   +16     0 ❌ ± 0 

Results for commit 8d6cfa1. ± Comparison against base commit e7e432d.

♻️ This comment has been updated with latest results.

Comment on lines +74 to +75
Method getter = entity.getClass().getMethod(getterName);
Object value = getter.invoke(entity);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apache.commons.lang3 has good utilities around calling reflection code. I'd use them here. E.g. org.apache.commons.lang3.reflect.MethodUtils.invokeExactMethod(Object, String)

Copy link
Copy Markdown
Member

@ivy-rew ivy-rew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for covering these demos with tests ✔️ 🤝

Comment on lines +92 to +93
Method getter = entity.getClass().getMethod(isGetterName);
Object value = getter.invoke(entity);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

methodUtils

Comment on lines +82 to +83
getter = entity.getClass().getMethod(getterName);
value = getter.invoke(entity);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

method utils

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants