Commits

Vineet Reynolds committed e327034

Specified the generic classes for the ApplicationException types.

  • Participants
  • Parent commits a4c2fd6

Comments (0)

Files changed (6)

File galleria-ejb/src/main/java/info/galleria/service/ejb/AlbumException.java

 		super(cause);
 	}
 
-	public AlbumException(Set<ConstraintViolation> violations)
+	public AlbumException(Set<ConstraintViolation<?>> violations)
 	{
 		super(violations);
 	}

File galleria-ejb/src/main/java/info/galleria/service/ejb/ApplicationException.java

 {
 
 	private static final long serialVersionUID = 1L;
-	private Set<ConstraintViolation> violations;
+	private Set<ConstraintViolation<?>> violations;
 
 	/**
 	 * 
 		super(message, cause);
 	}
 
-	public ApplicationException(Set<ConstraintViolation> violations)
+	public ApplicationException(Set<ConstraintViolation<?>> violations)
 	{
 		this.violations = violations;
 	}
 
-	public Set<ConstraintViolation> getViolations()
+	public Set<ConstraintViolation<?>> getViolations()
 	{
 		return violations;
 	}
 
-	public void setViolations(Set<ConstraintViolation> violations)
+	public void setViolations(Set<ConstraintViolation<?>> violations)
 	{
 		this.violations = violations;
 	}

File galleria-ejb/src/main/java/info/galleria/service/ejb/ModifyPasswordException.java

 		super(message);
 	}
 
-	public ModifyPasswordException(Set<ConstraintViolation> violations)
+	public ModifyPasswordException(Set<ConstraintViolation<?>> violations)
 	{
 		super(violations);
 	}

File galleria-ejb/src/main/java/info/galleria/service/ejb/PhotoException.java

 		super(cause);
 	}
 
-	public PhotoException(Set<ConstraintViolation> violations)
+	public PhotoException(Set<ConstraintViolation<?>> violations)
 	{
 		super(violations);
 	}

File galleria-ejb/src/main/java/info/galleria/service/ejb/UserException.java

 		super(message, cause);
 	}
 
-	public UserException(Set<ConstraintViolation> violations)
+	public UserException(Set<ConstraintViolation<?>> violations)
 	{
 		super(violations);
 	}

File galleria-jsf/src/test/java/info/galleria/view/photo/UploadPhotoPage.java

 		driver.findElement(By.id("multipartForm:photoTitle")).sendKeys(photoTitle);
 		driver.findElement(By.id("multipartForm:photoDescription")).clear();
 		driver.findElement(By.id("multipartForm:photoDescription")).sendKeys(photoDescription);
-		driver.findElement(By.id("multipartForm:photoUploader")).clear();
 		driver.findElement(By.id("multipartForm:photoUploader")).sendKeys(filePath);
 		driver.findElement(By.id("multipartForm:uploadButton")).click();
 		return new ViewAlbumPage(driver, contextPath);
 		driver.findElement(By.id("multipartForm:photoTitle")).sendKeys(photoTitle);
 		driver.findElement(By.id("multipartForm:photoDescription")).clear();
 		driver.findElement(By.id("multipartForm:photoDescription")).sendKeys(photoDescription);
-		driver.findElement(By.id("multipartForm:photoUploader")).clear();
 		driver.findElement(By.id("multipartForm:photoUploader")).sendKeys(filePath);
 		driver.findElement(By.id("multipartForm:uploadButton")).click();
 		return new UploadPhotoPage(driver, contextPath);