package de.accso.flexinale;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;

import static org.assertj.core.api.Assertions.assertThat;

@SpringBootTest(classes = {FlexinaleDistributedApplicationTicketing.class})
@ActiveProfiles("smoketest")
public class ApplicationPropertiesFileTest {

    @Value("${application.version}")
    private String propertyApplicationVersion;

    @Test
    public void testReadsTestPropertiesFile() {
        assertThat(propertyApplicationVersion).isEqualTo("test");
    }
}
