Finally, I got it to pas the tests. I added the following to  the
dependencies in pom.xml:
    <dependency>
          <groupId>org.apache.httpcomponents</groupId>
          <artifactId>httpclient</artifactId>
      <version>4.5.1</version>
      <scope>test</scope>
    </dependency>
    <dependency>
         <groupId> org.apache.httpcomponents </groupId>
    <artifactId> httpcore </artifactId>
      <version>4.4.6</version>
      <scope>test</scope>
    </dependency>

However, it still won't accept the "@Override" for "getID()". I don't
know if this is a problem.

Simon

On Tue, Jun 6, 2017 at 3:22 PM, Simon M <simon.d.matth...@gmail.com> wrote:
> I should also note, just in case it is related that it would not build
> unless I commented out the "@Override" statement for the "getID()" method.
> Could this be related?
>
> Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile)
> on project bluepearl: Compilation failure
> [ERROR]
> /home/simon/Plugins/BluePearlParser/src/main/java/hudson/plugins/bluepearl/RunBluePearlParser.java:[40,5]
> method does not override or implement a method from a supertype
>
> Line 40 is the @Override statement.
>
> Simon
>
> On Monday, June 5, 2017 at 5:45:51 PM UTC-7, Simon M wrote:
>>
>> I am in the process of writing a custom parser to work with the Warnings
>> plugin.
>>
>> For now, I have taken the second route described in the documentation:
>> "Writing a new standalone parser that will be deployed in a new plug-in". I
>> have written the appropriate code to extend RegexpLineParser. I may come
>> back to that later, but for now, I am working with extending
>> RegexpLineParser.
>>
>> This now compiles, but fails during test. I have not defined any tests: I
>> assume it's a default test that is run. Note that this is a different
>> approach to what I was trying to do last week.
>>
>> I would appreciate advice on what I need to do to resolve this.
>>
>>
>> The message is:
>> Running InjectedTest
>> Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 11.704 sec
>> <<< FAILURE! - in InjectedTest
>>
>> org.jvnet.hudson.test.JellyTestSuiteBuilder$JellyTestSuite(org.jvnet.hudson.test.junit.FailedTest)
>> Time elapsed: 0.016 sec  <<< ERROR!
>> java.lang.NoClassDefFoundError: org/apache/http/config/Lookup
>>     at
>> com.gargoylesoftware.htmlunit.WebClient.createWebConnection(WebClient.java:1956)
>>     at com.gargoylesoftware.htmlunit.WebClient.init(WebClient.java:236)
>>     at com.gargoylesoftware.htmlunit.WebClient.<init>(WebClient.java:211)
>>     at
>> org.jvnet.hudson.test.HudsonTestCase$WebClient.<init>(HudsonTestCase.java:1486)
>>     at
>> org.jvnet.hudson.test.HudsonTestCase.createWebClient(HudsonTestCase.java:1473)
>>     at
>> org.jvnet.hudson.test.HudsonTestCase.executeOnServer(HudsonTestCase.java:1458)
>>     at
>> org.jvnet.hudson.test.JellyTestSuiteBuilder$JellyTestSuite.runGroupedTests(JellyTestSuiteBuilder.java:157)
>>     at org.jvnet.hudson.test.junit.GroupedTest.run(GroupedTest.java:51)
>>     at junit.framework.TestSuite.runTest(TestSuite.java:252)
>>     at junit.framework.TestSuite.run(TestSuite.java:247)
>>     at
>> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
>>     at
>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>     at
>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>     at
>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>     at
>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>     at
>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>     at
>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>     at
>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>> Caused by: java.lang.ClassNotFoundException: org.apache.http.config.Lookup
>>     at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>>     at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>>     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
>>     at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>>     at
>> com.gargoylesoftware.htmlunit.WebClient.createWebConnection(WebClient.java:1956)
>>     at com.gargoylesoftware.htmlunit.WebClient.init(WebClient.java:236)
>>     at com.gargoylesoftware.htmlunit.WebClient.<init>(WebClient.java:211)
>>     at
>> org.jvnet.hudson.test.HudsonTestCase$WebClient.<init>(HudsonTestCase.java:1486)
>>     at
>> org.jvnet.hudson.test.HudsonTestCase.createWebClient(HudsonTestCase.java:1473)
>>     at
>> org.jvnet.hudson.test.HudsonTestCase.executeOnServer(HudsonTestCase.java:1458)
>>     at
>> org.jvnet.hudson.test.JellyTestSuiteBuilder$JellyTestSuite.runGroupedTests(JellyTestSuiteBuilder.java:157)
>>     at org.jvnet.hudson.test.junit.GroupedTest.run(GroupedTest.java:51)
>>     at junit.framework.TestSuite.runTest(TestSuite.java:252)
>>     at junit.framework.TestSuite.run(TestSuite.java:247)
>>     at
>> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
>>     at
>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
>>     at
>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
>>     at
>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>     at
>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
>>     at
>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>     at
>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>     at
>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>
>>
>> Results :
>>
>> Tests in error:
>>   FailedTest.org.jvnet.hudson.test.JellyTestSuiteBuilder$JellyTestSuite ยป
>> NoClassDefFound
>>
>> Simon
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/316783f3-2d79-4501-b2bb-5b3eb0f1e9b6%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAEUYfyPZxZLrT345oV2r-KWhW%2B-h5DpastzZsE3aFL7z-6uwZg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to