JMockit Quick Tutorial and Revelation

JMockit is a powerful mocking framework in Java that provides extended functionality that goes beyond the capabilities of all other solutions on the market so far. While most mocking frameworks are proxy based and depend on Reflection to hide the dependent behavior, JMockit falls further and deeper with solving some critical problems such as mocking final classes and static methods by using the Instrumentation API presented in Java 5. The Instrumentation API allows a direct bytecode replacement in the virtual machine via java agents that modify the codebase of the current classes with the one from our mocked representation (either… Continue Reading

Java2Days 2010 – Overview

This week has been inspired by the power ot Java (this is how a movie like Javatar would probably start). Offtopic Anyway, I'm glad that I attended Java2Days event this year. It's been my second Java2Days event including the one in Oct 2009. After few years being highly coupled with Java, I decided to do some freelance which lasts for about 2 years now. Meanwhile in addition to Java I've studied plenty of new technologies - PHP and Python in depth, different frameworks down there, few abstract programming structures for specific projects, set-top boxes etc. This makes me feel even… Continue Reading

Java is not JavaScript

Recently I've been taking notes on some tweets and job offers from different individuals and companies around the world and there are 2 common mistakes I see everywhere: WordPress is spelled exactly like this - with a capital 'W' and a capital 'P'. Please don't hire people for yourself if you are not aware of the correct platform name. JavaScript is not Java! As a developer with Java background myself I feel pretty much confused when someone is hiring developers with: "PHP, MySQL, HTML, CSS, Java". Unless you're using a Java bridge to design a Java backend and a PHP… Continue Reading