Skip to content

Instantly share code, notes, and snippets.

@neverkas
Created September 24, 2019 01:23
Show Gist options
  • Save neverkas/f7c8efdcad6923f30f071106a7245f66 to your computer and use it in GitHub Desktop.
Save neverkas/f7c8efdcad6923f30f071106a7245f66 to your computer and use it in GitHub Desktop.
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