fix use-case tests

This commit is contained in:
anhefti 2022-03-24 17:28:19 +01:00
parent ddf3005729
commit 50f94e8581

View file

@ -232,27 +232,23 @@ import ch.ethz.seb.sebserver.gui.service.remote.webservice.api.useraccount.NewUs
import ch.ethz.seb.sebserver.gui.service.remote.webservice.api.useraccount.RegisterNewUser; import ch.ethz.seb.sebserver.gui.service.remote.webservice.api.useraccount.RegisterNewUser;
import ch.ethz.seb.sebserver.gui.service.remote.webservice.api.useraccount.SaveUserAccount; import ch.ethz.seb.sebserver.gui.service.remote.webservice.api.useraccount.SaveUserAccount;
import ch.ethz.seb.sebserver.webservice.servicelayer.dao.SEBClientConfigDAO; import ch.ethz.seb.sebserver.webservice.servicelayer.dao.SEBClientConfigDAO;
import ch.ethz.seb.sebserver.webservice.servicelayer.lms.LmsAPIService;
@FixMethodOrder(MethodSorters.NAME_ASCENDING) @FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class UseCasesIntegrationTest extends GuiIntegrationTest { public class UseCasesIntegrationTest extends GuiIntegrationTest {
@Autowired @Autowired
private Cryptor cryptor; private Cryptor cryptor;
@Autowired
private LmsAPIService lmsAPIService;
@Before @Before
@Sql(scripts = { "classpath:schema-test.sql", "classpath:data-test.sql" }) @Sql(scripts = { "classpath:schema-test.sql", "classpath:data-test.sql" })
public void init() { public void init() {
this.lmsAPIService.cleanup();
} }
@After @After
@Sql(scripts = { "classpath:schema-test.sql", "classpath:data-test.sql" }) @Sql(scripts = { "classpath:schema-test.sql", "classpath:data-test.sql" })
public void cleanup() { public void cleanup() {
this.lmsAPIService.cleanup();
} }
@Test @Test