Hi,

I’ve opened a PR with a test framework for Airavata MFT built on Junit5 and 
Mockito.
https://github.com/apache/airavata-mft/pull/54

I spent some time evaluating the gRPC Java test framework (using 
GrpcCleanupRule and InProcessServerBuilder), but I found it to be not very 
feasible for unit tests. It is like an integration test - where it tests the 
gRPC service as a whole - with very limited mocking of components inside the 
gRPC service.

Mockito provides a much wider list of functionalities for unit testing 
including –

  *   Mocking of static methods and classes
  *   Mocking nested methods
  *   Mocking a method of the same class that is under test

So I decided to go with Mockito+Junit5.

Pls let me know if you have questions or any other ideas.


I’ve also updated the README to include directions on how to submit a mft 
transfer using command line.

Thanks,
Abhinav

Reply via email to