Background In PowerMock we’re using a custom classloader to byte-code manipulate classes that are normally not mockable to make them mockable. But when running a test case there may be some cases when the user needs to byte-code manipulate a certain class (X) in the first test method but needs to have the class unmodified [...]
Entries from December 2009 ↓
Classloader Deep-Cloning without Serialization
December 23rd, 2009 by Johan Haleby — Java, Testing
Tags: classloader, deep-cloning, frameworks, junit, manipulate, open source, powermock, serialization, tools
Load-time weaving, Spring and Maven.
December 15th, 2009 by Mattias Ask — Java, Tips & Tricks
As some of you might have read in my earlier post, I’m using load-time weaving in the project that I’m working on. Lately I’ve run in to some problems with getting the tests to play nice with Maven. So what was the problem? Well, I’ve been using @Configurable and @Autowired to inject stuff in my [...]
Tags: frameworks, javaagent, load-time weaving, ltw, maven, spring
PowerMock + TestNG = True
December 14th, 2009 by Johan Haleby — Java, Testing
After having it on our todo list for at least a year we’ve finally managed to integrate PowerMock with TestNG 5.11 as of PowerMock version 1.3.5. This is a big milestone of the project since we’ve now demonstrated that PowerMock is decoupled from both a specific test framework and a specific mock framework. The TestNG [...]
Tags: frameworks, open source, powermock, testng
Java ME: The Lost Application
December 11th, 2009 by Darius Katz — Embedded
As a professional Java ME developer I’ve never really come to terms with the MIDlet class and its underlying aesthetics. As a sort of remedy I often use a simple utility-class I wrote some years ago to conceal the principles of the MIDlet class. It concerns the way you write your Java ME-application so I [...]
Tags: innovation, j2me, java me, programming
Blu-ray and Java
December 11th, 2009 by Johan Karlsson — Java
Blu-ray is a replacement for DVD video, with high definition video and audio. In addition, Blu-ray also includes a solution for more interactive content; Java! The built-in Java platform gives more opportunities than ever ever before. Let us take a look at Blu-ray and Java. The article contains a description of the execution model and [...]
Tags: blu-ray, programming
Referential Integrity using Spring LDAP
December 7th, 2009 by Vlado Palczynski — Java
The directory servers of today are packed with a lot of nice features, one of them being Referential Integrity which performs integrity updates on attributes like member, uniqueMember, owner etc. Simpler put, when an entry updates its distinguished name, all references using the old distinguished name get updated to the new one. However, there can [...]
Tags: open source, programming, referential integrity, spring, spring ldap
OpenGL ES Tutorial for Android – Part II – Building a polygon
December 4th, 2009 by Per-Erik Bergman — Android, Embedded
Previous tutorial was all about setting up the GLSurfaceView. Be sure to read it beacuse it’s a really importent one to be able to continue. Building a polygon In this tutorial we will render our first polygon. 3D models are built up with smaller elements (vertices, edges, faces, and polygons) which can be manipulated individually. [...]
Tags: opengl es, programming, tutorial
OpenGL ES Tutorial for Android – Part I – Setting up the view
December 3rd, 2009 by Per-Erik Bergman — Android, Embedded
I’m going to write a couple of tutorials on using OpenGL ES on Android phones. The theory of OpenGL ES is the same on different devices so it should be quite easy to convert them to another platform. I can’t always remember where I found particular info so I might not always be able to [...]
Tags: opengl es, programming, tutorial
