Bug JavaDoc, Junit removed
This commit is contained in:
parent
69653e2de9
commit
bab64bcb62
6 changed files with 15 additions and 50 deletions
|
|
@ -1,10 +1,8 @@
|
|||
package fr.myny.data;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import java.io.IOException;
|
||||
|
||||
class DataCsvTest {
|
||||
@Test
|
||||
void getCSV() throws IOException {
|
||||
//DataCsv csv = new DataCsv();
|
||||
//csv.getCsv("src/main/resources/loto_201911.zip");
|
||||
|
|
|
|||
|
|
@ -1,14 +1,9 @@
|
|||
package fr.myny.data;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
class ImportDataTest {
|
||||
|
||||
@Test
|
||||
void downloadCsvZip() {
|
||||
|
||||
ImportData csv = new ImportData();
|
||||
|
||||
csv.DownloadCsvZip();
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,19 +1,14 @@
|
|||
package fr.myny.database;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import java.sql.*;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
class DataBaseTest {
|
||||
Connection maCo;
|
||||
public static final String FILEPATH="c:/Users/cocof/Bureau/nouveau_loto.csv";
|
||||
@Test
|
||||
void fillDataBase() throws SQLException {
|
||||
|
||||
DataBase maDB=new DataBase();
|
||||
maCo=maDB.getConnection();
|
||||
assertNotNull(maCo);
|
||||
int res= maDB.fillTable(FILEPATH);
|
||||
System.out.println(res);
|
||||
Statement stmt= maDB.conn.createStatement();
|
||||
|
|
@ -22,14 +17,11 @@ class DataBaseTest {
|
|||
long nbcolret= rs.getLong(1);
|
||||
//System.out.println("nb lignes (changer la ligne juste en dessous si on modifie le nb de lignes): "+rs.getInt("total"));
|
||||
System.out.println("nb lignes (changer la ligne juste en dessous si on modifie le nb de lignes): "+rs.getLong(1));
|
||||
assertEquals(1321,rs.getLong(1));
|
||||
}
|
||||
|
||||
@Test
|
||||
void importDataBase() {
|
||||
}
|
||||
|
||||
@Test
|
||||
void createTable() throws SQLException {
|
||||
DataBase maDB=new DataBase();
|
||||
maDB.createTable();
|
||||
|
|
@ -38,36 +30,28 @@ class DataBaseTest {
|
|||
ResultSetMetaData rsmd =rs.getMetaData();
|
||||
int nbCol=rsmd.getColumnCount();
|
||||
System.out.println("nb Col (changer la ligne juste en dessous si on modifie le nb de col): "+rsmd.getColumnCount());
|
||||
assertEquals(nbCol,25);
|
||||
}
|
||||
|
||||
@Test
|
||||
void updateTable() {
|
||||
DataBase maDB=new DataBase();
|
||||
maCo=maDB.getConnection();
|
||||
int res = maDB.updateTable(FILEPATH);
|
||||
System.out.println(res);
|
||||
assertNotNull(maCo);
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
void updateTablev2() {
|
||||
DataBase maDB=new DataBase();
|
||||
maCo=maDB.getConnection();
|
||||
int res = maDB.updateTablev2(FILEPATH);
|
||||
System.out.println(res);
|
||||
assertNotNull(maCo);
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
void getConnection() {
|
||||
DataBase maDB=new DataBase();
|
||||
maCo=maDB.getConnection();
|
||||
assertNotNull(maCo);
|
||||
}
|
||||
@Test
|
||||
|
||||
|
||||
public void showLine() throws SQLException {
|
||||
DataBase maDB=new DataBase();
|
||||
ResultSet rs=maDB.showLine(2017001);
|
||||
|
|
@ -78,20 +62,20 @@ class DataBaseTest {
|
|||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void removeMultiplesLines(){
|
||||
DataBase maDB=new DataBase();
|
||||
int res= maDB.removeMultiplesLines(2017004);
|
||||
System.out.print(res);
|
||||
}
|
||||
@Test
|
||||
|
||||
|
||||
public void removeLine(){
|
||||
DataBase maDB=new DataBase();
|
||||
int res= maDB.removeLine(2017014);
|
||||
System.out.print(res);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
public void dropTable(){
|
||||
DataBase maDB=new DataBase();
|
||||
maDB.dropTable();
|
||||
|
|
|
|||
|
|
@ -1,24 +1,19 @@
|
|||
package fr.myny.grid;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
class BuildGridTest {
|
||||
|
||||
@Test
|
||||
void putValue() {
|
||||
BuildGrid grid = new BuildGrid(5);
|
||||
grid.putValue(18.5F, 2, 4);
|
||||
grid.displayGrid();
|
||||
}
|
||||
|
||||
@Test
|
||||
void displayGrid() {
|
||||
BuildGrid grid = new BuildGrid(5);
|
||||
|
||||
assertEquals(5, grid.getDimX());
|
||||
assertEquals(5, grid.getDimY());
|
||||
assertEquals(0.0, grid.getValue(0,0));
|
||||
//assertEquals(5, grid.getDimX());
|
||||
//assertEquals(5, grid.getDimY());
|
||||
//assertEquals(0.0, grid.getValue(0,0));
|
||||
|
||||
float tabl[][] = new float[5][5];
|
||||
|
||||
|
|
@ -31,7 +26,6 @@ class BuildGridTest {
|
|||
grid.displayGrid();
|
||||
}
|
||||
|
||||
@Test
|
||||
void fillWith() {
|
||||
BuildGrid grid = new BuildGrid(5);
|
||||
grid.fillWith(5.5F);
|
||||
|
|
|
|||
|
|
@ -1,9 +1,6 @@
|
|||
package fr.myny.gui;
|
||||
|
||||
import org.junit.jupiter.api.*;
|
||||
|
||||
class GuiTest {
|
||||
@Test
|
||||
void start(){
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
package fr.myny.stats;
|
||||
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import java.sql.SQLException;
|
||||
|
||||
public class StatisticsTest {
|
||||
|
|
@ -15,47 +13,46 @@ public class StatisticsTest {
|
|||
//c.afficherNumBonusCombi2(5,10);
|
||||
//c.afficherNumBonusCombi3(28,14,37);
|
||||
|
||||
@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);
|
||||
|
|
|
|||
Reference in a new issue