Created
September 24, 2019 01:23
-
-
Save neverkas/f7c8efdcad6923f30f071106a7245f66 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package embarcaciones; | |
import static org.junit.jupiter.api.Assertions.*; | |
import java.util.LinkedList; | |
import org.junit.jupiter.api.Test; | |
class EmbarcacionTest { | |
@Test | |
void probando() { | |
Oro ororo = new Oro(100); | |
LinkedList<Carga> carga = new LinkedList<>(); | |
Carabela carabelala = new Carabela("carabelala", carga); | |
carabelala.carga.add(ororo); | |
assertEquals(carabelala.getNombre(), "carabelala"); | |
assertEquals(carabelala.getCargas().getFirst().getCantidad(), 100); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment