Make test classes name consistence under auth, model, plugins, testsuits, tools projects
Issue-ID: POLICY-1263
Change-Id: I49ec9a9f5b457d6381e693de2c04ec0268ad1b02
Signed-off-by: Parshad Patel <pars.patel@samsung.com>
*
* @author Sven van der Meer (sven.van.der.meer@ericsson.com)
*/
-public class TestGeneration {
+public class GenerationTest {
/**
* Get the chunks for the codegen.
* Test model exceptions.
* @author Liam Fallon (liam.fallon@ericsson.com)
*/
-public class TestExceptions {
+public class ExceptionsTest {
@Test
public void test() {
*
* @author Liam Fallon (liam.fallon@ericsson.com)
*/
-public class TestLogic {
+public class LogicTest {
@Test
public void testLogic() {
import org.onap.policy.apex.model.policymodel.concepts.AxState;
import org.onap.policy.apex.model.policymodel.concepts.AxStateOutput;
import org.onap.policy.apex.model.policymodel.concepts.AxStateTree;
-import org.onap.policy.apex.model.policymodel.handling.TestApexPolicyModelCreator;
+import org.onap.policy.apex.model.policymodel.handling.ApexPolicyModelCreatorTest;
/**
* Test apex policies.
*
* @author Liam Fallon (liam.fallon@ericsson.com)
*/
-public class TestPolicies {
+public class PoliciesTest {
@Test
public void testPolicies() {
assertEquals("PolicyName:0.0.1", policy.getKeys().get(0).getId());
- policy = new TestApexPolicyModelCreator().getModel().getPolicies().get("policy");
+ policy = new ApexPolicyModelCreatorTest().getModel().getPolicies().get("policy");
AxValidationResult result = new AxValidationResult();
result = policy.validate(result);
import org.onap.policy.apex.model.policymodel.concepts.AxStateTaskReference;
import org.onap.policy.apex.model.policymodel.concepts.AxTaskSelectionLogic;
import org.onap.policy.apex.model.policymodel.concepts.AxTasks;
-import org.onap.policy.apex.model.policymodel.handling.TestApexPolicyModelCreator;
+import org.onap.policy.apex.model.policymodel.handling.ApexPolicyModelCreatorTest;
/**
* Test policy models.
*
* @author Liam Fallon (liam.fallon@ericsson.com)
*/
-public class TestPolicyModel {
+public class PolicyModelTest {
@Test
public void testPolicyModel() {
new AxKeyInformation(keyInfoKey), new AxEvents(eventsKey), new AxContextAlbums(albumsKey),
new AxTasks(tasksKey), new AxPolicies(policiesKey))));
- model = new TestApexPolicyModelCreator().getModel();
+ model = new ApexPolicyModelCreatorTest().getModel();
AxValidationResult result = new AxValidationResult();
result = model.validate(result);
*
* @author Liam Fallon (liam.fallon@ericsson.com)
*/
-public class TestStateOutput {
+public class StateOutputTest {
@Test
public void testStateOutput() {
*
* @author Liam Fallon (liam.fallon@ericsson.com)
*/
-public class TestStateTaskReference {
+public class StateTaskReferenceTest {
@Test
public void testStateTaskReference() {
*
* @author Liam Fallon (liam.fallon@ericsson.com)
*/
-public class TestState {
+public class StateTest {
@Test
public void testState() {
*
* @author Liam Fallon (liam.fallon@ericsson.com)
*/
-public class TestTaskParameter {
+public class TaskParameterTest {
@Test
public void testTaskParameter() {
*
* @author Liam Fallon (liam.fallon@ericsson.com)
*/
-public class TestTasks {
+public class TasksTest {
@Test
public void testTasks() {
*
* @author Liam Fallon (liam.fallon@ericsson.com)
*/
-public class TestApexPolicyModelCreator implements TestApexModelCreator<AxPolicyModel> {
+public class ApexPolicyModelCreatorTest implements TestApexModelCreator<AxPolicyModel> {
@Override
public AxPolicyModel getModel() {
import org.onap.policy.apex.model.basicmodel.test.TestApexModel;
import org.onap.policy.apex.model.policymodel.concepts.AxPolicyModel;
-public class TestApexPolicyModel {
+public class ApexPolicyModelTest {
private Connection connection;
TestApexModel<AxPolicyModel> testApexModel;
Class.forName("org.apache.derby.jdbc.EmbeddedDriver").newInstance();
connection = DriverManager.getConnection("jdbc:derby:memory:apex_test;create=true");
- testApexModel = new TestApexModel<AxPolicyModel>(AxPolicyModel.class, new TestApexPolicyModelCreator());
+ testApexModel = new TestApexModel<AxPolicyModel>(AxPolicyModel.class, new ApexPolicyModelCreatorTest());
}
@After
import org.onap.policy.apex.model.policymodel.handling.PolicyAnalyser;
import org.onap.policy.apex.model.policymodel.handling.PolicyAnalysisResult;
-public class TestPolicyAnalyser {
+public class PolicyAnalyserTest {
@Test
public void test() {
- final AxPolicyModel apexModel = new TestApexPolicyModelCreator().getModel();
+ final AxPolicyModel apexModel = new ApexPolicyModelCreatorTest().getModel();
final PolicyAnalyser policyAnalyser = new PolicyAnalyser();
final PolicyAnalysisResult analysisResult = policyAnalyser.analyse(apexModel);
*
* @author Liam Fallon (liam.fallon@ericsson.com)
*/
-public class TestPolicyLogicReader {
+public class PolicyLogicReaderTest {
@Test
public void test() {
import org.onap.policy.apex.model.policymodel.handling.PolicyModelComparer;
import org.onap.policy.apex.model.utilities.TextFileUtils;
-public class TestPolicyModelComparer {
+public class PolicyModelComparerTest {
@Test
public void testPolicyComparer() throws IOException {
- final AxPolicyModel leftApexModel = new TestApexPolicyModelCreator().getModel();
+ final AxPolicyModel leftApexModel = new ApexPolicyModelCreatorTest().getModel();
final AxPolicyModel rightApexModel = new AxPolicyModel(leftApexModel);
PolicyModelComparer policyModelComparer = new PolicyModelComparer(leftApexModel, rightApexModel);
*
* @author Liam Fallon (liam.fallon@ericsson.com)
*/
-public class TestPolicyModelMerger {
+public class PolicyModelMergerTest {
@Test
public void testPolicyModelMerger() {
- final AxPolicyModel leftPolicyModel = new TestApexPolicyModelCreator().getModel();
- AxPolicyModel rightPolicyModel = new TestApexPolicyModelCreator().getModel();
+ final AxPolicyModel leftPolicyModel = new ApexPolicyModelCreatorTest().getModel();
+ AxPolicyModel rightPolicyModel = new ApexPolicyModelCreatorTest().getModel();
try {
final AxPolicyModel mergedPolicyModel = PolicyModelMerger.getMergedPolicyModel(leftPolicyModel,
fail("test should not throw an exception");
}
- rightPolicyModel = new TestApexPolicyModelCreator().getAnotherModel();
+ rightPolicyModel = new ApexPolicyModelCreatorTest().getAnotherModel();
try {
final AxPolicyModel mergedPolicyModel = PolicyModelMerger.getMergedPolicyModel(leftPolicyModel,
rightPolicyModel, true);
import org.onap.policy.apex.model.policymodel.concepts.AxPolicyModel;
import org.onap.policy.apex.model.policymodel.handling.PolicyModelSplitter;
-public class TestPolicyModelSplitter {
+public class PolicyModelSplitterTest {
@Test
public void test() {
- final AxPolicyModel apexModel = new TestApexPolicyModelCreator().getModel();
+ final AxPolicyModel apexModel = new ApexPolicyModelCreatorTest().getModel();
final Set<AxArtifactKey> requiredPolicySet = new TreeSet<AxArtifactKey>();
requiredPolicySet.add(new AxArtifactKey("policy", "0.0.1"));
* Test key comparisons.
* @author Liam Fallon (liam.fallon@ericsson.com)
*/
-public class TestKeyComparer {
+public class KeyComparerTest {
@Test
public void test() {
*
* @author Liam Fallon (liam.fallon@ericsson.com)
*/
-public class TestKeyedMapComparer {
+public class KeyedMapComparerTest {
@Test
public void test() {
* @author Liam Fallon (liam.fallon@ericsson.com)
* @version
*/
-public class TestAvroSchemaAai {
+public class AvroSchemaAaiTest {
private final AxKey testKey = new AxArtifactKey("AvroTest", "0.0.1");
private AxContextSchemas schemas;
private String aaiInventoryResponseSchema;
* @author Liam Fallon (liam.fallon@ericsson.com)
* @version
*/
-public class TestAvroSchemaArray {
+public class AvroSchemaArrayTest {
private final AxKey testKey = new AxArtifactKey("AvroTest", "0.0.1");
private AxContextSchemas schemas;
private String longArraySchema;
* @author Liam Fallon (liam.fallon@ericsson.com)
* @version
*/
-public class TestAvroSchemaEnum {
+public class AvroSchemaEnumTest {
private final AxKey testKey = new AxArtifactKey("AvroTest", "0.0.1");
private AxContextSchemas schemas;
private String enumSchema;
* @author Liam Fallon (liam.fallon@ericsson.com)
* @version
*/
-public class TestAvroSchemaFixed {
+public class AvroSchemaFixedTest {
private final AxKey testKey = new AxArtifactKey("AvroTest", "0.0.1");
private AxContextSchemas schemas;
private String fixedSchema;
* @author Liam Fallon (liam.fallon@ericsson.com)
* @version
*/
-public class TestAvroSchemaHelperBadSchemas {
+public class AvroSchemaHelperBadSchemasTest {
private final AxKey testKey = new AxArtifactKey("AvroTest", "0.0.1");
private AxContextSchemas schemas;
* @author Liam Fallon (liam.fallon@ericsson.com)
* @version
*/
-public class TestAvroSchemaHelperMarshal {
+public class AvroSchemaHelperMarshalTest {
private final AxKey testKey = new AxArtifactKey("AvroTest", "0.0.1");
private AxContextSchemas schemas;
* @author Liam Fallon (liam.fallon@ericsson.com)
* @version
*/
-public class TestAvroSchemaHelperUnmarshal {
+public class AvroSchemaHelperUnmarshalTest {
private final AxKey testKey = new AxArtifactKey("AvroTest", "0.0.1");
private AxContextSchemas schemas;
* @author Liam Fallon (liam.fallon@ericsson.com)
* @version
*/
-public class TestAvroSchemaMap {
+public class AvroSchemaMapTest {
private final AxKey testKey = new AxArtifactKey("AvroTest", "0.0.1");
private AxContextSchemas schemas;
private String longMapSchema;
* @author Liam Fallon (liam.fallon@ericsson.com)
* @version
*/
-public class TestAvroSchemaRecord {
+public class AvroSchemaRecordTest {
private final AxKey testKey = new AxArtifactKey("AvroTest", "0.0.1");
private AxContextSchemas schemas;
private String recordSchema;
* @author Liam Fallon (liam.fallon@ericsson.com)
* @version
*/
-public class TestAvroSchemaUnion {
+public class AvroSchemaUnionTest {
private final AxKey testKey = new AxArtifactKey("AvroTest", "0.0.1");
private AxContextSchemas schemas;
private String uinionSchema;
*
* @author Liam Fallon (liam.fallon@ericsson.com)
*/
-public class TestHealthCheckSchema {
+public class HealthCheckSchemaTest {
private final AxKey testKey = new AxArtifactKey("AvroTest", "0.0.1");
private AxContextSchemas schemas;
private String healthCheckSchema;
* The Class TestRestRequestorEndpoint.
*/
@Path("/apex")
-public class TestRestRequestorEndpoint {
+public class RestRequestorEndpointTest {
private static Object counterLock = new Object();
private static int postMessagesReceived = 0;
/**
* The Class TestRestRequestor.
*/
-public class TestRestRequestor {
+public class RestRequestorTest {
private static final String BASE_URI = "http://localhost:32801/TestRESTRequestor";
private static HttpServer server;
*/
@BeforeClass
public static void setUp() throws Exception {
- final ResourceConfig rc = new ResourceConfig(TestRestRequestorEndpoint.class);
+ final ResourceConfig rc = new ResourceConfig(RestRequestorEndpointTest.class);
server = GrizzlyHttpServerFactory.createHttpServer(URI.create(BASE_URI), rc);
while (!server.isStarted()) {
*/
@Before
public void resetCounters() {
- TestRestRequestorEndpoint.resetCounters();
+ RestRequestorEndpointTest.resetCounters();
}
/**
*
* @author Liam Fallon (liam.fallon@ericsson.com)
*/
-public class TestXmlEventHandler {
- private static final XLogger logger = XLoggerFactory.getXLogger(TestXmlEventHandler.class);
+public class XmlEventHandlerTest {
+ private static final XLogger logger = XLoggerFactory.getXLogger(XmlEventHandlerTest.class);
/**
* Test XML to apex event.
/**
* The Class TestXmlTaggedEventConsumer.
*/
-public class TestXmlTaggedEventConsumer {
+public class XmlTaggedEventConsumerTest {
/**
* Test garbage text line.
/**
* The Class TestYamlEventProtocol.
*/
-public class TestYamlEventProtocol {
+public class YamlEventProtocolTest {
/**
* Register test events and schemas.
/**
* The Class TestYamlPluginStability.
*/
-public class TestYamlPluginStability {
+public class YamlPluginStabilityTest {
static AxEvent testEvent;
/**
/**
* The Class ApexEngineBenchmark.
*/
-public class ApexEngineBenchmark {
+public class ApexEngineBenchmarkTest {
// Logger for this class
- private static final XLogger LOGGER = XLoggerFactory.getXLogger(ApexEngineBenchmark.class);
+ private static final XLogger LOGGER = XLoggerFactory.getXLogger(ApexEngineBenchmarkTest.class);
private static final String TARGET = "apex";
private static final String SOURCE = "test";
throws Exception {
LOGGER.info("Running Test with Event count: {}, Instance count: {} and loop: {}", eventsCount, threads, loop);
- final TestApexEventListener apexEventListener = new TestApexEventListener();
+ final ApexEventListenerTest apexEventListener = new ApexEventListenerTest();
final ApexBaseBenchMarkTest apexBaseBenchMarkTest =
new ApexBaseBenchMarkTest(policyModel, threads, apexEventListener);
*
* @see TestApexEventEvent
*/
-public class TestApexEventListener implements ApexEventListener {
+public class ApexEventListenerTest implements ApexEventListener {
private static final String SENT_TIMESTAMP = "SentTimestamp";
- private static final XLogger LOGGER = XLoggerFactory.getXLogger(TestApexEventListener.class);
+ private static final XLogger LOGGER = XLoggerFactory.getXLogger(ApexEventListenerTest.class);
private static final String RECVD_TIMESTAMP = "RecvdTimestamp";
private Queue<ApexEvent> queue;
/**
* Instantiates a new test apex event listener.
*/
- public TestApexEventListener() {
+ public ApexEventListenerTest() {
this.queue = new ConcurrentLinkedQueue<ApexEvent>();
}
/**
* The Class TestMetrics.
*/
-public class TestMetrics {
+public class MetricsTest {
// Logger for this class
- private static final XLogger LOGGER = XLoggerFactory.getXLogger(TestMetrics.class);
+ private static final XLogger LOGGER = XLoggerFactory.getXLogger(MetricsTest.class);
private static final String HAZELCAST_CONFIG = "hazelcast.config";
private static final String JAVA_NET_PREFER_IPV4_STACK = "java.net.preferIPv4Stack";
*
* @author Sven van der Meer (sven.van.der.meer@ericsson.com)
*/
-public class TestCliParser {
+public class CliParserTest {
- private static final XLogger LOGGER = XLoggerFactory.getXLogger(TestCliParser.class);
+ private static final XLogger LOGGER = XLoggerFactory.getXLogger(CliParserTest.class);
/** Testapp version. */
@Test
*
* @author Sven van der Meer (sven.van.der.meer@ericsson.com)
*/
-public class ExampleAppVersion {
+public class ExampleAppVersionTest {
- private static final XLogger LOGGER = XLoggerFactory.getXLogger(ExampleAppVersion.class);
+ private static final XLogger LOGGER = XLoggerFactory.getXLogger(ExampleAppVersionTest.class);
/** Test example app version. */
@Test
*
* @author Sven van der Meer (sven.van.der.meer@ericsson.com)
*/
-public class ExampleCliParser {
+public class ExampleCliParserTest {
- private static final XLogger LOGGER = XLoggerFactory.getXLogger(ExampleCliParser.class);
+ private static final XLogger LOGGER = XLoggerFactory.getXLogger(ExampleCliParserTest.class);
/**
* Test example parser.