Code example for Vector

Methods: add

0
	public void testEnvironmentPath() { 
		assertEquals(model.getFilePath(), application.getFilePath());
	} 
	 
	public void testPhotoManipulation() { 
		Vector<String> tags = new Vector<String>();
		tags.add("test1");
		tags.add("test2");
		tags.add("test3");
		 
		PhotoEntry entry = new PhotoEntry(null, tags, "groupisawesome");
		 
		application.addPhoto(entry);
		 
		PhotoModel model2 = application.model;
		 
		assertEquals(1, model2.getPhotos().size());
		 
		PhotoEntry entry2 = model2.getPhotos().elementAt(0);
		 
		assertEquals(tags, entry2.getTags());
		assertEquals("groupisawesome", entry2.getGroup());
		 
		application.removePhoto(entry2.getID());
		 
		model2 = application.model;