Skip to content
Permalink
Browse files

added exception to api

  • Loading branch information...
maciejmikosik committed Feb 17, 2018
1 parent 265221a commit 0fffff1f9b3276142768f7c53ced367d90a30cc5
Showing with 7 additions and 1 deletion.
  1. +3 −0 doc/documentation.md
  2. +4 −1 main/java/org/testory/Build.java
@@ -499,12 +499,15 @@ It includes types of parameters, return types and annotations of those methods.
For sake of clarity, all exposed types are enumerated below.

- `org.testory.Testory` - main entry point to library containing static methods
- `org.testory.TestoryException` - exception thrown when you misuse testory api
- `org.testory.TestoryAssertionError` - error thrown when assertion fails causing test to fail
- `org.testory.common.Closure` - functional interface representing piece of code returning `Object` or throwing `Throwable`
- `org.testory.common.VoidClosure` - functional interface representing piece of code returning `void` or throwing `Throwable`
- `org.testory.common.Nullable` - annotation that marks optional parameters and return values
- `org.testory.proxy.Invocation` - represents invocation on mock (method, instance and arguments)
- `org.testory.proxy.Handler` - represents logic executed when invoking method on mock
- `org.testory.proxy.InvocationMatcher` - predicate for matching invocation on mock when you stub/verify
- `org.testory.proxy.ProxyException` - exception thrown when misusing mocking api

Deprecated classes that will be removed in next major version.

@@ -10,11 +10,14 @@
@SuppressWarnings("deprecation")
public static Set<Class<?>> exposed = immutable(new HashSet<>(asList(
org.testory.Testory.class,
org.testory.TestoryException.class,
org.testory.TestoryAssertionError.class,
org.testory.common.Closure.class,
org.testory.Closure.class,
org.testory.common.VoidClosure.class,
org.testory.common.Nullable.class,
org.testory.proxy.Invocation.class,
org.testory.proxy.Handler.class,
org.testory.proxy.InvocationMatcher.class)));
org.testory.proxy.InvocationMatcher.class,
org.testory.proxy.ProxyException.class)));
}

0 comments on commit 0fffff1

Please sign in to comment.
You can’t perform that action at this time.