[jbosstools-issues] [JBoss JIRA] (JBIDE-10494) Unit test weirdness in ServerBeanLoader for EAP6
Rob Stryker (Created) (JIRA)
jira-events at lists.jboss.org
Thu Dec 15 13:15:10 EST 2011
Unit test weirdness in ServerBeanLoader for EAP6
------------------------------------------------
Key: JBIDE-10494
URL: https://issues.jboss.org/browse/JBIDE-10494
Project: Tools (JBoss Tools)
Issue Type: Task
Components: JBossAS/Servers
Affects Versions: 3.3.0.Beta1
Reporter: Rob Stryker
Assignee: Snjezana Peco
Fix For: 3.3.0.Beta1
I added some unit tests when working on JBIDE-9724, and discovered some unit test weirdness when dealing with EAP 6.0. Basically, it cannot confirm the full version. It comes back with 7.1.
If the task was simple, I would simply fix the code (as I did with the EAP6 condition class), but in this case, the logic to discover the version is hard-coded in the ServerBeanLoader with no reference to a ServerType, and so no way to customize the logic per server type. If it were entirely my code, I'd go ahead and change it, but I know others use this, and wanted to solicit input.
If you look at ServerBeanLoaderTest.testEAP60, you will see a failure inside a try/catch statement. The question here ultimately is what should ServerBeanLoader.getFullServerVersion reply when presented with an EAP6 installation: the EAP version? Or the AS version?
--
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
More information about the jbosstools-issues
mailing list