summaryrefslogtreecommitdiffstats
path: root/tools/model-generator/src/test/java
diff options
context:
space:
mode:
authoradheli.tavares <adheli.tavares@est.tech>2023-04-25 12:49:44 +0100
committeradheli.tavares <adheli.tavares@est.tech>2023-04-25 12:51:05 +0100
commita25ef41f7b35037db6ad4e717d0d9b1eb33448b6 (patch)
treec0ef471f4e88d6da04eec01455f8aa228b8e757f /tools/model-generator/src/test/java
parent4287769821bda5fbd3f87ac1a2589ba82b47c3bd (diff)
Fix dependencies on VPN-AVRO model deleted with PCVS examples
Issue-ID: POLICY-4648 Change-Id: I5c44e1803e6cffd7b031cba3381696314962b2fa Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
Diffstat (limited to 'tools/model-generator/src/test/java')
-rw-r--r--tools/model-generator/src/test/java/org/onap/policy/apex/tools/model/generator/SchemaUtilsTest.java4
-rw-r--r--tools/model-generator/src/test/java/org/onap/policy/apex/tools/model/generator/model2cli/Model2CliTest.java5
2 files changed, 2 insertions, 7 deletions
diff --git a/tools/model-generator/src/test/java/org/onap/policy/apex/tools/model/generator/SchemaUtilsTest.java b/tools/model-generator/src/test/java/org/onap/policy/apex/tools/model/generator/SchemaUtilsTest.java
index 6af2959ed..a195411f3 100644
--- a/tools/model-generator/src/test/java/org/onap/policy/apex/tools/model/generator/SchemaUtilsTest.java
+++ b/tools/model-generator/src/test/java/org/onap/policy/apex/tools/model/generator/SchemaUtilsTest.java
@@ -68,14 +68,14 @@ public class SchemaUtilsTest {
*/
@BeforeClass
public static void readSimpleModel() throws IOException, ApexModelException {
- String avroModelString = TextFileUtils.getTextFileAsString("target/examples/models/pcvs/vpnsla/vpnsla.json");
+ String avroModelString = TextFileUtils.getTextFileAsString("src/test/resources/vpnsla.json");
final ApexModelReader<AxPolicyModel> modelReader = new ApexModelReader<>(AxPolicyModel.class);
avroModel = modelReader.read(new ByteArrayInputStream(avroModelString.getBytes()));
}
@Test
- public void testSchemaUtilsErrors() throws ApexEventException {
+ public void testSchemaUtilsErrors() {
AxEvent event = avroModel.getEvents().get("CustomerContextEventIn");
assertThatThrownBy(() -> SchemaUtils.getEventSchema(event))
diff --git a/tools/model-generator/src/test/java/org/onap/policy/apex/tools/model/generator/model2cli/Model2CliTest.java b/tools/model-generator/src/test/java/org/onap/policy/apex/tools/model/generator/model2cli/Model2CliTest.java
index 82c7a24f8..b27c16842 100644
--- a/tools/model-generator/src/test/java/org/onap/policy/apex/tools/model/generator/model2cli/Model2CliTest.java
+++ b/tools/model-generator/src/test/java/org/onap/policy/apex/tools/model/generator/model2cli/Model2CliTest.java
@@ -80,11 +80,6 @@ public class Model2CliTest {
}
@Test
- public void testModel2CliAvro() throws IOException {
- testModel2CliModel("target/examples/models/pcvs/vpnsla", "vpnsla");
- }
-
- @Test
public void testModel2CliAadm() throws IOException {
testModel2CliModel("target/examples/models/AADM", "AADMPolicyModel");
}