Home » Author Archives: Frank Appel

Author Archives: Frank Appel

OSGi Service Test Helper: ServiceCollector

java-interview-questions-answers

OSGi services come in handy for the development of systems based on loosely coupled components. But loose coupling can make it difficult to recognize problems related to dangling service references. Thus we usually run integrations tests to ensure the availability of service components at runtime. With the intention to reduce boilerplate needed for these kind of tests, I have written ...

Read More »

Apache FOP Integration with Eclipse and OSGi

eclipse-logo

Apache FOP is an open source print processor driven by XSL formatting objects (XSL-FO). It can be quite useful to transform data objects into a PDF for example. However it turned out to be somewhat cumbersome to get it integrated into PDE and finally up and running as OSGi Service. Because of this I provided a P2 repository that contains ...

Read More »

Sacrilege – a Custom SWT Scrollbar

java-logo

SWT is a thin abstraction layer on top of native OS widgets. Which is a very good thing if you intent that your applications integrate well with the OS look and feel. But as a trade-off this approach limits styling capabilities significantly. In particular I perceive the native SWT scrollbar often disruptive on more subtle view layouts. Coming across this ...

Read More »

SWT Mouse Click Implementation

eclipse-logo

Doing a bit of SWT custom widget development lately, I stumbled across the question why is there no such thing as a default SWT mouse click listener? As this subject raises once in a while, I thought writing a word or two about the rational ground behind – and how to implement mouse clicks in general – would not hurt. ...

Read More »

Deferred Fetching of Model Elements with JFace Viewers

java-logo

Model elements displayed by Eclipse JFace Viewers sometimes take a considerable amount of time to load. Because of this the workbench provides the type IDeferredWorkbenchAdapter to fetch such model elements in background. Unfortunately this mechanism seems to be supported only for AbstractTreeViewer derivates via the DeferredTreeContentManager. Hence I developed a generic DeferredContentManager of my own… It enables background loading for ...

Read More »

OSGi Testsuite: Introducing Classname Filters

java-interview-questions-answers

OSGi Testsuite is a JUnit test-runner that collects dynamically test classes for execution. It has been published by my fellow Rüdiger about a year ago and proven useful in some projects already. However for gonsole we had to use an ugly patch because version 1.0 only supported .*Test postfix matching for test class names. I solved this problem with version ...

Read More »

Efficient Creation of Eclipse Modules with Maven Archetype

apache-maven-logo

Maven Archetype is a project templating toolkit that provides developers with the means to generate parameterized versions of built-in or custom scaffolding artefacts. Recently I applied it to our Xiliary P2 repository to achieve automation of Eclipse module stubs creation. As it worked out well enough, I thought it might be worth while to share my experiences in this post. ...

Read More »

Lightweight Integration Tests for Eclipse Extensions

java-logo

Recently I introduced a little helper for Eclipse extension point evaluation. The auxiliary strives to reduce boilerplate code for common programming steps, while increasing development guidance and readability at the same time. This post is the promised follow-up that shows how to combine the utility with an AssertJ custom assert to write lightweight integration tests for Eclipse extensions. Eclipse Extensions ...

Read More »

Clean Unit Test Patterns – Presentation Slides

java-logo

I was given the opportunity to talk at the GDG DevFestKarlsruhe 2014 conference about ‘Clean Unit Test Patterns’. Thanks to the organizers for inviting me and thanks to all people listening to my talk. As promised I shared the presentation e.g. for those who want to have a look at the additional slides I did not cover during the talk: ...

Read More »

JUnit in a Nutshell: Unit Test Assertion

junit-logo

This chapter of JUnit in a Nutshell covers various unit test assertion techniques. It elaborates on the pros and cons of the built-in mechanism, Hamcrest matchers and AssertJ assertions. The ongoing example enlarges upon the subject and shows how to create and use custom matchers/assertions. Unit Test Assertion Trust, but verify Ronald Reagan The post Test Structure explained why unit ...

Read More »
Do you want to know how to develop your skillset and become a ...

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!
Get ready to Rock!
To download the books, please verify your email address by following the instructions found on the email we just sent you.

THANK YOU!

Close