summaryrefslogtreecommitdiffstats
path: root/integrity-audit/src/test/java/org/onap/policy/common/ia/test/jpa/IaTestEntity.java
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2018-02-02 09:25:14 -0500
committerPamela Dragosh <pdragosh@research.att.com>2018-02-02 09:34:58 -0500
commit4aadab035016ebc675698961f410583eee86ebc7 (patch)
treea96b13db115d15eb6260e708542b2794d3d95175 /integrity-audit/src/test/java/org/onap/policy/common/ia/test/jpa/IaTestEntity.java
parentc23099a762c165ca8d1fd064902e91191952f678 (diff)
Removed commented code and add JUnit tests
* Useless assignments * Commented out code * Unused imports * Add simple JUnit for exception classes Issue-ID: POLICY-456 Change-Id: I012c2b6bdaf1b5803b2f1c37fd4d9514055e4ef0 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Diffstat (limited to 'integrity-audit/src/test/java/org/onap/policy/common/ia/test/jpa/IaTestEntity.java')
-rw-r--r--integrity-audit/src/test/java/org/onap/policy/common/ia/test/jpa/IaTestEntity.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/integrity-audit/src/test/java/org/onap/policy/common/ia/test/jpa/IaTestEntity.java b/integrity-audit/src/test/java/org/onap/policy/common/ia/test/jpa/IaTestEntity.java
index 53289e50..9c34dc4a 100644
--- a/integrity-audit/src/test/java/org/onap/policy/common/ia/test/jpa/IaTestEntity.java
+++ b/integrity-audit/src/test/java/org/onap/policy/common/ia/test/jpa/IaTestEntity.java
@@ -42,13 +42,11 @@ import javax.persistence.TemporalType;
@NamedQuery(name=" IaTestEntity.findAll", query="SELECT e FROM IaTestEntity e "),
@NamedQuery(name="IaTestEntity.deleteAll", query="DELETE FROM IaTestEntity WHERE 1=1")
})
-//@SequenceGenerator(name="seqImTest", initialValue=1, allocationSize=1)
public class IaTestEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
- //@GeneratedValue(strategy = GenerationType.SEQUENCE, generator="seqImTest")
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name="ImTestId")
private long imTestId;
@@ -57,7 +55,7 @@ public class IaTestEntity implements Serializable {
private String createdBy = "guest";
@Column(name="person", nullable=false, length=255)
- private PersonTest person;
+ private PersonSample person;
@Temporal(TemporalType.TIMESTAMP)
@Column(name="created_date", updatable=false)
@@ -144,14 +142,14 @@ public class IaTestEntity implements Serializable {
/**
* @param the person to set
*/
- public void setPersonTest(PersonTest p) {
+ public void setPersonTest(PersonSample p) {
this.person = p;
}
/**
* @return the person
*/
- public PersonTest getPersonTest() {
+ public PersonSample getPersonTest() {
return person;
}
}