skip to Main Content

java.lang.NullPointerException: Cannot invoke "com.proj.my.repository.OrderRepository.save(Object)" because "this.orderRepository" is null – Mysql

I want to test my orderService, each order has x cartItems, each cartItem is a product. I managed to do some code, and thought I got it right, but encountered a problem : java.lang.NullPointerException: Cannot invoke "com.proj.my.repository.OrderRepository.save(Object)" because "this.orderRepository" is…

VIEW QUESTION

Mocking laravel models static call

Background I have a system with a microservices setup. A few of these microservices run a laravel installation. In order to share some key models, a repo was shared using git/packagist. Here is a diagram: Microservice A Microservice B ...…

VIEW QUESTION

Flutter test for bloc event

i have an event bloc I want to do a test in this event file but these props are not covered, how do you make them testable? here is my code : test('Validate ChangeTabEvent equality', () { expect(const ChangeTabEvent('category'), equals(const…

VIEW QUESTION

coverlet does not create report in azure devops

I am using coverlet.msbuild v3.2.0 coverlet.collector v3.2.0 and dotnet sdk v6.0.402 When I run this test command in powershell (restore and build ran before that) dotnet test --no-build --no-restore --collect:"XPlat Code Coverage" /p:Configuration=$Cfg /p:CollectCoverage=true /p:CoverletOutput=.CodeCoverage --% /p:CoverletOutputFormat="cobertura,opencover" The report files…

VIEW QUESTION
Back To Top
Search