Skip to content
Snippets Groups Projects
Commit c09272d3 authored by Axel's avatar Axel
Browse files

fix: phase tests work again

parent a0d25b31
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,7 @@ import unipotsdam.gf.modules.journal.service.IJournalImpl;
import unipotsdam.gf.modules.peer2peerfeedback.DummyFeedback;
import unipotsdam.gf.modules.researchreport.DummyResearchReportManagement;
import unipotsdam.gf.modules.researchreport.ResearchReportManagement;
import unipotsdam.gf.modules.assessment.controller.service.AssessmentDBCommunication;
public class GFApplicationBinder extends AbstractBinder {
......@@ -46,5 +47,6 @@ public class GFApplicationBinder extends AbstractBinder {
bind(GroupfindingImpl.class).to(IGroupFinding.class);
bind(TaskDAO.class).to(TaskDAO.class);
bind(IJournalImpl.class).to(IJournal.class);
bind(AssessmentDBCommunication.class).to(AssessmentDBCommunication.class);
}
}
......@@ -20,7 +20,7 @@ import java.util.Map;
@ManagedBean
@Resource
@Singleton
class AssessmentDBCommunication {
public class AssessmentDBCommunication {
@Inject
MysqlConnect connect;
......@@ -30,7 +30,7 @@ class AssessmentDBCommunication {
cheatCheckerMethods result = cheatCheckerMethods.none;
MysqlConnect connect = new MysqlConnect();
connect.connect();
String mysqlRequest = "SELECT * FROM `assessmentmethod` WHERE `projectName`=?";
String mysqlRequest = "SELECT * FROM `assessmentmechanismselected` WHERE `projectName`=?";
VereinfachtesResultSet vereinfachtesResultSet = connect.issueSelectStatement(mysqlRequest, projectName);
if (vereinfachtesResultSet.next()) {
String resultString = vereinfachtesResultSet.getString("cheatCheckerMethod");
......
......@@ -31,11 +31,9 @@ CREATE TABLE IF NOT EXISTS `categoriesselected` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `contributionrating` (
`projectName` varchar(400) NOT NULL,
`userName` varchar(400) NOT NULL,
`groupId` int(11) NOT NULL,
`fromPeer` varchar(400) NOT NULL,
`dossier` int(11) NOT NULL,
`eJournal` int(11) NOT NULL,
`research` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
......@@ -68,6 +66,7 @@ CREATE TABLE IF NOT EXISTS `groups` (
CREATE TABLE IF NOT EXISTS `groupuser` (
`userEmail` varchar(255) NOT NULL,
`projectName` varchar(255) NOT NULL,
`groupId` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment