Il giorno ven 18 mar 2022 alle ore 03:04 Roc Marshal
ha scritto:
>
>
>
>
> Thank you Zixuan, Enrico for your insights.
>
>
> It is necessary to note that assertj is only the API of assertion It is
> equivalent to assertions in JUnit and TestNG, not a testing framework.
> Therefore, it is only e
Thanks for Roc, sounds good.
Roc Marshal 于2022年3月18日周五 10:04写道:
>
>
>
> Thank you Zixuan, Enrico for your insights.
>
>
> It is necessary to note that assertj is only the API of assertion It is
> equivalent to assertions in JUnit and TestNG, not a testing framework.
> Therefore, it is only equi
Thank you Zixuan, Enrico for your insights.
It is necessary to note that assertj is only the API of assertion It is
equivalent to assertions in JUnit and TestNG, not a testing framework.
Therefore, it is only equivalent to the role of JUnit or TestNG assertion API.
And assertj assertions a
Thanks Roc,
Your idea sounds great, the AssertJ is powerful, but I don't recommend
going this path.
1. There are already two test frameworks TestNG and Junit in Pulsar now, we
should only use a test framework - TestNG, there is still some work left to
clean up JUnit: https://github.com/apache/pul
Roc,
Thanks for sharing your proposal.
Changing the test framework will introduce lots of changes and it will
make it harder to share patches between branches.
In Pulsar we are currently maintaining 5 release lines (2.7, 2.8, 2.9,
2.10 and master-2.11).
Maybe using AssertJ for new tests can be a
Thank you for your research about automated toolings, Lari.
As you said, if we decide to migrate, the way how we migrate it is important.
There is a compromise way worth discussing. AssertJ is used for assertion in
new tests, while module based migration can be used in the migration process of
I support the switch to AssertJ.
Some automated tooling might be useful for doing the bulk of the migration.
AssertJ provides some scripts for the migration:
https://joel-costigliola.github.io/assertj/assertj-core-converting-testng-assertions-to-assertj.html
There's also more sophisticated tools
Dear devs,
I'd like to start a discussion to migrate the TestNg assertion to AssertJ
assertion.
Some main motivations are:
- AssertJ is a pure streaming API with more elegant coding and higher
readability.
- Making full use of Java 8 Lambdas for writing easier to read tests and a
better perfo