- 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.Deprecated, for removal: This API element is subject to removal in a future version.Get assertions on the path containing class module outputs, if it exists.Get assertions on the path containing class package outputs, if it exists.Deprecated, for removal: This API element is subject to removal in a future version.useclassPathPackages()instead.Get assertions on the path containing the class path, if it exists.Get assertions for diagnostics.Deprecated, for removal: This API element is subject to removal in a future version.this method is rarely needed, so is being removed in v1.0.0.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.Deprecated, for removal: This API element is subject to removal in a future version.usemodulePathModules()instead.Get assertions on the path containing the module path, if it exists.Deprecated, for removal: This API element is subject to removal in a future version.usemoduleSourcePathModules()instead.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.Deprecated, for removal: This API element is subject to removal in a future version.usesourceOutputPackages()orsourceOutputModules()instead.Get assertions on the path containing generated source module outputs, if it exists.Get assertions on the path containing generated source package outputs, if it exists.Deprecated, for removal: This API element is subject to removal in a future version.usesourcePathPackages()instead.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, or no group for the location was found.IllegalArgumentException- if the location wasmodule-orientedoran output location.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, or no group for the location was found.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, or no group for the location was found.IllegalArgumentException- if the location is notan output location.NullPointerException- if the provided location object is null.
-
classOutput
Deprecated, for removal: This API element is subject to removal in a future version.useclassOutputPackages()orclassOutputModules()instead.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 was null, or no group for the location was found.
-
classOutputPackages
Get assertions on the path containing class package outputs, if it exists.If not configured, the value being asserted on will be
nullin value.- Returns:
- the assertions to perform on the class package outputs.
- Throws:
AssertionError- if the compilation was null, or no group for the location was found.
-
classOutputModules
Get assertions on the path containing class module outputs, if it exists.If not configured, the value being asserted on will be
nullin value.- Returns:
- the assertions to perform on the class module outputs.
- Throws:
AssertionError- if the compilation was null, or no group for the location was found.
-
sourceOutput
Deprecated, for removal: This API element is subject to removal in a future version.usesourceOutputPackages()orsourceOutputModules()instead.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 was null, or no group for the location was found.
-
sourceOutputPackages
Get assertions on the path containing generated source package outputs, if it exists.If not configured, the value being asserted on will be
nullin value.- Returns:
- the assertions to perform on the source package outputs.
- Throws:
AssertionError- if the compilation was null, or no group for the location was found.
-
sourceOutputModules
Get assertions on the path containing generated source module outputs, if it exists.If not configured, the value being asserted on will be
nullin value.- Returns:
- the assertions to perform on the source module outputs.
- Throws:
AssertionError- if the compilation was null, or no group for the location was found.
-
generatedHeaders
Deprecated, for removal: This API element is subject to removal in a future version.this method is rarely needed, so is being removed in v1.0.0. UseoutputGroup(Location), passingStandardLocation.NATIVE_HEADER_OUTPUTas the first parameter instead.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 was null, or no group for the location was found.
-
classPath
Deprecated, for removal: This API element is subject to removal in a future version.useclassPathPackages()instead.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 was null, or no group for the location was found.
-
classPathPackages
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 was null, or no group for the location was found.
-
sourcePath
Deprecated, for removal: This API element is subject to removal in a future version.usesourcePathPackages()instead.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 was null, or no group for the location was found.
-
sourcePathPackages
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 was null, or no group for the location was found.
-
moduleSourcePath
Deprecated, for removal: This API element is subject to removal in a future version.usemoduleSourcePathModules()instead.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 was null, or no group for the location was found.
-
moduleSourcePathModules
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 was null, or no group for the location was found.
-
modulePath
Deprecated, for removal: This API element is subject to removal in a future version.usemodulePathModules()instead.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 was null, or no group for the location was found.
-
modulePathModules
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 was null, or no group for the location was found.
-
classOutputPackages()orclassOutputModules()instead.