Class JctCompilationAssert
- 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
ConstructorDescriptionInitialize this compilation assertion. -
Method Summary
Modifier and TypeMethodDescriptionAssert that the arguments passed to the compiler were the expected values.Get assertions on the path containing class module outputs, if it exists.Get assertions on the path containing class package outputs, if it exists.Get assertions on the path containing the class path, if it exists.Get assertions for diagnostics.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 module outputs, if it exists.Get assertions on the path containing generated source package 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, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, 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, withThreadDumpOnError
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.assertj.core.api.Descriptable
as, as, as, describedAs, describedAs
-
Constructor Details
-
JctCompilationAssert
Initialize this compilation assertion.- Parameters:
value
- the value to assert on.
-
-
Method Details
-
arguments
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
null
value 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-oriented
oran 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
null
in 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
null
in 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.
-
classOutputPackages
Get assertions on the path containing class package outputs, if it exists.If not configured, the value being asserted on will be
null
in 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.- Since:
- 0.6.4
-
classOutputModules
Get assertions on the path containing class module outputs, if it exists.If not configured, the value being asserted on will be
null
in 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.- Since:
- 0.6.4
-
sourceOutputPackages
Get assertions on the path containing generated source package outputs, if it exists.If not configured, the value being asserted on will be
null
in 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.- Since:
- 0.6.4
-
sourceOutputModules
Get assertions on the path containing generated source module outputs, if it exists.If not configured, the value being asserted on will be
null
in 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.- Since:
- 0.6.4
-
classPathPackages
Get assertions on the path containing the class path, if it exists.If not configured, the value being asserted on will be
null
in 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.- Since:
- 0.6.4
-
sourcePathPackages
Get assertions on the path containing the source path, if it exists.If not configured, the value being asserted on will be
null
in 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.- Since:
- 0.6.4
-
moduleSourcePathModules
Get assertions on the path containing the source path, if it exists.If not configured, the value being asserted on will be
null
in 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.- Since:
- 0.6.4
-
modulePathModules
Get assertions on the path containing the module path, if it exists.If not configured, the value being asserted on will be
null
in 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.- Since:
- 0.6.4
-