/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.comprainsumos.MPersistencia;
import com.comprainsumos.modelo.Insumo;
import java.util.List;
import org.junit.*;
import static org.junit.Assert.*;
/**
*
* @author Lucamo
*/
public class MPInsumosTest {
public MPInsumosTest() {
}
@BeforeClass
public static void setUpClass() throws Exception {
}
@AfterClass
public static void tearDownClass() throws Exception {
}
@Before
public void setUp() {
}
@After
public void tearDown() {
}
/**
* Test of getInsumos method, of class MPInsumos.
*/
//@Test
public void testGetInsumos() throws Exception {
System.out.println("getInsumos");
int codigo = 0;
Insumo expResult = null;
Insumo result = MPInsumos.getInsumos(codigo);
assertEquals(expResult, result);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
/**
* Test of crearInsumos method, of class MPInsumos.
*/
//@Test
public void testCrearInsumos() throws Exception {
System.out.println("crearInsumos");
Insumo insumos = new Insumo(0,"Insumo",5,"KG");
MPInsumos.crearInsumos(insumos);
// TODO review the generated test code and remove the default call to fail.
}
/**
* Test of delInsumos method, of class MPInsumos.
*/
@Test
public void testDelInsumos() throws Exception {
System.out.println("delInsumos");
int codigo = 4;
MPInsumos.delInsumos(codigo);
// TODO review the generated test code and remove the default call to fail.
}
/**
* Test of modInsumos method, of class MPInsumos.
*/
@Test
public void testModInsumos() throws Exception {
System.out.println("modInsumos");
Insumo insumos = new Insumo(4,"Insumo",10,"KG");
MPInsumos.modInsumos(insumos);
// TODO review the generated test code and remove the default call to fail.
}
/**
* Test of listar method, of class MPInsumos.
*/
//@Test
public void testListar() throws Exception {
System.out.println("listar");
List expResult = null;
List result = MPInsumos.listar();
assertEquals(expResult, result);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
}