package fi.otavanopisto.pyramus.ui.base;
import org.junit.Test;
import fi.otavanopisto.pyramus.SqlAfter;
import fi.otavanopisto.pyramus.SqlBefore;
import fi.otavanopisto.pyramus.ui.AbstractUITest;
public class GenericPagesStudentPermissionsTestsBase extends AbstractUITest {
@Test
@SqlBefore ("sql/basic-before.sql")
@SqlAfter ("sql/basic-after.sql")
public void testCourseAssessmentPagePermission() throws InterruptedException{
assertStudentAllowed("/index.page");
}
@Test
@SqlBefore ("sql/basic-before.sql")
@SqlAfter ("sql/basic-after.sql")
public void testAccessDeniedPagePermission() throws InterruptedException{
assertStudentAllowed("/accessdenied.page");
}
}