spring-data-mongodb icon indicating copy to clipboard operation
spring-data-mongodb copied to clipboard

Migrates DependencyTests to ArchUnit.

Open schauder opened this issue 2 years ago • 1 comments

Migrates DependencyTests to ArchUnit.

The tests are currently failing due to various undesired dependencies.

The tests start with something like:

	JavaClasses importedClasses = new ClassFileImporter()
	        ...
			.that(onlySpringData())

By adding

			.that(ignorePackage("org.springframework.data.aot.hint"))

or

			.that(ignore(SomeClass.class));

the given classes or packages can be ignored for the analysis. Of course the goal should be to fix the cycles.

schauder avatar Mar 03 '23 12:03 schauder

I'm curious what's your take on the cycles created by the config, support and util packages? The AOT ones I'd rather skip for now.

christophstrobl avatar Mar 03 '23 14:03 christophstrobl