From c5bff7800894d3b132dafece52e0f4c834314935 Mon Sep 17 00:00:00 2001 From: NicolasFabregas Date: Mon, 1 Feb 2021 18:19:52 +0100 Subject: [PATCH] constructeur dans les methodes de stats test --- src/test/java/fr/myny/stats/StatisticsTest.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/test/java/fr/myny/stats/StatisticsTest.java b/src/test/java/fr/myny/stats/StatisticsTest.java index 539edd7..3f14f53 100644 --- a/src/test/java/fr/myny/stats/StatisticsTest.java +++ b/src/test/java/fr/myny/stats/StatisticsTest.java @@ -5,7 +5,6 @@ import org.junit.jupiter.api.Test; import java.sql.SQLException; public class StatisticsTest { - Statistics s =new Statistics(); //c.setTaille(); //c.afficherChiffre1(); //c.afficherNumBonus(); @@ -17,39 +16,47 @@ public class StatisticsTest { @Test public void setTaille(){ + Statistics s =new Statistics(); s.setTaille(); } @Test public void afficherChiffre1() throws SQLException{ + Statistics s =new Statistics(); s.afficherChiffre1(); } @Test public void afficherCombinaisons2() throws SQLException{ + Statistics s =new Statistics(); s.afficherCombinaisons2(4); } @Test public void afficherCombinaisons3() throws SQLException{ + Statistics s =new Statistics(); s.afficherCombinaisons3(32,16); } @Test public void afficherBonus() throws SQLException{ + Statistics s =new Statistics(); s.afficherBonus(); } @Test public void afficherNumBonus() throws SQLException{ + Statistics s =new Statistics(); s.afficherNumBonus(1); } @Test public void afficherNumBonusCombi2() throws SQLException{ + Statistics s =new Statistics(); s.afficherNumBonusCombi2(5,10); } @Test public void afficherNumBonusCombi3() throws SQLException{ + Statistics s =new Statistics(); s.afficherNumBonusCombi3(28,14,37); } }