+ readme
+ sonarqube integration + removed unnecessary stuff
This commit is contained in:
parent
6d9aa153fb
commit
115950bf23
|
@ -0,0 +1,28 @@
|
||||||
|
![BauDas Logo](https://services.joethei.xyz/images/bauDas.png)
|
||||||
|
#Kundenkarten Verwaltung
|
||||||
|
|
||||||
|
[![Build Status](https://teamcity.joethei.xyz/app/rest/builds/buildType:(id:Studium_Programmierung_Softwareprojektmanagement_SpmProd)/statusIcon)](https://tcstatus.joethei.space/dashboard/spm)
|
||||||
|
[![Quality Gate](https://sonarqube.joethei.xyz/api/project_badges/measure?project=Studium_Programmierung_Softwareprojektmanagement&metric=alert_status)
|
||||||
|
![Code Coverage](https://sonarqube.joethei.xyz/api/project_badges/measure?project=Studium_Programmierung_Softwareprojektmanagement&metric=coverage)](https://sonarqube.joethei.xyz/dashboard?id=Studium_Programmierung_Softwareprojektmanagement)
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
|
||||||
|
- Java 8
|
||||||
|
- Maven 3
|
||||||
|
- Tomcat 9
|
||||||
|
|
||||||
|
## Development Setup
|
||||||
|
|
||||||
|
- clone this repository
|
||||||
|
- import it into your preferred editor
|
||||||
|
- start the server with maven goal ````tomcat7:run````
|
||||||
|
- change stuff
|
||||||
|
- restart the server if needed
|
||||||
|
|
||||||
|
|
||||||
|
## TODO: better Name for this
|
||||||
|
- clone this repository
|
||||||
|
- run maven goal ````package````
|
||||||
|
- war can be found in target folder
|
||||||
|
|
||||||
|
© 2019 Ihni GmbH
|
30
pom.xml
30
pom.xml
|
@ -16,8 +16,10 @@
|
||||||
<java.version>1.8</java.version>
|
<java.version>1.8</java.version>
|
||||||
<checkstyle_file>checkstyle.xml</checkstyle_file>
|
<checkstyle_file>checkstyle.xml</checkstyle_file>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
<jacoco.dataFile>${project.build.directory}/jacoco.exec</jacoco.dataFile>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|
||||||
<developers>
|
<developers>
|
||||||
<developer>
|
<developer>
|
||||||
<name>Johannes Theiner</name>
|
<name>Johannes Theiner</name>
|
||||||
|
@ -213,6 +215,34 @@
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.jacoco</groupId>
|
||||||
|
<artifactId>jacoco-maven-plugin</artifactId>
|
||||||
|
<version>0.8.4</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>default-prepare-agent</id>
|
||||||
|
<goals>
|
||||||
|
<goal>prepare-agent</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>default-report</id>
|
||||||
|
<phase>prepare-package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>report</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>default-check</id>
|
||||||
|
<goals>
|
||||||
|
<goal>check</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
|
|
@ -65,18 +65,6 @@
|
||||||
<li>
|
<li>
|
||||||
<div class="divider"></div>
|
<div class="divider"></div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
<div class="input-field container">
|
|
||||||
<label>Gruppenauswahl</label>
|
|
||||||
<br>
|
|
||||||
<select>
|
|
||||||
<option value="0">alle</option>
|
|
||||||
<option value="1">Gruppe 1</option>
|
|
||||||
<option value="2">Gruppe 2</option>
|
|
||||||
<option value="3">Gruppe 3</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li>
|
<li>
|
||||||
<div class="input-field container">
|
<div class="input-field container">
|
||||||
<label for="dataset">Datensatzauswahl</label>
|
<label for="dataset">Datensatzauswahl</label>
|
||||||
|
|
|
@ -11,12 +11,9 @@
|
||||||
<div class="col s12 m12">
|
<div class="col s12 m12">
|
||||||
<div id="overview" class="card white">
|
<div id="overview" class="card white">
|
||||||
<div class="center">
|
<div class="center">
|
||||||
<span class="card-title center">Übersicht</span>
|
<span class="card-title center">Wochenübersicht</span>
|
||||||
</div>
|
|
||||||
<div class="card-action center">
|
|
||||||
<a href="#">Tagesübersicht</a>
|
|
||||||
<a href="#">Wochenübersicht</a>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
<div>
|
<div>
|
||||||
<canvas id="overview_chart" width="1000" height="400"></canvas>
|
<canvas id="overview_chart" width="1000" height="400"></canvas>
|
||||||
|
@ -52,31 +49,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%-- <!--Verkaufte Artikel-->
|
<!--Verkaufszahlen-->
|
||||||
<div class="col s12 m6">
|
|
||||||
<div id="sold_articles" class="card white">
|
|
||||||
<div class="card-content">
|
|
||||||
<div class="center">
|
|
||||||
<span class="card-title center">Verkaufte Artikel</span>
|
|
||||||
</div>
|
|
||||||
<div class="center">
|
|
||||||
<div class="input-field col s12">
|
|
||||||
<select>
|
|
||||||
<option value="0">Artikel 1</option>
|
|
||||||
<option value="1">Artikel 2</option>
|
|
||||||
<option value="2">Artikel 3</option>
|
|
||||||
</select>
|
|
||||||
<label>Artikel</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<canvas id="sold_articles_cake" width="1000" height="400"></canvas>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>--%>
|
|
||||||
|
|
||||||
<!--Top Flop Artikel-->
|
|
||||||
<div class="col s12 m12">
|
<div class="col s12 m12">
|
||||||
<div id="top_articles" class="card white">
|
<div id="top_articles" class="card white">
|
||||||
<div class="center">
|
<div class="center">
|
||||||
|
|
|
@ -30,7 +30,7 @@ class WeekOverviewTest {
|
||||||
|
|
||||||
AtomicReference<Map<String, Map.Entry<Double, Integer>>> result = new AtomicReference<>();
|
AtomicReference<Map<String, Map.Entry<Double, Integer>>> result = new AtomicReference<>();
|
||||||
|
|
||||||
assertTimeout(Duration.ofMillis(1), () -> result.set(overview.getResult()));
|
assertTimeout(Duration.ofMillis(5), () -> result.set(overview.getResult()));
|
||||||
|
|
||||||
|
|
||||||
assertEquals(2477, result.get().get("Montag").getKey());
|
assertEquals(2477, result.get().get("Montag").getKey());
|
||||||
|
@ -57,7 +57,7 @@ class WeekOverviewTest {
|
||||||
|
|
||||||
AtomicReference<Map<String, Map.Entry<Double, Integer>>> result = new AtomicReference<>();
|
AtomicReference<Map<String, Map.Entry<Double, Integer>>> result = new AtomicReference<>();
|
||||||
|
|
||||||
assertTimeout(Duration.ofMillis(3), () -> result.set(overview.getResult()));
|
assertTimeout(Duration.ofMillis(7), () -> result.set(overview.getResult()));
|
||||||
|
|
||||||
|
|
||||||
assertEquals(26273, result.get().get("Montag").getKey());
|
assertEquals(26273, result.get().get("Montag").getKey());
|
||||||
|
@ -84,7 +84,7 @@ class WeekOverviewTest {
|
||||||
|
|
||||||
AtomicReference<Map<String, Map.Entry<Double, Integer>>> result = new AtomicReference<>();
|
AtomicReference<Map<String, Map.Entry<Double, Integer>>> result = new AtomicReference<>();
|
||||||
|
|
||||||
assertTimeout(Duration.ofMillis(30), () -> result.set(overview.getResult()));
|
assertTimeout(Duration.ofMillis(60), () -> result.set(overview.getResult()));
|
||||||
|
|
||||||
|
|
||||||
assertEquals(295688, result.get().get("Montag").getKey());
|
assertEquals(295688, result.get().get("Montag").getKey());
|
||||||
|
|
Loading…
Reference in New Issue