public class SliceAssert extends Object
Modifier and Type | Method and Description |
---|---|
SliceAssert |
areCycleFree()
Plural alias for
isCycleFree() . |
SliceAssert |
areLayeredRelaxed()
Plural alias for
isLayeredRelaxed() ()}. |
SliceAssert |
areLayeredStrict()
Plural alias for
isLayeredStrict() . |
SliceAssert |
doesNotUse(Iterable<Slice> others)
Alias for
usesNot(Iterable) |
SliceAssert |
doesNotUse(Slice... others)
Alias for
usesNot(Slice...) |
SliceAssert |
doNotUse(Iterable<Slice> others)
Plural alias for
usesNot(Iterable) |
SliceAssert |
doNotUse(Slice... others)
Plural alias for
usesNot(Slice...) |
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 |
useOnly(Iterable<Slice> others)
Plural alias for
usesOnly(Iterable) . |
SliceAssert |
useOnly(Slice... others)
Plural alias for
usesOnly(Iterable) . |
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 useOnly(Iterable<Slice> others)
usesOnly(Iterable)
.others
- the slices to check dependencies forpublic SliceAssert usesOnly(Slice... others)
usesOnly(Iterable)
.others
- the slices to check dependencies forusesOnly(Iterable)
public SliceAssert useOnly(Slice... others)
usesOnly(Iterable)
.others
- the slices to check dependencies forpublic 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 doesNotUse(Iterable<Slice> others)
usesNot(Iterable)
others
- the slices to check dependencies forpublic SliceAssert doesNotUse(Slice... others)
usesNot(Slice...)
others
- the slices to check dependencies forpublic SliceAssert doNotUse(Iterable<Slice> others)
usesNot(Iterable)
others
- the slices to check dependencies forpublic SliceAssert doNotUse(Slice... others)
usesNot(Slice...)
others
- the slices to check dependencies forpublic SliceAssert isCycleFree()
public SliceAssert areCycleFree()
isCycleFree()
.public SliceAssert isLayeredStrict()
public SliceAssert areLayeredStrict()
isLayeredStrict()
.public SliceAssert isLayeredRelaxed()
public SliceAssert areLayeredRelaxed()
isLayeredRelaxed()
()}.Copyright © 2017–2023 Hans Jörg Heßmann. All rights reserved.