Search in sources :

Example 1 with ExtractChangedLines

use of de.tum.in.www1.artemis.service.hestia.behavioral.knowledgesource.ExtractChangedLines 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 2 with ExtractChangedLines

use of de.tum.in.www1.artemis.service.hestia.behavioral.knowledgesource.ExtractChangedLines 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)

Aggregations

BehavioralBlackboard (de.tum.in.www1.artemis.service.hestia.behavioral.BehavioralBlackboard)2 GroupedFile (de.tum.in.www1.artemis.service.hestia.behavioral.GroupedFile)2 ExtractChangedLines (de.tum.in.www1.artemis.service.hestia.behavioral.knowledgesource.ExtractChangedLines)2 ArrayList (java.util.ArrayList)2 BeforeEach (org.junit.jupiter.api.BeforeEach)2