Blog: Solid Soft

What’s new in (upcoming) Spock 1.0 – part 2 – cleaning up

When writing integration tests it is sometimes required to set up environment initial conditions/state before/after a given test or the whole specification. Upcoming Spock 1.0 expands the number of av...

Wyświetlenia 658

OK 0

NOK 0

What’s new in (upcoming) Spock 1.0 – simpler conditional test execution with @Requires and @IgnoreIf

Introduction Some tests (especially integration tests) should be run only if certain conditions are (or are not) met. Upcoming Spock 1.0 provides new @Requires and improved @IgnoreIf extensions to han...

Wyświetlenia 473

OK 0

NOK 0

Null Object Pattern implementation in Groovy – a map with default behavior

Simple real life problem. Proper service implementation is taken from map based on given service key. For unknown/unsupported key meaningful exception should be thrown. How could it be implemented wit...

Wyświetlenia 407

OK 0

NOK 0

More compact automatic Spock specifications formatting in Idea 13

Spock is a testing framework for Java and Groovy applications. It allows to write tests in highly expressive specification language which under the hood leverages Groovy compile-time metaprogramming c...

Wyświetlenia 408

OK 0

NOK 0

Using AssertJ and Awaitility together thanks to Java 8 and lambdas

AssertJ and Awaitility are two of my favorites tools using in automatic code testing. Unfortunately until recently it was not possible to use it together. But then Java 8 entered the game and several ...

Wyświetlenia 555

OK 0

NOK 0

Summary of the last 13 months in PIT development

Mutation testing allows to check the quality (effectiveness) of automatic tests. PIT is a leading mutation testing tool for Java environment. In my last blog post about PIT in January 2013 I have cove...

Wyświetlenia 391

OK 0

NOK 0

Beyond the Mockito Refcard #4 – Changing a default returned value for unstubbed methods

Mockito uses a lazy approach for stubbing and when a not stubbed method is called it returns a default value instead of throwing an exception (like EasyMock). This is very useful to not overspecify th...

Wyświetlenia 695

OK 0

NOK 0

AppFuse 3.0 with Wicket frontend released

AppFuse 3.0 has been released. It refreshes used technologies (Java 7+, Spring 4, Spring Security 3.2) and adds a bunch of new (Bootstrap 3, PrimeFaces, wro4j, WebJars and finally Apache Wicket). From...

Wyświetlenia 360

OK 0

NOK 0

The Happines Door method on my Mutation Testing presentation at Confitura

Do you remember my previous post about The Happiness Door – a method of collecting immediate feedback? It worked on my training sessions in the past and my presentation at Confitura was the firs...

Wyświetlenia 593

OK 0

NOK 0

Collecting immediate feedback during a course with The Happiness Door

The Happiness Door is a method of collecting immediate feedback I have read about some time ago on the Jurgen Appelo’s blog. I used it this year during my training sessions and it worked very we...

Wyświetlenia 545

OK 0

NOK 0

Sleepless asynchronous calls testing and 5 other flashtalks on Warszawa JUG

Recently there was an interesting and unusual event in Warsaw for all enthusiasts of testing – “6 tastes of testing – flashtalks“. Instead of one long presentation common for W...

Wyświetlenia 484

OK 0

NOK 0

After Git kata – a free Git workshop

Last Saturday together with 8 other mentors we were showing various Git-related technics on Git kata event for over 80 people. Git kata was a free git workshop conducted in a kata form. Paraphrasing W...

Wyświetlenia 562

OK 0

NOK 0

Mixing TestNG and JUnit tests in one Maven module – 2013 edition

Recently I wanted to configure an ability to run both TestNG and JUnit tests in one Maven module (project). At the end I managed how to do it clean and short, but before that I have found a few differ...

Wyświetlenia 813

OK 0

NOK 0

Speed up mutation testing with incremental analysis available in PIT 0.29

Mutation testing can efficiently detect places in code which are insufficiently covered by tests. The price we have to pay for it is time – number of mutations has to be tested with a set of uni...

Wyświetlenia 697

OK 0

NOK 0

Gradle plugin for PIT mutation testing tool

Looking for a way to use mutation testing and PIT with your Gradle-based project? Your search is over. Recently released gradle-pitest-plugin makes it possible in a very comfortable way. In short the ...

Wyświetlenia 529

OK 0

NOK 0

Beyond the Mockito Refcard – part 3 – mockito-core vs. mockito-all in Maven/Gradle-based projects

Mockito team provides two jars: mockito-core.jar and mockito-all.jar. Which is better to choose for Maven or Gradle-based project? Both of them can be downloaded manually from a project webpage and al...

Wyświetlenia 542

OK 0

NOK 0

Beyond the Mockito Refcard – part 2 – convenient mocking beans in the Spring context with Springockito

Unit tests are very handy. They run fast and it is possible to execute hundreds or even thousands of them very often during development (especially useful when using TDD). Nevertheless from time to ti...

Wyświetlenia 531

OK 0

NOK 0

Concise, clear, with a lot of examples – the reference card for Mockito

Some time ago I’ve got an idea to make a short document briefly presenting the most important Mockito features with the real life examples. It was targeted at people wanting to quickly learn mor...

Wyświetlenia 484

OK 0

NOK 0

Beyond the Mockito refcard – part 1 – Better error messages on NPE with globally configured SmartNull

Writing the Mockito reference card I had an opportunity to take a closer look at the less popular, but very useful features of Mockito. Some of them were too advance or too rare in use to be described...

Wyświetlenia 510

OK 0

NOK 0

Introduction to mutation testing with PIT and TestNG

Mutation testing is a technique which allows to discover which parts of our code are not covered by tests. It is similar to a code coverage, but mutation testing is not limited to the fact that a give...

Wyświetlenia 670

OK 0

NOK 0

Polskie blogi o JAVIE

                                                                                                                                       

dailylog

Wpisów: 34

Ostatni (2014-10-06):
PageLogic

    

jdn.pl

Wpisów: 163

Ostatni (2015-01-09):
Chamberconf