public class SliceAssert extends Object
| Modifier and Type | Method and Description |
|---|---|
SliceAssert |
isCycleFree()
Assert there are no cyclic dependencies.
|
SliceAssert |
isLayeredRelaxed()
Assert there are no backward references.
|
SliceAssert |
isLayeredStrict()
Assert there are no backward references and each slice uses only its direct successor.
|
SliceAssert |
renderCycleWith(CycleRenderer renderer)
Use custom renderer to produces the
AssertionError message
for a detected cycle. |
SliceAssert |
renderWith(IllegalDependenciesRenderer renderer)
Use custom renderer to produces the
AssertionError message
for dependency violations. |
SliceAssert |
usesNot(Iterable<Slice> others)
Assert the current slices have no dependency to any class contained by the slices
passed to this method.
|
SliceAssert |
usesNot(Slice... others)
Alternative for
usesNot(Iterable). |
SliceAssert |
usesOnly(Iterable<Slice> others)
Assert the current slices have no other dependencies than those contained by the slices
passed to this method.
|
SliceAssert |
usesOnly(Slice... others)
Alternative for
usesOnly(Iterable). |
public SliceAssert renderWith(IllegalDependenciesRenderer renderer)
AssertionError message
for dependency violations.renderer - the rendererpublic SliceAssert renderCycleWith(CycleRenderer renderer)
AssertionError message
for a detected cycle.renderer - the rendererpublic SliceAssert usesOnly(Iterable<Slice> others)
others - the slices to check dependencies forpublic SliceAssert usesOnly(Slice... others)
usesOnly(Iterable).others - the slices to check dependencies forusesOnly(Iterable)public SliceAssert usesNot(Iterable<Slice> others)
others - the slices to check dependencies forpublic SliceAssert usesNot(Slice... others)
usesNot(Iterable).others - the slices to check dependencies forusesNot(Iterable)public SliceAssert isCycleFree()
public SliceAssert isLayeredStrict()
public SliceAssert isLayeredRelaxed()
Copyright © 2017–2021 Hans Jörg Heßmann. All rights reserved.