Package com.comprainsumos.modelo

Examples of com.comprainsumos.modelo.InsumoProveedor


     * Test of crearInsumoProveedor method, of class MPinsumoProveedor.
     */
    //@Test
    public void testCrearInsumoProveedor() throws Exception {
        System.out.println("crearInsumoProveedor");
        InsumoProveedor insumosP = new InsumoProveedor(0, 1, 1, 5, 1.000, "Activo");
        MPinsumoProveedor.crearInsumoProveedor(insumosP);
        // TODO review the generated test code and remove the default call to fail.
       
    }
View Full Code Here


     * Test of modInsumoProveedor method, of class MPinsumoProveedor.
     */
    //@Test
    public void testModInsumoProveedor() throws Exception {
        System.out.println("modInsumoProveedor");
        InsumoProveedor insumoproveedor = new InsumoProveedor(2, 1, 2, 2, 1.200, "Inactivo");
        InsumoProveedor expResult = MPinsumoProveedor.getInsumoProveedor(2);
        MPinsumoProveedor.modInsumoProveedor(insumoproveedor);
        assertEquals("Inactivo",expResult.getEstado());
        // TODO review the generated test code and remove the default call to fail.
       
    }
View Full Code Here

    @Test
    public void testListar() throws Exception {
        System.out.println("listar");
        List expResult = null;
        List result = MPinsumoProveedor.listarTodo();
        InsumoProveedor insp = (InsumoProveedor) result.get(0);
        assertEquals(2, insp.getCodigo());
        // TODO review the generated test code and remove the default call to fail.
       
    }
View Full Code Here

        if (codprod == null) {
            throw new SQLException("No hay elemento clave de la clase insumos");
        }
        ResultSet rs = null;
        PreparedStatement pst = null;
        InsumoProveedor insumoprov = null;
        try {
            pst = con.prepareStatement("SELECT * FROM insumoproveedor WHERE codprod = ? AND codproveedor =? ");
            pst.setString(1, codprod.trim());
            pst.setString(2, codprov.trim());
            rs = pst.executeQuery();
View Full Code Here

        if (codprod == null) {
            throw new SQLException("No hay elemento clave de la clase insumos");
        }
        ResultSet rs = null;
        PreparedStatement pst = null;
        InsumoProveedor insumoprov = null;
        try {
            pst = con.prepareStatement("SELECT * FROM insumoproveedor WHERE codprod = ? AND codproveedor =? ");
            pst.setString(1, codprod.trim());
            pst.setString(2, codprov.trim());
            rs = pst.executeQuery();
View Full Code Here

TOP

Related Classes of com.comprainsumos.modelo.InsumoProveedor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.