Skip to content

Commit

Permalink
Release/6.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
machacjozef committed Dec 24, 2024
1 parent a7ea139 commit 96446b5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ class PostalCodeImporter extends AbstractOrderedCommandLineRunner {

private static final Logger log = LoggerFactory.getLogger(PostalCodeImporter.class.name)

@Value("\${nae.postal.codes.import}")
@Value('${nae.postal.codes.import}')
Boolean importPostalCode

@Value("\${nae.postal.codes.csv}")
@Value('${nae.postal.codes.csv}')
String postalCodesPath

@Autowired
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ import org.springframework.boot.test.context.SpringBootTest
import org.springframework.test.context.ActiveProfiles
import org.springframework.test.context.junit.jupiter.SpringExtension

@Disabled
@SpringBootTest
@ActiveProfiles(["test"])
@ExtendWith(SpringExtension.class)
@SpringBootTest(properties = "nae.postal.codes.import=false")
@SuppressWarnings("GrMethodMayBeStatic")
class PostalCodeTest {

private static boolean setup = false
Expand Down Expand Up @@ -55,7 +53,7 @@ class PostalCodeTest {

@Test
void oneMatchTest() {
def psc = "841 05"
String psc = "841 05"

List<PostalCode> cities = service.findAllByCode(psc)

Expand All @@ -65,7 +63,7 @@ class PostalCodeTest {
@Test
@Disabled("Github action")
void multipleMatchTest() {
def psc = "851 10"
String psc = "851 10"

List<PostalCode> cities = service.findAllByCode(psc)

Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/application-test.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ nae.security.limits.login-timeout=3
nae.security.limits.login-timeout-unit=seconds

# PSC
nae.postal.codes.import=false
nae.postal.codes.import=true
nae.postal.codes.csv=postal_codes_dev.csv

# Storage
Expand Down

0 comments on commit 96446b5

Please sign in to comment.