Skip to content

Commit

Permalink
add integrationtest to verify dummydata is valid (for h2)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSebastian committed Jul 2, 2024
1 parent ae46b8e commit 5ee8c41
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package de.muenchen.oss.wahllokalsystem.eaiservice;

import de.muenchen.oss.wahllokalsystem.eaiservice.domain.wahlvorstand.WahlvorstandRepository;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;

@SpringBootTest(classes = MicroServiceApplication.class)
@ActiveProfiles({ TestConstants.SPRING_TEST_PROFILE, TestConstants.SPRING_NO_SECURITY_PROFILE, "db-h2", "db-dummydata" })
class MicroServiceApplicationDummyDataIntegrationTest {

@Autowired
WahlvorstandRepository wahlvorstandRepository;

@Test
void applicationIsRunningAndHasDummyData() {
Assertions.assertThat(wahlvorstandRepository.count()).isGreaterThan(0);
}

}

0 comments on commit 5ee8c41

Please sign in to comment.