How should I write test in Junit to test below class?
Will be grateful for sample code or description how to do it.
import javax.persistence.*;
@Entity
@Table(name="TechError")
public class TechError implements java.io.Serializable{
private static final long serivalVersionUID = 1L;
@Id
@GeneratedValue(generator = "uuid2") @GenericGenerator(name = "uuid2", strategy = "uuid2")
@Column(name="ID", unique=true, nullable=false, length=50)
private String id;
@Column(name="CATEGORY", nullable=true, length=50)
private String errCategory;
@Column(name="TYPE", nullable=true, length=50)
private String errType;
/**
* getter and setter here
*/
}
Aucun commentaire:
Enregistrer un commentaire