Class ByteCodeWriterTck
java.lang.Object
io.micronaut.sourcegen.bytecode.tck.AbstractByteCodeWriterTck
io.micronaut.sourcegen.bytecode.tck.ByteCodeWriterTck
The behaviour every bytecode backend must provide, asserted through the classes a backend writes
rather than through the bytecode it emits, so that the same tests hold for any backend.
A backend runs the TCK by extending this class and implementing AbstractByteCodeWriterTck.write(ObjectDef).
Assertions about a particular backend's encoding, such as the exact instructions it selects or
the fallbacks it offers, belong in that backend's own tests.
- Since:
- 2.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidMethods inherited from class AbstractByteCodeWriterTck
assertCall, caller, callWithParameter, classShape, declaredFields, declaredMethods, define, defineInPackage, genericShape, invoke, list, load, outcome, run, run, run, selection, selection, shape, write
-
Constructor Details
-
ByteCodeWriterTck
public ByteCodeWriterTck()
-
-
Method Details
-
marksEveryGeneratedTypeWithAClassRetainedAnnotation
@Test public void marksEveryGeneratedTypeWithAClassRetainedAnnotation() -
doesNotDuplicateAnExplicitGeneratedMarker
@Test public void doesNotDuplicateAnExplicitGeneratedMarker() -
callsAVariableArityMethodWithMoreArgumentsThanItsFixedArityOverloadsTake
-
writesEveryIntegerMathOperationAndWidePrimitiveOperations
-
writesAllComparisonsForIntegralAndFloatingPointValues
-
writesCastsBoxingNullChecksEqualityInstanceOfAndArrays
-
writesReflectedGenericBridgeAndGenericSignatures
-
verifiesHierarchyFromGeneratedModelDefinitions
-
writesEmptyWideGenericAndBridgedRecords
-
writesExplicitSuperConstructorsAndObjectCreation
-
writesBooleanCompositionConditionalExpressionsAndArraySizes
-
writesCatchVariablesThrowsAndDeclarationMetadata
-
writesGenericRecordSignaturesAndRecordsWithAnAdditionalConstructor
-
writesSuperCallsAndSuperConstructorDelegation
-
writesArrayConstantsAndMultiDimensionalArrays
-
writesVoidMethodsThatReturnAnExpression
-
writesConstructorsWhoseSuperCallUsesAnEarlierLocal
-
writesBoxedConstantsSmallPrimitivesAndPrimitiveHashCodes
-
writesInterfacesWithAbstractDefaultAndStaticMethods
-
writesEnums
-
writesConstructorDelegationWithoutRepeatingFieldInitializers
-
writesSuperConstructorCallsThatNameTheSuperType
-
writesSuperCallsToASuperclassMethodAndAnInterfaceDefaultMethod
-
writesNamesContainingDollarSigns
-
writesInstanceOfANestedType
-
writesAccessToAFieldOfAnotherType
-
writesArrayAnnotationMembersAndNestedArrayInitializers
-
writesLambdasDeclaredInsideNestedBlocks
-
writesThisInsideANestedBlockOfALambdaBody
-