Skip to main content

Posts Tagged ‘Unit Testing’

Mocking HTTP Clients in AEM Projects

The first thing I learned as an AEM developer was mvn clean install -P autoInstallBundle. The second thing was how to debug a remote Java process. The first allowed me to deploy updates I made to the bundle. The second allowed me to step through and debug the code. This was the normal cadence. Since […]

Two Business Boys Maximize Ideas With Mind Helmet

Static Code Analysis With Open Source Tools For AEM Projects

Implementing static code analysis might seem like a daunting task. In some cases, this may be true depending on logistics, timing, and other factors. There is however a quick and easy way to implement it for AEM projects. Using open-source tools such as CheckStyle, SpotBugs, PMD, and JaCoCo you will pay nothing and reap all the […]

Testing Code@1x.jpg

Unit Testing Custom Rules, Actions, and Conditions with FakeDb – Part 3 – Testing Rule Execution

I thought it would be a good idea to finish this series with Part 3 – Testing Rule Execution – focusing on new rule types.

Office@1x.jpg

How to Test PageMode.IsExperienceEditorEditing in Sitecore

If you are passionate about testing automation in Sitecore, sooner or later you will want to mock Context.PageMode.IsExperienceEditorEditing (or Context.PageMode.IsPageEditorEditing in pre-Sitecore 8) properties. This post will give you step-by-step instructions on how to do that using Sitecore.FakeDb.

JMeter Testing for a Datapower ESB Implementation – Part 1

Introduction When considering testing a Datapower implementation the first tool that is generally mentioned SoapUI. While this is a good tool for a particular aspect of testing, you may need to expand your testing capabilities to include a broader set of concerns. In this blog I’d like to consider an architectural scenario in which I […]

Documenting and Unit Testing IBM Cognos TM1 Components

As some will say, documentation is key, but a tedious task to do.  Now if you’re like me, you may hate documentation.  Lets be honest, who wants to spend hours upon hours documenting code another developer should be able to understand in no time at all.  Well that’s what I thought in the past, but […]