diff --git a/images/Bougie.PNG b/images/Bougie.PNG deleted file mode 100644 index 1ef92d8..0000000 Binary files a/images/Bougie.PNG and /dev/null differ diff --git a/images/Chaise.PNG b/images/Chaise.PNG deleted file mode 100644 index f542230..0000000 Binary files a/images/Chaise.PNG and /dev/null differ diff --git a/images/Cheval.PNG b/images/Cheval.PNG deleted file mode 100644 index 2d46ec8..0000000 Binary files a/images/Cheval.PNG and /dev/null differ diff --git a/images/Horloge.PNG b/images/Horloge.PNG deleted file mode 100644 index 4898f92..0000000 Binary files a/images/Horloge.PNG and /dev/null differ diff --git a/images/Vase.PNG b/images/Vase.PNG deleted file mode 100644 index 62b5d82..0000000 Binary files a/images/Vase.PNG and /dev/null differ diff --git a/images/coq.PNG b/images/coq.PNG deleted file mode 100644 index e246643..0000000 Binary files a/images/coq.PNG and /dev/null differ diff --git a/images/lampe.PNG b/images/lampe.PNG deleted file mode 100644 index 05d069a..0000000 Binary files a/images/lampe.PNG and /dev/null differ diff --git a/images/table d'opération.PNG b/images/table d'opération.PNG deleted file mode 100644 index 802a039..0000000 Binary files a/images/table d'opération.PNG and /dev/null differ diff --git a/microservice-commandes/mvnw b/microservice-commandes/mvnw old mode 100644 new mode 100755 diff --git a/microservice-commandes/pom.xml b/microservice-commandes/pom.xml index e4daa4b..a984ead 100644 --- a/microservice-commandes/pom.xml +++ b/microservice-commandes/pom.xml @@ -14,7 +14,7 @@ org.springframework.boot spring-boot-starter-parent - 2.6.1 + 2.6.1 diff --git a/microservice-commandes/src/main/resources/application.properties b/microservice-commandes/src/main/resources/application.properties index f686363..3d785cf 100644 --- a/microservice-commandes/src/main/resources/application.properties +++ b/microservice-commandes/src/main/resources/application.properties @@ -1,5 +1,9 @@ -server.port=9002 + +server.port 9002 #Configurations H2 spring.jpa.show-sql=true spring.h2.console.enabled=true + +#défini l'encodage pour data.sql +spring.datasource.sql-script-encoding=UTF-8 \ No newline at end of file diff --git a/microservice-commandes/src/test/java/com/mcommandes/McommandesApplicationTests.java b/microservice-commandes/src/test/java/com/mcommandes/McommandesApplicationTests.java new file mode 100644 index 0000000..ce03e24 --- /dev/null +++ b/microservice-commandes/src/test/java/com/mcommandes/McommandesApplicationTests.java @@ -0,0 +1,16 @@ +package com.mcommandes; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.context.junit4.SpringRunner; + +@RunWith(SpringRunner.class) +@SpringBootTest +public class McommandesApplicationTests { + + @Test + public void contextLoads() { + } + +} diff --git a/microservice-commandes/src/test/java/com/mpayement/MpayementApplicationTests.java b/microservice-commandes/src/test/java/com/mpayement/MpayementApplicationTests.java new file mode 100644 index 0000000..dc70e04 --- /dev/null +++ b/microservice-commandes/src/test/java/com/mpayement/MpayementApplicationTests.java @@ -0,0 +1,16 @@ +package com.mpayement; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.context.junit4.SpringRunner; + +@RunWith(SpringRunner.class) +@SpringBootTest +public class MpayementApplicationTests { + + @Test + public void contextLoads() { + } + +} diff --git a/microservice-paiement/mvnw b/microservice-paiement/mvnw old mode 100644 new mode 100755 diff --git a/microservice-paiement/pom.xml b/microservice-paiement/pom.xml index 709a4a5..0b6ae4a 100644 --- a/microservice-paiement/pom.xml +++ b/microservice-paiement/pom.xml @@ -14,7 +14,7 @@ org.springframework.boot spring-boot-starter-parent - 2.6.1 + 2.6.1 diff --git a/microservice-paiement/src/main/resources/application.properties b/microservice-paiement/src/main/resources/application.properties index 897bdf9..bc316dd 100644 --- a/microservice-paiement/src/main/resources/application.properties +++ b/microservice-paiement/src/main/resources/application.properties @@ -1,6 +1,9 @@ -server.port=9003 +server.port 9003 #Configurations H2 spring.jpa.show-sql=true spring.h2.console.enabled=true + +#défini l'encodage pour data.sql +spring.datasource.sql-script-encoding=UTF-8 \ No newline at end of file diff --git a/microservice-paiement/src/test/java/com/mpaiement/MpaiementApplicationTests.java b/microservice-paiement/src/test/java/com/mpaiement/MpaiementApplicationTests.java new file mode 100644 index 0000000..5da814f --- /dev/null +++ b/microservice-paiement/src/test/java/com/mpaiement/MpaiementApplicationTests.java @@ -0,0 +1,16 @@ +package com.mpaiement; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.context.junit4.SpringRunner; + +@RunWith(SpringRunner.class) +@SpringBootTest +public class MpaiementApplicationTests { + + @Test + public void contextLoads() { + } + +} diff --git a/microservice-produits/VousEtesDansTestBranch.md b/microservice-produits/VousEtesDansTestBranch.md new file mode 100644 index 0000000..e69de29 diff --git a/microservice-produits/mvnw b/microservice-produits/mvnw old mode 100644 new mode 100755 diff --git a/microservice-produits/pom.xml b/microservice-produits/pom.xml index 4b1ba2b..61bc644 100644 --- a/microservice-produits/pom.xml +++ b/microservice-produits/pom.xml @@ -14,7 +14,7 @@ org.springframework.boot spring-boot-starter-parent - 2.6.1 + 2.6.1 diff --git a/microservice-produits/src/main/resources/application.properties b/microservice-produits/src/main/resources/application.properties index 6d2d73f..4d87d83 100644 --- a/microservice-produits/src/main/resources/application.properties +++ b/microservice-produits/src/main/resources/application.properties @@ -1,7 +1,9 @@ -server.port=9001 +server.port 9001 #Configurations H2 spring.jpa.show-sql=true spring.h2.console.enabled=true +#défini l'encodage pour data.sql +spring.datasource.sql-script-encoding=UTF-8 \ No newline at end of file diff --git a/microservice-produits/src/main/resources/data.sql b/microservice-produits/src/main/resources/data.sql index 307ee59..8ca5b0c 100644 --- a/microservice-produits/src/main/resources/data.sql +++ b/microservice-produits/src/main/resources/data.sql @@ -12,4 +12,4 @@ INSERT INTO PRODUCT (ID , TITRE ,DESCRIPTION ,IMAGE ,PRIX ) VALUES (5, 'Horloge INSERT INTO PRODUCT (ID , TITRE ,DESCRIPTION ,IMAGE ,PRIX ) VALUES (6, 'Table d''opération pour Hamsters', 'Pour réaliser vos opérations chirugicales sur votre Hamster!', 'https://github.com/OpenClassrooms-Student-Center/4668216-Optimisez-votre-architecture-Microservices/blob/master/images/table%20d''op%C3%A9ration.PNG?raw=true', 210.0); -INSERT INTO PRODUCT (ID , TITRE ,DESCRIPTION ,IMAGE ,PRIX ) VALUES (7 , 'Vase ayant appartenu a Zeus', 'Risque de choc électrique', 'https://github.com/OpenClassrooms-Student-Center/4668216-Optimisez-votre-architecture-Microservices/blob/master/images/Vase.PNG?raw=true', 730.0); \ No newline at end of file +INSERT INTO PRODUCT (ID , TITRE ,DESCRIPTION ,IMAGE ,PRIX ) VALUES (7 , 'Vase ayant appartenu a Zeus', 'Risque de choc électrique', 'https://github.com/OpenClassrooms-Student-Center/4668216-Optimisez-votre-architecture-Microservices/blob/master/images/Vase.PNG?raw=true', 730.0); diff --git a/microservice-produits/src/test/java/com/mproduits/MproduitsApplicationTests.java b/microservice-produits/src/test/java/com/mproduits/MproduitsApplicationTests.java new file mode 100644 index 0000000..32bd4cc --- /dev/null +++ b/microservice-produits/src/test/java/com/mproduits/MproduitsApplicationTests.java @@ -0,0 +1,16 @@ +package com.mproduits; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.context.junit4.SpringRunner; + +@RunWith(SpringRunner.class) +@SpringBootTest +public class MproduitsApplicationTests { + + @Test + public void contextLoads() { + } + +}