From 5be846bcdbe6e9dfa3b81e4b95de37acea18d1a2 Mon Sep 17 00:00:00 2001 From: "a.sreekumar" Date: Fri, 21 Jun 2019 11:21:14 +0000 Subject: Replace uses of getCanonicalName() with getName() in APEX Change-Id: Ifcd8866e65a7bc1238d5a4137f7bad288a5bfb3b Issue-ID: POLICY-1861 Signed-off-by: a.sreekumar --- .../eventgenerator/EventGeneratorParametersHandlerTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'testsuites/performance') diff --git a/testsuites/performance/performance-benchmark-test/src/test/java/org/onap/policy/apex/testsuites/performance/benchmark/eventgenerator/EventGeneratorParametersHandlerTest.java b/testsuites/performance/performance-benchmark-test/src/test/java/org/onap/policy/apex/testsuites/performance/benchmark/eventgenerator/EventGeneratorParametersHandlerTest.java index dd8766dc3..2e70b7b3f 100644 --- a/testsuites/performance/performance-benchmark-test/src/test/java/org/onap/policy/apex/testsuites/performance/benchmark/eventgenerator/EventGeneratorParametersHandlerTest.java +++ b/testsuites/performance/performance-benchmark-test/src/test/java/org/onap/policy/apex/testsuites/performance/benchmark/eventgenerator/EventGeneratorParametersHandlerTest.java @@ -23,6 +23,7 @@ package org.onap.policy.apex.testsuites.performance.benchmark.eventgenerator; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; +import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import org.apache.commons.cli.ParseException; @@ -257,9 +258,7 @@ public class EventGeneratorParametersHandlerTest { handler.parse(args); fail("test should throw an exception"); } catch (ParseException pe) { - assertEquals("Could not read parameters from configuration file " - + "\"src/test/resources/parameters/unit/NonExistant.json\": " - + "src/test/resources/parameters/unit/NonExistant.json", pe.getMessage()); + assertTrue(pe.getMessage().startsWith("Could not read parameters from configuration file ")); } try { -- cgit 1.2.3-korg