Skip to content

Commit

Permalink
feat(#2375): Add todo for the future test implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
volodya-lombrozo committed Aug 11, 2023
1 parent 45ad067 commit 5d02383
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,12 @@ private List<Path> transpile(
* {@link java.nio.file.AccessDeniedException}, which could crash the build.
* _____
* @param java The list of java files.
* @todo #2375:90min. Add concurrency tests for the TranspileMojo.cleanUpClasses method.
* We should be sure that the method works correctly in a concurrent environment.
* In order to do so we should add a test that will run the cleanUpClasses method in
* multiple threads and check that the method works correctly without exceptions.
* We can apply the same approach as mentioned in that post:
* <a href="https://www.yegor256.com/2018/03/27/how-to-test-thread-safety.html">Post</a>
*/
private void cleanUpClasses(final Collection<? extends Path> java) {
final Set<Path> unexpected = java.stream()
Expand Down

0 comments on commit 5d02383

Please sign in to comment.