tel-ran-de / BE12-Basics

Java Basics Group 12
1 stars 6 forks source link

A project: Unit testing factory #16

Open sergeylukichev opened 4 years ago

sergeylukichev commented 4 years ago

Write a unit test for image action factory using Mockito.

Consider mocking ActionsConfigService ad verifying in the test that methods

configService.getActionClassNames()
configService.getActionPackage()

are called and ImageActionFactory.getAction() returns a correct action.

veronika-silina commented 3 years ago

@sergeylukichev, sorry, I merged new pull request too, because I need it for the next one. Please, look at it.