@@ -0,0 +1,2173 @@
+package ch.difty.sipamato.service;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0A%0Aimport org.junit.Test;%0A%0Apublic class DefaultServiceResultTest %7B%0A%0A    private final ServiceResult sr = new DefaultServiceResult();%0A%0A    @Test%0A    public void defaultServiceResult_hasNoMessages() %7B%0A        assertThat(sr.getInfoMessages()).isEmpty();%0A        assertThat(sr.getWarnMessages()).isEmpty();%0A        assertThat(sr.getErrorMessages()).isEmpty();%0A    %7D%0A%0A    @Test%0A    public void addingInfoMessages() %7B%0A        sr.addInfoMessage(%22foo%22);%0A        assertThat(sr.getInfoMessages()).containsOnly(%22foo%22);%0A        assertThat(sr.getWarnMessages()).isEmpty();%0A        assertThat(sr.getErrorMessages()).isEmpty();%0A%0A        sr.addInfoMessage(%22bar%22);%0A        assertThat(sr.getInfoMessages()).containsOnly(%22foo%22, %22bar%22);%0A        assertThat(sr.getWarnMessages()).isEmpty();%0A        assertThat(sr.getErrorMessages()).isEmpty();%0A    %7D%0A%0A    @Test%0A    public void addingWarnMessages() %7B%0A        sr.addWarnMessage(%22foo%22);%0A        assertThat(sr.getWarnMessages()).containsOnly(%22foo%22);%0A        assertThat(sr.getInfoMessages()).isEmpty();%0A        assertThat(sr.getErrorMessages()).isEmpty();%0A%0A        sr.addWarnMessage(%22bar%22);%0A        assertThat(sr.getWarnMessages()).containsOnly(%22foo%22, %22bar%22);%0A        assertThat(sr.getInfoMessages()).isEmpty();%0A        assertThat(sr.getErrorMessages()).isEmpty();%0A    %7D%0A%0A    @Test%0A    public void addingErrorMessages() %7B%0A        sr.addErrorMessage(%22foo%22);%0A        assertThat(sr.getErrorMessages()).containsOnly(%22foo%22);%0A        assertThat(sr.getInfoMessages()).isEmpty();%0A        assertThat(sr.getWarnMessages()).isEmpty();%0A%0A        sr.addErrorMessage(%22bar%22);%0A        assertThat(sr.getErrorMessages()).containsOnly(%22foo%22, %22bar%22);%0A        assertThat(sr.getInfoMessages()).isEmpty();%0A        assertThat(sr.getWarnMessages()).isEmpty();%0A    %7D%0A%0A    @Test%0A    public void ignoringNullMessages() %7B%0A        sr.addInfoMessage(null);%0A        sr.addWarnMessage(null);%0A        sr.addErrorMessage(null);%0A%0A        assertThat(sr.getInfoMessages()).isEmpty();%0A        assertThat(sr.getWarnMessages()).isEmpty();%0A        assertThat(sr.getErrorMessages()).isEmpty();%0A    %7D%0A%7D%0A

Test DefaultServiceResult