001package com.thed.model; 002 003import java.util.Date; 004 005public class TestResult implements java.io.Serializable { 006 007 /** 008 * 009 */ 010 private static final long serialVersionUID = 9127742278790547979L; 011 private long id; 012 013 private Date executionDate; 014 private String execDate; 015 private String executionNotes; 016 private String executionStatus; 017 private String attachmentLocation; 018 private String status; 019 private Defect defect; 020 private Long testerId; 021 private Long releaseTestScheduleId; 022 023 024 public TestResult() { 025 026 } 027 028 public TestResult(Defect defect, Long testerId, Date executionDate, String executionNotes, String executionStatus, String attachmentLocation) { 029 this.defect = defect; 030 this.testerId = testerId; 031 this.executionDate = executionDate; 032 this.executionNotes = executionNotes; 033 this.executionStatus = executionStatus; 034 this.attachmentLocation = attachmentLocation; 035 } 036 037 public long getId() { 038 return this.id; 039 } 040 041 public void setId(long id) { 042 this.id = id; 043 } 044 public Defect getDefect() { 045 return this.defect; 046 } 047 048 public void setDefect(Defect defect) { 049 this.defect = defect; 050 } 051 052 public Long getReleaseTestScheduleId() { 053 return releaseTestScheduleId; 054 } 055 056 public void setReleaseTestScheduleId(Long releaseTestScheduleId) { 057 this.releaseTestScheduleId = releaseTestScheduleId; 058 } 059 060 public Long getTesterId() { 061 return testerId; 062 } 063 064 public void setTesterId(Long testerId) { 065 this.testerId = testerId; 066 } 067 068 public Date getExecutionDate() { 069 return this.executionDate; 070 } 071 072 public void setExecutionDate(Date executionDate) { 073 this.executionDate = executionDate; 074 } 075 076 public String getExecutionNotes() { 077 return this.executionNotes; 078 } 079 080 public void setExecutionNotes(String executionNotes) { 081 this.executionNotes = executionNotes; 082 } 083 public String getExecutionStatus() { 084 return this.executionStatus; 085 } 086 087 public void setExecutionStatus(String executionStatus) { 088 this.executionStatus = executionStatus; 089 } 090 public String getAttachmentLocation() { 091 return this.attachmentLocation; 092 } 093 094 public void setAttachmentLocation(String attachmentLocation) { 095 this.attachmentLocation = attachmentLocation; 096 } 097 098 public String getStatus() { 099 return status; 100 } 101 102 public void setStatus(String status) { 103 this.status = status; 104 } 105 106 public String getExecDate() { 107 if(executionDate!=null) 108 execDate = (executionDate.toString()); 109 return execDate; 110 } 111 112 public void setExecDate(String execDate) { 113 } 114} 115 116