Testing Eclipse Plug-ins: Lessons from the Field

Session details
Session Type: 
Experience level: 

Google uses Test-Driven Development extensively, but when Google’s newly formed Cloud Tools for Eclipse team set out to write a new Eclipse plug-in to support the Google Cloud Platform, we ran into a numerous areas where the RCP framework was not very testable. This talk explores multiple hacks we used to test things that were never designed to be tested:


  • Separating Eclipse dependent and non-Eclipse dependent code
  • Mocking Eclipse classes with Mockito
  • Dependency injection
  • Internal APIs
  • Reflection-fu
  • Creating projects in setUp methods 
  • Headless tests

Open source examples from Github will be provided.

Schedule info
Session Time Slot(s): 
Wednesday, October 26, 2016 - 10:15 to 10:50

Our Sponsors

For information about becoming a sponsor, please visit the EclipseCon Europe 2016 sponsor prospectus page.

Elite Dual ECE/OSGi CE



Project Quality Day

IoT Theme Day


EclipseCon Support Other Events

Our Other Events

Eclipse events are hosted all over the world!

  • EclipseCon Europe 2018