Blog

Mocking vs Fake Objects

Categories :
Sometimes in a large scale projects we need to replace some layers that are not implemented yet with something to enable us testing upper layers. Most of the time we hear about Mocking as a solution. But actually there are other acceptable solutions. Here we examine these solutions.

Test Doubles: Dummy Object, Test Stub, Mock objects and Fake Objects

Tags :
Categories :
What are Dummy Object, Test Stub, Mock objects and Fake Objects and why they are known as test doubles? In unit testing, we need to control the state or behavior of depended component of the unit under test. We need to put it in a defined state so that a specific path of the unit under test could be tested. On the other hand, always we can not examine the state of the unit under test or its related components and we need to examine the behavior of them to find out about the success or failure of our tests. Test doubles are here to be used in these circumstances.

Code coverage Arquilian and Jacoco

Categories :
Enabling code coverage analysis for integration tests by Arquilian and Jacoco is sometimes boring. Here we document our experiments on using Jacoco with Arquilian for Code coverage.

JPA flushes before query execution

Tags :
Categories :
By default, the JPA flush mode is set to AUTO. That means that the EntityManagers performs a flush operation automatically as needed. In other words, if entities with pending changes are used in a query, the persistence provider will flush changes to the database before executing the query.

Rooting Android 4.2.2 based Tablet X-Vision XL10 - 700G (Rockchip rk3188)

Tags :
The new X-Vision tablet XL10 - 700G has a preinstalled Google Android v4.2.2 - Jelly Bean. This tablet is based on Rockchip RK3188 board. One of the biggest disadvantages of the ROM that Rockchip made for this tablet is missing of the VPN modules. It seems that it is normal in building ROM for android devices and apps like tun.ko are developed to serach for missing modules and adding them to the device OS. Unfortunately tun.ko only works on a rooted device. So first of all the device should be rooted. As the X-Vision tablet XL10 - 700G is very new, there is not any rooting instructines specially written for this device. Here I will provide my experices during rooting this device.

All Categories