diff options
author | gjoranv <gv@oath.com> | 2018-11-07 21:06:56 +0100 |
---|---|---|
committer | gjoranv <gv@oath.com> | 2019-01-21 15:09:26 +0100 |
commit | 01705ccfef4a08cebd98a4eb4251e7032b1eac98 (patch) | |
tree | 935991a6ae245248f2115ced47ca7a9ce70f520d /bundle-plugin-test/src/main/java/com/yahoo/test/SimpleSearcher2.java | |
parent | 40b2f22a2e0920dea7bfd456f07aab29b2ac745f (diff) |
Improve integration test
- Add nested classes
- Put back commented assert and remove stale comment
+ Add comment to replace jrt.jar. It's compile scoped and had a
much smaller dependency tree when it was added compared to now.
Now, it adds loads of Import-Packages, increasing the risk of
invalidating the integration test that verifies that the
required imports have been added to the manifest.
Diffstat (limited to 'bundle-plugin-test/src/main/java/com/yahoo/test/SimpleSearcher2.java')
-rw-r--r-- | bundle-plugin-test/src/main/java/com/yahoo/test/SimpleSearcher2.java | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/bundle-plugin-test/src/main/java/com/yahoo/test/SimpleSearcher2.java b/bundle-plugin-test/src/main/java/com/yahoo/test/SimpleSearcher2.java index c92f029ade6..8a852886254 100644 --- a/bundle-plugin-test/src/main/java/com/yahoo/test/SimpleSearcher2.java +++ b/bundle-plugin-test/src/main/java/com/yahoo/test/SimpleSearcher2.java @@ -3,10 +3,26 @@ package com.yahoo.test; /** - * A searcher adding a new hit. - * TODO: add annotation check - * @author Joe Developer + * Test class for integration tests. Used to verify that nested classes are visited. + * + * Do not replace the fully qualified class names with imports! */ public class SimpleSearcher2 extends SimpleSearcher { public void dummy() {} + + private class InnerClassProcessor extends com.yahoo.processing.Processor { + @Override + public com.yahoo.processing.Response process(com.yahoo.processing.Request request, + com.yahoo.processing.execution.Execution execution) { + return null; + } + } + + private class NestedStaticClass { + private com.yahoo.metrics.simple.Counter counter; + + @com.google.inject.Inject + public NestedStaticClass() { } + } + } |