dropwizard/dropwizard

View on GitHub
dropwizard-db/src/test/java/io/dropwizard/db/DataSourceConfigurationTest.java

Summary

Maintainability
A
2 hrs
Test Coverage

Method testFullConfiguration has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Test
    void testFullConfiguration() throws Exception {
        DataSourceFactory ds = getDataSourceFactory("yaml/full_db_pool.yml");

        assertThat(ds.getDriverClass()).isEqualTo("org.postgresql.Driver");

    Method testMinimalConfiguration has 36 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        @Test
        void testMinimalConfiguration() throws Exception {
            DataSourceFactory ds = getDataSourceFactory("yaml/minimal_db_pool.yml");
    
            assertThat(ds.getDriverClass()).isEqualTo("org.postgresql.Driver");

      There are no issues that match your filters.

      Category
      Status