-
Notifications
You must be signed in to change notification settings - Fork 2
0. Changes from Java 1 to Java 2
In Java 1 we had this project structure. In Java 1 the goals was to having clients, which should commuciate with other services.
In Java 2 we reduce other project only in one directory and we deleted a lot of services, classes and methods that are not necessary for our services. We also deleted the client and service directory, because we did not have to commuciate with other services.
As we discribe in "Project Structure" our entire projekt was refactored. So we had to change our Architecture and Classes, too. For more details please look up to our 4.1. Explaining classes and partitions of Java 1 and 4.2 Explaning Class Structure of Java 2 dokumentation.
#Unit-Test and Integrationstest (via http request) In Java 1 we had to focus a lot more on the business logic, because we did not have an API and Database to create request, which tested our programm. So we created a lot more Unit-Test. In the following image you can see all the Unit-Test we created in Java 1:
In Java 2 we have an API-Server and a Database, so we can focus more on the entire programm. So we reduces our Unit-Test only on the business logic of our models. All the other services are tested by the integrationstest via http request (5. HTTP Request Java 2)
In the following image you can see all the Unit-Test we created in Java 2:
In Java 2 we used Docker, Jetty-Server and Postgres-Databases to archive the main goal was to extend our service person from Java 1 to an RESTful-API-Services.