Skip to content

Instantly share code, notes, and snippets.

@plagelao
Created January 16, 2010 23:49
Show Gist options
  • Save plagelao/279095 to your computer and use it in GitHub Desktop.
Save plagelao/279095 to your computer and use it in GitHub Desktop.
@Test
public void insertarElMismoElementoDosVecesAumentaLaLongitudEnDosUniddes() {
Object objeto = new Object();
collection.add(objeto);
assertEquals("Añadir un elemento aumenta en 1 su tamaño", 1, collection.size());
collection.add(objeto);
assertEquals("Añadir de nuevo el mismo elemento aumenta en 1 su tamaño", 2, collection.size());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment