My favorites | Sign in
Project Home Downloads Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 43: Assert.cfc throws error in exists()
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  marc.es...@gmail.com
Closed:  Jan 2008
Cc:  virtix


 
Project Member Reported by marc.es...@gmail.com, Jan 1, 2008
What steps will reproduce the problem?
1. run a test:
http://localhost/mxunit/tests/framework/AssertDecoratorTest.cfc?method=runtestremote&output=extjs
2. look at coldfusion debug info at bottom

you'll see this:

10:27:33.033 - Expression Exception - in
C:\Inetpub\wwwroot\mxunit\framework\Assert.cfc : line 66

	    Element ACCESS is undefined in OBJ.
	    

10:27:33.033 - Expression Exception - in
C:\Inetpub\wwwroot\mxunit\framework\Assert.cfc : line 66

	    Element ACCESS is undefined in OBJ.
	    

10:27:33.033 - Expression Exception - in
C:\Inetpub\wwwroot\mxunit\framework\Assert.cfc : line 66

	    Element ACCESS is undefined in OBJ.
	    

10:27:33.033 - Expression Exception - in
C:\Inetpub\wwwroot\mxunit\framework\Assert.cfc : line 66

	    Element ACCESS is undefined in OBJ.
	    

10:27:33.033 - Expression Exception - in
C:\Inetpub\wwwroot\mxunit\framework\Assert.cfc : line 66

	    Element ACCESS is undefined in OBJ.
	    

10:27:33.033 - Expression Exception - in
C:\Inetpub\wwwroot\mxunit\framework\Assert.cfc : line 66

	    Element ACCESS is undefined in OBJ.
	    

10:27:33.033 - Expression Exception - in
C:\Inetpub\wwwroot\mxunit\framework\Assert.cfc : line 66

	    Element ACCESS is undefined in OBJ.
	    

10:27:33.033 - Expression Exception - in
C:\Inetpub\wwwroot\mxunit\framework\Assert.cfc : line 66

	    Element ACCESS is undefined in OBJ.
	    

10:27:33.033 - mxunit.exception.AssertionFailedError - in
C:\Inetpub\wwwroot\mxunit\framework\Assert.cfc : line 118

	    assertBar() returned false
	    

I believe that this should be remedied to not throw an error. probably it
should simply check for StructKeyExists("obj","access") or isDefined() or
whatever... but it definitely should not throw an error.
 
Jan 1, 2008
Project Member #1 marc.es...@gmail.com
bill, i fixed this. once i realized what you were trying to do, i.e. just get all
nonprivate/package methods, i knew how to fix it. errors are gone and the tests run
slightly faster now without the errors throwing.
Status: Fixed
Owner: marc.esher
Cc: virtix

Powered by Google Project Hosting