Skip to content
Snippets Groups Projects
Commit e50d2b00 authored by Paul-Christian Volkmer's avatar Paul-Christian Volkmer
Browse files

Disable dependency for groovy runtime to increase package size

parent 89dd3b34
Branches
Tags
No related merge requests found
......@@ -307,11 +307,13 @@
<version>2.25.0</version>
<scope>test</scope>
</dependency>
<!--
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy</artifactId>
<version>2.0.5</version>
</dependency>
-->
</dependencies>
<build>
<plugins>
......
......@@ -2,17 +2,17 @@ package de.thm.arsnova.entities;
public class Statistics {
private int ansers;
private int answers;
private int questions;
private int openSessions;
private int closedSessions;
private int activeUsers;
public int getAnsers() {
return ansers;
public int getAnswers() {
return answers;
}
public void setAnsers(int ansers) {
this.ansers = ansers;
public void setAnswers(int ansers) {
this.answers = ansers;
}
public int getQuestions() {
......
......@@ -25,7 +25,7 @@ public class StatisticsService implements IStatisticsService {
Statistics statistics = new Statistics();
statistics.setOpenSessions(databaseDao.countOpenSessions());
statistics.setClosedSessions(databaseDao.countClosedSessions());
statistics.setAnsers(databaseDao.countAnswers());
statistics.setAnswers(databaseDao.countAnswers());
statistics.setQuestions(databaseDao.countQuestions());
statistics.setActiveUsers(databaseDao.countActiveUsers(DURATION_IN_MILLIS));
return statistics;
......
......@@ -65,7 +65,7 @@ public class StatisticsControllerTest {
request.setRequestURI("/statistics");
handlerAdapter.handle(request, response, statisticsController);
String expected = "{\"ansers\":0,\"questions\":0,\"openSessions\":2,\"closedSessions\":0,\"activeUsers\":0}";
String expected = "{\"answers\":0,\"questions\":0,\"openSessions\":2,\"closedSessions\":0,\"activeUsers\":0}";
assertEquals(expected, response.getContentAsString());
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment