Skip to content

Commit

Permalink
Fix junit test with null fields set on non-null table schema fields
Browse files Browse the repository at this point in the history
  • Loading branch information
angelo.andreussi authored and Coduz committed Sep 13, 2023
1 parent 9f22812 commit b534e51
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

import org.eclipse.kapua.commons.model.AbstractKapuaNamedEntity;
import org.eclipse.kapua.commons.model.id.KapuaEid;
import org.eclipse.kapua.model.id.KapuaId;

@Entity(name = "CollisionEntity")
@Table(name = "collision_entity_test")
Expand Down Expand Up @@ -60,7 +61,8 @@ public CollisionEntity(String testField) {
@Override
protected void prePersistsAction() {
setId(new KapuaEid(collisionIdGenerator.generate()));

setScopeId(KapuaId.ONE);
setName("foo");
setCreatedBy(new KapuaEid(BigInteger.ONE));
setCreatedOn(new Date());
}
Expand Down

0 comments on commit b534e51

Please sign in to comment.