Java Code Geeks » Frank Appel http://www.javacodegeeks.com/ Java 2 Java Developers Resource Center Tue, 31 Mar 2015 19:00:54 +0000 en-US hourly 1 http://wordpress.org/?v=4.1.1 OSGi Service Test Helper: ServiceCollectorhttp://www.javacodegeeks.com/2015/02/osgi-service-test-helper-servicecollector.html http://www.javacodegeeks.com/2015/02/osgi-service-test-helper-servicecollector.html#comments Sun, 08 Feb 2015 13:00:26 +0000 http://www.javacodegeeks.com/?p=36715 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 ...

 

]]>
http://www.javacodegeeks.com/2015/02/osgi-service-test-helper-servicecollector.html/feed/ 0
Apache FOP Integration with Eclipse and OSGihttp://www.javacodegeeks.com/2015/01/apache-fop-integration-with-eclipse-and-osgi.html http://www.javacodegeeks.com/2015/01/apache-fop-integration-with-eclipse-and-osgi.html#comments Mon, 26 Jan 2015 08:00:58 +0000 http://www.javacodegeeks.com/?p=36089 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 ...

 

]]>
http://www.javacodegeeks.com/2015/01/apache-fop-integration-with-eclipse-and-osgi.html/feed/ 0
Sacrilege – a Custom SWT Scrollbarhttp://www.javacodegeeks.com/2014/12/sacrilege-a-custom-swt-scrollbar.html http://www.javacodegeeks.com/2014/12/sacrilege-a-custom-swt-scrollbar.html#comments Fri, 19 Dec 2014 14:00:20 +0000 http://www.javacodegeeks.com/?p=34700 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 ...

 

]]>
http://www.javacodegeeks.com/2014/12/sacrilege-a-custom-swt-scrollbar.html/feed/ 0
SWT Mouse Click Implementationhttp://www.javacodegeeks.com/2014/12/swt-mouse-click-implementation.html http://www.javacodegeeks.com/2014/12/swt-mouse-click-implementation.html#comments Mon, 08 Dec 2014 20:00:05 +0000 http://www.javacodegeeks.com/?p=33693 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 ...

 

]]>
http://www.javacodegeeks.com/2014/12/swt-mouse-click-implementation.html/feed/ 0
Deferred Fetching of Model Elements with JFace Viewershttp://www.javacodegeeks.com/2014/12/deferred-fetching-of-model-elements-with-jface-viewers.html http://www.javacodegeeks.com/2014/12/deferred-fetching-of-model-elements-with-jface-viewers.html#comments Thu, 04 Dec 2014 23:00:32 +0000 http://www.javacodegeeks.com/?p=33957 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… ...

 

]]>
http://www.javacodegeeks.com/2014/12/deferred-fetching-of-model-elements-with-jface-viewers.html/feed/ 0
OSGi Testsuite: Introducing Classname Filtershttp://www.javacodegeeks.com/2014/11/osgi-testsuite-introducing-classname-filters.html http://www.javacodegeeks.com/2014/11/osgi-testsuite-introducing-classname-filters.html#comments Mon, 17 Nov 2014 08:00:00 +0000 http://www.javacodegeeks.com/?p=33029 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 ...

 

]]>
http://www.javacodegeeks.com/2014/11/osgi-testsuite-introducing-classname-filters.html/feed/ 0
Efficient Creation of Eclipse Modules with Maven Archetypehttp://www.javacodegeeks.com/2014/11/efficient-creation-of-eclipse-modules-with-maven-archetype.html http://www.javacodegeeks.com/2014/11/efficient-creation-of-eclipse-modules-with-maven-archetype.html#comments Fri, 07 Nov 2014 05:00:36 +0000 http://www.javacodegeeks.com/?p=32662 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 ...

 

]]>
http://www.javacodegeeks.com/2014/11/efficient-creation-of-eclipse-modules-with-maven-archetype.html/feed/ 0
Lightweight Integration Tests for Eclipse Extensionshttp://www.javacodegeeks.com/2014/11/lightweight-integration-tests-for-eclipse-extensions.html http://www.javacodegeeks.com/2014/11/lightweight-integration-tests-for-eclipse-extensions.html#comments Wed, 05 Nov 2014 23:00:24 +0000 http://www.javacodegeeks.com/?p=32570 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 ...

 

]]>
http://www.javacodegeeks.com/2014/11/lightweight-integration-tests-for-eclipse-extensions.html/feed/ 0
Clean Unit Test Patterns – Presentation Slideshttp://www.javacodegeeks.com/2014/10/clean-unit-test-patterns-presentation-slides.html http://www.javacodegeeks.com/2014/10/clean-unit-test-patterns-presentation-slides.html#comments Wed, 29 Oct 2014 17:00:19 +0000 http://www.javacodegeeks.com/?p=32201 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 ...

 

]]>
http://www.javacodegeeks.com/2014/10/clean-unit-test-patterns-presentation-slides.html/feed/ 0
JUnit in a Nutshell: Unit Test Assertionhttp://www.javacodegeeks.com/2014/09/junit-in-a-nutshell-unit-test-assertion.html http://www.javacodegeeks.com/2014/09/junit-in-a-nutshell-unit-test-assertion.html#comments Tue, 23 Sep 2014 22:00:10 +0000 http://www.javacodegeeks.com/?p=30108 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 ...

 

]]>
http://www.javacodegeeks.com/2014/09/junit-in-a-nutshell-unit-test-assertion.html/feed/ 0