/*-
* ============LICENSE_START=======================================================
* Copyright (C) 2016-2018 Ericsson. All rights reserved.
- * Modifications Copyright (C) 2020 Bell Canada. All rights reserved.
+ * Modifications Copyright (C) 2020-2021 Bell Canada. 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.
package org.onap.policy.apex.testsuites.performance.benchmark.eventgenerator;
+import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
@Test
public void testEventGeneratorOutfileBad() {
EventGeneratorParameters pars = new EventGeneratorParameters();
- pars.setOutFile("/I/Dont/Exist*");
+ pars.setOutFile("/I/Dont/Exist\0");
EventGenerator generator = new EventGenerator(pars);
assertNotNull(generator);
final String outString = outContent.toString();
System.setOut(stdout);
- assertTrue(outString.contains("could not output statistics to file \"/I/Dont/Exist*\""));
+ assertThat(outString).contains("could not output statistics to file \"/I/Dont/Exist\0\"");
}
}