Closed pchudzik closed 7 years ago
yet another test case com.pchudzik.springmock.infrastructure.test.distinguish.PartialMocksShouldBeDistinguishable
which is somehow related to this issue
when fixed take a look at com.pchudzik.springmock.infrastructure.test.duplicates.NamedDoublesShouldBeDistinguishable and replace SpyService1 SpyService2 with single class
will eventually merge to master https://travis-ci.org/pchudzik/springmock/builds/269899373
If mock is of the same class as spy and both are injected into specification infrastructure doesn't distinguish them and injects mock in place of spy (or other way around).
Sample test case: ''' @AutowiredSpy MyService spy;
'''
Detailed test case: com.pchudzik.springmock.infrastructure.test.SpyAndMockOfTheSameClassShouldBeDistinguishable (ignored right now)