From 4aadab035016ebc675698961f410583eee86ebc7 Mon Sep 17 00:00:00 2001 From: Pamela Dragosh Date: Fri, 2 Feb 2018 09:25:14 -0500 Subject: 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 --- .../java/org/onap/policy/common/ia/test/jpa/IaTestEntity.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'integrity-audit/src/test/java/org/onap/policy/common/ia/test/jpa/IaTestEntity.java') 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; } } -- cgit 1.2.3-korg