Search in sources :

Example 21 with StepNode

use of org.stepik.core.courseFormat.StepNode in project intellij-plugins by StepicOrg.

the class StudyNodeTest method setUp.

@Before
public void setUp() throws Exception {
    courseNode = new CourseNode();
    sectionNode = new SectionNode();
    sectionNode.setId(1);
    sectionNode.setParent(courseNode);
    lessonNode = new LessonNode();
    lessonNode.setId(1);
    lessonNode.setParent(sectionNode);
    stepNode = new StepNode();
    stepNode.setId(1);
    stepNode.setParent(lessonNode);
    courseNode.getChildren().add(sectionNode);
    sectionNode.getChildren().add(lessonNode);
    lessonNode.getChildren().add(stepNode);
}
Also used : StepNode(org.stepik.core.courseFormat.StepNode) LessonNode(org.stepik.core.courseFormat.LessonNode) CourseNode(org.stepik.core.courseFormat.CourseNode) SectionNode(org.stepik.core.courseFormat.SectionNode) Before(org.junit.Before)

Aggregations

StepNode (org.stepik.core.courseFormat.StepNode)21 VirtualFile (com.intellij.openapi.vfs.VirtualFile)6 StudyNode (org.stepik.core.courseFormat.StudyNode)6 Project (com.intellij.openapi.project.Project)4 StepikApiClient (org.stepik.api.client.StepikApiClient)4 SupportedLanguages (org.stepik.core.SupportedLanguages)4 StepikAuthManager.authAndGetStepikApiClient (org.stepik.core.stepik.StepikAuthManager.authAndGetStepikApiClient)4 Document (com.intellij.openapi.editor.Document)3 File (java.io.File)3 NotNull (org.jetbrains.annotations.NotNull)3 Submission (org.stepik.api.objects.submissions.Submission)3 StepikProjectManager (org.stepik.core.StepikProjectManager)3 Presentation (com.intellij.openapi.actionSystem.Presentation)2 Application (com.intellij.openapi.application.Application)2 ApplicationManager (com.intellij.openapi.application.ApplicationManager)2 Logger (com.intellij.openapi.diagnostic.Logger)2 FileDocumentManager (com.intellij.openapi.fileEditor.FileDocumentManager)2 ProgressIndicator (com.intellij.openapi.progress.ProgressIndicator)2 Task (com.intellij.openapi.progress.Task)2 IOException (java.io.IOException)2