Closed asbachb closed 5 years ago
Those syntax elements are currently still missing indeed, but you can already build on ArchConditions.not and ArchConditions.haveRawType with ArchUnit 0.10:
fields().that().areDeclaredInClassesThat().resideInAPackage("..package..")
.should(not(haveRawType(Float.class)));
Alternatively, the following should be equivalent as well:
noFields().that().areDeclaredInClassesThat().resideInAPackage("..package..")
.should().haveRawType(Float.class);
Currently I want to accomplish something like this:
Which seems to be impossible with current api.