From caa4b2a90cbb9956126bf82a7217ac668dbc89fd Mon Sep 17 00:00:00 2001 From: "alexandre.iwanesko@gmail.com" Date: Mon, 20 Dec 2021 03:08:49 +0100 Subject: [PATCH] fix master branch --- .../src/main/resources/application.properties | 6 +----- .../mcommandes/McommandesApplicationTests.java | 16 ---------------- .../com/mpayement/MpayementApplicationTests.java | 16 ---------------- .../src/main/resources/application.properties | 5 +---- .../com/mpaiement/MpaiementApplicationTests.java | 16 ---------------- .../src/main/resources/application.properties | 4 +--- .../src/main/resources/schema.sql | 8 ++++++++ .../com/mproduits/MproduitsApplicationTests.java | 16 ---------------- 8 files changed, 11 insertions(+), 76 deletions(-) delete mode 100644 microservice-commandes/src/test/java/com/mcommandes/McommandesApplicationTests.java delete mode 100644 microservice-commandes/src/test/java/com/mpayement/MpayementApplicationTests.java delete mode 100644 microservice-paiement/src/test/java/com/mpaiement/MpaiementApplicationTests.java delete mode 100644 microservice-produits/src/test/java/com/mproduits/MproduitsApplicationTests.java diff --git a/microservice-commandes/src/main/resources/application.properties b/microservice-commandes/src/main/resources/application.properties index 3d785cf..f686363 100644 --- a/microservice-commandes/src/main/resources/application.properties +++ b/microservice-commandes/src/main/resources/application.properties @@ -1,9 +1,5 @@ - -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 deleted file mode 100644 index ce03e24..0000000 --- a/microservice-commandes/src/test/java/com/mcommandes/McommandesApplicationTests.java +++ /dev/null @@ -1,16 +0,0 @@ -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 deleted file mode 100644 index dc70e04..0000000 --- a/microservice-commandes/src/test/java/com/mpayement/MpayementApplicationTests.java +++ /dev/null @@ -1,16 +0,0 @@ -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/src/main/resources/application.properties b/microservice-paiement/src/main/resources/application.properties index bc316dd..897bdf9 100644 --- a/microservice-paiement/src/main/resources/application.properties +++ b/microservice-paiement/src/main/resources/application.properties @@ -1,9 +1,6 @@ -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 deleted file mode 100644 index 5da814f..0000000 --- a/microservice-paiement/src/test/java/com/mpaiement/MpaiementApplicationTests.java +++ /dev/null @@ -1,16 +0,0 @@ -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/src/main/resources/application.properties b/microservice-produits/src/main/resources/application.properties index 4d87d83..6d2d73f 100644 --- a/microservice-produits/src/main/resources/application.properties +++ b/microservice-produits/src/main/resources/application.properties @@ -1,9 +1,7 @@ -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/schema.sql b/microservice-produits/src/main/resources/schema.sql index e69de29..d6f9ef5 100644 --- a/microservice-produits/src/main/resources/schema.sql +++ b/microservice-produits/src/main/resources/schema.sql @@ -0,0 +1,8 @@ +CREATE TABLE product +( + id INT PRIMARY KEY, + titre VARCHAR(255) NOT NULL, + description VARCHAR(255) NOT NULL, + image VARCHAR(255) NOT NULL, + prix INT NOT NULL +); \ No newline at end of file diff --git a/microservice-produits/src/test/java/com/mproduits/MproduitsApplicationTests.java b/microservice-produits/src/test/java/com/mproduits/MproduitsApplicationTests.java deleted file mode 100644 index 32bd4cc..0000000 --- a/microservice-produits/src/test/java/com/mproduits/MproduitsApplicationTests.java +++ /dev/null @@ -1,16 +0,0 @@ -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() { - } - -}