Closed omuomugin closed 5 months ago
I have an builded artifacts which I want to test with ArchUnit.
I know you can target only some of the classes using importPackages or importPaths. Is there relevant filtering option for importJar() too ?
importPackages
importPaths
importJar()
What I want to do is code like below (it's written in Kotlin.)
val allClassesInPackages = ClassFileImporter() .importJar(JarFile("path/to/jar/file")) .onlyImport("path/to/some/classes/")
Maybe creating custom ImportOption will solve?? I'll give it a try.
I have an builded artifacts which I want to test with ArchUnit.
I know you can target only some of the classes using
importPackages
orimportPaths
. Is there relevant filtering option forimportJar()
too ?What I want to do is code like below (it's written in Kotlin.)