Search in sources :

Example 1 with InsertFileContents

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

the class InsertFileContentsTest method initBlackboard.

@BeforeEach
public void initBlackboard() {
    solutionRepoFiles = new HashMap<>();
    BehavioralBlackboard blackboard = new BehavioralBlackboard(null, null, solutionRepoFiles);
    var groupedFiles = new ArrayList<GroupedFile>();
    blackboard.setGroupedFiles(groupedFiles);
    groupedFile = new GroupedFile("test.java", null, null, null);
    groupedFiles.add(groupedFile);
    insertFileContents = new InsertFileContents(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) InsertFileContents(de.tum.in.www1.artemis.service.hestia.behavioral.knowledgesource.InsertFileContents) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 2 with InsertFileContents

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

the class InsertFileContentsTest method initBlackboard.

@BeforeEach
public void initBlackboard() {
    solutionRepoFiles = new HashMap<>();
    BehavioralBlackboard blackboard = new BehavioralBlackboard(null, null, solutionRepoFiles);
    var groupedFiles = new ArrayList<GroupedFile>();
    blackboard.setGroupedFiles(groupedFiles);
    groupedFile = new GroupedFile("test.java", null, null, null);
    groupedFiles.add(groupedFile);
    insertFileContents = new InsertFileContents(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) InsertFileContents(de.tum.in.www1.artemis.service.hestia.behavioral.knowledgesource.InsertFileContents) 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 InsertFileContents (de.tum.in.www1.artemis.service.hestia.behavioral.knowledgesource.InsertFileContents)2 ArrayList (java.util.ArrayList)2 BeforeEach (org.junit.jupiter.api.BeforeEach)2