Commit 8b8befd6 authored by DavidSholito's avatar DavidSholito

Proyecto Mascotas Acabado

Proyecto de mascotas para subir a GitHub
parent 1fca9d13
...@@ -129,10 +129,10 @@ var PeopleView = (function() { ...@@ -129,10 +129,10 @@ var PeopleView = (function() {
$('#btnSubmit').val('Crear'); $('#btnSubmit').val('Crear');
}; };
this.detachForms = function(person) { this.detachForms = function(person) {
$(formQuery).remove(); $(formQuery).remove();
$(listQuery).remove(); $(listQuery).remove();
$('#titulo').text('Mascotas de ' + person.name + ' ' + person.surname); $('#titulo').text('Mascotas de ' + person.name + ' ' + person.surname);
}; };
}; };
......
...@@ -137,10 +137,10 @@ var PetsView = (function() { ...@@ -137,10 +137,10 @@ var PetsView = (function() {
$('#btnSubmit').val('Crear'); $('#btnSubmit').val('Crear');
}; };
this.detachForms = function() { this.detachForms = function() {
$(formQuery).detach(); $(formQuery).remove();
$(listQuery).detach(); $(listQuery).remove();
$('#titulo').text('Personas'); $('#titulo').text('Personas');
}; };
}; };
......
...@@ -93,14 +93,13 @@ public class PetUnitTest { ...@@ -93,14 +93,13 @@ public class PetUnitTest {
assertTrue(petA.equals(petB)); assertTrue(petA.equals(petB));
} }
/*
@Test @Test
public void testEqualsHashcode() { public void testEqualsHashcode() {
EqualsVerifier.forClass(Person.class) EqualsVerifier.forClass(Pet.class)
.withIgnoredFields("name", "surname") .withIgnoredFields("name", "surname")
.suppress(Warning.STRICT_INHERITANCE) .suppress(Warning.STRICT_INHERITANCE)
.suppress(Warning.NONFINAL_FIELDS) .suppress(Warning.NONFINAL_FIELDS).verify();
.verify();
} }
*/
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment