83 lines
2.3 KiB
Java
83 lines
2.3 KiB
Java
/*
|
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
|
* Click nbfs://nbhost/SystemFileSystem/Templates/UnitTests/EmptyTestNGTest.java to edit this template
|
|
*/
|
|
package métiers;
|
|
|
|
import static org.testng.Assert.*;
|
|
import org.testng.annotations.BeforeMethod;
|
|
import org.testng.annotations.Test;
|
|
|
|
/**
|
|
*
|
|
* @author ines.benalia
|
|
*/
|
|
public class EntrepriseNGTest {
|
|
|
|
public EntrepriseNGTest() {
|
|
}
|
|
|
|
@BeforeMethod
|
|
public void setUpMethod() throws Exception {
|
|
}
|
|
|
|
@Test
|
|
public void testGetRaisonSociale() {
|
|
System.out.println("getRaisonSociale");
|
|
Entreprise instance = null;
|
|
String expResult = "";
|
|
String result = instance.getRaisonSociale();
|
|
assertEquals(result, expResult);
|
|
fail("The test case is a prototype.");
|
|
}
|
|
|
|
@Test
|
|
public void testSetRaisonSociale() {
|
|
System.out.println("setRaisonSociale");
|
|
String raisonSociale = "";
|
|
Entreprise instance = null;
|
|
instance.setRaisonSociale(raisonSociale);
|
|
fail("The test case is a prototype.");
|
|
}
|
|
|
|
@Test
|
|
public void testToString() {
|
|
System.out.println("toString");
|
|
Entreprise instance = null;
|
|
String expResult = "";
|
|
String result = instance.toString();
|
|
assertEquals(result, expResult);
|
|
fail("The test case is a prototype.");
|
|
}
|
|
|
|
@Test
|
|
public void testAjouterCommande() {
|
|
System.out.println("ajouterCommande");
|
|
Commande uneCommande = null;
|
|
Entreprise instance = null;
|
|
instance.ajouterCommande(uneCommande);
|
|
fail("The test case is a prototype.");
|
|
}
|
|
|
|
@Test
|
|
public void testSupprimerCommande() {
|
|
System.out.println("supprimerCommande");
|
|
Commande uneCommande = null;
|
|
Entreprise instance = null;
|
|
instance.supprimerCommande(uneCommande);
|
|
fail("The test case is a prototype.");
|
|
}
|
|
|
|
@Test
|
|
public void testRechercherCommande() {
|
|
System.out.println("rechercherCommande");
|
|
int noCom = 0;
|
|
Entreprise instance = null;
|
|
Commande expResult = null;
|
|
Commande result = instance.rechercherCommande(noCom);
|
|
assertEquals(result, expResult);
|
|
fail("The test case is a prototype.");
|
|
}
|
|
|
|
}
|