Package aviario

Source Code of aviario.LoroTest

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package aviario;

import model.Loro;
import appinterfaces.IAve;
import junit.framework.Assert;
import org.junit.Test;

public class LoroTest {
    @Test
    public void loroDebeReconocerComportamientoDeAve(){
        String codigo = "LO001";
        String nombre = "Loro";
        double precio = 100.00;
        String nombreCientifico = "Lorus";
        IAve loro = new Loro(codigo,nombre,precio,nombreCientifico);
        loro.volar();
        loro.cantar();
        String retornado = loro.getNombreCientifico();
        Assert.assertEquals(nombreCientifico,retornado);
    }
}
TOP

Related Classes of aviario.LoroTest

TOP
Copyright © 2018 www.massapi.com. 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.