diff --git a/src/main/webapp/js/view/people.js b/src/main/webapp/js/view/people.js index eedb8b221f0b768f89a9c4d4f57bdc1e66692d86..755f23d7207700e43495bd6469f9f46cb62c706a 100644 --- a/src/main/webapp/js/view/people.js +++ b/src/main/webapp/js/view/people.js @@ -129,10 +129,10 @@ var PeopleView = (function() { $('#btnSubmit').val('Crear'); }; - this.detachForms = function(person) { - $(formQuery).remove(); + this.detachForms = function(person) { + $(formQuery).remove(); $(listQuery).remove(); - $('#titulo').text('Mascotas de ' + person.name + ' ' + person.surname); + $('#titulo').text('Mascotas de ' + person.name + ' ' + person.surname); }; }; diff --git a/src/main/webapp/js/view/pets.js b/src/main/webapp/js/view/pets.js index 4374c618ccbc81fa3f80ed64b3a0ac2239124089..3edc97daa3d19ca6aa9c11b6c7d6590cebab6102 100644 --- a/src/main/webapp/js/view/pets.js +++ b/src/main/webapp/js/view/pets.js @@ -137,10 +137,10 @@ var PetsView = (function() { $('#btnSubmit').val('Crear'); }; - this.detachForms = function() { - $(formQuery).detach(); - $(listQuery).detach(); - $('#titulo').text('Personas'); + this.detachForms = function() { + $(formQuery).remove(); + $(listQuery).remove(); + $('#titulo').text('Personas'); }; }; diff --git a/src/test/java/es/uvigo/esei/daa/entities/PetUnitTest.java b/src/test/java/es/uvigo/esei/daa/entities/PetUnitTest.java index 8a59e35c6cd83ffcd4d424e3e9d69c36cef7fcc5..7f12262aa9c2a33f11f2635360b90196d40f7fbc 100644 --- a/src/test/java/es/uvigo/esei/daa/entities/PetUnitTest.java +++ b/src/test/java/es/uvigo/esei/daa/entities/PetUnitTest.java @@ -93,14 +93,13 @@ public class PetUnitTest { assertTrue(petA.equals(petB)); } - /* + @Test public void testEqualsHashcode() { - EqualsVerifier.forClass(Person.class) + EqualsVerifier.forClass(Pet.class) .withIgnoredFields("name", "surname") .suppress(Warning.STRICT_INHERITANCE) - .suppress(Warning.NONFINAL_FIELDS) - .verify(); + .suppress(Warning.NONFINAL_FIELDS).verify(); } - */ + }