Search in sources :

Example 1 with LessonNode

use of org.stepik.core.courseFormat.LessonNode 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

Before (org.junit.Before)1 CourseNode (org.stepik.core.courseFormat.CourseNode)1 LessonNode (org.stepik.core.courseFormat.LessonNode)1 SectionNode (org.stepik.core.courseFormat.SectionNode)1 StepNode (org.stepik.core.courseFormat.StepNode)1