chapter_009/src/test/java/ru/job4j/io/ConfigTest.java
/**
     * Check all values in the file.
     */
Check all values in the file.
Check all values in the file .
@Test
    public void checkValuesInTheConfig() {
        this.config.load();
        assertThat(this.config.value("hibernate.dialect"), is("org.hibernate.dialect.PostgreSQLDialect"));
        assertThat(this.config.value("hibernate.connection.url"), is("jdbc:postgresql://127.0.0.1:5432/trackstudio"));
        assertThat(this.config.value("hibernate.connection.driver_class"), is("org.postgresql.Driver"));
        assertThat(this.config.value("hibernate.connection.username"), is("postgres"));
        assertThat(this.config.value("hibernate.connection.password"), is("password"));
        assertNull(this.config.value("## PostgreSQL"));
        assertNull(this.config.value("##"));
    }
@ Test public void checkValuesInTheConfig ( ) { this . config . load ( ) ; assertThat ( this . config . value ( "hibernate.dialect" ) , is ( "org.hibernate.dialect.PostgreSQLDialect" ) ) ; assertThat ( this . config . value ( "hibernate.connection.url" ) , is ( "jdbc:postgresql://127.0.0.1:5432/trackstudio" ) ) ; assertThat ( this . config . value ( "hibernate.connection.driver_class" ) , is ( "org.postgresql.Driver" ) ) ; assertThat ( this . config . value ( "hibernate.connection.username" ) , is ( "postgres" ) ) ; assertThat ( this . config . value ( "hibernate.connection.password" ) , is ( "password" ) ) ; assertNull ( this . config . value ( "## PostgreSQL" ) ) ; assertNull ( this . config . value ( "##" ) ) ; }
Check all values in the file.
Check all values in the file .