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() {
$('#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);
};
};
......
......@@ -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');
};
};
......
......@@ -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();
}
*/
}
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