- java.lang.Object
-
- io.annot8.testing.testimpl.TestGroup
-
- All Implemented Interfaces:
io.annot8.core.annotations.Group,io.annot8.core.helpers.WithId,io.annot8.core.helpers.WithProperties,io.annot8.core.helpers.WithType
public class TestGroup extends Object implements io.annot8.core.annotations.Group
A group implementation which provides convenience for unit testing.DO NOT USE THIS OUTSIDE A UNIT TEST.
It does not have the necessary correctness of implementation, as it stores annotation so changes to the annotation will not be reflected.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsAnnotation(io.annot8.core.annotations.Annotation annotation)booleanequals(Object o)StringgetId()io.annot8.core.properties.ImmutablePropertiesgetProperties()Map<String,Stream<io.annot8.core.references.AnnotationReference>>getReferences()Optional<String>getRole(io.annot8.core.annotations.Annotation annotation)StringgetType()inthashCode()voidsetAnnotations(Map<io.annot8.core.references.AnnotationReference,String> annotations)voidsetId(String id)voidsetProperties(io.annot8.core.properties.ImmutableProperties properties)voidsetType(String type)
-
-
-
Method Detail
-
getReferences
public Map<String,Stream<io.annot8.core.references.AnnotationReference>> getReferences()
- Specified by:
getReferencesin interfaceio.annot8.core.annotations.Group
-
setAnnotations
public void setAnnotations(Map<io.annot8.core.references.AnnotationReference,String> annotations)
-
getRole
public Optional<String> getRole(io.annot8.core.annotations.Annotation annotation)
- Specified by:
getRolein interfaceio.annot8.core.annotations.Group
-
containsAnnotation
public boolean containsAnnotation(io.annot8.core.annotations.Annotation annotation)
- Specified by:
containsAnnotationin interfaceio.annot8.core.annotations.Group
-
getId
public String getId()
- Specified by:
getIdin interfaceio.annot8.core.helpers.WithId
-
setId
public void setId(String id)
-
getProperties
public io.annot8.core.properties.ImmutableProperties getProperties()
- Specified by:
getPropertiesin interfaceio.annot8.core.helpers.WithProperties
-
setProperties
public void setProperties(io.annot8.core.properties.ImmutableProperties properties)
-
getType
public String getType()
- Specified by:
getTypein interfaceio.annot8.core.helpers.WithType
-
setType
public void setType(String type)
-
-