Mockito not mocking field of mocked object

I have a service class that looks like this: public class MyServiceClassImpl implements MyServiceClass { private final MyRepository myRepository; private final EntityDTOConverter entityConverter; … } Where EntityDTOConverter is a bean to convert entity to DTO and vice-versa. It uses a ModelMapper like this: @Component @RequiredArgsConstructor public class EntityDTOConverter { private final ModelMapper modelMapper = new…

Details

How to fix Type ‘AsymmetricMatcher

I have a object config where I send a function callback to a function. test(‘should create a ComponentMockwith the needed config’, () => { const config: EqListeningPlayerConfig = { // more options myCallback: jasmine.anything() }; sut.doYourThing(config); expect(ComponentMock.create).toHaveBeenCalledWith(config); }); The problem I have is that after an update to the latest jest/jasmine I get this error…

Details

COLLATION ‘utf8mb4_general_ci’ is not valid for CHARACTER SET ‘binary’

I want to find a user in my Laravel app with name “Yılmaz” by searching for “Yilmaz” by default in Laravel (with utf8mb4_unicode_ci as collation for my connection) this \App\User::whereRaw(‘name LIKE ?’, ‘%Yilmaz%’)->get(); returns nothing. As I found out at MySQL does not treat ı as i?, it works with collation utf8mb4_general_ci. However, it is…

Details

Myget server show Nuget package license as UnKnown

I followed the instructions of nuget license here. I use the following code in myproject.csproj: <PropertyGroup> <PackageLicenseFile>LICENSE.md</PackageLicenseFile> </PropertyGroup> <ItemGroup> <None Include=”..\LICENSE.md” Pack=”true” PackagePath=””/> </ItemGroup> The Nuget package is built correctly. No build error or warning related to license. The license file is included in the package correctly. When I Inspect the nuspec file in the…

Details