Skip to content
Snippets Groups Projects
Commit 3f61caba authored by ivagonz's avatar ivagonz
Browse files

Terminados los tests del constructor de la clase Red

parent 507e55af
No related branches found
No related tags found
1 merge request!1Direccion gps
......@@ -10,7 +10,6 @@ public class DireccionGPSTest {
@Test
public void constructorCorrectoTest() {
fail("Quitar en implementacion");
double latitud = 1.0;
double longitud = 1.0;
......
......
......@@ -10,7 +10,6 @@ public class LineaConstructorTest {
@Test
public void constructorCorrectoTest() {
fail("Eliminar en implementaciion");
DireccionGPS direccion1 = new DireccionGPS(20.45, 30.50);
DireccionGPS direccion2 = new DireccionGPS(30.5, 20.4);
DireccionGPS direccion3 = new DireccionGPS(20.4498, 30.50);
......
......
......@@ -8,7 +8,6 @@ public class ParadaTest {
@Test
public void constructorCorrectoTest() {
fail("Quitar en implentaci�n");
DireccionGPS direccion = new DireccionGPS(5.1, -5.1);
Parada parada = new Parada(direccion);
......
......
......@@ -79,4 +79,24 @@ public class RedTest {
assertFalse(red.hasLineaNull());
}
@Test(expected = IllegalArgumentException.class)
public void constructorConLineasNullTest() {
@SuppressWarnings("unused")
Red red = new Red(null);
}
@Test(expected = IllegalArgumentException.class)
public void constructorConLineaNullTest() {
Linea lineas[] = new Linea[] { linea, null };
@SuppressWarnings("unused")
Red red = new Red(lineas);
}
@Test(expected = IllegalArgumentException.class)
public void constructorConLineasDeTamanioMenorDe2Test() {
Linea lineas[] = new Linea[] { linea };
@SuppressWarnings("unused")
Red red = new Red(lineas);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment