• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.server
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Changeset
  • Next Changeset →

Changeset 2215

Show
Ignore:
Timestamp:
02/18/08 22:03:27 (9 months ago)
Author:
jmoore
Message:

OmeroBlitz : tickets

  • #711 Also in OmeroPy
  • #732 Added failling BOOST_ERROR call
  • #843 Now catching HibernateObjectRetrievalFailureException
Location:
trunk/components
Files:
1 added
3 modified

  • server/src/ome/services/util/ServiceHandler.java (modified) (2 diffs)
  • tools/OmeroCpp/test/boost_model.cpp (modified) (1 diff)
  • tools/OmeroPy/test/integration/suite.py (modified) (1 diff)
  • tools/OmeroPy/test/integration/tickets1000.py (added)

Legend:

Unmodified
Added
Removed
  • trunk/components/server/src/ome/services/util/ServiceHandler.java

    r2204 r2215  
    3434import org.springframework.dao.InvalidDataAccessResourceUsageException; 
    3535import org.springframework.dao.OptimisticLockingFailureException; 
     36import org.springframework.orm.hibernate3.HibernateObjectRetrievalFailureException; 
    3637import org.springframework.orm.hibernate3.HibernateSystemException; 
    3738 
    … …  
    173174                ve.setStackTrace(t.getStackTrace()); 
    174175                printException("DataIntegrityViolationException thrown.", t); 
     176                return ve; 
     177            } 
     178 
     179            else if (HibernateObjectRetrievalFailureException.class 
     180                    .isAssignableFrom(t.getClass())) { 
     181                ValidationException ve = new ValidationException(t.getMessage()); 
     182                ve.setStackTrace(t.getStackTrace()); 
     183                printException( 
     184                        "HibernateObjectRetrievealFailureException thrown.", t); 
    175185                return ve; 
    176186            } 
  • trunk/components/tools/OmeroCpp/test/boost_model.cpp

    r2172 r2215  
    7979  BOOST_CHECK( !img->annotationLinksLoaded ); 
    8080  img->annotationLinks.push_back((ImageAnnotationLinkPtr)0); 
     81  BOOST_ERROR("should not reach this point"); 
    8182} 
    8283 
  • trunk/components/tools/OmeroPy/test/integration/suite.py

    r2209 r2215  
    2929    suite.addTest(load("test.integration.files")) 
    3030    suite.addTest(load("test.integration.ping")) 
     31    suite.addTest(load("test.integration.tickets1000")) 
    3132    return suite 

Download in other formats:

  • Unified Diff
  • Zip Archive

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/