Hola esto es las pruebas unitarias que resultaron al crearlas, debido a que hay muchas clases mostrare algunas y las demás las subiré para que las puedan descargar.
Prueba de Clase Main:
package proyectofinal;
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.*;
public class MainTest {
public MainTest() {
}
@BeforeClass
public static void setUpClass() throws Exception {
}
@AfterClass
public static void tearDownClass() throws Exception {
}
@Before
public void setUp() {
}
@After
public void tearDown() {
}
/**
* Test of main method, of class Main.
*/
@Test
public void testMain() {
System.out.println("main");
String[] args = null;
Main.main(args);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
}
Prueba de Clase Seguridad:
package frames;
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.*;
public class SeguridadTest {
public SeguridadTest() {
}
@BeforeClass
public static void setUpClass() throws Exception {
}
@AfterClass
public static void tearDownClass() throws Exception {
}
@Before
public void setUp() {
}
@After
public void tearDown() {
}
/**
* Test of main method, of class Seguridad.
*/
@Test
public void testMain() {
System.out.println("main");
String[] args = null;
Seguridad.main(args);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
}
Prueba de Clase Menu:
package frames;
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.*;
public class MenuTest {
public MenuTest() {
}
@BeforeClass
public static void setUpClass() throws Exception {
}
@AfterClass
public static void tearDownClass() throws Exception {
}
@Before
public void setUp() {
}
@After
public void tearDown() {
}
/**
* Test of main method, of class Menu.
*/
@Test
public void testMain() {
System.out.println("main");
String[] args = null;
Menu.main(args);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
}
Prueba de Clase AltaCliente:
package frames;
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.*;
public class AltaClienteTest {
public AltaClienteTest() {
}
@BeforeClass
public static void setUpClass() throws Exception {
}
@AfterClass
public static void tearDownClass() throws Exception {
}
@Before
public void setUp() {
}
@After
public void tearDown() {
}
/**
* Test of main method, of class AltaCliente.
*/
@Test
public void testMain() {
System.out.println("main");
String[] args = null;
AltaCliente.main(args);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
/**
* Test of setTxtRFC method, of class AltaCliente.
*/
@Test
public void testSetTxtRFC() {
System.out.println("setTxtRFC");
String id = "";
AltaCliente instance = new AltaCliente();
instance.setTxtRFC(id);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
/**
* Test of getTxtRFC method, of class AltaCliente.
*/
@Test
public void testGetTxtRFC() {
System.out.println("getTxtRFC");
AltaCliente instance = new AltaCliente();
String expResult = "";
String result = instance.getTxtRFC();
assertEquals(expResult, result);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
/**
* Test of setTxtNombre method, of class AltaCliente.
*/
@Test
public void testSetTxtNombre() {
System.out.println("setTxtNombre");
String nombre = "";
AltaCliente instance = new AltaCliente();
instance.setTxtNombre(nombre);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
/**
* Test of getTxtNombre method, of class AltaCliente.
*/
@Test
public void testGetTxtNombre() {
System.out.println("getTxtNombre");
AltaCliente instance = new AltaCliente();
String expResult = "";
String result = instance.getTxtNombre();
assertEquals(expResult, result);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
/**
* Test of setTxtCalle method, of class AltaCliente.
*/
@Test
public void testSetTxtCalle() {
System.out.println("setTxtCalle");
String calle = "";
AltaCliente instance = new AltaCliente();
instance.setTxtCalle(calle);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
/**
* Test of getTxtCalle method, of class AltaCliente.
*/
@Test
public void testGetTxtCalle() {
System.out.println("getTxtCalle");
AltaCliente instance = new AltaCliente();
String expResult = "";
String result = instance.getTxtCalle();
assertEquals(expResult, result);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
/**
* Test of setTxtColonia method, of class AltaCliente.
*/
@Test
public void testSetTxtColonia() {
System.out.println("setTxtColonia");
String colonia = "";
AltaCliente instance = new AltaCliente();
instance.setTxtColonia(colonia);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
/**
* Test of getTxtColonia method, of class AltaCliente.
*/
@Test
public void testGetTxtColonia() {
System.out.println("getTxtColonia");
AltaCliente instance = new AltaCliente();
String expResult = "";
String result = instance.getTxtColonia();
assertEquals(expResult, result);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
/**
* Test of setTxtCiudad method, of class AltaCliente.
*/
@Test
public void testSetTxtCiudad() {
System.out.println("setTxtCiudad");
String ciudad = "";
AltaCliente instance = new AltaCliente();
instance.setTxtCiudad(ciudad);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
/**
* Test of getTxtCiudad method, of class AltaCliente.
*/
@Test
public void testGetTxtCiudad() {
System.out.println("getTxtCiudad");
AltaCliente instance = new AltaCliente();
String expResult = "";
String result = instance.getTxtCiudad();
assertEquals(expResult, result);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
/**
* Test of setTxtTel method, of class AltaCliente.
*/
@Test
public void testSetTxtTel() {
System.out.println("setTxtTel");
String tel = "";
AltaCliente instance = new AltaCliente();
instance.setTxtTel(tel);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
/**
* Test of getTxtTel method, of class AltaCliente.
*/
@Test
public void testGetTxtTel() {
System.out.println("getTxtTel");
AltaCliente instance = new AltaCliente();
String expResult = "";
String result = instance.getTxtTel();
assertEquals(expResult, result);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
/**
* Test of setTxtEstado method, of class AltaCliente.
*/
@Test
public void testSetTxtEstado() {
System.out.println("setTxtEstado");
String estado = "";
AltaCliente instance = new AltaCliente();
instance.setTxtEstado(estado);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
/**
* Test of getTxtEstado method, of class AltaCliente.
*/
@Test
public void testGetTxtEstado() {
System.out.println("getTxtEstado");
AltaCliente instance = new AltaCliente();
String expResult = "";
String result = instance.getTxtEstado();
assertEquals(expResult, result);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
/**
* Test of setTxtCP method, of class AltaCliente.
*/
@Test
public void testSetTxtCP() {
System.out.println("setTxtCP");
String cp = "";
AltaCliente instance = new AltaCliente();
instance.setTxtCP(cp);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
/**
* Test of getTxtCP method, of class AltaCliente.
*/
@Test
public void testGetTxtCP() {
System.out.println("getTxtCP");
AltaCliente instance = new AltaCliente();
String expResult = "";
String result = instance.getTxtCP();
assertEquals(expResult, result);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
/**
* Test of validacion method, of class AltaCliente.
*/
@Test
public void testValidacion() {
System.out.println("validacion");
AltaCliente instance = new AltaCliente();
boolean expResult = false;
boolean result = instance.validacion();
assertEquals(expResult, result);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
/**
* Test of validacionCP method, of class AltaCliente.
*/
@Test
public void testValidacionCP() {
System.out.println("validacionCP");
AltaCliente instance = new AltaCliente();
boolean expResult = false;
boolean result = instance.validacionCP();
assertEquals(expResult, result);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
/**
* Test of validacionTel method, of class AltaCliente.
*/
@Test
public void testValidacionTel() {
System.out.println("validacionTel");
AltaCliente instance = new AltaCliente();
boolean expResult = false;
boolean result = instance.validacionTel();
assertEquals(expResult, result);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
/**
* Test of SP method, of class AltaCliente.
*/
@Test
public void testSP() {
System.out.println("SP");
boolean a = false;
AltaCliente instance = new AltaCliente();
boolean expResult = false;
boolean result = instance.SP(a);
assertEquals(expResult, result);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
}
}
Bien las demás las dejo en el siguiente link:
Pruebas Unitarias zip
No hay comentarios:
Publicar un comentario