Valtech UK

Archive for the “Development” Category

Testing and concurrency

This post was originally published here by Valtech UK consultant Andrew Rendell.

Our team is currently working with a client on a medium sized, medium complexity Java application which has quite low test coverage. We are introducing characterisation tests to snapshot functionality. These will give us the confidence to r…

WPF & MVVM

Tweet This post was originally published here by Valtech UK consultant Sachin Kanadia. I was playing around attempting to implement course grained MVVM in WPF. I used the Prism Application Block to achieve the most part. I came up with a few resulting base classes that formed the crux of the application I was deving at the [...]

Unit tests, code coverage and the hidden trap…

Tweet Quality has always been a “hot” subject in software engineering, and several good development practices used in Agile development, unit testing for example, have been created to improve the quality of the softwares developed. Programme Managers, Project Managers and Assurance Quality Managers haven’t just been looking for techniques to improve quality, they’ve also been [...]

One team, one language

This post was originally published here by Valtech UK consultant Sandro Mancuso.

On a previous post I was discussing, among other things, how code often doesn’t represent the business properly. The code “satisfies” the business requirements but doesn’t express them very well. The main reason for that is because we, developers, like…

The Wolf in Sheep’s Clothing

This post was originally published here by Valtech UK consultant Sandro Mancuso.

In the last few years, I’ve noticed that the majority of the projects that I’ve participated roughly followed the same design. Speaking to colleagues and friends, the great majority said that they were also following the same design. It’s what I call…

Naming your Unit Tests

This post was originally published here by Valtech UK consultant Mashooq Badar.

Often I see Unit Tests with the test methods that have the same name as the method under test prefixed with the word “test” e.g. testSubmitApplication. This provides no extra information on which “flow” of the mothod is being tested. Other test method names provide a bit more information by suffixing the nature of the [...]

Embedded Glassfish for Integration Tests

This post was originally published here by Valtech UK consultant Mashooq Badar.

Sun Glassfish server can be run in embeded mode, very useful for automated integration tests. Here’s how: Maven Dependencies: <dependency> <groupId>org.glassfish.distributions</groupId> <artifactId>web-all</artifactId> <version>10.0-build-20080430</version> <scope>test</scope> </dependency> <dependency> <groupId>org.glassfish.embedded</groupId> <artifactId>gf-embedded-api</artifactId> <version>1.0-alpha-4</version> <scope>test</scope> </dependency> If you are not using maven then add the above libs to you classpath. Getting the server started in simple final URI APP_URI= UriBuilder.fromUri(“http://localhost/”).port(8888).path(“myapp”).build(); [...]

Creating custom layouts in JBoss Portal

This post was originally published here by Valtech UK consultant Mashooq Badar.

The layout of a portlet is handled by a set of JSP in the portal-core web-app which is part of the jboss-portal.sar. In the web-inf direcotry have a look at portal-layouts.xml to see how various layouts are configured. The following is a snippet (self explainatory): <layouts> <layout> <name>rbs-1column</name> <uri>/layouts/mylayout/index.jsp</uri> <uri state=”maximized”>/layouts/mylayout/maximized.jsp</uri> <regions> <region name=”regionBody”/> </regions> [...]