From 276939229f928e6c2c076d76a17e19d27b782257 Mon Sep 17 00:00:00 2001 From: anhefti Date: Wed, 11 Sep 2019 09:03:36 +0200 Subject: [PATCH] tests and pmd trend and coverage --- pom.xml | 6 +++++- .../gui/integration/UseCasesIntegrationTest.java | 12 ++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index cb85eca8..0bf464d8 100644 --- a/pom.xml +++ b/pom.xml @@ -123,7 +123,7 @@ ${java.version} false - classpath:pmd-rulesets.xml + pmd-rulesets.xml @@ -196,6 +196,10 @@ ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/* ch/ethz/seb/sebserver/webservice/datalayer/batis/model/* + ch/ethz/seb/sebserver/gui/content/* + ch/ethz/seb/sebserver/gui/form/* + ch/ethz/seb/sebserver/gui/table/* + ch/ethz/seb/sebserver/gui/widget/* target/jacoco.exec diff --git a/src/test/java/ch/ethz/seb/sebserver/gui/integration/UseCasesIntegrationTest.java b/src/test/java/ch/ethz/seb/sebserver/gui/integration/UseCasesIntegrationTest.java index 973d9fa0..2d232857 100644 --- a/src/test/java/ch/ethz/seb/sebserver/gui/integration/UseCasesIntegrationTest.java +++ b/src/test/java/ch/ethz/seb/sebserver/gui/integration/UseCasesIntegrationTest.java @@ -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()); }