- All Implemented Interfaces:
Assert<JctCompilationAssert,,JctCompilation> Descriptable<JctCompilationAssert>,ExtensionPoints<JctCompilationAssert,JctCompilation>
JctCompilation.- Since:
- 0.0.1
- Author:
- Ashley Scopes
-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals -
Constructor Summary
ConstructorsConstructorDescriptionInitialize this compilation assertion. -
Method Summary
Modifier and TypeMethodDescriptionAbstractListAssert<?,List<? extends String>, String, ? extends AbstractStringAssert<?>> Assert that the arguments passed to the compiler were the expected values.Get assertions on the path containing class outputs, if it exists.Get assertions on the path containing the class path, if it exists.Get assertions for diagnostics.Get assertions on the path containing header outputs, if it exists.Assert that the compilation was a failure.Assert that the compilation was successful.Assert that the compilation was successful and had no warnings.moduleGroup(JavaFileManager.Location location) Perform assertions on the given module group, if it has been configured.Get assertions on the path containing the module path, if it exists.Get assertions on the path containing the source path, if it exists.outputGroup(JavaFileManager.Location location) Perform assertions on the given output group, if it has been configured.packageGroup(JavaFileManager.Location location) Perform assertions on the given package group, if it has been configured.Get assertions on the path containing generated source outputs, if it exists.Get assertions on the path containing the source path, if it exists.Methods inherited from class org.assertj.core.api.AbstractAssert
areEqual, asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, inBinary, inHexadecimal, is, isElementOfCustomAssert, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, newListAssertInstance, overridingErrorMessage, overridingErrorMessage, satisfies, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOfForProxy, satisfiesForProxy, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, usingRecursiveAssertion, usingRecursiveAssertion, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnErrorMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.assertj.core.api.Descriptable
as, as, as, describedAs
-
Constructor Details
-
JctCompilationAssert
Initialize this compilation assertion.- Parameters:
value- the value to assert on.
-
-
Method Details
-
arguments
public AbstractListAssert<?,List<? extends String>, arguments()String, ? extends AbstractStringAssert<?>> Assert that the arguments passed to the compiler were the expected values.- Returns:
- a list assertion object to perform assertions on the arguments with.
- Throws:
AssertionError- if the compilation was null.
-
isSuccessful
Assert that the compilation was successful.- Returns:
- this assertion object.
- Throws:
AssertionError- if the compilation was null, or if the compilation was not successful.
-
isSuccessfulWithoutWarnings
Assert that the compilation was successful and had no warnings.If warnings were treated as errors by the compiler, then this is identical to calling
isSuccessful().- Returns:
- this assertion object.
- Throws:
AssertionError- if the compilation was null, if the compilation was not successful, or if the compilation was successful but had one or more warning diagnostics.
-
isFailure
Assert that the compilation was a failure.- Returns:
- this assertion object.
- Throws:
AssertionError- if the compilation was null, or if the compilation succeeded.
-
diagnostics
Get assertions for diagnostics.- Returns:
- assertions for the diagnostics.
- Throws:
AssertionError- if the compilation was null.
-
packageGroup
Perform assertions on the given package group, if it has been configured.If not configured, this will return assertions on a
nullvalue instead.- Parameters:
location- the location to configure.- Returns:
- the assertions to perform.
- Throws:
AssertionError- if the compilation was null.IllegalArgumentException- if the location wasmodule-oriented.NullPointerException- if the provided location object is null.
-
moduleGroup
Perform assertions on the given module group, if it has been configured.If not configured, the value being asserted on will be
nullin value.- Parameters:
location- the location to configure.- Returns:
- the assertions to perform.
- Throws:
AssertionError- if the compilation was null.IllegalArgumentException- if the location is notmodule-oriented.NullPointerException- if the provided location object is null.
-
outputGroup
Perform assertions on the given output group, if it has been configured.If not configured, the value being asserted on will be
nullin value.- Parameters:
location- the location to configure.- Returns:
- the assertions to perform.
- Throws:
AssertionError- if the compilation was null.IllegalArgumentException- if the location is notan output location.NullPointerException- if the provided location object is null.
-
classOutput
Get assertions on the path containing class outputs, if it exists.If not configured, the value being asserted on will be
nullin value.- Returns:
- the assertions to perform on the class outputs.
- Throws:
AssertionError- if the compilation is null.
-
sourceOutput
Get assertions on the path containing generated source outputs, if it exists.If not configured, the value being asserted on will be
nullin value.- Returns:
- the assertions to perform on the source outputs.
- Throws:
AssertionError- if the compilation is null.
-
generatedHeaders
Get assertions on the path containing header outputs, if it exists.If not configured, the value being asserted on will be
nullin value.- Returns:
- the assertions to perform on the header outputs.
- Throws:
AssertionError- if the compilation is null.
-
classPath
Get assertions on the path containing the class path, if it exists.If not configured, the value being asserted on will be
nullin value.- Returns:
- the assertions to perform on the class path.
- Throws:
AssertionError- if the compilation is null.
-
sourcePath
Get assertions on the path containing the source path, if it exists.If not configured, the value being asserted on will be
nullin value.- Returns:
- the assertions to perform on the source path.
- Throws:
AssertionError- if the compilation is null.
-
moduleSourcePath
Get assertions on the path containing the source path, if it exists.If not configured, the value being asserted on will be
nullin value.- Returns:
- the assertions to perform on the source path.
- Throws:
AssertionError- if the compilation is null.
-
modulePath
Get assertions on the path containing the module path, if it exists.If not configured, the value being asserted on will be
nullin value.- Returns:
- the assertions to perform on the module path.
- Throws:
AssertionError- if the compilation is null.
-