portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Spencer <pau...@apache.org>
Subject Re: cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/services/portletcache TestTurbineCache.java
Date Tue, 05 Feb 2002 13:50:58 GMT
Santiago,
JUnit 3.7 has depracated their assert().

Paul Spencer

Santiago Gala wrote:

> paulsp@apache.org wrote:
> 
>> paulsp      02/02/04 11:54:40
>>
>>  Modified:    src/java/org/apache/jetspeed/services/portletcache
>>                        TestTurbineCache.java
>>  Log:
>>  Apply a Jetspeed version of the turbine patch commited by Jeff 
>> Brekke.  Below the log
>>  message from Jeff's commit
>>  
>>     Updated test case to work on even slower or heavily loaded 
>> machines.  This was
>>     not an issue with what was being tested, rather how soon the test 
>> was looking
>>     for information.
>>  
>>
> (...)
> 
>> GlobalCacheService globalCache = (GlobalCacheService)TurbineServices
>>           .getInstance()
>>           .getService( GlobalCacheService.SERVICE_NAME );
>>  +        assertNotNull("Could not retrive cache service.", globalCache);
>>
>>
> Just in case you don't know, I have received warnings "assert is a 
> reserved keyword" when compiling under jdk1.4beta.
> 
> I have not tested if it is the case for assertNotNull (I don't think 
> so), but seeing Paul's change reminded me I have seen this warning 
> compiling jetspeed (somewhere in DBProfiler code).
> 
> For everybody: please don't use the assert (future) keyword or we will 
> have to edit it to some other name. Looks like they are thinking into 
> having a standard for assertions in java.
> 
> (...)
> 
> 
> 
> -- 
> To unsubscribe, e-mail:   
> <mailto:jetspeed-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:jetspeed-dev-help@jakarta.apache.org>
> 
> 



--
To unsubscribe, e-mail:   <mailto:jetspeed-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-dev-help@jakarta.apache.org>


Mime
View raw message