diff options
author | Jim Hahn <jrh3@att.com> | 2019-07-10 16:19:44 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2019-07-10 16:19:44 -0400 |
commit | 1eeeb4672400ebe9d3fbd0703e3848cbf5dbfab9 (patch) | |
tree | 1744e6d74f92a72e21c1377aa72ee1b7f7f1d089 /feature-test-transaction/src/test/java | |
parent | a593d0931f9a5785572bb52c5dfae32faa5d8116 (diff) |
Fix checkstyle issues in feature-test-transaction
Also deleted the checkstyle suppression file.
Change-Id: If3eaadfbbd9b6a7942d514af78018b987d94fe4c
Issue-ID: POLICY-1906
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'feature-test-transaction/src/test/java')
2 files changed, 17 insertions, 17 deletions
diff --git a/feature-test-transaction/src/test/java/org/onap/policy/drools/testtransaction/TestTransactionAdditionalTest.java b/feature-test-transaction/src/test/java/org/onap/policy/drools/testtransaction/TestTransactionAdditionalTest.java index 465b7aa0..23fdc215 100644 --- a/feature-test-transaction/src/test/java/org/onap/policy/drools/testtransaction/TestTransactionAdditionalTest.java +++ b/feature-test-transaction/src/test/java/org/onap/policy/drools/testtransaction/TestTransactionAdditionalTest.java @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * feature-test-transaction * ================================================================================ - * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2017-2019 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. @@ -67,10 +67,10 @@ public class TestTransactionAdditionalTest { private long doSleepMs; private DroolsController drools; private PolicyContainer container; - private Map<String, TTControllerTask> name2task; - private TTControllerTask task; - private TTControllerTask task2; - private TTControllerTask task3; + private Map<String, TtControllerTask> name2task; + private TtControllerTask task; + private TtControllerTask task2; + private TtControllerTask task3; private TestTransTImplTester impl; /** @@ -87,8 +87,8 @@ public class TestTransactionAdditionalTest { doSleepMs = -1; drools = mock(DroolsController.class); container = mock(PolicyContainer.class); - task2 = mock(TTControllerTask.class); - task3 = mock(TTControllerTask.class); + task2 = mock(TtControllerTask.class); + task3 = mock(TtControllerTask.class); name2task = new TreeMap<>(); when(drools.getSessionNames()).thenReturn(sessions); @@ -119,12 +119,12 @@ public class TestTransactionAdditionalTest { @Test public void testTestTransactionImpl() { - assertNotNull(TTImpl.manager); + assertNotNull(TtImpl.manager); } @Test public void testTestTransactionImplRegister_testTestTransactionImplUnregister() { - task = mock(TTControllerTask.class); + task = mock(TtControllerTask.class); when(task.isAlive()).thenReturn(true); name2task.put(CONTROLLER1, task); @@ -163,7 +163,7 @@ public class TestTransactionAdditionalTest { @Test public void testTestTransactionControllerTaskFactory() throws Exception { - task = new TTControllerTask(controller) { + task = new TtControllerTask(controller) { @Override protected Thread makeThread(Runnable action) { return theThread; @@ -363,10 +363,10 @@ public class TestTransactionAdditionalTest { /** * TestTransaction with overridden methods. */ - private class TestTransTImplTester extends TTImpl { + private class TestTransTImplTester extends TtImpl { @Override - protected TTControllerTask makeControllerTask(PolicyController controller) { + protected TtControllerTask makeControllerTask(PolicyController controller) { return name2task.get(controller.getName()); } } @@ -374,7 +374,7 @@ public class TestTransactionAdditionalTest { /** * Controller task with overridden methods. */ - private class TestTransControllerTaskTester extends TTControllerTask { + private class TestTransControllerTaskTester extends TtControllerTask { private int sleepCount = MAX_SLEEP_COUNT; public TestTransControllerTaskTester(PolicyController controller) { diff --git a/feature-test-transaction/src/test/java/org/onap/policy/drools/testtransaction/TestTransactionTest.java b/feature-test-transaction/src/test/java/org/onap/policy/drools/testtransaction/TestTransactionTest.java index 40b1ff9d..e0779ba0 100644 --- a/feature-test-transaction/src/test/java/org/onap/policy/drools/testtransaction/TestTransactionTest.java +++ b/feature-test-transaction/src/test/java/org/onap/policy/drools/testtransaction/TestTransactionTest.java @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * feature-test-transaction * ================================================================================ - * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2017-2019 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. @@ -80,10 +80,10 @@ public class TestTransactionTest { CountDownLatch latch = new CountDownLatch(1); // use our own impl so we can decrement the latch when run() completes - TTImpl impl = new TTImpl() { + TtImpl impl = new TtImpl() { @Override - protected TTControllerTask makeControllerTask(PolicyController controller) { - return new TTControllerTask(controller) { + protected TtControllerTask makeControllerTask(PolicyController controller) { + return new TtControllerTask(controller) { @Override public void run() { super.run(); |