View Javadoc
1   package org.kuali.common.util.file.model;
2   
3   import org.kuali.common.util.Assert;
4   
5   import com.google.common.base.Optional;
6   
7   public class ArtifactForTesting {
8   
9   	public ArtifactForTesting(Repository repository, RepoFile file, Optional<RepoFile> checksum) {
10  		Assert.noNulls(repository, file, checksum);
11  		this.repository = repository;
12  		this.file = file;
13  		this.checksum = checksum;
14  	}
15  
16  	private final Repository repository;
17  	private final RepoFile file;
18  	private final Optional<RepoFile> checksum;
19  
20  	public Repository getRepository() {
21  		return repository;
22  	}
23  
24  	public RepoFile getFile() {
25  		return file;
26  	}
27  
28  	public Optional<RepoFile> getChecksum() {
29  		return checksum;
30  	}
31  
32  }