diff options
author | Parshad Patel <pars.patel@samsung.com> | 2018-11-30 20:15:11 +0900 |
---|---|---|
committer | Parshad Patel <pars.patel@samsung.com> | 2018-12-03 10:43:05 +0900 |
commit | 752af31947114d88a2994ee6435c94ed9643f76a (patch) | |
tree | 600d6530ca3a9b99a4cbb5c142835cbdda12e0a8 /auth/cli-codegen/src | |
parent | fb7c89ebe2e682170b09275a5e531d0a49d70ada (diff) |
Rename test classes in apex-pdp
Make test classes name consitence by adding 'Support' or 'Dummy' at start of util or dummy type of test classes
Issue-ID: POLICY-1263
Change-Id: I1dc1a7f174660a90664ebdcff2ea79ed30aa465c
Signed-off-by: Parshad Patel <pars.patel@samsung.com>
Diffstat (limited to 'auth/cli-codegen/src')
-rw-r--r-- | auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/CodeGeneratorCliEditorTest.java (renamed from auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/CliCodegenTest.java) | 6 | ||||
-rw-r--r-- | auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/DummyStErrorListener.java (renamed from auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/StErrorListener.java) | 2 | ||||
-rw-r--r-- | auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/SupportGenerationTester.java (renamed from auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/GenerationTest.java) | 6 | ||||
-rw-r--r-- | auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/SupportKeyInfoGetter.java (renamed from auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/KeyInfoGetter.java) | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/CliCodegenTest.java b/auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/CodeGeneratorCliEditorTest.java index 5433f2d15..e1bf3b298 100644 --- a/auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/CliCodegenTest.java +++ b/auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/CodeGeneratorCliEditorTest.java @@ -59,9 +59,9 @@ import org.stringtemplate.v4.ST; /** * Test CLI code generation. */ -public class CliCodegenTest { +public class CodeGeneratorCliEditorTest { - private KeyInfoGetter kig; + private SupportKeyInfoGetter kig; private File outFile = null; @Test @@ -96,7 +96,7 @@ public class CliCodegenTest { * @throws IOException on generation exceptions */ private int generateCli(final CodeGeneratorCliEditor codeGen, final AxPolicyModel policyModel) throws IOException { - kig = new KeyInfoGetter(policyModel); + kig = new SupportKeyInfoGetter(policyModel); // Order is important. 0: model, 1: context schemas, 2: tasks, 3: events, 4: ContextAlbums, 5: Policies // 0: model diff --git a/auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/StErrorListener.java b/auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/DummyStErrorListener.java index 28e32bca6..33387accc 100644 --- a/auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/StErrorListener.java +++ b/auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/DummyStErrorListener.java @@ -28,7 +28,7 @@ import org.stringtemplate.v4.misc.STMessage; * * @author Sven van der Meer (sven.van.der.meer@ericsson.com) */ -public class StErrorListener implements STErrorListener { +public class DummyStErrorListener implements STErrorListener { /** Counts errors of the listener. */ private int errorCount; diff --git a/auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/GenerationTest.java b/auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/SupportGenerationTester.java index 3b79e805c..9d91f8f68 100644 --- a/auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/GenerationTest.java +++ b/auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/SupportGenerationTester.java @@ -39,7 +39,7 @@ import org.stringtemplate.v4.STGroupFile; * * @author Sven van der Meer (sven.van.der.meer@ericsson.com) */ -public class GenerationTest { +public class SupportGenerationTester { /** * Get the chunks for the codegen. @@ -90,7 +90,7 @@ public class GenerationTest { /** Test STG load. */ @Test public void testGenerationLoad() { - final StErrorListener errListener = new StErrorListener(); + final DummyStErrorListener errListener = new DummyStErrorListener(); final STGroupFile stg = new STGroupFile(CodeGeneratorCliEditor.STG_FILE); stg.setListener(errListener); @@ -101,7 +101,7 @@ public class GenerationTest { /** Test STG chunks. */ @Test public void testGenerationChunks() { - final StErrorListener errListener = new StErrorListener(); + final DummyStErrorListener errListener = new DummyStErrorListener(); final STGroupFile stg = new STGroupFile(CodeGeneratorCliEditor.STG_FILE); stg.setListener(errListener); diff --git a/auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/KeyInfoGetter.java b/auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/SupportKeyInfoGetter.java index 97d05679c..5547aa4f7 100644 --- a/auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/KeyInfoGetter.java +++ b/auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/SupportKeyInfoGetter.java @@ -31,7 +31,7 @@ import org.onap.policy.apex.model.policymodel.concepts.AxPolicyModel; * @author John Keeney (john.keeney@ericsson.com) */ -public class KeyInfoGetter { +public class SupportKeyInfoGetter { /** The policy model for the getters. */ private final AxPolicyModel model; @@ -41,7 +41,7 @@ public class KeyInfoGetter { * * @param model the policy model to use */ - public KeyInfoGetter(final AxPolicyModel model) { + public SupportKeyInfoGetter(final AxPolicyModel model) { this.model = model; } |