[
https://issues.jboss.org/browse/JBIDE-11782?page=com.atlassian.jira.plugi...
]
Viacheslav Kabanovich commented on JBIDE-11782:
-----------------------------------------------
Could it be that test methods are executed not in the same order, as they are declared in
a test class? Or, could it be that on your computer, two tests run parallel on two
processors? I can see no other explanations.
WebValidationXMLTest has these two methods (the rest do not matter), in this order:
1. testServletClassWithIdenticalComments()
2. testPathsInLoginConfig()
The first one takes the initial web.xml that does not include neither
"/loginServlet2" nor "dk.jyskebank.core.jsf.login.FacesLoginServlet",
which are mentioned in markers found at the failure.
But both these references are present in files web.xml.loginconfigtest1 and
web.xml.loginconfigtest2, which are used to replace content of web.xml.
Yes, if I change the order of these two tests, testServletClassWithIdenticalComments()
fails. I will modify testPathsInLoginConfig() to make the result independent on the order
of executing.
org.jboss.tools.jst.web.test.WebXMLValidationTest.testServletClassWithIdenticalComments
failure
-----------------------------------------------------------------------------------------------
Key: JBIDE-11782
URL:
https://issues.jboss.org/browse/JBIDE-11782
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: common/jst/core
Affects Versions: 3.3.0.CR1
Reporter: Alexey Kazakov
Assignee: Viacheslav Kabanovich
Fix For: 3.3.0.CR1
{code}
-------------------------------------------------------------------------------
Test set: org.jboss.tools.jst.web.test.JstWebAllTests
-------------------------------------------------------------------------------
Tests run: 21, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 20.058 sec <<<
FAILURE!
testMetaModelLoading(org.jboss.tools.jst.web.test.WebMetaModelTest) Time elapsed: 0.421
sectestImplementationMapping(org.jboss.tools.jst.web.test.WebMetaModelTest) Time elapsed:
0.079 sectestActionHandlersMapping(org.jboss.tools.jst.web.test.WebMetaModelTest) Time
elapsed: 0.01 sectestEntityImplementations(org.jboss.tools.jst.web.test.WebMetaModelTest)
Time elapsed: 0.039 sectestEntityChildren(org.jboss.tools.jst.web.test.WebMetaModelTest)
Time elapsed: 0 sectestActionHandlers(org.jboss.tools.jst.web.test.WebMetaModelTest) Time
elapsed: 0.147 sectestEntityIcons(org.jboss.tools.jst.web.test.WebMetaModelTest) Time
elapsed: 0.012 sectestActionIcons(org.jboss.tools.jst.web.test.WebMetaModelTest) Time
elapsed: 0.015 sectestPreferencesModel(org.jboss.tools.jst.web.test.WebMetaModelTest)
Time elapsed: 0.151
sectestCreatingModelObjects(org.jboss.tools.jst.web.test.WebMetaModelTest) Time elapsed:
0.141 sectestObjectLoaders(org.jboss.tools.jst.web.test.WebMetaModelTest) Time elapsed:
0.301
sectestJstComponentRelatedFunctionality(org.jboss.tools.jst.web.test.WebContentAssistProviderTest)
Time elapsed: 0 sectestGetWebRootFolders(org.jboss.tools.jst.web.test.WebUtilTest) Time
elapsed: 0.003 sectestServlets(org.jboss.tools.jst.web.test.WebAppHelperTest) Time
elapsed: 0.004 sectestFilters(org.jboss.tools.jst.web.test.WebAppHelperTest) Time
elapsed: 0.001
sectestPathsInLoginConfig(org.jboss.tools.jst.web.test.WebXMLValidationTest) Time
elapsed: 3.251 sectestServletMapping(org.jboss.tools.jst.web.test.WebXMLValidationTest)
Time elapsed: 0.52
sectestServletClassWithIdenticalComments(org.jboss.tools.jst.web.test.WebXMLValidationTest)
Time elapsed: 0.536 sec <<< FAILURE!
junit.framework.AssertionFailedError: Marker matches the 'servlet-class references to
non-existent class "javax.faces.webapp.FacesServlet111"' pattern wasn't
found. Here is a list of found markers in /testWebProject/WebContent/WEB-INF/web.xml : [
0) line="18"; type="org.jboss.tools.jst.web.webxmlproblem";
message="form-login-page references to "/loginServlet2" that does not exist
in web content";
1) line="9"; type="org.jboss.tools.jst.web.webxmlproblem";
message="servlet-class references to non-existent class
"dk.jyskebank.core.jsf.login.FacesLoginServlet"";
]
at junit.framework.Assert.fail(Assert.java:47)
at
org.jboss.tools.tests.AbstractResourceMarkerTest.assertMarkerIsCreated(AbstractResourceMarkerTest.java:185)
at
org.jboss.tools.tests.AbstractResourceMarkerTest.assertMarkerIsCreated(AbstractResourceMarkerTest.java:387)
at
org.jboss.tools.tests.AbstractResourceMarkerTest.assertMarkerIsCreated(AbstractResourceMarkerTest.java:383)
at
org.jboss.tools.jst.web.test.WebXMLValidationTest.testServletClassWithIdenticalComments(WebXMLValidationTest.java:56)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:243)
at junit.framework.TestSuite.run(TestSuite.java:238)
at junit.framework.TestSuite.runTest(TestSuite.java:243)
at junit.framework.TestSuite.run(TestSuite.java:238)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at junit.framework.TestSuite.runTest(TestSuite.java:243)
at junit.framework.TestSuite.run(TestSuite.java:238)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
at
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
at
org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
at
org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:123)
at
org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:84)
at
org.eclipse.tycho.surefire.osgibooter.AbstractUITestApplication$1.run(AbstractUITestApplication.java:35)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3563)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3212)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
at
org.eclipse.tycho.surefire.osgibooter.UITestApplication.runApplication(UITestApplication.java:31)
at
org.eclipse.tycho.surefire.osgibooter.AbstractUITestApplication.run(AbstractUITestApplication.java:114)
at
org.eclipse.tycho.surefire.osgibooter.UITestApplication.start(UITestApplication.java:37)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
testValidationInDerived(org.jboss.tools.jst.web.test.WebXMLValidationTest) Time elapsed:
2.613 sectestGetWebRootFolder(org.jboss.tools.jst.web.test.WebUtil2Test) Time elapsed:
0.001 sectestFileFromProject(org.jboss.tools.jst.web.test.WebUtil2Test) Time elapsed:
0.007 sec
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira