3 import java.util.Collection;
6 import dst.ass1.jpa.model.ILesson;
7 import dst.ass1.jpa.model.IMaterial;
8 import dst.ass1.jpa.model.IMaterialServer;
11 * Mock implementation of the IMaterial entity. Avoid dependencies to the implementation of ass1-jpa.
13 public class MockMaterial implements IMaterial {
18 public MockMaterial(Long id, String type) {
29 public void setId(Long id) {
34 public String getType() {
39 public void setType(String type) {
44 public String getUrn() {
49 public void setUrn(String urn) {
53 public Date getUploaded() {
58 public void setUploaded(Date uploaded) {
62 public Date getLastUpdate() {
67 public void setLastUpdate(Date lastUpdate) {
71 public ILesson getLesson() {
76 public void setLesson(ILesson lesson) {
80 public Collection<IMaterialServer> getMaterialServers() {
85 public void setMaterialServers(Collection<IMaterialServer> materialServers) {
89 public void addMaterialServer(IMaterialServer materialServer) {