Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package ejercicio3;
- import org.junit.After;
- import org.junit.AfterClass;
- import org.junit.Before;
- import org.junit.BeforeClass;
- import org.junit.Test;
- import static org.junit.Assert.*;
- /**
- *
- * @author lois
- */
- public class TorneoTest {
- public TorneoTest() {
- }
- @BeforeClass
- public static void setUpClass() {
- }
- @AfterClass
- public static void tearDownClass() {
- }
- @Before
- public void setUp() {
- }
- @After
- public void tearDown() {
- }
- /**
- * Test of setName method, of class Torneo.
- */
- @Test
- public void testSetName() {
- System.out.println("setName");
- String s = "TorneoMixtoFIC";
- ElimDirecta instance = new ElimDirecta("TorneoMixtoFIC");
- instance.setName(s);
- // TODO review the generated test code and remove the default call to fail.
- }
- /**
- * Test of getName method, of class Torneo.
- */
- @Test
- public void testGetName() {
- System.out.println("getName");
- ElimDirecta instance = new ElimDirecta("TorneoMixtoFIC");
- String expResult = "TorneoMixtoFIC";
- String result = instance.getName();
- assertEquals(expResult, result);
- // TODO review the generated test code and remove the default call to fail.
- }
- /**
- * Test of inscribirTorneo method, of class Torneo.
- */
- @Test(expected = IllegalArgumentException.class)
- public void testInscribirTorneo() {
- System.out.println("inscribirTorneo");
- String nuevoequipo = "Aranjuez";
- ElimDirecta instance = new ElimDirecta("TorneoMixtoFIC");
- instance.inscribirTorneo(nuevoequipo);
- instance.inscribirTorneo("Celta");
- instance.inscribirTorneo("Celta");
- // TODO review the generated test code and remove the default call to fail
- }
- @Test
- public void testInscribirTorneo1() {
- System.out.println("inscribirTorneo");
- ElimDirecta instance = new ElimDirecta("TorneoElimFIC");
- instance.inscribirTorneo("e1");
- instance.inscribirTorneo("e2");
- instance.inscribirTorneo("e3");
- instance.inscribirTorneo("e4");
- instance.inscribirTorneo("e5");
- // TODO review the generated test code and remove the default call to fail
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement