diff options
author | Jim Hahn <jrh3@att.com> | 2021-08-04 10:41:51 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2021-08-05 08:46:30 -0400 |
commit | 7438fe5a86a9fcfaf248ee32197b24d1badaecb3 (patch) | |
tree | c96b211c4380bd9bc4a614bed830da330f50c4e3 /model/engine-model/src/test/java | |
parent | 038c19d4042de980d4adccbfa82c1534b53abe5f (diff) |
Use lombok in apex-pdp #2
Updated context to use lombok.
Issue-ID: POLICY-3391
Change-Id: I349e0202fffad161cac08cebaea4a9571db58bda
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'model/engine-model/src/test/java')
-rw-r--r-- | model/engine-model/src/test/java/org/onap/policy/apex/model/enginemodel/concepts/EngineModelTest.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/model/engine-model/src/test/java/org/onap/policy/apex/model/enginemodel/concepts/EngineModelTest.java b/model/engine-model/src/test/java/org/onap/policy/apex/model/enginemodel/concepts/EngineModelTest.java index 5c87e5621..c23687bb1 100644 --- a/model/engine-model/src/test/java/org/onap/policy/apex/model/enginemodel/concepts/EngineModelTest.java +++ b/model/engine-model/src/test/java/org/onap/policy/apex/model/enginemodel/concepts/EngineModelTest.java @@ -2,6 +2,7 @@ * ============LICENSE_START======================================================= * Copyright (C) 2016-2018 Ericsson. All rights reserved. * Modifications Copyright (C) 2019-2020 Nordix Foundation. + * Modifications Copyright (C) 2021 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,6 +22,7 @@ package org.onap.policy.apex.model.enginemodel.concepts; +import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotEquals; @@ -92,7 +94,7 @@ public class EngineModelTest { model.clean(); assertNotNull(model); - assertEquals("AxEngineModel:(AxEngineModel:(AxEngineModel:(key=A", model.toString().substring(0, 50)); + assertThat(model.toString()).startsWith("AxEngineModel:(AxContextModel(super=AxEngineModel:(key=A"); final AxEngineModel clonedModel = new AxEngineModel(model); |