111 lines
2.9 KiB
Java
111 lines
2.9 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 InstrumentNGTest {
|
|
|
|
public InstrumentNGTest() {
|
|
}
|
|
|
|
@BeforeMethod
|
|
public void setUpMethod() throws Exception {
|
|
}
|
|
|
|
@Test
|
|
public void testToString() {
|
|
System.out.println("toString");
|
|
Instrument instance = null;
|
|
String expResult = "";
|
|
String result = instance.toString();
|
|
assertEquals(result, expResult);
|
|
fail("The test case is a prototype.");
|
|
}
|
|
|
|
@Test
|
|
public void testSetRef() {
|
|
System.out.println("setRef");
|
|
int ref = 0;
|
|
Instrument instance = null;
|
|
instance.setRef(ref);
|
|
fail("The test case is a prototype.");
|
|
}
|
|
|
|
@Test
|
|
public void testSetDesignation() {
|
|
System.out.println("setDesignation");
|
|
String designation = "";
|
|
Instrument instance = null;
|
|
instance.setDesignation(designation);
|
|
fail("The test case is a prototype.");
|
|
}
|
|
|
|
@Test
|
|
public void testSetQteStock() {
|
|
System.out.println("setQteStock");
|
|
int qteStock = 0;
|
|
Instrument instance = null;
|
|
instance.setQteStock(qteStock);
|
|
fail("The test case is a prototype.");
|
|
}
|
|
|
|
@Test
|
|
public void testSetPrix() {
|
|
System.out.println("setPrix");
|
|
float prix = 0.0F;
|
|
Instrument instance = null;
|
|
instance.setPrix(prix);
|
|
fail("The test case is a prototype.");
|
|
}
|
|
|
|
@Test
|
|
public void testGetRef() {
|
|
System.out.println("getRef");
|
|
Instrument instance = null;
|
|
int expResult = 0;
|
|
int result = instance.getRef();
|
|
assertEquals(result, expResult);
|
|
fail("The test case is a prototype.");
|
|
}
|
|
|
|
@Test
|
|
public void testGetDesignation() {
|
|
System.out.println("getDesignation");
|
|
Instrument instance = null;
|
|
String expResult = "";
|
|
String result = instance.getDesignation();
|
|
assertEquals(result, expResult);
|
|
fail("The test case is a prototype.");
|
|
}
|
|
|
|
@Test
|
|
public void testGetQteStock() {
|
|
System.out.println("getQteStock");
|
|
Instrument instance = null;
|
|
int expResult = 0;
|
|
int result = instance.getQteStock();
|
|
assertEquals(result, expResult);
|
|
fail("The test case is a prototype.");
|
|
}
|
|
|
|
@Test
|
|
public void testGetPrix() {
|
|
System.out.println("getPrix");
|
|
Instrument instance = null;
|
|
float expResult = 0.0F;
|
|
float result = instance.getPrix();
|
|
assertEquals(result, expResult, 0.0);
|
|
fail("The test case is a prototype.");
|
|
}
|
|
|
|
}
|