Constructor | Description |
---|---|
VarParametersOnlyGuard() |
Modifier and Type | Method | Description |
---|---|---|
@NotNull String |
description() |
Description of this guard.
|
void |
postCondition(@NotNull Object guarded,
@NotNull Method method,
@NotNull Object[] args,
@NotNull Object result) |
Post condition check that is called after the method is executed.
|
void |
preCondition(@NotNull Object guarded,
@NotNull Method method,
@Nullable Object[] args) |
Pre condition check that is called before the method is executed.
|
assertNotNull, assertNotNull, assertTrue
@NotNull public @NotNull String description()
Guard
description
in interface Guard
public void postCondition(@NotNull @NotNull Object guarded, @NotNull @NotNull Method method, @NotNull @NotNull Object[] args, @NotNull @NotNull Object result)
Guard
postCondition
in interface Guard
guarded
- the guarded objectmethod
- the method that is being guardedargs
- the arguments being passed inresult
- the result that was returned from the methodpublic void preCondition(@NotNull @NotNull Object guarded, @NotNull @NotNull Method method, @Nullable @Nullable Object[] args)
Guard
preCondition
in interface Guard
guarded
- the guarded objectmethod
- the method that is being guardedargs
- the arguments being passed inCopyright © 2017. All rights reserved.