| 1 |
package org.sejda.impl; |
| 2 |
|
| 3 |
import com.tngtech.archunit.junit.AnalyzeClasses; |
| 4 |
import com.tngtech.archunit.junit.ArchTest; |
| 5 |
import com.tngtech.archunit.lang.ArchRule; |
| 6 |
import com.tngtech.archunit.library.dependencies.SlicesRuleDefinition; |
| 7 |
|
| 8 |
/** |
| 9 |
* Test for cycles. |
| 10 |
* |
| 11 |
* @author Andrea Vacondio |
| 12 |
* |
| 13 |
*/ |
| 14 |
@AnalyzeClasses(packages = "org.sejda") |
| 15 |
public class TestCycles { |
| 16 |
|
| 17 |
@ArchTest |
| 18 |
public static final ArchRule myRule = SlicesRuleDefinition.slices().matching("org.sejda.(*)..").should() |
| 19 |
.beFreeOfCycles(); |
| 20 |
|
| 21 |
} |