skip to Main Content

Android Studio – Unit testing. java.lang.NullPointerException

everyone! I am writing unit tests for the mobile app. But I have an error that I don't know how to solve. The error has the following form: java.lang.NullPointerException at androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor(AppCompatDelegateImpl.java:841) at androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor(AppCompatDelegateImpl.java:806) at androidx.appcompat.app.AppCompatDelegateImpl.findViewById(AppCompatDelegateImpl.java:630) at androidx.appcompat.app.AppCompatActivity.findViewById(AppCompatActivity.java:223) at com.example.projectMP3.SplashScreenActivityTest.testLaunchOfNewActivity(SplashScreenActivityTest.java:14) at…

VIEW QUESTION

Invocation of init method failed; nested exception is java.lang.RuntimeException: Can't start redis server

I am using embedded Redis in our Webflux testcases using the following dependency in pom.xml file <dependency> <groupId>com.github.kstyrc</groupId> <artifactId>embedded-redis</artifactId> <version>0.6</version> </dependency> And using below annotations for controllertest classes @RunWith(SpringRunner.class) @AutoConfigureWebTestClient(timeout = "36000000") @WithMockUser @TestPropertySource(locations = "classpath:application-test.properties") @SpringBootTest(classes = Application.class) @DirtiesContext…

VIEW QUESTION
Back To Top
Search