tests and pmd trend and coverage

This commit is contained in:
anhefti 2019-09-11 09:03:36 +02:00
parent 04e19d8785
commit 276939229f
2 changed files with 17 additions and 1 deletions

View file

@ -123,7 +123,7 @@
<targetJdk>${java.version}</targetJdk>
<linkXRef>false</linkXRef>
<rulesets>
<ruleset>classpath:pmd-rulesets.xml</ruleset>
<ruleset>pmd-rulesets.xml</ruleset>
</rulesets>
</configuration>
<executions>
@ -196,6 +196,10 @@
<excludes>
<exclude>ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/*</exclude>
<exclude>ch/ethz/seb/sebserver/webservice/datalayer/batis/model/*</exclude>
<exclude>ch/ethz/seb/sebserver/gui/content/*</exclude>
<exclude>ch/ethz/seb/sebserver/gui/form/*</exclude>
<exclude>ch/ethz/seb/sebserver/gui/table/*</exclude>
<exclude>ch/ethz/seb/sebserver/gui/widget/*</exclude>
</excludes>
<systemPropertyVariables>
<jacoco-agent.destfile>target/jacoco.exec</jacoco-agent.destfile>

View file

@ -18,6 +18,7 @@ import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Locale;
import java.util.stream.Collectors;
import org.apache.commons.io.IOUtils;
import org.joda.time.DateTimeZone;
@ -923,6 +924,17 @@ public class UseCasesIntegrationTest extends GuiIntegrationTest {
assertNotNull(attributes);
assertFalse(attributes.hasError());
final AttributeMapping attributeMapping = attributes.get();
assertEquals(192, attributeMapping.attributeIdMapping.size());
assertEquals("[active, audio, backToStart, browserSecurity, browserViewMode, "
+ "exitSequence, functionKeys, kioskMode, logging, macSettings, "
+ "newBrowserWindow, newwinsize, proxies, quitLink, registry, "
+ "servicePolicy, specialKeys, spellcheck, taskbar, urlFilter, "
+ "userAgentDesktop, userAgentMac, userAgentTouch, winsize, wintoolbar, zoom, zoomMode]",
attributeMapping.attributeGroupMapping.keySet()
.stream()
.sorted()
.collect(Collectors.toList())
.toString());
}