Skip to content

Commit

Permalink
Update tests to reflect the removal of sourceClass attribute from `…
Browse files Browse the repository at this point in the history
…@Relation` annotation

* **ApplicationIntegrationTest.java**
  - Remove import of `DrmConfig` class
  - Remove `@Import(DrmConfig.class)` annotation

* **ReleationProcessorTest.java**
  - Fix formatting issue by adding a newline at the end of the file

* **RelationDaoFactoryTest.java**
  - Fix formatting issue by adding a newline at the end of the file
  • Loading branch information
Mom0aut committed Oct 18, 2024
1 parent 366f7db commit 5bb62f9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ void process() {
// assertThat(generatedFiles).isNotEmpty();
}

}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package at.test.drm;

import at.drm.DrmConfig;
import at.drm.model.RelationLink;
import at.drm.service.RelationService;
import io.zonky.test.db.AutoConfigureEmbeddedDatabase;
Expand All @@ -9,15 +8,13 @@
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.annotation.Import;
import org.springframework.test.context.ActiveProfiles;

import java.util.List;
import java.util.Set;

@SpringBootTest
@ActiveProfiles("integration")
@Import(DrmConfig.class)
@AutoConfigureEmbeddedDatabase(provider = DatabaseProvider.ZONKY)
class ApplicationIntegrationTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ void getAllDaos() {
Set<RelationDao> excepted = relationDaoFactoryUnderTest.getAllDaos();
assertThat(actual).isEqualTo(excepted);
}
}
}

0 comments on commit 5bb62f9

Please sign in to comment.