[jboss-jira] [JBoss JIRA] Resolved: (JBAS-4081) failing org.jboss.test.security.test.CustomSecurityManagerTestCase(custom-secmgr)

Anil Saldhana (JIRA) jira-events at lists.jboss.org
Mon Feb 26 13:15:35 EST 2007


     [ http://jira.jboss.com/jira/browse/JBAS-4081?page=all ]

Anil Saldhana resolved JBAS-4081.
---------------------------------

    Resolution: Done

I added an explicit method in the sub class CustomSecurityManagerTestCase that would just call the same method in the super class as follows:

------------------------------------------
  /**
    * JBAS-4801: JRockit wierdness:: Just calls the super class method
    */
   public void testGetCallerPrincipal() throws Exception
   {
      super.testGetCallerPrincipal();
   } 
-------------------------------------------

I am unsure why this is making a big difference in jrockit.  The other solution is to explicitly list all the test methods (but the test methods number is large in the base testcase).

After this,
--------------------
asaldhana~/jboss-4.2/testsuite>ant tests-custom-securitymgr
Unable to locate tools.jar. Expected to find it in c:\java\jrockit\lib\tools.jar

Buildfile: build.xml

tests-custom-securitymgr:
     [echo] creating custom-securitymgr config
     [echo] Overwriting config descriptors
     [copy] Warning: C:\cygwin\home\asaldhana\jboss-4.2\testsuite\output\resourc
es\test-configs\custom-securitymgr not found.
[server:start] Starting server "custom-securitymgr" with command:
[server:start] C:\Java\jrockit\bin\java -cp C:\cygwin\home\asaldhana\jboss-4.2\b
uild\output\jboss-4.2.0.CR1\bin\run.jar;c:\java\jrockit\lib\tools.jar   org.jbos
s.Main -c custom-securitymgr -b localhost
     [echo] Starting patternset=custom-secmgr.includes config=custom-secmgr
    [junit] Running org.jboss.test.security.test.CustomSecurityManagerTestCase
    [junit] Tests run: 26, Failures: 0, Errors: 0, Time elapsed: 10.719 sec
[server:stop] Shutting down server: custom-securitymgr

BUILD SUCCESSFUL
Total time: 38 seconds
asaldhana~/jboss-4.2/testsuite>
-------------------------------------------------------------

> failing org.jboss.test.security.test.CustomSecurityManagerTestCase(custom-secmgr)
> ---------------------------------------------------------------------------------
>
>                 Key: JBAS-4081
>                 URL: http://jira.jboss.com/jira/browse/JBAS-4081
>             Project: JBoss Application Server
>          Issue Type: Sub-task
>      Security Level: Public(Everyone can see) 
>          Components: Test Suite
>         Environment: Java Version 1.5.0_06 
> Java Vendor BEA Systems, Inc. 
> Java VM Name BEA JRockit(R) 
> Java VM Version R26.4.0-63-63688-1.5.0_06-20060626-2259-linux-ia32 
> Java VM Info  
> OS Name Linux 
> OS Version 2.6.9-42.0.2.ELsmp 
> OS Arch i386 
>            Reporter: Dimitris Andreadis
>         Assigned To: Anil Saldhana
>             Fix For: JBossAS-4.2.0.CR1
>
>
> testGetCallerPrincipal Failure Was able to call StatelessSession.echo
> junit.framework.AssertionFailedError: Was able to call StatelessSession.echo
> 	at org.jboss.test.security.test.EJBSpecUnitTestCase.testGetCallerPrincipal(EJBSpecUnitTestCase.java:194)
> 	at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
> 	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
> 	at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
> 	at junit.extensions.TestSetup.run(TestSetup.java:23)
>  

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list