Search in sources :

Example 1 with BehavioralBlackboard

use of de.tum.in.www1.artemis.service.hestia.behavioral.BehavioralBlackboard in project ArTEMiS by ls1intum.

the class ExtractCoveredLinesTest method initBlackboard.

@BeforeEach
public void initBlackboard() {
    BehavioralBlackboard blackboard = new BehavioralBlackboard(null, null, null);
    var groupedFiles = new ArrayList<GroupedFile>();
    blackboard.setGroupedFiles(groupedFiles);
    coverageReportEntries = new HashSet<>();
    groupedFile = new GroupedFile("test.java", null, null, coverageReportEntries);
    groupedFiles.add(groupedFile);
    extractCoveredLines = new ExtractCoveredLines(blackboard);
}
Also used : BehavioralBlackboard(de.tum.in.www1.artemis.service.hestia.behavioral.BehavioralBlackboard) GroupedFile(de.tum.in.www1.artemis.service.hestia.behavioral.GroupedFile) ArrayList(java.util.ArrayList) ExtractCoveredLines(de.tum.in.www1.artemis.service.hestia.behavioral.knowledgesource.ExtractCoveredLines) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 2 with BehavioralBlackboard

use of de.tum.in.www1.artemis.service.hestia.behavioral.BehavioralBlackboard in project ArTEMiS by ls1intum.

the class FindCommonLinesTest method initBlackboard.

@BeforeEach
public void initBlackboard() {
    BehavioralBlackboard blackboard = new BehavioralBlackboard(null, null, null);
    var groupedFiles = new ArrayList<GroupedFile>();
    blackboard.setGroupedFiles(groupedFiles);
    groupedFile = new GroupedFile("test.java", null, null, null);
    groupedFiles.add(groupedFile);
    findCommonLines = new FindCommonLines(blackboard);
}
Also used : BehavioralBlackboard(de.tum.in.www1.artemis.service.hestia.behavioral.BehavioralBlackboard) GroupedFile(de.tum.in.www1.artemis.service.hestia.behavioral.GroupedFile) ArrayList(java.util.ArrayList) FindCommonLines(de.tum.in.www1.artemis.service.hestia.behavioral.knowledgesource.FindCommonLines) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 3 with BehavioralBlackboard

use of de.tum.in.www1.artemis.service.hestia.behavioral.BehavioralBlackboard in project ArTEMiS by ls1intum.

the class GroupGitDiffAndCoverageEntriesByFilePathAndTestCaseTest method initBlackboard.

@BeforeEach
public void initBlackboard() {
    blackboard = new BehavioralBlackboard(new ProgrammingExerciseGitDiffReport(), new CoverageReport(), null);
    blackboard.getGitDiffReport().setEntries(new HashSet<>());
    blackboard.getCoverageReport().setFileReports(new HashSet<>());
    grouper = new GroupGitDiffAndCoverageEntriesByFilePathAndTestCase(blackboard);
}
Also used : BehavioralBlackboard(de.tum.in.www1.artemis.service.hestia.behavioral.BehavioralBlackboard) GroupGitDiffAndCoverageEntriesByFilePathAndTestCase(de.tum.in.www1.artemis.service.hestia.behavioral.knowledgesource.GroupGitDiffAndCoverageEntriesByFilePathAndTestCase) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 4 with BehavioralBlackboard

use of de.tum.in.www1.artemis.service.hestia.behavioral.BehavioralBlackboard in project ArTEMiS by ls1intum.

the class ExtractChangedLinesTest method initBlackboard.

@BeforeEach
public void initBlackboard() {
    BehavioralBlackboard blackboard = new BehavioralBlackboard(null, null, null);
    var groupedFiles = new ArrayList<GroupedFile>();
    blackboard.setGroupedFiles(groupedFiles);
    gitDiffEntries = new HashSet<>();
    groupedFile = new GroupedFile("test.java", null, gitDiffEntries, null);
    groupedFiles.add(groupedFile);
    extractChangedLines = new ExtractChangedLines(blackboard);
}
Also used : BehavioralBlackboard(de.tum.in.www1.artemis.service.hestia.behavioral.BehavioralBlackboard) ExtractChangedLines(de.tum.in.www1.artemis.service.hestia.behavioral.knowledgesource.ExtractChangedLines) GroupedFile(de.tum.in.www1.artemis.service.hestia.behavioral.GroupedFile) ArrayList(java.util.ArrayList) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 5 with BehavioralBlackboard

use of de.tum.in.www1.artemis.service.hestia.behavioral.BehavioralBlackboard in project Artemis by ls1intum.

the class ExtractCoveredLinesTest method initBlackboard.

@BeforeEach
public void initBlackboard() {
    BehavioralBlackboard blackboard = new BehavioralBlackboard(null, null, null);
    var groupedFiles = new ArrayList<GroupedFile>();
    blackboard.setGroupedFiles(groupedFiles);
    coverageReportEntries = new HashSet<>();
    groupedFile = new GroupedFile("test.java", null, null, coverageReportEntries);
    groupedFiles.add(groupedFile);
    extractCoveredLines = new ExtractCoveredLines(blackboard);
}
Also used : BehavioralBlackboard(de.tum.in.www1.artemis.service.hestia.behavioral.BehavioralBlackboard) GroupedFile(de.tum.in.www1.artemis.service.hestia.behavioral.GroupedFile) ArrayList(java.util.ArrayList) ExtractCoveredLines(de.tum.in.www1.artemis.service.hestia.behavioral.knowledgesource.ExtractCoveredLines) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

BehavioralBlackboard (de.tum.in.www1.artemis.service.hestia.behavioral.BehavioralBlackboard)16 BeforeEach (org.junit.jupiter.api.BeforeEach)16 GroupedFile (de.tum.in.www1.artemis.service.hestia.behavioral.GroupedFile)14 ArrayList (java.util.ArrayList)14 ProgrammingExercise (de.tum.in.www1.artemis.domain.ProgrammingExercise)2 ProgrammingExerciseTestCase (de.tum.in.www1.artemis.domain.ProgrammingExerciseTestCase)2 ProgrammingExerciseSolutionEntry (de.tum.in.www1.artemis.domain.hestia.ProgrammingExerciseSolutionEntry)2 ProgrammingExerciseTestCaseRepository (de.tum.in.www1.artemis.repository.ProgrammingExerciseTestCaseRepository)2 SolutionProgrammingExerciseParticipationRepository (de.tum.in.www1.artemis.repository.SolutionProgrammingExerciseParticipationRepository)2 ProgrammingExerciseSolutionEntryRepository (de.tum.in.www1.artemis.repository.hestia.ProgrammingExerciseSolutionEntryRepository)2 RepositoryService (de.tum.in.www1.artemis.service.RepositoryService)2 GitService (de.tum.in.www1.artemis.service.connectors.GitService)2 ProgrammingExerciseGitDiffReportService (de.tum.in.www1.artemis.service.hestia.ProgrammingExerciseGitDiffReportService)2 TestwiseCoverageService (de.tum.in.www1.artemis.service.hestia.TestwiseCoverageService)2 de.tum.in.www1.artemis.service.hestia.behavioral.knowledgesource (de.tum.in.www1.artemis.service.hestia.behavioral.knowledgesource)2 CombineChangeBlocks (de.tum.in.www1.artemis.service.hestia.behavioral.knowledgesource.CombineChangeBlocks)2 CreateCommonChangeBlocks (de.tum.in.www1.artemis.service.hestia.behavioral.knowledgesource.CreateCommonChangeBlocks)2 CreateSolutionEntries (de.tum.in.www1.artemis.service.hestia.behavioral.knowledgesource.CreateSolutionEntries)2 ExtractChangedLines (de.tum.in.www1.artemis.service.hestia.behavioral.knowledgesource.ExtractChangedLines)2 ExtractCoveredLines (de.tum.in.www1.artemis.service.hestia.behavioral.knowledgesource.ExtractCoveredLines)2