Formulario
Vamos a implementrar un test y un formulario para el metodo save().
Crear el Mock e implementar el test
Si falla el Test dibujar la interfaz.
Definimos un formulario form()
Asignar el titulo
Crear un panel
Agregar dos inputText con sus etiquetas
Cerrar el panel
Agregar un boton
Cerrar el formulario
Enviar un mensaje
Agregar el método save() en el init.
CĂ³digo
ColorTest.java
Ejecutar el Test.
Se generan los archivos
Abrimos unitreports.html
Ejecutar Nuevamente el Test
Obsevamos que ColorTest no paso todos los test
Fallo en el método save()
Abrir el archivo
Se muestra el formulario con datos que no logro pasar el Test.
Mediante UnitView podemos tener una vista de los test que han fallado.
Last updated
Was this helpful?