Isolation Devices and Written Tests in Android

My project has running HTTP requests to extract XML files, parse XML files, and create domain objects. These objects are later used in the actions and services of the Android application.

I would like to highlight this code. I also want to write tests for this. What are some good ways to do this?

Creating an Android library is not suitable. Tests should be in a separate project. And there are no services or activities in the extracted HTTP and XML code. Thus, the test suite does not have to be a test suite for Android, it can be ordinary JUnit tests.

Note. I am new to Java and Android.

+3
source share
2 answers
+1

Java ( Android). -Android-, , XML. Android . . JUnit, , . , , , . Android .

, Android, . , .

+1

Source: https://habr.com/ru/post/1756258/


All Articles