Skip to content

Commit

Permalink
rename : application name
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed Aug 24, 2024
1 parent 3b3a08a commit b9fd619
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion scheduler/boot-shedlock-sample/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
environment:
- POSTGRES_USER=appuser
- POSTGRES_PASSWORD=secret
- POSTGRES_DB=appdb
- POSTGRES_DB=shedlockdb
ports:
- "5432:5432"

Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

@SpringBootApplication
@EnableConfigurationProperties({ApplicationProperties.class})
public class Application {
public class ShedLockApplication {

public static void main(String[] args) {
SpringApplication.run(Application.class, args);
SpringApplication.run(ShedLockApplication.class, args);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
spring.datasource.driver-class-name=org.postgresql.Driver
spring.datasource.url=jdbc:postgresql://localhost:5432/appdb
spring.datasource.url=jdbc:postgresql://localhost:5432/shedlockdb
spring.datasource.username=appuser
spring.datasource.password=secret

Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
package com.learning.shedlock;

import com.learning.shedlock.common.ContainersConfig;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
import org.springframework.context.annotation.Import;

@DataJpaTest(
properties = {
"spring.jpa.hibernate.ddl-auto=validate",
"spring.test.database.replace=none",
"spring.datasource.url=jdbc:tc:postgresql:16.3-alpine:///db"
})
@DataJpaTest(properties = {"spring.jpa.hibernate.ddl-auto=validate", "spring.test.database.replace=none"})
@Import(ContainersConfig.class)
class SchemaValidationTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import com.learning.shedlock.common.AbstractIntegrationTest;
import org.junit.jupiter.api.Test;

class ApplicationIntegrationTest extends AbstractIntegrationTest {
class ShedLockApplicationIntegrationTest extends AbstractIntegrationTest {

@Test
void contextLoads() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
import com.learning.shedlock.common.ContainersConfig;
import org.springframework.boot.SpringApplication;

public class TestApplication {
public class TestShedLockApplication {

public static void main(String[] args) {
System.setProperty("spring.profiles.active", "local");
SpringApplication.from(Application::main).with(ContainersConfig.class).run(args);
SpringApplication.from(ShedLockApplication::main)
.with(ContainersConfig.class)
.run(args);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ public class ContainersConfig {
@Bean
@ServiceConnection
PostgreSQLContainer<?> postgreSQLContainer() {
return new PostgreSQLContainer<>(DockerImageName.parse("postgres:16.3-alpine"));
return new PostgreSQLContainer<>(DockerImageName.parse("postgres").withTag("16.4-alpine"));
}
}

0 comments on commit b9fd619

Please sign in to comment.