j8unit-team / j8unit

Enhancement for JUnit4 to take advantage of Java 8
4 stars 2 forks source link

Imroving the calculateNearestMatchingParents(...) of TypeAnalysis #42

Open ghostcity opened 7 years ago

ghostcity commented 7 years ago

The current calculateNearestMatchingParents(...) implementation of 'TypeAnalysis` is aware of the whole type's class hierarchy. In result, it can skip non-matching super-class(es) and use the nearest matching super-class.

Similarly, it skips any non-matching super-interfaces. However, it does not consider the super-types of the skipped interfaces. This missing behaviour must be added.

(Beside, is there any test interface within the J8Unit repository that needs an according addition?)